SpeechSynthesizer.SpeakAsync(SpeechSynthesisRequest) 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.
Execute the speech synthesis on request, asynchronously. This API could be used to synthesize speech from an input text stream, to reduce latency for text generation scenarios. Note: the feature is in preview and is subject to change. Added in version 1.37.0
public System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechSynthesisResult> SpeakAsync (Microsoft.CognitiveServices.Speech.SpeechSynthesisRequest request);
member this.SpeakAsync : Microsoft.CognitiveServices.Speech.SpeechSynthesisRequest -> System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.SpeechSynthesisResult>
Public Function SpeakAsync (request As SpeechSynthesisRequest) As Task(Of SpeechSynthesisResult)
Parameters
- request
- SpeechSynthesisRequest
The speech synthesis request.
Returns
A task representing the completed synthesis operation.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.