예제 #1
0
        private async void GenerateTTS(String whatToSay)
        {
            speechStream = await synth.SynthesizeTextToStreamAsync(whatToSay);

            TextToSpeech.AutoPlay = true;
            TextToSpeech.SetSource(speechStream, speechStream.ContentType);
            TextToSpeech.Play();
        }