Questions tagged [speechsynthesizer]

hardware or software component that produces human speech

66 questions
11
votes
2 answers

How can I find the audio format of the selected voice of the SpeechSynthesizer

In a text to speech application by C# I use SpeechSynthesizer class, it has an event named SpeakProgress which is fired for every spoken word. But for some voices the parameter e.AudioPosition is not synchronized with the output audio stream, and…
Ahmad
  • 6,124
  • 6
  • 49
  • 90
8
votes
1 answer

TTS to Stream with SpeechAudioFormatInfo using SpeechSynthesizer

I am using System.Speech.Synthesis.SpeechSynthesizer to convert text to speech. And due to Microsoft's anemic documentation (see my link, there's no remarks or code examples) I'm having trouble making heads or tails of the difference between two…
8
votes
0 answers

Synchronize video subtitle with text-to-speech voice

I try to create a video of a text in which the text is narrated by text-to-speech. To create the video file, I use the VideoFileWriter of Aforge.Net as the following: VideoWriter = new VideoFileWriter(); VideoWriter.Open(CurVideoFile,…
Ahmad
  • 6,124
  • 6
  • 49
  • 90
7
votes
1 answer

How to use all voices available?

I am using this command to list available voices private static SpeechSynthesizer sprecher; ... sprecher = new SpeechSynthesizer(); ... private static List GetInstalledVoices() { var listOfVoiceInfo = from voice …
Vitalis Hommel
  • 830
  • 2
  • 8
  • 19
7
votes
1 answer

Are the SpeakProgressEventArgs of the SpeechSynthesizer inaccurate?

Using the System.Speech.Synthesis.SpeechSynthesizer class in .Net 3.5, the AudioPosition property of the SpeakProgressEventArgs appears to be inaccurate. The following code produces the following output: Code: using System; using…
jameswelle
  • 1,327
  • 1
  • 14
  • 26
6
votes
2 answers

Where is the stream number in the event info for System.Speech.Synthesis?

One can let the SpeechSynthesizer speak text in an asynchronous way, for example like this: Private WithEvents _Synth As New SpeechSynthesizer Private Sub TextBox1_KeyUp(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyUp If e.KeyCode =…
tmighty
  • 8,222
  • 19
  • 78
  • 182
6
votes
2 answers

C# SpeechSynthesizer makes service unresponsive

I have the folowing code [WebMethod] public byte[] stringToWav(string text) { SpeechSynthesizer ss = new SpeechSynthesizer(); MemoryStream ms = new MemoryStream(); ss.SetOutputToWaveStream(ms); ss.Speak(text); return…
4
votes
1 answer

Change Voice in SpeechSynthesizer

I tried to change the speaker, but i dont have enlisted all installed speakers (George, Susan, Jakub) in SpeechSynthesizer class, on the other hand I have one, that is not installed at all (Zira). What is happening here ? Can i somehow add…
Muflix
  • 4,360
  • 8
  • 55
  • 114
4
votes
0 answers

What permissions are required to use System.Speech.Synthesis?

I'm using System.Speech.Synthesis from .NET 4.5.1 to generate a WAV file from a string in a Service run by a "specific user" (created by products setup) with no rights but running services and R/W access the folder containing the generated WAV…
JM Lauer
  • 154
  • 11
4
votes
1 answer

SpeechSynthesizer in C# creates wav that has 22kHz... needs to be 16kHz

My C# application needs to covert text to wav file and inject it into a Skype call. The code that creates the wav file is below. The problem is that the file has 22kHz sample rate and Skype accepts only 16kHz. Is there any way to adjust this…
screenshot345
  • 578
  • 1
  • 8
  • 18
4
votes
2 answers

Ultra Fast Text to Speech (WAV -> MP3) in ASP.NET MVC

This question is essentially about the suitability of Microsoft's Speech API (SAPI) for server workloads and whether it can be used reliably inside of w3wp for speech synthesis. We have an asynchronous controller that uses uses the native…
Nariman
  • 6,188
  • 1
  • 32
  • 48
3
votes
3 answers

No voice installed on the system or none available with the current security setting

Exception on IIS Server When try to create .wav file on c# using SpeechSynthesizer.
Gopal Saini
  • 328
  • 1
  • 7
  • 17
3
votes
1 answer

SAPI5 speaking XML

I would like to use the "SpeechSynthesizer" to speak a text, but this text includes some XML tags. Using the old COM object, I used S5Voice.Speak uString, SVSFDefault Or SVSFIsXML However, there is no overloaded function in SpeechSynthesizer…
tmighty
  • 8,222
  • 19
  • 78
  • 182
3
votes
3 answers

Is there any japanese TTS voice to work with C# SpeechSynthesizer

Is there any Japanese voice for C#'s SpeechSynthesizer TTS? If so please state detailed information about it, better if documentation provided. Thanks in advance.
George
  • 1,380
  • 3
  • 11
  • 27
2
votes
1 answer

SpeechSynthesizer in ASP.NET - async error

I would like to be able to generate speech in my ASP.NET app by calling speak.aspx?text=Hello%20world. This would give a response in .wav format. So far I have a blank page with code behind: protected void Page_PreRender(object sender, EventArgs…
James
  • 6,911
  • 9
  • 40
  • 80
1
2 3 4 5