Like speech recognition, TTS also requires the ID_CAP_SPEECH_RECOGNITION capability. The capability must present in the WMAppManifest.xml file.
SpeechSynthesizer class is the main class for achieving TTS. The class exists in the Windows.Phone.Speech.Synthesis namespace.
Out of the box, the speech synthesizer is able to speak using a default voice, as shown:
SpeechSynthesizer synthesizer = new SpeechSynthesizer();synthesizer.SpeakTextAsync("Hi from Windows Phone!");
The SDK’s speech synthesizer is able to speak using a variety of languages, as spoken in a specific country or regions. See Table 23.1 for the list of speech supported country and region codes.