text-to-speech

Why is the ACTION_CHECK_TTS_DATA Intent “awkward to use”?

我怕爱的太早我们不能终老 提交于 2019-11-26 21:41:37
问题 The official introduction to Text-To-Speech in Android says that "upon creating your activity, a good first step is to check for the presence of the TTS resources with the corresponding intent:" Intent checkIntent = new Intent(); checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); startActivityForResult(checkIntent, MY_DATA_CHECK_CODE); But @gregm in this thread suggests otherwise: Also, don't use the ACTION_CHECK_TTS_DATA Intent, that's awkward to use . Instead, do the

Text to speech(TTS)-Android

大城市里の小女人 提交于 2019-11-26 21:37:53
I am new to the android platform. Now I am working on TTS(Text to Speech) .If I enter the text in a TextArea and I would like it to be converted to speech when i click the speak button. Can anyone help me out? Quantumgeek Text to speech is built into Android 1.6+. Here is a simple example of how to do it. TextToSpeech tts = new TextToSpeech(this, this); tts.setLanguage(Locale.US); tts.speak("Text to say aloud", TextToSpeech.QUEUE_ADD, null); More info: http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html Here are instructions on how to download sample code from

Initialising the TextToSpeech object on a worker thread

自古美人都是妖i 提交于 2019-11-26 21:37:12
问题 For years (literally), my application has suffered woes from poorly performing text to speech engines, in particular, the initialisation time when calling: tts = new TextToSpeech(context, myOnInitListener); The above can cause the UI to lag and if you search for 'Text to Speech initialization slow' on SO, you'll find many posts. The embedded high quality IVONA voices used to be the worst culprit, but the Google TTS engine has now taken the prize. Their most recent APK update, causes major lag

C# Speech Recognition - Is this what the user said?

不羁的心 提交于 2019-11-26 19:29:48
I have need to write an application which uses a speech recognition engine -- either the built in vista one, or a third party one -- that can display a word or phrase, and recognise when the user reads it (or an approximation of it). I also need to be able to switch quickly between languages, without changing the language of the operating system. The users will be using the system for very short periods. The application needs to work without the requirement of first training the recognition engine to the users' voices. It would also be fantastic if this could work on Windows XP or lesser

iPhone SDK - Google TTS and encoding

天涯浪子 提交于 2019-11-26 19:21:26
问题 I am developing a text-to-speech iphone app that support multi-languages. Here is my request URL requestUrlStr = @"http://www.translate.google.com/translate_tts?tl=en&q=hello"; for english the above url has no problem but for Chinese requestUrlStr = @"http://www.translate.google.com/translate_tts?tl=zh-TW&q=你好"; I know the above url will give 'Bad URL', so I used follow method to encode the string into UTF-8 requestUrlStr = [requestUrlStr stringByAddingPercentEscapesUsingEncoding

iOS Text To Speech Api

纵饮孤独 提交于 2019-11-26 18:47:50
问题 I can't seem to find anything on this. Are there any Siri classes or API's in iOS7 that let you do text to speech? All I am trying to do is something like the following: [siriInstance say:@"This is a test"]; And then have Siri say it from my app. It seems we should be capable of doing this, no? Seems like a trivial thing. 回答1: Since iOS 7 you have a new TTS Api. In Objective C AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance =

Google Text-To-Speech API

天大地大妈咪最大 提交于 2019-11-26 18:07:22
I want to know how can I use Google Text-to-Speech API in my .NET project. I think I need to call a URL to use the web service, but the idea for me is not clear. Can anyone help? Old answer: Try using this URL: http://translate.google.com/translate_tts?tl=en&q=Hello%20World It will automatically generate a wav file which you can easily get with an HTTP request through any .net programming. Edit: Ohh Google, you thought you could prevent people from using your wonderful service with flimsy http header verification. Here is a solution to get a response in multiple languages (I'll try to add more

How to make Python speak

拜拜、爱过 提交于 2019-11-26 17:34:54
问题 How could I make Python say some text? I could use Festival with subprocess but I won't be able to control it (or maybe in interactive mode, but it won't be clean). Is there a Python TTS library? Like an API for Festival, eSpeak, ... ? 回答1: Please note that this only work with python 2.x You should try using the PyTTSx package since PyTTS is outdated. PyTTSx works with the lastest python version. http://pypi.python.org/pypi/pyttsx/1.0 -> The package Hope it helps 回答2: A bit cheesy, but if you

MBROLA voices with FreeTTS - Windows

廉价感情. 提交于 2019-11-26 16:48:13
问题 Using MBROLA voices in a Java program with FreeTTS... I am working on a simple text-to-speech program in Java. I have decided to use FreeTTS, but the voices are not really what I was thinking, and I was looking to use a female voice anyway. So I started looking around, and decided that I would use MBROLA to change the voice of my text-to-speech program. I read that "FreeTTS can use MBROLA voices" , but I searched everywhere and couldn't find a clear guide how to set MBROLA up, and what files

Need text to speech and speech recognition tools for Linux

ⅰ亾dé卋堺 提交于 2019-11-26 16:28:55
问题 I'm planning on writing a program for Linux that uses text to speech and speech recognition. What are the best tools/libraries for this? Should I use Windows instead to be able to use better tools? The tools need to be easily callable from a console or C program. 回答1: For speech recognition there are the various Sphinxes. The different variants have different pros and cons, there is a comparison here Comparison of Sphinx versions. Sphinx 4 is Java, but the others are C, I believe. 回答2: It