text-to-speech

How to change the voice in pyttsx3?

心不动则不痛 提交于 2019-12-03 08:57:06
This code is working but I'm only able to switch between the voices which came preInstalled in Microsoft Windows. These voices are "Microsoft David Mobile" and "Microsoft Zira Mobile". Later I installed "Microsoft Kalpana Mobile" and set it as the default Windows voice. But still I'm not able to switch to "Microsoft Kalpana Mobile". The code is- import pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) #changing index changes voices but ony 0 and 1 are working here engine.say('Hello World') engine.runAndWait() Only 0 and 1 are

How to access audio result from Speech Synthesis API?

混江龙づ霸主 提交于 2019-12-03 07:07:35
The Speech Synthesis API allows text-to-speech functionality in Chrome Beta. However, results from TTS requests are automatically played by the browser. How do I access the audio results for post-processing and disable the default behavior of the API? There is no standard audio output for the TTS system and that seems quite intentional so it is unlikely to change anytime soon. To understand why, you can look at the other side of this interface where a browser extension can act as a TTS Engine and provide the voices the client can use: Being a valid TTS Engine accessible by this API in chrome

TTS doesn't speak from a service whereas it does it from an activity in android

萝らか妹 提交于 2019-12-03 04:07:11
I have been able to run TTS from an activity but when I try to execute the same code from a service, it's giving me message that TTS engine is initialised but not speaking anything. Has anybody encountered the same issue anytime? public void onCreate() { super.onCreate(); tts = new TextToSpeech(this, this //TextToSpeech.OnInitListener); timer.scheduleAtFixedRate( new TimerTask() { // In timer public void run() { //On some condition tts.speak("thank you", TextToSpeech.QUEUE_ADD, null); }, 0, 60000); } @Override public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { Toast

SpeechSynthesis API onend callback not working

梦想的初衷 提交于 2019-12-03 03:58:52
问题 I'm using the Speech Synthesis API on Google Chrome v34.0.1847.131. The API is implemented in Chrome starting in v33. The text-to-speech works for the most part, except when assigning a callback to onend . For instance, the following code: var message = window.SpeechSynthesisUtterance("Hello world!"); message.onend = function(event) { console.log('Finished in ' + event.elapsedTime + ' seconds.'); }; window.speechSynthesis.speak(message); will sometimes call onend and sometimes not call it.

Running Android TTS in a Service

感情迁移 提交于 2019-12-03 03:37:07
I'm trying to get Android's TTS to run inside a service, but I have no idea why it isn't working, it compiles, doesn't crash, but it just doesn't work. The Toast notification do work though. package alarm.test; import android.app.Service; import com.google.tts.TextToSpeechBeta; import android.content.Intent; import android.os.IBinder; import android.widget.Toast; public class MyAlarmService extends Service { private TextToSpeechBeta myTts; private TextToSpeechBeta.OnInitListener ttsInitListener = new TextToSpeechBeta.OnInitListener() { public void onInit( int arg0, int arg1 ) { myTts.speak("",

A good Text-to-Speech JavaScript library [closed]

五迷三道 提交于 2019-12-03 02:50:01
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am looking for a good text to speech javascript library for my application. I looked around and saw Jtalk and speak.js. But I'm not

Changing the default voice of Android's Text To Speech

旧时模样 提交于 2019-12-03 00:41:34
I'm using the Android's Text To Speech default engine in my app, however the female's voice sounds like a woman over 40 and her voice is somewhat robotic. I saw other apps that seems to use Google's built in TTS, but it sounds a lot better i.e young woman with a more natural voice. That "natural" voice is also being used in the Android main Google Search e.g. when you press on the mic and ask a question (Siri style) like "who is the president of the US", the woman's voice will tell you the answer. How can this voice be achieved in the code? Basically this is what I do in my code: TextToSpeech

Text-to-Speech in Emacs

旧巷老猫 提交于 2019-12-03 00:34:22
I'm not blind, I just want to have a way to have my Windows machine read the contents of a buffer outloud. Here are the basic requirements: Read any English text buffer. Pause the reading at any time and resume at any time (not wait a few minutes for a big buffer to finish when someone walks into my office). Adjust the read-back speed at play-time. Highlight the text currently being read (optional) I found a couple of possible solutions: Emacspeak : Designed for the blind. Looks like a stand-alone program, not an Emacs plug-in festival.el : Requires Festival. I can't find Windows Binaries for

Phonegap TTS Plugin Android not working

…衆ロ難τιáo~ 提交于 2019-12-03 00:33:58
I am using the TTS Plugin from https://github.com/domaemon/org.apache.cordova.plugin.tts But the plugin does not seem to work. It does not even initialize. Installed the plugin like below (PHONEGAP 3.3 ) phonegap plugin add https://github.com/domaemon/org.apache.cordova.plugin.tts.git phonegap build android Added the following in the phonegap config.xml <gap:plugin name="org.apache.cordova.plugins.tts" value="org.apache.cordova.plugins.tts"/> Added the following code in my javascript window.plugins.tts.startup(startupWin, fail); function startupWin(result) { console.log("Startup win"); // When

Android not acknowledging TTS Engine

亡梦爱人 提交于 2019-12-03 00:08:35
I am developing a very simple app in here. It's for my Cerebral Palsy daughter. It's just a big YES and NO buttons, so she can press them when requested. Well... I am using SVOX Classic TTS Engine. Everything was running smoothly until my tablet upgraded to ICS. Now, everytime I run the app, it opens the Market asking for me to install TTS. I hit "back" and then, my app speaks. This is VERY annoying. Here is what Google API says: *A successful check will be marked by a CHECK_VOICE_DATA_PASS result code, indicating this device is ready to speak, after the creation of our TextToSpeech object. If