600msも待てない音声エージェントのために

Amazon: Amazon Polly Neural

amazon/amazon-polly-neural
提供中 tts 1プロバイダー
Playground

Amazon Polly's neural TTS (NTTS) engine — a sequence-to-sequence spectrogram model plus a neural vocoder — with 63 voices across 37 language codes (36 documented locales plus Arabic through the bilingual Gulf voices), the newscaster speaking style on four voices, full speech marks and a curated SSML subset.

作成者Amazon
言語37言語
ボイス読み込み中...
レスポンス形式MP3 · Opus · PCM
ステータス提供中

プロバイダー

同じモデルを複数のプロバイダーがホストしている場合があります。バックエンドを固定したい場合は1つのプロバイダーを選び、そうでなければルーティングに選択を任せられます。

プロバイダーSlug1,000文字あたりレイテンシiTTSのレイテンシは音声の最初のバイトが届くまでの時間、STTのレイテンシは最初のトークンが届くまでの時間で計測しています。モード稼働率
Amazon 5個のパラメーター
amazon
$0.016
—
同期

対応言語

37言語
Arabic (Gulf) ar-AE
Arabic arb
Catalan ca-ES
Chinese (Mandarin) cmn-CN
Czech cs-CZ
Danish da-DK
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
Finnish fi-FI
French (Belgian) fr-BE
French (Canadian) fr-CA
French fr-FR
Hindi hi-IN
Italian it-IT
Japanese ja-JP
Korean ko-KR
Norwegian nb-NO
Dutch (Belgian) nl-BE
Dutch nl-NL
Polish pl-PL
Portuguese (Brazilian) pt-BR
Portuguese (European) pt-PT
Swedish sv-SE
Turkish tr-TR
Chinese (Cantonese) yue-CN

ボイス

機能

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

63 voices across 37 language codes, with the bilingual voices also accepting their AdditionalLanguageCodes via LanguageCode.

multilingual
Fully bilingual voices

Kajal (en-IN + hi-IN), Hala and Zayd (ar-AE + arb) speak two languages fluently; 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

コード

クライアント
モード
言語

ElevenLabs SDKでのストリーミングTTS

ElevenLabs SDKをAllModels経由でルーティングし、音声レスポンスをストリーミングします。

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