TTS, Short for Text To Speech, is a technology that uses Speech To read texts. Currently, queuing systems are widely used in China.
Windows PlatformTTSGenerally, the Speech API provided by Microsoft is used.
Windows XP comes with Speech API 5.1, which only supports English by default. If you want to read Chinese, you need to install LangPack, which supports Simplified Chinese. However, it is a boy's pronunciation.
From Vista, the default Microsoft Speech API 5.3 is provided, and the effect is much better. Unfortunately, XP is not supported and it is depressing.
Next, let's talk aboutC # Use TTS to read textImplementation Method:
Starting from. NET 3.0, the. NET Framework provides the managed Speech API call method, which is very smooth. Instead of sticking to the tedious non-hosted COM call.
. Net 4.0 implementation method:
1. Add reference →. Net → System. Speech ",
Then using System. Speech. Synthesis;
2,
Private void simplebutton#click (object sender, EventArgs e)
{
SpeechSynthesizer synth = new SpeechSynthesizer ();
Synth. Speak ("Hello, Brother Wu! Welcome to www.vkesoft.com! ");
Timer1.Start ();
}
Note: If the TTS 5.1 language pack is not installed on the Windows XP system, all Chinese characters are ignored.