Dela via


SpeechSynthesizer.SynthesizeTextToStreamAsync(String) Method

Definition

Asynchronously generate speech output from a string.

public:
 virtual IAsyncOperation<SpeechSynthesisStream ^> ^ SynthesizeTextToStreamAsync(Platform::String ^ text) = SynthesizeTextToStreamAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<SpeechSynthesisStream> SynthesizeTextToStreamAsync(winrt::hstring const& text);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<SpeechSynthesisStream> SynthesizeTextToStreamAsync(string text);
function synthesizeTextToStreamAsync(text)
Public Function SynthesizeTextToStreamAsync (text As String) As IAsyncOperation(Of SpeechSynthesisStream)

Parameters

text
String

Platform::String

winrt::hstring

The text to speak.

Returns

A SpeechSynthesisStream that represents the speech generated from the text.

Attributes

Remarks

To generate speech from Speech Synthesis Markup Language (SSML) Version 1.1, see SynthesizeSsmlToStreamAsync.

Applies to

See also