Hecho para agentes de voz que no pueden esperar 600ms

Amazon: Amazon Polly Standard

amazon/amazon-polly-standard
activo tts 1 proveedor
Playground

Amazon Polly's original concatenative text-to-speech engine: 60 voices across 29 language codes, the widest SSML support of the four engines (including prosody pitch, emphasis, whispering and breathing effects), speech marks, and the lowest price and highest throughput (80 TPS) in the family.

AutorAmazon
Idiomas29 idiomas
VocesCargando...
Formatos de respuestaMP3 · Opus · PCM
Estadoactivo

Proveedores

Distintos proveedores pueden alojar el mismo modelo. Elige un proveedor cuando necesites un backend fijo, o deja que el enrutamiento elija entre ellos.

ProveedorSlugPor 1k caracteresLatenciaiEn TTS, la latencia se mide como el tiempo hasta el primer byte de audio. En STT, se mide como el tiempo hasta el primer token.ModosDisponibilidad
Amazon 5 parámetros
amazon
$0,004
—
Síncrono

Idiomas admitidos

29 idiomas
Arabic arb
Chinese (Mandarin) cmn-CN
Welsh cy-GB
Danish da-DK
German de-DE
English (Australian) en-AU
English (British) en-GB
English (Welsh) en-GB-WLS
English (Indian) en-IN
English (US) en-US
Spanish (Spain) es-ES
Spanish (Mexican) es-MX
Spanish (US) es-US
French (Canadian) fr-CA
French fr-FR
Hindi hi-IN
Icelandic is-IS
Italian it-IT
Japanese ja-JP
Korean ko-KR
Norwegian nb-NO
Dutch nl-NL
Polish pl-PL
Portuguese (Brazilian) pt-BR
Portuguese (European) pt-PT
Romanian ro-RO
Russian ru-RU
Swedish sv-SE
Turkish tr-TR

Voces

Funciones

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
Speech marks (word / sentence / viseme / SSML timing)

Upstream only: OutputFormat=json with SpeechMarkTypes returns NDJSON word, sentence, viseme and ssml marks instead of audio, billed at the same per-character rate.

speech_marks
Multilingual

60 voices across 29 language codes, with the bilingual voices also accepting their AdditionalLanguageCodes via LanguageCode.

multilingual
Fully bilingual voices

Aditi 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

Código

Cliente
Modo
Lenguaje

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-standard",
  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.
}