System.Speech.Synthesis 保存合成语音

版权声明:版权声明:本文为博主原创文章,转载请附上博文链接! https://blog.csdn.net/qq_36051316/article/details/84961786

System.Speech.Synthesis 保存语音合成

如何 System.Speech.Synthesis 保存合成的语音变成音频文件

SpeechSynthesizer sy = new SpeechSynthesizer();
sy.SetOutputToWaveFile("D:\\record.wav");//这个是需要保存的路径
sy.Speak("大家好");//输出语音
sy.SetOutputToDefaultAudioDevice();//保存语音

猜你喜欢

转载自blog.csdn.net/qq_36051316/article/details/84961786