text-to-speech

Text to Speech Locale Hindi Indian

一曲冷凌霜 提交于 2019-11-28 07:37:30
问题 I've created a Text to Speech Engine for Android that supports many languages, one of which is Hindi. In the Android Text to Speech Settings, when the user selects a default locale, Android does a number of checks including sending the intent ACTION_GET_SAMPLE_TEXT Here is my list of supported locales: private static final String[] SUPPORTED_LANGUAGES = { "eng-GBR", "eng-USA", "fra-FRA", "spa-ESP", "deu-DEU", "ita-ITA", "kor-KOR", "nld-NLD", "dan-DNK", "fin-FIN", "jpn-JPN", "nor-NOR", "pol

Playing remote audio (from Google Translate) in HTML5 on a server

为君一笑 提交于 2019-11-28 07:26:05
问题 I'm trying to use text-to-speech on a website using HTML5 and Google Translate. Getting speech from Google is as easy as a GET request to: http://translate.google.com/translate_tts?tl=en&q=hello In order to play that file I'm using the audio-tag: <audio id="speech" src="http://translate.google.com/translate_tts?tl=en&q=hello" controls="controls" autoplay="autoplay">Your browser does not support the audio element.</audio> That works perfectly when I try to open the html file locally using

Google's Text-To-Speech API from Android app

折月煮酒 提交于 2019-11-28 06:40:12
问题 I want to use Google's Text-To-Speech API in an Android app but I only could find the way to do it from web (Chrome). This is my first attempt to play "Hello world" from the app. playTTS is the onClick and it is been executed, but no sound is played. Is there any JS/Java library I need to import? Is it possible to generate an audio file from it? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myBrowser

best practice for specifying pronunciation for Android TTS engine?

依然范特西╮ 提交于 2019-11-28 06:28:25
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.QUEUE_ADD, null); // output: chuh-KAL-uh-KUH mTts.speak("CHAH-chah-LAH-kah", TextToSpeech.QUEUE_ADD, null

Get available locales for text to speech (TTS)

梦想与她 提交于 2019-11-28 04:24:54
I'm working on a text-to-speech implementation of a flashcard program. Text in different languages should be read out. In order to do this properly the user has to select the language of the text to read (will be stored and used later without question). Is there a possibility of getting the available TTS languages on an Android system? If not, is there a possibility of getting all availably locales on the system? I guess, I got it: getAvailableLocales() and tts.isLocaleAvailable(locale) Chirag Find all available TTS Locale on the device using following function. Locale.getAvailableLocales()

Is it possible to select the word that is being read while using the SpeechSynthesisUtterance API?

白昼怎懂夜的黑 提交于 2019-11-28 04:20:01
问题 Is it possible to select the word that is being read while using the SpeechSynthesisUtterance API? Is there an event I can use to get the current spoken word and cursor position? Here is what I have so far: var msg = new SpeechSynthesisUtterance(); var voices = window.speechSynthesis.getVoices(); msg.voice = voices[10]; // Note: some voices don't support altering params msg.voiceURI = 'native'; msg.volume = 1; // 0 to 1 msg.rate = 1; // 0.1 to 10 msg.pitch = 2; //0 to 2 msg.text = 'Hello

Why is UtteranceProgressListener not an interface?

主宰稳场 提交于 2019-11-28 04:08:15
问题 I'm playing around with Android's TTS features and the TextToSpeech class has this method to set a listener which gets notified once the TextToSpeech has finished playing: public int setOnUtteranceCompletedListener(TextToSpeech.OnUtteranceCompletedListener listener) But the OnUtteranceCompletedListener is defined as public abstract class . As my MainActivity already extends Activity, it can't extend OnUtteranceCompletedListener as well. I could use the older method with a

Text-to-speech on iPhone [closed]

[亡魂溺海] 提交于 2019-11-28 04:01:39
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 an import, or something as messy as a libxml implementation? Edit: My answer solves this. Acapela A serious ripoff €250 for the SDK, and that's not including updates Ivona Site does not present an iOS version with the others Not interested VoiceText Site is ugly and difficult to navigate Not interested OpenEars Open source, a definite plus By far the best offline TTS I've heard of. Flite Super low quality, not worth using Sucks as-is. OE improved on it a lot.

How to poll available TTS engines for available languages without instantiating each one and wating for init

只谈情不闲聊 提交于 2019-11-28 03:56:32
问题 I need to instantiate a TextToSpeech object and set a given language (which is set programmatically and may vary). I know I can use setLanguage() but that will only work if the language is available in the TTS engine that partictual TextToSpeech instance is using. I know I can check whether a language is available by means of myTTS.isLanguageAvailable() but that will only tell me whether the language is available on the current engine. The problem is that the user may have more than one TTS

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

时光总嘲笑我的痴心妄想 提交于 2019-11-28 03:51:53
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. 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 example: AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Hello world"];