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

Soniox: Soniox TTS Realtime v2

soniox/tts-rt-v2
提供中 tts 1プロバイダー
Playground

Soniox real-time streaming text-to-speech model; the successor to tts-rt-v1, adding voice cloning, speed adjustment and silence reduction.

作成者Soniox
言語multilingual
ボイス読み込み中...
レスポンス形式MP3 · WAV · PCM · Opus · AAC · FLAC · µ-law · A-law
ステータス提供中

プロバイダー

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

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

対応言語

このモデルの確認済み言語リストはまだありません。

ボイス

機能

Text to speech

Generates spoken audio from text input.

text_to_speech
Streaming

Real-time streaming audio output over WebSocket.

streaming
Synchronous

Synthesizes speech from fully-submitted text in a single synchronous request.

synchronous
Voice cloning

Supports voice cloning from a reference sample of up to 120 seconds.

voice_cloning
Speed adjustment

Supports speaking-rate adjustment between 0.7x and 1.3x, not yet mapped on the route.

speed_control
Silence reduction

Supports trimming silence from generated audio, not yet mapped on the route.

silence_reduction
Timestamps

Reports timestamps alongside the generated audio.

timestamps

コード

クライアント
モード
言語

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: "soniox/tts-rt-v2",
  outputFormat: "mp3_44100_128"
}, {
  queryParams: {
    provider: {
      "only": [
        "soniox"
      ]
    }
  }
});

const reader = stream.getReader();
for (;;) {
  const { done, value } = await reader.read();
  if (done) break;
  // Write value to your response, file, or audio playback pipeline.
}