ConfigureOptionsTextToSpeechClient.GetAudioAsync 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.
public override System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse> GetAudioAsync(string text, Microsoft.Extensions.AI.TextToSpeechOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
override this.GetAudioAsync : string * Microsoft.Extensions.AI.TextToSpeechOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse>
Public Overrides Function GetAudioAsync (text As String, Optional options As TextToSpeechOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TextToSpeechResponse)
Parameters
- text
- String
- options
- TextToSpeechOptions
- cancellationToken
- CancellationToken