text-to-speech

How to convert text string to speech sound

喜夏-厌秋 提交于 2019-11-28 03:39:52
I am looking for a way to convert text(string) in ENG to speech(sound) in c#. do anyone know for a way or some open-source lib that can help me with this task? You can use .NET lib( System.Speech.Synthesis ). According to Microsoft : The System.Speech.Synthesis namespace contains classes that allow you to initialize and configure a speech synthesis engine, create prompts, generate speech, respond to events, and modify voice characteristics. Speech synthesis is often referred to as text-to-speech or TTS. A speech synthesizer takes text as input and produces an audio stream as output. Speech

onUtteranceCompleted does not get called?

跟風遠走 提交于 2019-11-28 03:20:51
问题 Even though I am setting it correctly: HashMap<String, String> myHashRender = new HashMap<String, String>(); myHashRender.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "utid"); mTts.speak("Speak something", TextToSpeech.QUEUE_ADD, myHashRender); also mTts.setOnUtteranceCompletedListener(this); in the onInit function return success. Still the onUtteranceCompleted does not get called. Though there are duplicate questions, but no where I could find the answer. My Activity also implements

Text to Speech not working as expected

给你一囗甜甜゛ 提交于 2019-11-28 02:00:44
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; boolean readerInit = false; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

How to install and use additional voices in SpeechSynthesizer()?

喜欢而已 提交于 2019-11-28 01:46:17
问题 I need to use male voice in SpeechSynthesizer in addition to default Anna voice. I installed some files from Microsoft, and GetInstalledVoices() method says now I have Microsoft Anna, Microsoft Mary, Microsoft Mike and Sample TTS Voice. After I'm trying to set voice speaker.SelectVoice("Microsoft Mike"); my program throws exception: Cannot set voice. No matching voice is installed or the voice was disabled. What should I exactly install and how to enable Mike's voice? System is Windows7. 回答1:

Android TTS male voices

烈酒焚心 提交于 2019-11-28 01:45:33
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. 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, features: [networkTimeoutMs, networkRetriesCount, male ]] I have sent emails to Text to Speech providers

How do I play audio returned from an XMLHTTPRequest using the HTML5 Audio API

左心房为你撑大大i 提交于 2019-11-28 01:35:28
问题 I'm failing to be able to play audio when making an "AJAX" request to my server side api. I have backend Node.js code that's using IBM's Watson Text-to-Speech service to serve audio from text: var render = function(request, response) { var options = { text: request.params.text, voice: 'VoiceEnUsMichael', accept: 'audio/ogg; codecs=opus' }; synthesizeAndRender(options, request, response); }; var synthesizeAndRender = function(options, request, response) { var synthesizedSpeech = textToSpeech

iPhone SDK - Google TTS and encoding

烂漫一生 提交于 2019-11-27 18:13:33
I am developing a text-to-speech iphone app that support multi-languages. Here is my request URL requestUrlStr = @"http://www.translate.google.com/translate_tts?tl=en&q=hello"; for english the above url has no problem but for Chinese requestUrlStr = @"http://www.translate.google.com/translate_tts?tl=zh-TW&q=你好"; I know the above url will give 'Bad URL', so I used follow method to encode the string into UTF-8 requestUrlStr = [requestUrlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; It will become http://www.translate.google.com/translate_tts?tl=zh-CN&q=%E4%BD%A0%E5%A5%BD

iOS Text To Speech Api

孤街醉人 提交于 2019-11-27 16:53:46
I can't seem to find anything on this. Are there any Siri classes or API's in iOS7 that let you do text to speech? All I am trying to do is something like the following: [siriInstance say:@"This is a test"]; And then have Siri say it from my app. It seems we should be capable of doing this, no? Seems like a trivial thing. Since iOS 7 you have a new TTS Api. In Objective C AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Some text"]; [utterance setRate:0.2f]; [synthesizer speakUtterance:utterance]

Setting language for TTS programmatically?

我的未来我决定 提交于 2019-11-27 16:30:57
问题 I have written a small Android Demo to use TTS in different languages. I have a layout with two buttons, Spanish and English. Pressing the button triggers an utterance in the language selected. However, I can't change the language (setLanguage (Locale locale)). I can do it by hand, using the phone settings and changing the TTS language to US, UK, Italian, German, etc, but my code doesn't seem to work. Could you tell me where the problem is? Thank you!! package com.ignacio.SpeakAPP; import

MBROLA voices with FreeTTS - Windows

别等时光非礼了梦想. 提交于 2019-11-27 14:33:05
Using MBROLA voices in a Java program with FreeTTS... I am working on a simple text-to-speech program in Java. I have decided to use FreeTTS, but the voices are not really what I was thinking, and I was looking to use a female voice anyway. So I started looking around, and decided that I would use MBROLA to change the voice of my text-to-speech program. I read that "FreeTTS can use MBROLA voices" , but I searched everywhere and couldn't find a clear guide how to set MBROLA up, and what files are needed to do so. There are many forums on MBROLA working alongside FreeTTS, however it also seems