text-to-speech

How do I use a lexicon with SpeechSynthesizer?

早过忘川 提交于 2019-12-18 12:58:06
问题 I'm performing some text-to-speech and I'd like to specify some special pronunciations in a lexicon file. I have ran MSDN's AddLexicon example verbatim, and it speaks the sentence but it does not use the given lexicon, something appears to be broken. Here's the provided example: using System; using Microsoft.Speech.Synthesis; namespace SampleSynthesis { class Program { static void Main(string[] args) { // Initialize a new instance of the SpeechSynthesizer. using (SpeechSynthesizer synth = new

How to save text-to-speech as a wav with Microsoft SAPI?

旧城冷巷雨未停 提交于 2019-12-18 11:37:00
问题 I need to turn a text into speech and then save it as wav file. 回答1: The following C# code uses the System.Speech namespace in the .Net framework. It is necessary to reference the namespace before using it, because it is not automatically referenced by Visual Studio. SpeechSynthesizer ss = new SpeechSynthesizer(); ss.Volume = 100; ss.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult); ss.SetOutputToWaveFile(@"C:\MyAudioFile.wav"); ss.Speak("Hello World"); I hope this is relevant and

Python Text to Speech in Macintosh

橙三吉。 提交于 2019-12-18 11:33:53
问题 Are there any libraries in Python that does or allows Text To Speech Conversion using Mac Lion's built in text to speech engine? I did google but most are windows based. I tried pyttx. I tried to run import pyttsx engine = pyttsx.init() engine.say('Sally sells seashells by the seashore.') engine.say('The quick brown fox jumped over the lazy dog.') engine.runAndWait() But I get these errors File "/Users/manabchetia/Documents/Codes/Speech.py", line 2, in <module> engine = pyttsx.init() File "

Realistic text to speech with Python that doesn't require internet? [closed]

末鹿安然 提交于 2019-12-18 11:09:58
问题 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 last year . I'm trying to create an artificially intelligent program (nothing really big or special) and I wanted it to have a voice (who wouldn't?). I've looked into espeak, festival, gTTS and they're nice and usable, but not realistic enough for me to really be proud of, if that makes sense. I've been looking for something

Android Text To Speech And Numbers

末鹿安然 提交于 2019-12-18 07:02:49
问题 I am using Android Text to Speech engine for reading some text and it's working. But my text contains numbers and I want the numbers to be read digit by digit. I couldn't find anything in the documentation, but I am still hoping someone knows how I can do that. 回答1: The API does not allow you to specify how the text should be read so your code has to modify the text input so that it reads the individual numbers. I suggest adding a space in between each number. That should cause the

Android Text To Speech And Numbers

守給你的承諾、 提交于 2019-12-18 07:01:00
问题 I am using Android Text to Speech engine for reading some text and it's working. But my text contains numbers and I want the numbers to be read digit by digit. I couldn't find anything in the documentation, but I am still hoping someone knows how I can do that. 回答1: The API does not allow you to specify how the text should be read so your code has to modify the text input so that it reads the individual numbers. I suggest adding a space in between each number. That should cause the

Android Text To Speech Male Voice

可紊 提交于 2019-12-18 04:16:14
问题 I have a working text to speech but I was wondering instead of a female voice when the app calls it to be played it will do a male voice instead? 回答1: It is now possible to use male/female voice and change it from App UI dynamically. Define TTS like this (add google tts engine in constructor): tts = new TextToSpeech(context, this, "com.google.android.tts"); contex = activity/app this= TextToSpeech.OnInitListener From tts.getVoices() list, chose your desired voice by it's name like this: for

Cancel speech synthesis in windows phone 8

白昼怎懂夜的黑 提交于 2019-12-18 03:44:43
问题 I add a speech synthesis to my app. It works but the problem is I can't cancel the speech...For example, when I navigate to another page, the speech continues... So, I call CancelAll() method to cancel the current speech but an exception is occured and I don't know why. Do you know what's the problem? The exception A first chance exception of type 'System.Threading.Tasks.TaskCanceledException' occurred in mscorlib.ni.dll An exception of type 'System.Threading.Tasks.TaskCanceledException'

Any free Text To Speech for browsers?

十年热恋 提交于 2019-12-18 02:41:43
问题 Wondering if there is any Text to Speech software available as a plug in for IE or Firefox. 回答1: WebAnywhere is a university project aimed at creating a site that allows you to use text to speech from any browser at any location, without installing anything or using any plugins. You can try it out and see for yourself. I was pretty impressed with it when I first heard of it. 回答2: There is also NVDA (NonVisual Desktop Access) which is an open source general purpose screen reader for Windows.

How to convert text string to speech sound

核能气质少年 提交于 2019-12-17 17:29:46
问题 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? 回答1: 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