Conçu pour les agents vocaux qui ne peuvent pas attendre 600ms

Amazon : Amazon Polly Generative

amazon/amazon-polly-generative
actif tts 1 fournisseur
Playground

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.

AuteurAmazon
Langues24 langues
VoixChargement...
Formats de réponseMP3 · Opus · PCM
Statutactif

Fournisseurs

Plusieurs fournisseurs peuvent héberger le même modèle. Choisissez-en un lorsque vous avez besoin d’un backend fixe, ou laissez le routage choisir parmi eux.

FournisseurSlugPour 1k caractèresLatenceiPour le TTS, la latence correspond au délai jusqu’au premier octet audio. Pour le STT, elle correspond au délai jusqu’au premier token.ModesDisponibilité
Amazon 5 paramètres
amazon
$0,03
—
Synchrone

Langues prises en charge

24 langues
German (Austrian) de-AT
German (Swiss standard) de-CH
German de-DE
English (Australian) en-AU
English (British) en-GB
English (Ireland) en-IE
English (Indian) en-IN
English (New Zealand) en-NZ
English (Singaporean) en-SG
English (US) en-US
English (South African) en-ZA
Spanish (Spain) es-ES
Spanish (Mexican) es-MX
Spanish (US) es-US
French (Belgian) fr-BE
French (Canadian) fr-CA
French fr-FR
Hindi hi-IN
Italian it-IT
Korean ko-KR
Dutch (Belgian) nl-BE
Dutch nl-NL
Polish pl-PL
Portuguese (Brazilian) pt-BR

Voix

Fonctionnalités

Text to speech

Generates spoken audio from text input.

text_to_speech
Synchronous

SynthesizeSpeech (POST /v1/speech) takes the whole text up front and returns the finished audio as the HTTP response body.

synchronous
Multilingual

43 voices across 24 language codes, with the bilingual voice Kajal also accepting its AdditionalLanguageCodes via LanguageCode.

multilingual
Fully bilingual voices

Kajal speaks Indian English (en-IN, default) and Hindi (hi-IN); select the language with LanguageCode.

bilingual_voices
Asynchronous long-text synthesis

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
Pronunciation lexicons

Upstream only: up to five stored PLS lexicons (LexiconNames) apply per request when their language matches the voice.

pronunciation_lexicons

Code

Client
Mode
Langage

TTS en streaming avec l’ElevenLabs SDK

Fait passer l’ElevenLabs SDK par AllModels et diffuse la réponse audio en streaming.

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.
}