text-to-speech

In JavaScript, for text to speech, when the voiceschanged event was being listened to, nothing happened with an array of voices? [duplicate]

爷,独闯天下 提交于 2020-03-02 07:52:06
问题 This question already has answers here : Getting the list of voices in speechSynthesis (Web Speech API) (11 answers) Closed last month . Related to this text to speech question, I have the following code: First of all, I am not sure if this is the best way to write the code, because it is initializing, and then setting a listener to "call itself". (seems a little bit hacky). Second, although the listeners got "notified", the voices.length is still 0 . Nothing really happens with an array of

AttributeError: __enter__ while trying to take input from microphone

假装没事ソ 提交于 2020-02-25 06:40:43
问题 I had been trying to take input from microphone in my python program using speech_recognition I try to run this code: - import speech_recognition as sr import pyaudio r = sr.Recognizer() with sr.Microphone as source: audio = r.listen(source) text = r.recognize_google(audio) print(text) But it does not run. It says: - "C:\Users\Bravo Six\AppData\Local\Programs\Python\Python37-32\python.exe" "D:/BROTEEN/Works/Python/VALINI/speech testing.py" Traceback (most recent call last): File "D:/BROTEEN

AttributeError: __enter__ while trying to take input from microphone

一个人想着一个人 提交于 2020-02-25 06:38:27
问题 I had been trying to take input from microphone in my python program using speech_recognition I try to run this code: - import speech_recognition as sr import pyaudio r = sr.Recognizer() with sr.Microphone as source: audio = r.listen(source) text = r.recognize_google(audio) print(text) But it does not run. It says: - "C:\Users\Bravo Six\AppData\Local\Programs\Python\Python37-32\python.exe" "D:/BROTEEN/Works/Python/VALINI/speech testing.py" Traceback (most recent call last): File "D:/BROTEEN

Android TextToSpeech other library options

前提是你 提交于 2020-01-29 14:37:12
问题 Well, Android official TextToSpeech engine is very simple and easy to implement. I played with it for sometime and it is working exactly as it should. But one disadvantage of this engine, is it only has one fixed female voice and I must say I am not in love with that voice. And from this and this thread, I came to know there is no way to change the voice. So my question is, is there any other TextToSpeech libraries available which can work with android? 回答1: Google on 'alterntate android tts

Android TextToSpeech other library options

北战南征 提交于 2020-01-29 14:34:29
问题 Well, Android official TextToSpeech engine is very simple and easy to implement. I played with it for sometime and it is working exactly as it should. But one disadvantage of this engine, is it only has one fixed female voice and I must say I am not in love with that voice. And from this and this thread, I came to know there is no way to change the voice. So my question is, is there any other TextToSpeech libraries available which can work with android? 回答1: Google on 'alterntate android tts

Android TextToSpeech other library options

霸气de小男生 提交于 2020-01-29 14:31:12
问题 Well, Android official TextToSpeech engine is very simple and easy to implement. I played with it for sometime and it is working exactly as it should. But one disadvantage of this engine, is it only has one fixed female voice and I must say I am not in love with that voice. And from this and this thread, I came to know there is no way to change the voice. So my question is, is there any other TextToSpeech libraries available which can work with android? 回答1: Google on 'alterntate android tts

Highlighting the Text while Speech is Progressing

萝らか妹 提交于 2020-01-28 09:52:05
问题 I'm developing an App in which I've textview consists of String and two buttons. When I click the speak button, the text gets converted to speech. But I want to Highlight the word while speech is running . Please check the My app screenshot on this below link. This is My text to speech initialization: textToSpeech = new TextToSpeech(this, new TextToSpeech.OnInitListener() { @Override public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { result = textToSpeech.setLanguage

how to convert powerpoint note text to speech with vba

我只是一个虾纸丫 提交于 2020-01-25 21:00:28
问题 I want to write a VBA macro that converts the note text to speech using the native windows speech capability. Anyone done this before? Any tips how to start and proceed? In the end I will need to provide different EU languages for conversion. Thanks John. 回答1: Right, as mentioned above, add a reference in your project to Microsoft Speech Object Library. Then this function will set you on the right path: Function SpeakThis(myPhrase As String) Dim oSpeaker As New SpeechLib.SpVoice ' Set speech

using eSpeak tts engine in application

做~自己de王妃 提交于 2020-01-24 21:14:21
问题 I have this code for text to speech in my application. public void onInit(int status) { // TODO Auto-generated method stub if (status == TextToSpeech.SUCCESS) { //Setting speech language int result = tts.setLanguage(Locale.ENGLISH); //If your device doesn't support language you set above if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) { //Cook simple toast message with message Toast.makeText(this, "Language not supported", Toast.LENGTH_LONG).show();

using eSpeak tts engine in application

帅比萌擦擦* 提交于 2020-01-24 21:14:05
问题 I have this code for text to speech in my application. public void onInit(int status) { // TODO Auto-generated method stub if (status == TextToSpeech.SUCCESS) { //Setting speech language int result = tts.setLanguage(Locale.ENGLISH); //If your device doesn't support language you set above if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) { //Cook simple toast message with message Toast.makeText(this, "Language not supported", Toast.LENGTH_LONG).show();