text-to-speech

Text to Speech not working as expected

你。 提交于 2019-12-17 16:58:38
问题 I have followed several tutorials, but I am experiencing the same problem. First, here is my simple code: import java.util.Locale; import android.app.Activity; import android.content.Intent; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech.OnInitListener; import android.util.Log; public class AchievementsActivity extends Activity implements OnInitListener { TextToSpeech reader; Locale canada;

How to Programmatically Change TTS Default Engine

家住魔仙堡 提交于 2019-12-17 11:45:15
问题 In addition to the Pico TTS engine that comes with Android, I have another TTS engine installed. I can change which is the default used by the system -- manually: Settings > Voice input & output > Text-to-speech settings > Default Engine I would like to be able to do that programmatically , from within my application. Is this possible? If so, how would I go about that? 回答1: You can't change the default engine. You can however, change the engine you are using by calling TextToSpeech

How to Programmatically Change TTS Default Engine

瘦欲@ 提交于 2019-12-17 11:44:08
问题 In addition to the Pico TTS engine that comes with Android, I have another TTS engine installed. I can change which is the default used by the system -- manually: Settings > Voice input & output > Text-to-speech settings > Default Engine I would like to be able to do that programmatically , from within my application. Is this possible? If so, how would I go about that? 回答1: You can't change the default engine. You can however, change the engine you are using by calling TextToSpeech

pyttsx: No module named 'engine'

北战南征 提交于 2019-12-17 10:51:51
问题 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! 回答1: Guys there is an updated package compatible with Python3 : pyttsx3 Works offline with no delay in the sound produced. Installation: pip

Google Text-To-Speech API

限于喜欢 提交于 2019-12-17 04:11:16
问题 I want to know how can I use Google Text-to-Speech API in my .NET project. I think I need to call a URL to use the web service, but the idea for me is not clear. Can anyone help? 回答1: Old answer: Try using this URL: http://translate.google.com/translate_tts?tl=en&q=Hello%20World It will automatically generate a wav file which you can easily get with an HTTP request through any .net programming. Edit: Ohh Google, you thought you could prevent people from using your wonderful service with

SAPI5 voices / using 32bit voices

橙三吉。 提交于 2019-12-14 03:59:51
问题 After spending a whole lot of time on searching the web I think it's time to ask. I'm trying to implement some text to speech with SAPI5 in C++. The only available 64bit voice is Anna. With Anna everything is fine, but I also need a german voice. So I found Hedda(Microsoft) and Steffi(Realspeak). I already feel like implementing some dating service. Neither Hedda nor Steffi are added to the registry. So both of them are not detected by SAPI while it checks "HKLM\SOFTWARE\Microsoft\Speech

Speech Synthesizer “Input string was not in a correct format”

拟墨画扇 提交于 2019-12-14 01:21:43
问题 Here is my code: string _message = "Hello world."; SpeechSynthesizer _synth = new SpeechSynthesizer(); Prompt _prompt = new Prompt(_message); _synth.Speak(_prompt); I can not for the life of me figure out what exactly is causing this error: "Input string was not in a correct format." The line that causes this error is when I call _synth.Speak(_prompt); EDIT: I have tried this code on my desktop computer and it works fine so something is wrong with my install on my laptop. Still I'm not too

freetts - text to speech setting mbrola voice com.sun.speech.freetts.ProcessException: Processing Utterance:

浪子不回头ぞ 提交于 2019-12-13 23:09:03
问题 Working with ubuntu linux version Almost done with freetts setting with mbrola voices us1, us2 and us3, but finally getting exceptions. When i run the below command, i could hear kevin's voice of sun microsystems. $ java -Dmbrola.base="/home/amphisoft4/Downloads/mbrola" -jar bin/FreeTTSHelloWorld.jar All voices available: alan (time domain) kevin (general domain) kevin16 (general domain) mbrola_us1 (general domain) mbrola_us2 (general domain) mbrola_us3 (general domain But if i specify mbrola

TTS: Ivona SDK for iOS - impelentation in Project increases the app to 200MB+

ぃ、小莉子 提交于 2019-12-13 21:33:55
问题 i am currently trying out ivona SDK for iOS, amazing voice and very very natural. But the voice i am using (german female) have a voicefile with a filesize of 230 MB. when i want to use 4 voices then my app is approximately 1GB big. And also no use for offline. Is this voice just for the testphase? Or is it also for production? I think its horrible to implement a few voices for a small TTS application so that the app size is very very huge... can someone give me an answer to that? 回答1:

Android: how to put TTS inside AsyncTask

怎甘沉沦 提交于 2019-12-13 20:04:19
问题 I have been working for so long but still stucked. The game has a TTS and it appears to require a long time to load (or actually is the code for the TTS correct??), so in view of the long waiting time (about 3 second when testing on real device), I would like to put a Progress Dialog (PD). The PD has a looping circle. I code the TTS part as in the following code: AsyncTask: private class MainFrameTask extends AsyncTask<String,Integer,String> implements OnInitListener,