: http://www.microsoft.com/en-us/download/details.aspx?id=10121
SeppchSDK51.exe Speech synthesis engine
SpeechSDK51LangPack.exe support for Japanese and Simplified Chinese is required for this support.
SpeechSDK51MSM.exe This is required if the engine is to be released as part of the product.
Sp5TTintXP.exe XP under Mike and Mary Voice
Sapi.chm Documentation
1. Installing SpeechSDK51.EXE
2. Install SpeechSDK51LangPack.exe to support Chinese
3. You can find some sample files in the installation folder, the sample file can find a generated Interop.SpeechLib.dll file, of course, you can also generate this file yourself.
A simple code
1. Generate a WAV file, where filename is the generated file name.
speechvoicespeakflags spflags = Speechvoicespeakflags.svsflagsasync; SpVoice Voice = new spvoice (); Speechstreamfilemode Spfilemode = Speechstreamfilemode.ssfmcreateforwrite; Spfilestream Spfilestream = new spfilestream (); Spfilestream.open (filename, spfilemode, false); Voice.audiooutputstream = Spfilestream; Voice.speak (text, spflags); Voice.waituntildone (Timeout.infinite); Spfilestream.close ();
Convert WAV files to MP3
The procedure to rely on here lame
[http://www.rarewares.org/mp3-lame-bundle.php]
string outfile = "-B--resample 22.05-m m" "+ FileName +" "" + filename.replace (". wav", ". mp3") + "" ";
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo ();
Psi. FileName = dir + "Lame.exe";
Psi. Arguments = outfile;
Psi. WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;
System.Diagnostics.Process p = System.Diagnostics.Process.Start (PSI);
if (Waitflag)
{
p.WaitForExit ();
}
(go) Use speech SDK 5.1 text to Audio