共用方式為


SpeechSynthesizer.SpeakTextAsync(String) Method

Definition

Synthesize speech from plain text asynchronously (returns when done synthesizing).

public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechSynthesisResult> SpeakTextAsync (string text);
member this.SpeakTextAsync : string -> System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechSynthesisResult>
Public Function SpeakTextAsync (text As String) As Task(Of SpeechSynthesisResult)

Parameters

text
String

Plain text to synthesize.

Returns

A task representing the completed synthesis operation.

Applies to