To get the device operating system to read a piece of text out loud, you can use the following:
The above line will read the specified text aloud using the default language and settings.
You can also optionally specify your desired speech settings. All parameters are optional. The default value for Pitch, Speed and Volume is 1.
Pitch = 1.2,
Speed = 1.5,
Volume = 0.8,
Language = new Device.SpeechLanguage("fr")
await Device.Speech.Speak("Hello world!", settings);
To get the list of currently installed languages on the device to use for text-to-speech, you can call the following method which returns an IEnumerable<SpeechLanguage>:
Stopping a speech
Also, you can stop a speech which is in progress using the following code: