text-to-speech

Can I add my own voice to TTS and can generate the paragraph with my own voice?

筅森魡賤 提交于 2019-12-09 06:33:50
问题 Can I add the dictionary of my own voice for text to speech application? If it possible which development language would be best to develop such a this kind of application There are several online tool for text to speech but they have there own voices. I have to develop same like that application.please suggest me how I can go ahead with my concept . 回答1: You can build your voice with open source software like Festival or Openmary. You will need a carefully prepared recording of your voice

onUtteranceCompleted() lost if TTS received is too long

Deadly 提交于 2019-12-08 19:16:28
问题 I just observed an "undocumented anomaly" in Android's TTS engine: If the text to be spoken is too long (greater than 4K characters), then onUtteranceCompleted() for that particular utterance will never arrive... Has anyone else come across this? Is this a known bug or limitation? What could be done to work around this? 回答1: I wasn't aware of the limit, as I prefer smaller chunks of speech (useful if pausing or if activity is paused). When you call speak, you can add the new utterance to the

Android call TTS in BroadcastReceiver

China☆狼群 提交于 2019-12-08 19:10:55
问题 I need to call TTS service within subclass of BroadcastReceiver. When I am implement that class from OnInitListener, it gave run-time error. Is there any other-way to implement TTS within BroadcastReceiver? Thank You, Sorry Code: public class TextApp extends BroadcastReceiver implements OnInitListener { private TextToSpeech tts; private String message = "Hello"; @Override public void onReceive(Context context, Intent intent) { tts = new TextToSpeech(context, this); message = "Hello TTS"; }

how can i use japanese google tts engine in my android app without change any device setting

☆樱花仙子☆ 提交于 2019-12-08 18:38:28
I am developing a Japanese study app. i wanna hear japanese pronunciation in my app. i initialize tts like this private TextToSpeech tts; private void initTTS() { tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() { @Override public void onInit(int status) { if(status == TextToSpeech.SUCCESS) { Locale loc = new Locale("ja_JP"); int result = tts.setLanguage(loc); if(result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) { Intent installIntent = new Intent(); installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA); installIntent.addFlags

How to tell whether a specific TTS engine is checked (enabled)?

懵懂的女人 提交于 2019-12-08 16:03:10
问题 This question refers on Android 2.2 only: The following screenshot shows 3 different text-to-speech engines installed: PIco TTS (Android's default as of Froyo 2.2) IVONA Text-to-Speech HQ SVOX Classic TTS In this screenshot, you could see that not all 3 are checked (enabled). Instead, IVONA is unchecked, leaving only Pico (implied, as it's hard-coded in) and SVOX (checked). I would like to be able to programmatically query from my application whether a specific TTS engine (e.g. IVONA) is

Text to Speech in ASP.NET

南楼画角 提交于 2019-12-08 14:41:26
I would like to do some japanese text to speech on my dedicated windows 2003 x64 server with .net framework, using c# I found something on google, but requires to install a lot of files on the server... i don't like, for stability issues: there is another option, like a linked dll or something? You can use Microsoft Speech SDK . It's a set of COM APIs containing TTS and SR engines. I'm not sure if it contains Japanese TTS though. What you most likely want is the Microsoft Speech Server especially if your webite is going to encounter any decent load or volume. From the site: "A speech platform,

Copying a file to/from external storage

删除回忆录丶 提交于 2019-12-08 12:47:34
I'm fairly new to Android and am having an writing to a certain file. What I'm trying to do is use the TextToSpeech.synthesizeToFile() method to write an audio file. This is working except for the fact that when the app exits the TextToSpeech engine automatically deletes the file it created. So I then tried to make a copy of the created file in another directory. To do this I use the copyFile() method of the org.apache.commons.io.FileUtils package. Using this method only results in a newly created file of 0 in size. I'm using Environment.getExternalStorageDirectory() to get the appropriate

How to speak current latitude,longitude text into speech

白昼怎懂夜的黑 提交于 2019-12-08 12:32:56
问题 I want to convert my current latitude,longitude text into speech.I have code for finding current latitude,longitude.But i initialize the TextToSpeech method inside Location class i got only latLongString.I couldn't get EX:your current location is lat=1.222,long=22.335. Here my Code: public class SpeakActivity extends Activity implements OnInitListener{ private TextToSpeech tts; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R

Copying a file to/from external storage

醉酒当歌 提交于 2019-12-08 08:46:54
问题 I'm fairly new to Android and am having an writing to a certain file. What I'm trying to do is use the TextToSpeech.synthesizeToFile() method to write an audio file. This is working except for the fact that when the app exits the TextToSpeech engine automatically deletes the file it created. So I then tried to make a copy of the created file in another directory. To do this I use the copyFile() method of the org.apache.commons.io.FileUtils package. Using this method only results in a newly