Amazon.Polly.AmazonPollyClient.SynthesizeSpeechAsync C# (CSharp) Method

SynthesizeSpeechAsync() public method

Initiates the asynchronous execution of the SynthesizeSpeech operation.
public SynthesizeSpeechAsync ( SynthesizeSpeechRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.SynthesizeSpeechRequest Container for the necessary parameters to execute the SynthesizeSpeech operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<SynthesizeSpeechResponse> SynthesizeSpeechAsync(SynthesizeSpeechRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new SynthesizeSpeechRequestMarshaller();
            var unmarshaller = SynthesizeSpeechResponseUnmarshaller.Instance;

            return InvokeAsync<SynthesizeSpeechRequest,SynthesizeSpeechResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }