Questions tagged [speechsynthesizer]

hardware or software component that produces human speech

66 questions
1
vote
1 answer

How to get duration of speech synthesizer stream

How can I measure duration of SpeechSynthesierStream before playing it please? SpeechSynthesizer ss = new SpeechSynthesizer(); SpeechSynthesisStream sss; ss.Voice = SpeechSynthesizer.AllVoices[3]; sss = await…
hoacin
  • 320
  • 1
  • 2
  • 18
1
vote
2 answers

How to play Windows Phone 8 SpeechSynthesizer during lock screen?

I have the following code to synthesize text to speech in a Windows Phone 8 application, however I can't seem to figure out how to have it continuously play during lock screen/screen off/or in the background. Does anyone have a suggestion or snippit…
1
vote
2 answers

SpeechSynthesizer.SpeakAsyncCancelAll() does not cancel

I have a button on my form that is labeled Speak, when user clicks on it synth.SpeakAsync(Textbox.text) is fired, and the button changes its text to "Stop Speaking". However when a user clicks on stop speaking, thereby firing the…
Dman
  • 504
  • 11
  • 29
1
vote
1 answer

Close a form after SpeechSynthesizer class instance stops speaking

So, I'm using SpeechSynthesizer class to create an audio text reader. When the voice starts to speak I want to display a form with a message saying smth like "Wait, text is being read", with button 'Stop Reading'). If a user clicks the button, the…
musicinmusic
  • 211
  • 1
  • 11
1
vote
2 answers

C# WinForm not Responsive - System.Speech - Help

Here's a code from the C# Windows Form SpeechSynthesizer audio = new SpeechSynthesizer(); audio.Speak(textBox1.Text); This will read anything that is in the textbox Problem in trying to implement the pause and stop feature.Any button or menuitem…
aBs0lut3z33r0
  • 95
  • 1
  • 5
1
vote
1 answer

SpeechSynthesizer error in 'await' in windows phone 8

I receive an error in SpeechSynthesizer, it says: Error: 'await' requires that the type 'Windows.Foundation.IAsynAction' have a suitable GetAwaiter method. Are you missing directive for 'System'? I use plain text, my code goes like this await…
1
vote
3 answers

Text to MP3 using System.Speech.Synthesis.SpeechSynthesizer

I am trying to get a text-to-speech to save to an MP3. Currently I have the System.Speech.Synthesis speaking to a WAV file nicely. With New System.Speech.Synthesis.SpeechSynthesizer '.SetOutputToWaveFile(pOutputPath) This works fine…
Robin Vessey
  • 3,589
  • 1
  • 20
  • 19
1
vote
1 answer

How can I wire up a progress bar to my Speech Synthesizer?

I would like to wire up a progress bar to my Speech Synthesizer within my application (to show how far through it is reading the text). The the main components for my SpeechSynthesizer code are as follows: private void button1_Click(object…
Toby
  • 349
  • 1
  • 9
  • 23
1
vote
2 answers

Windows Phone 8 SpeechSynthesizer Pause

I'm developing an app where I would like to pause in between when the SpeechSynthesizer.SpeakTextAsync is running and resume back from there. await synthesizer.SpeakTextAsync(text); stop reading when var stop = true;
Jaydeep Solanki
  • 2,575
  • 5
  • 33
  • 48
1
vote
1 answer

c# SpeechSynthesizer SpeakCompleted return variable

Hoping someone can help! :) What I'm trying to achieve is have the reader_Speak() method return true when it's finished speaking. Similar to WaitUntilDone of the old SpeechLib. Here is the code I have :- public void reader_Speak(string…
luigivampa
  • 317
  • 5
  • 17
0
votes
3 answers

Runtime Error - JSAPI HelloWorld Program

While running basic HelloWorld program using JSAPI, it is showing error "java.lang.NullPointerException at HelloWorld.main(HelloWorld.java:11)" Following is the code: import javax.speech.*; import javax.speech.synthesis.*; import…
0
votes
0 answers

.NET SpeechSynthesizer throws System.NullReferenceException

I can't seem to find any solutions to my problem anywhere. I am trying to use SpeechSynthesizer in my application but anything that I try (including code from the Microsoft documentation) but nothing seems to work. The code that I am using is: using…
Soniczac7
  • 1
  • 2
0
votes
0 answers

How to use Arabic language for Text To Speech?

I am trying to use Arabic Text to speech(ar-AE) using Microsoft.SpeechSynthesizer. Microsoft provides TTS engine for many languages but not arabic , https://www.microsoft.com/en-us/download/details.aspx?id=27224 One more problem is the server used…
0
votes
1 answer

SSML - Is it possible to remove automatic break pauses?

I'm trying to remove the automatic breaks added by the synthesis processor, to create speech files without any "linguistic pauses". I'm using Microsoft's speech synthesis engine with the SpeechSynthesizer class in C#. This is the output I get with…
0
votes
0 answers

Speech Synthesis having a weird behavior C#

I made a simple program that enables speech recognition when pressing enter key and then answers with the speech synthesis. I'm facing a problem where the Speech Synthesis would stop working after being used once, and sometimes doesn't even run.…