![]() SpeakTask.then((SpeechSynthesisStream ^speechStream) Task speakTask = create_task(synth->SynthesizeTextToStreamAsync(text)) The media object for controlling and playing audio. MediaElement.SetSource(stream, stream.ContentType) SpeechSynthesisStream stream = await synth.SynthesizeTextToStreamAsync("Hello World") Generate the audio stream from plain text. The object for controlling the speech synthesis engine (voice). The following example shows how to generate a speech audio stream from a basic text string. Public sealed class SpeechSynthesizer : System.IDisposable function SpeechSynthesizer() Public NotInheritable Class SpeechSynthesizer Public sealed class SpeechSynthesizer : System.IDisposable / Ĭlass SpeechSynthesizer final : IClosable /// Ĭlass SpeechSynthesizer final : IClosable In this article public ref class SpeechSynthesizer sealed : IClosable /// Provides access to the functionality of an installed speech synthesis engine (voice) for Text-to-speech (TTS) services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |