text-to-speech

How to know when TTS is finished?

心不动则不痛 提交于 2019-11-27 03:50:24
I'm implementing an Interactive Voice Response application on Android. I would like to know how to determine when the tts.speak() function has done talking so I can call my speech recognizer function. mysuperass public class TTSActivity extends Activity implements OnInitListener, OnUtteranceCompletedListener, ... { private TextToSpeech mTts; ........... private void speak(String text) { if(text != null) { HashMap<String, String> myHashAlarm = new HashMap<String, String>(); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_ALARM)); myHashAlarm.put

IllegalArgumentException: Invalid int: “OS” with Samsung tts

吃可爱长大的小学妹 提交于 2019-11-27 03:43:51
问题 I'm using Text to speech in my android application.It is working Fine with Google TTs and espeak, But when i used with Samsung TTS it gives following Exception. java.lang.IllegalArgumentException: Invalid int: "OS" at android.os.Parcel.readException(Parcel.java:1429) at android.os.Parcel.readException(Parcel.java:1379) at android.speech.tts.ITextToSpeechService$Stub$Proxy.isLanguageAvailable(ITextToSpeechService.java:482) at android.speech.tts.TextToSpeech$10.run(TextToSpeech.java:1084) at

Text-to-speech libraries for iPhone [duplicate]

冷暖自知 提交于 2019-11-27 03:24:33
Possible Duplicate: Text to speech on iPhone How do I get started with text-to-speech conversion in iPhone ? I want to read the text typed by the user. Are there any available libraries or demos? I have gone through some of them, but I didn't understand where to start it from. For online,you can use my Google-TTS-Library-For-iOS to achieve your goal. Offline iPhone TTS implementation is easy to do. You can see the details here . There are many paid and free iOS TTS libraries are available . They are , Free (Offline/Online) iphone-tts Note: read "HOW TO USE" section . TTSOverview-iOS flite-1.4

How to store text to speech output as WAV file?

ぐ巨炮叔叔 提交于 2019-11-27 02:58:41
问题 I am using the following code to store Text to Speech output as wav file in my application. I am not sure where is the error, can you please take a look into that and suggest me? public class MainActivity extends Activity { Button store, play; EditText input; String speakTextTxt; TextToSpeech mTts; HashMap<String, String> myHashRender = new HashMap<String, String>(); String tempDestFile ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Does Android TTS support Speech Synthesis Markup Language?

三世轮回 提交于 2019-11-27 02:45:34
问题 Passing the following SSML (Speech Synthesis Markup Language) document to the com.svox.pico TextToSpeech engine resulted in a reading of the XML body but no control from the phoneme element or the emphasis element. This result (no apparent SSML control) is the same on a Nexus One running Android 2.2 as well as on the emulator running an AVD with SDK level 8. String text = "<?xml version=\"1.0\"?>" + "<speak version=\"1.0\" xmlns=\"http://www.w3.org/2001/10/synthesis\" " + "xmlns:xsi=\"http:/

best practice for specifying pronunciation for Android TTS engine?

情到浓时终转凉″ 提交于 2019-11-27 01:21:43
问题 In general, I'm very impressed with Android's default text to speech engine (i.e., com.svox.pico). As expected, it mispronounces some words (as do I) and it therefore occasionally needs some pronunciation guidance. So I'm wondering about best practices for phonetically spelling out those words that the pico TTS engine mispronounces. For example, the correct pronunciation of the bird Chachalaca is CHAH-chah-LAH-kah. Here is what the TTS engine produces: mTts.speak("Chachalaca", TextToSpeech

Text-to-speech on iPhone [closed]

孤街醉人 提交于 2019-11-27 00:15:44
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . How difficult would it be to implement something similar to AppleScript's say "words" ? That is to say, is it just a binary link and

Does iOS provide built in text to speech support or any class like NSSpeechRecognizer?

廉价感情. 提交于 2019-11-27 00:11:54
问题 i have found many libraries like flite which can be be used, as in given here, but I want to know if there is any Built-In class provided by iOS SDK similar to NSSpeechRecognizer provided in OS X. 回答1: There is no built in text-to-speech support in iOS 5 or 6 - you'll need to use a third party library. If you are using iOS 7 you're in luck. There's a new class in iOS 7 called AVSpeechSynthesizer (Apple's docs can be found here). You can use this to perform text-to-speech. Here's a simple

How to create or convert text to audio at chromium browser?

浪子不回头ぞ 提交于 2019-11-26 23:12:22
While trying to determine a solution to How to use Web Speech API at chromium? found that var voices = window.speechSynthesis.getVoices(); returns an empty array for voices identifier. Not certain if lack of support at chromium browser is related to this issue Not OK, Google: Chromium voice extension pulled after spying concerns ? Questions: 1) Are there any workarounds which can implement the requirement of creating or converting audio from text at chromium browser? 2) How can we, the developer community, create an open source database of audio files reflecting both common and uncommon words;

Service stops working when app gets closed

烈酒焚心 提交于 2019-11-26 22:09:30
问题 Here I have implemented functionality to read messages of incoming push notifications using Text-To-Speech. I created a separate service class for it which works fine and after a while notifications comes but it stops read notifications. public class TTSService extends Service implements TextToSpeech.OnInitListener { private static final String TAG = "TTSService"; private String mSpeechMessage; private TextToSpeech mTts; @Override public IBinder onBind(Intent arg0) { return null; } @Override