Color Of Code

Font Size

SCREEN

Profile

Layout

Menu Style

Cpanel

Text To Speech

User Rating:  / 0
PoorBest 

Assembly (reference)

System.Speech

Using directive

using System.Speech.Synthesis;

Code: say "hello world"

SpeechSynthesizer speaker = new SpeechSynthesizer();
speaker.Rate = 1;
speaker.Volume = 100;
speaker.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult);
speaker.SpeakAsync("Hello World");

Code: list available voices

SpeechSynthesizer speaker = new SpeechSynthesizer();
speaker.GetInstalledVoices()

Add comment


Security code
Refresh

You are here: Home Code Snippets C# Text To Speech