/// <summary> /// 播放制定语音 /// </summary> /// <param name="msg"></param> public static void playSound(string msg, EndPointEnum playSource = EndPointEnum.无) { SpeechVoiceSpeakFlags flag = SpeechVoiceSpeakFlags.SVSFDefault; SpVoice voice = new SpVoice(); voice.Voice = voice.GetVoices().Item(0); if (playSource != EndPointEnum.无) { voice.Speak(playSource + "提示您", flag); } voice.Speak(msg, flag); }
public EndPointAttribute(int version, GameEnum game, EndPointEnum endP) { Version = version; Game = game; EndPointType = endP; }