Text To Speech
- Details
- Last Updated on 22 March 2012
- Written by Administrator
- Hits: 2330
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()


