天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
566 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Speech.Synthesis;
namespace QMTask.Client.Until
{
/// <summary>
/// 语音输出工具
/// </summary>
public class SpeechHelper
{
/// <summary>
/// 将文字以语音形式输出
/// </summary>
/// <param name="word"></param>
public static void OutputWordToSpeech(string word)
{
SpeechSynthesizer synth = new SpeechSynthesizer();
synth.Speak(word);
}
}
}