17 textToSpeech = GetComponent<TextToSpeech>();
27 var msg =
string.Format(
28 "This is the {0} voice. It should sound like it's coming from the object you clicked. Feel free to walk around and listen from different angles.",
29 textToSpeech.
Voice.ToString());
void OnInputClicked(InputClickedEventData eventData)
void StartSpeaking(string text)
Speaks the specified text using text-to-speech.
Enables text to speech using the Windows 10 SpeechSynthesizer class.
Tap Test for text to speech. This voice will appear to emanate from the object
TextToSpeechVoice Voice
Gets or sets the voice that will be used to generate speech.