AmazonPolly<T>
Models & Types · AiDotNet.TextToSpeech.ProprietaryAPI
A client of Amazon Polly’s SynthesizeSpeech API.
Inheritance: CloudTtsClientBase<T> → AmazonPolly<T>
For Beginners
new AmazonPolly<float>(new AmazonPollyOptions { AccessKeyId = "…", SecretAccessKey = "…" }) .Synthesize("Hello") returns the spoken audio.
How It Works
Sends POST https://polly.{region}.amazonaws.com/v1/speech with the JSON body
{ Engine, OutputFormat: "pcm", SampleRate, Text, TextType, VoiceId[, LanguageCode] }, signed with AWS Signature
Version 4 for the service “polly”; the response is signed 16-bit little-endian mono PCM.
Constructors
| Constructor | Summary |
|---|---|
AmazonPolly(AmazonPollyOptions options, HttpClient httpClient) |
Creates the client; a supplied HttpClient is used as is and not disposed. |
Properties
| Property | Summary |
|---|---|
string ProviderName { get; } |