C# 我想让电脑读一篇短文
我在Windows窗体应用程序C中有一个文本hello world。当窗体打开时,它应该通过计算机用语音说hello world是否易于建议 我没有任何想法,所以我无法在这里编写代码 像 看看:C# 我想让电脑读一篇短文,c#,C#,我在Windows窗体应用程序C中有一个文本hello world。当窗体打开时,它应该通过计算机用语音说hello world是否易于建议 我没有任何想法,所以我无法在这里编写代码 像 看看: label1.text.read(); // Initialize a new instance of the SpeechSynthesizer. SpeechSynthesizer synth = new SpeechSynthesizer(); // Configure the audio o
label1.text.read();
// Initialize a new instance of the SpeechSynthesizer.
SpeechSynthesizer synth = new SpeechSynthesizer();
// Configure the audio output.
synth.SetOutputToDefaultAudioDevice();
// Speak a string.
synth.Speak("This example demonstrates a basic use of Speech Synthesizer");