static extern MMRESULT TextToSpeechGetSpeaker(IntPtr handle, out TtsVoice speaker);
/// <summary> /// Initializes a new instance of the engine in US English with the specified rate and speaker voice. /// </summary> /// <param name="rate">The speaking rate to set.</param> /// <param name="speaker">The speaker voice to set.</param> public FonixTalkEngine(uint rate, TtsVoice speaker) { Init(LanguageCode.EnglishUS); Voice = speaker; Rate = rate; }
/// <summary> /// Initialize a new instance of the engine with the specified language, rate, and speaker voice. /// </summary> /// <param name="language">The language ID.</param> /// <param name="rate">The speaking rate to set.</param> /// <param name="speaker">The speaker voice to set.</param> public FonixTalkEngine(string language, uint rate, TtsVoice speaker) { Init(language); Voice = speaker; Rate = rate; }
static extern MMRESULT TextToSpeechSetSpeaker(IntPtr handle, TtsVoice speaker);