text-to-speech

Swift iOS Text To Speech not working with “delay” in loop

左心房为你撑大大i 提交于 2019-12-01 18:44:04
I'm trying to have the iOS text-to-speech synthesizer "say" a list of phrases with a variable delay between the phrases. For example, I may want to it say "Hello", then wait 5 seconds, then "Is anyone there?", then wait 10 seconds, then say "Hello?"...etc. I've made a simple example below that illustrates what I am trying to do. I know that the speech synthesizer is speaking, additional utterances are added to a queue and spoken in the order they are received. I've tried many ways to achieve this delay in the loop. Testing delays with a print statement confirms they are working, but they seem

Are the SpeakProgressEventArgs of the SpeechSynthesizer inaccurate?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 17:41:20
Using the System.Speech.Synthesis.SpeechSynthesizer class in .Net 3.5, the AudioPosition property of the SpeakProgressEventArgs appears to be inaccurate. The following code produces the following output: Code: using System; using System.Speech.Synthesis; using System.Threading; namespace SpeechTest { class Program { static ManualResetEvent speechDoneEvent = new ManualResetEvent(false); static void Main(string[] args) { SpeechSynthesizer synthesizer = new SpeechSynthesizer(); synthesizer.SpeakProgress += new EventHandler<SpeakProgressEventArgs>(synthesizer_SpeakProgress); synthesizer

How to play multiple sound files on one Web Page? (on click best practice)

做~自己de王妃 提交于 2019-12-01 17:05:43
I have a page where there is a list of vocabularies. I have a TTS for each vocabulary. The current approach that I am using is to include an mp3 flash player for each vocabulary. This creates delay to load all the flash because there can be more than 10 vocabularies in one page. another problem is that the mp3 of the tts file has to be created on the page load, this also gives delay to the loading time. Some alternative approach in my mind is to: include only one flash player. load and play the file on click to reduce page load for tts file creation. So my question is, Is there any javascript

How to play multiple sound files on one Web Page? (on click best practice)

只愿长相守 提交于 2019-12-01 16:39:56
问题 I have a page where there is a list of vocabularies. I have a TTS for each vocabulary. The current approach that I am using is to include an mp3 flash player for each vocabulary. This creates delay to load all the flash because there can be more than 10 vocabularies in one page. another problem is that the mp3 of the tts file has to be created on the page load, this also gives delay to the loading time. Some alternative approach in my mind is to: include only one flash player. load and play

SpeechSynthesis.speak (in Web Speech API) always stops after a few seconds in Google Chrome

China☆狼群 提交于 2019-12-01 15:19:01
When using the speak function in the Web Speech API, in Chrome the speaking stops abruptly after a few seconds, in the middle of the text given to it, in a seemingly random place (without reaching the end). This only happens in Chrome (works well on Firefox), tested on two different computers/systems. Have a look at this jsfiddle to see/listen: https://jsfiddle.net/fv9ochpq/ You can see that the SpeechSynthesis object .speaking flag stays on(true) after it stops speaking. I haven't seen any documented limit to the text passed to the utterance. Is this a Google Chrome bug? BTW, I've known about

what to do for voice application for ios?

不羁的心 提交于 2019-12-01 13:44:13
how to make Vlingo like application? is there any api that can be used for making apps for ios? Please provide some guide line or any tutorials or an help or comment will be appreciated Thanks in advance i also like to know how the talking ben the dog and talking tom cat is working as we talk it repeats it in funny voice. how it is possible? Michael Levy For Speech Recognition on iOS, there have been many similar questions. Please see Speech to text Conversion.? or Text-to-speech (voice generation) and speech-to-text (voice recognition) APIs? or Speech recognition framework for iOS that

Using text to speech APIs in android application

为君一笑 提交于 2019-12-01 13:34:24
I want to use TTS (Text to Speech) APIs in my android application.Now i have one quetions - Is it support TURKISH language ? I also want to highlight word in textview when that perticular word is being spoke. How can i do it ? Can anybody help me ? Thanks in advance ! Does it support TURKISH language This may vary on different handsets/flavours of Android. You can check it out for yourself using the mTTS.isLanguageAvailable(new Locale("tr", "TUR")); I also want to highlight word in textview when that particular word is being spoke. Well you have a TextToSpeech.OnUtteranceCompletedListener() ,

How can I allow the TTS to write files to my app's directories?

拥有回忆 提交于 2019-12-01 11:18:07
I want to write output from the TextToSpeech engine to my app's cache directory. In order to for the TTS to write there I first have to give it permissions to do so. But I don't know how. I understand that normally such problems can be solved by handing a FileDescriptor over thus giving permissions to access a specific file. But I can't do that with TTS, as the TextToSpeech.synthesizeToFile method only accepts the file path as a String, no FileDescriptor . So what to do? To make my point that TTS really hasn't permissions to write to my app's directories, here's the code...: TextToSpeech mTts

TTS for Chinese is throwing SAPI ERROR E_FAIL

若如初见. 提交于 2019-12-01 10:58:23
This is my code for Chinese TTS which is failing in the speak function although Chinese TTS engine is installed successfully using Microsoft.Speech.Synthesis; using System.Globalization; namespace TTS3 { class Program { static void Main(string[] args) { //CultureInfo=new CultureInfo("zh-CN"); SpeechSynthesizer synth = new SpeechSynthesizer(); // Output information about all of the installed voices. foreach (InstalledVoice voice in synth.GetInstalledVoices(new CultureInfo("zh-CN"))) { synth.SelectVoice(voice.VoiceInfo.Name); //Console.WriteLine(synth.Voice.Description); synth

Android TTS speech synthesizer

馋奶兔 提交于 2019-12-01 10:35:44
I want to know whether is there any way I can save the input to the android speaker.I mean save the current voice being played by the speaker.This I need because android TTS speech synthesizer doesn't work.So I cannot save the audio,I can just play it. Thanking you, Sreekanth Solved the issue by the following code (android TTS started working) public class TextToSpeechActivity extends Activity implements OnInitListener { private static TextToSpeech mTts; private int MY_DATA_CHECK_CODE = 0; private Button mSpeakButton; //String name; /** Called when the activity is first created. */ @Override