Amazon: Amazon Polly Generative
Amazon Polly's largest model, a billion-parameter transformer decoded by a streamable convolutional decoder, producing the most human-like conversational voices across 43 voices and 24 language codes, without speech marks or the newscaster style.
Proveedores
Distintos proveedores pueden alojar el mismo modelo. Elige un proveedor cuando necesites un backend fijo, o deja que el enrutamiento elija entre ellos.
Idiomas admitidos
de-AT
de-CH
de-DE
en-AU
en-GB
en-IE
en-IN
en-NZ
en-SG
en-US
en-ZA
es-ES
es-MX
es-US
fr-BE
fr-CA
fr-FR
hi-IN
it-IT
ko-KR
nl-BE
nl-NL
pl-PL
pt-BR
Voces
Funciones
Generates spoken audio from text input.
text_to_speech
SynthesizeSpeech (POST /v1/speech) takes the whole text up front and returns the finished audio as the HTTP response body.
synchronous
43 voices across 24 language codes, with the bilingual voice Kajal also accepting its AdditionalLanguageCodes via LanguageCode.
multilingual
Kajal speaks Indian English (en-IN, default) and Hindi (hi-IN); select the language with LanguageCode.
bilingual_voices
Upstream only: StartSpeechSynthesisTask accepts up to 100,000 billed characters and writes the audio to an S3 bucket, which this platform does not expose.
async_long_text
Upstream only: up to five stored PLS lexicons (LexiconNames) apply per request when their language matches the voice.
pronunciation_lexicons
Código
TTS en streaming con el ElevenLabs SDK
Enruta el ElevenLabs SDK a través de AllModels y transmite la respuesta de audio.
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const stream = await client.textToSpeech.stream("voice_id", {
text: "I'm sorry, Dave. I'm afraid I can't do that.",
modelId: "amazon/amazon-polly-generative",
outputFormat: "mp3_44100_128"
}, {
queryParams: {
provider: {
"only": [
"amazon"
]
}
}
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
