SpeechSynthesizer.SpeakTextAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.