共用方式為


SpeechSynthesizer.StartSpeakingTextAsync(String) Method

Definition

Queue speech synthesis task from plain text as an asynchronous operation.

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

Parameters

text
String

The plain text to synthesize.

Returns

A task representing the started synthesis operation.

Remarks

This method is the asynchronous version of SpeakTextAsync(String).

Applies to