共用方式為


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

適用於

另請參閱