27 lines
566 B
27 lines
566 B
4 years ago
|
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);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|