text-to-speech

pyttsx: No module named 'engine'

时间秒杀一切 提交于 2019-11-27 13:11:16
I'm trying to install TTS package by using this . Everything was okay until I tried to execute the following command: import pyttsx I got back this error: File "/usr/local/lib/python3.4/dist-packages/pyttsx/__init__.py", line 18, in module <br> from engine import Engine<br> ImportError: No module named 'engine' Any help would be appreciated. Thank you! Natesh bhat Guys there is an updated package compatible with Python3 : pyttsx3 Works offline with no delay in the sound produced. Installation: pip install pyttsx3 Visit https://pyttsx3.readthedocs.io for the full usage docs. Thanks! csheehey

ms speech from command line

大憨熊 提交于 2019-11-27 10:00:42
问题 Is there a way to use the MS Speech utility from command line? I can do it on a mac, but can't find any reference to it on Windows XP. Thanks. 回答1: I don't think there's a command line tool for it, but someone wrote one: http://krolik.net/post/Say-exe-a-simple-command-line-text-to-speech-program-for-Windows.aspx 回答2: My 2 cents on the topic, command line one-liners: on Win using PowerShell.exe PowerShell -Command "Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis

How to pause android.speech.tts.TextToSpeech?

筅森魡賤 提交于 2019-11-27 07:27:35
I'm playing text with android TTS - android.speech.tts.TextToSpeech I use: TextToSpeech.speak to speak and .stop to stop. Is there a way to pause the text also? Aaron C The TTS SDK doesn't have any pause functionality that I know of. But you could use synthesizeToFile() to create an audio file that contains the TTS output. Then, you would use a MediaPlayer object to play, pause, and stop playing the file. Depending on how long the text string is, it might take a little longer for audio to be produced because the synthesizeToFile() function would have to complete the entire file before you

SpeechSynthesizer doesn't get all installed voices

纵饮孤独 提交于 2019-11-27 07:21:17
问题 I have installed a new 32 bits Scansoft voice (Jennifer) in my Windows 7 64 bits OS in order to be able to use from in one .NET application i'm developing. The problem is that I when I call the method : List<string> allInstalledVoices = new SpeechSynthesizer().GetInstalledVoices(); I only get one voice returned, the default Microsoft Anna Voice. but I can see all the installed voices in other text to speech application. 回答1: I found what the problem was. It turns out that when compiling the

How to convert Arabic text to speech in an Android app?

半城伤御伤魂 提交于 2019-11-27 07:20:33
问题 How to convert arabic text to speech in an Android application while the current Android TTS does not support the Arabic language? Please, I want my app to read arabic text. 回答1: You can go with al-mintiq which is based on espeak . It is tested on Android. Though, it is still in its 0.2 release. Here is the release notes. You can also try NVDA , here is the link to arabic NVDA. 来源: https://stackoverflow.com/questions/29019995/how-to-convert-arabic-text-to-speech-in-an-android-app

Unable to Show imageView in recyclerVIew synchronously with TTS

孤街醉人 提交于 2019-11-27 07:10:38
问题 How can i show/Hide imageView in recyclerView as TTS(text to speech) plays for all the available list items, one by one! Activity method -This method is called r with Loop(not working, no bugs but simply do not give my expected output int position=0; public void convertTextToSpeech() { Multiples multiples1=items.get(position); for (Multiples item : items) { text = item.first + " " + item.getSecond() + " Za " + item.getResult() + "."; tts.speak(text, TextToSpeech.QUEUE_ADD, null); boolean

Arabic TTS (Text To Speech) Library for Android [closed]

∥☆過路亽.° 提交于 2019-11-27 06:32:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . In there an Arabic TTS for Android? Best if for free. 回答1: other choices are Nuance, and Voxygen 回答2: Yes - according to this link. Do a ctrl+f search for "arabic", you will see it. It is called "Star Translate" and it says it is free :). I'm not so sure if it is exactly a TTS or just a translator, but the

How to make Python speak

半城伤御伤魂 提交于 2019-11-27 06:20:27
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, ... ? 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 A bit cheesy, but if you use a mac you can pass a terminal command to the console from python. Try typing the following in the terminal:

TTS output always going to A2DP

半城伤御伤魂 提交于 2019-11-27 05:47:27
问题 My Android tutorial states that I can explicitly tell the TTS engine which stream to use: For music playback: params.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_MUSIC)); And for phone calls: params.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_VOICE_CALL)); My understanding is that audio routing to a Bluetooth headset works such that STREAM_MUSIC goes to A2DP (aka "media audio" in Android Bluetooth settings) and STREAM_VOICE_CALL

Android TTS male voices

…衆ロ難τιáo~ 提交于 2019-11-27 04:44:18
问题 Is it possible to install and configure some male voices on android.speech.tts.Voice ? I have read some news that Android had made some available recently, but I can't find or configure any. All the ones that I try with command tts.setLanguage(Locale.ITALY); are female. 回答1: No, not at present. An enhancement request is needed so that the gender can be included in the Voice Feature Set, such that: Voice[Name: en-AU-afi-network, locale: en_AU, quality: 500, latency: 400, requiresNetwork: true,