打开服务
添加引用文件
程序窗口
后台代码
public partial class Form1 : Form
{
private SpeechSynthesizer speech;
/// <summary>
/// 音量
/// </summary>
private int value = 100;
/// <summary>
/// 语速
/// </summary>
private int rate=1;
public Form1()
{
InitializeComponent();
comboBox1.SelectedIndex = 3;
}
private void button1_Click(object sender, EventArgs e)
{