SpeechSynthesizer.SynthesizeTextToStreamAsync(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)

参数

text
String

Platform::String

winrt::hstring

要朗读的文本。

返回

一个 SpeechSynthesisStream,表示从文本生成的语音。

属性

注解

若要从 语音合成标记语言 (SSML) 版本 1.1 生成语音,请参阅 合成SsmlToStreamAsync

适用于

另请参阅