Beispiel #1
0
        /// <summary>
        /// Enqueues an utterance to be spoken with default voice using specific parameters
        /// </summary>
        /// <param name="speechString">The text to be spoken in the utterance.</param>
        /// <param name="speechUtteranceParameters">Parameters that affect the speech</param>
        public static void Speak(string speechString, SpeechUtteranceParameters speechUtteranceParameters)
        {
            var speechUtterance = new SpeechUtterance(speechString, speechUtteranceParameters);

            Speak(speechUtterance);
        }
Beispiel #2
0
 private TTS()
 {
     _allAvailableVoices = InitializeVoices();
     _defaultParameters  = new SpeechUtteranceParameters();
     SetupCallbacks();
 }