text-to-speech

Use Alexa voice to read out text

南笙酒味 提交于 2019-12-11 06:56:49
问题 I would like to use the Alexa voice on web and in an iOS App to read out text from a content page. In short I would like to use the Alexa voice for speech synthesis. Is there any way to achieve this? I read the documentation and did not really find a way how to do it. 来源: https://stackoverflow.com/questions/47755420/use-alexa-voice-to-read-out-text

google tts with paid account

爱⌒轻易说出口 提交于 2019-12-11 06:49:23
问题 You now have to pay to use the google translate api. I'm happy to pay for the service but I can't find a way to use the tts. This is what I'm doing var GoogleTranslate = function(){ var key = "myapikey" this.speak = function(words) { var url = "http://translate.google.com/translate_tts?tl=es&q=" + escape(words) + "&key=" + key new Audio(url).play(); } } but when I do new GoogleTranslate().speak("hola") The requests to http://translate.google.com/translate_tts never return a response. How do I

Azure Cognitive Services TTS - an error for other language in sample app

蹲街弑〆低调 提交于 2019-12-11 06:47:46
问题 I wanted to implement an api call for Azure Cognitive Services TTS. And by courtesy of @Md Farid Uddin Kiron stackoverflow user and the question that we discussed on this link So, I pulled down an sample code that is an .netcore web app which communicates with Azure. Sample link is here I have a following problem: The app works perfectly with predefined languages in a model such as: public List<SelectListItem> LanguagePreference { get; set; } = new List<SelectListItem> { new SelectListItem {

Android TTS(Text to Speech)'s addSpeech() and speak() can't play a sound file in the external storage from marshmallow(api 23) above, with Google TTS

﹥>﹥吖頭↗ 提交于 2019-12-11 06:06:31
问题 As you might know, with addSpeech() in android TTS, you can link a certain text to a sound file. Then, the tts engine plays the file instead of synthesizing the sound of the text. With Google TTS (not Samsung TTS), from Marshmallow(api 23) above, addSpeech & speak can't play a file in the external storage. Before Marshmallow everything was OK. Those who have used android tts and addSpeech, please take a look at the codes below and help me find the problem. The codes were originally from http:

SpeechSynthesizer doesn't get all installed voices 2

独自空忆成欢 提交于 2019-12-11 04:27:31
问题 I have installed a new voice in my Windows 7 32 bits OS in order to be able to use from in one .NET application i'm developing. But when i use GetInstalledVoices() method to view list of all voices, only one (default "Microsoft Anna") appers. Why it may happens? Voice is appears in Control Panel -> Speech section. Other TTS applications also can use this voice. Thanks. 回答1: I found the answer for my question here This is a bug in System.Speech.Synthesis and .NET v4.5 solves this problem. 来源:

Change output voice in C#

孤街浪徒 提交于 2019-12-11 03:12:54
问题 Hi I'm just testing SpeechSynthesizer in C# and I want to change the voice. SpeechSynthesizer reader = new SpeechSynthesizer(); private void button1_Click(object sender, EventArgs e) { reader.Dispose(); reader = new SpeechSynthesizer(); reader.SelectVoiceByHints(VoiceGender.Male); reader.Speak("Hi how are you baby"); } There is no more Code, just a single button(WinForm). Personally I would say that reader.SelectVoiceByHints(VoiceGender.Male); should be enough. But if I click the button, I

How to set tamil voice in TTS android programmatically?

守給你的承諾、 提交于 2019-12-11 03:07:25
问题 Example: English: tts.speak("Welcome rubin", TextToSpeech.QUEUE_ADD, null); It speaks correctly English in US Voice. Hindi: for (Voice voice: voices) { Log.v(TAG, voice.getName()); if (voice.getName().equals("hi-in-x-cfn#female_2-local")) { tts.setVoice(new Voice(voice.getName(), } } tts.speak("स्वागत हे rubin", TextToSpeech.QUEUE_ADD, null); It says the hindi text and english name in hindi voice. Currently, languages supported by Google Text-to-Speech Bangla (Bangladesh), Bangla (India),

TextToSpeech.setEngineByPackageName() triggers NullPointerException

∥☆過路亽.° 提交于 2019-12-11 02:48:53
问题 My activity's onInit() contains a call to TextToSpeech.setEngineByPackageName() : tts = new TextToSpeech(this, this); tts.setEngineByPackageName("com.ivona.tts.voicebeta.eng.usa.kendra"); It works on an Android 2.2.2 device, but on an Android 2.3.4 device it produced a NullPointerException, with the following stack trace: E/TextToSpeech.java - setEngineByPackageName(3423): NullPointerException W/System.err(3423): java.lang.NullPointerException W/System.err(3423): at android.os.Parcel

UtteranceProgressListener won't call the functions

冷暖自知 提交于 2019-12-10 20:33:06
问题 I am trying to make a speech powered app, however I have run into a major problem. My UtteranceProgressListener Class will not call any of the given methods regardless of where I place the Speak method. Here is my code: This is my OnCreate Method: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = this; voiceBtn = (Button) findViewById(R.id.startListeningBtn); voiceBtn.setEnabled(false); textToSpeech = new TextToSpeech(mContext,new botListener(

Android TTS text longer than 4k chars not playing

喜欢而已 提交于 2019-12-10 20:21:50
问题 I am using TextToSpeech to play some long texts sometimes, and I have noticed that since Android 4.1.2 if the text is longer than 4000 chars, it does not play. I do not get any errors, but the text won't be played. Until now I was able to reproduce this just on Android 4.1.2 (Samsung Galaxy Nexus, Nexus7). Is this a bug just in 4.1.2 or is this normal (although I did not find any documentation regarding this behaviour)? Also I have found a post : onUtteranceCompleted() lost if TTS received is