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

Fish Audio: Fish Audio S2.1-Pro

fish/s2-1-pro
提供中 tts 1プロバイダー
Playground

Fish Audio's recommended production text-to-speech model (S2.1-Pro) with improved quality, latency and throughput over S2-Pro, plus a free variant (s2.1-pro-free) under fair-use limits.

作成者Fish Audio
言語1言語
ボイス読み込み中...
レスポンス形式MP3 · WAV · PCM · Opus
バリアントモデル2個のID
ステータス提供中

バリアントモデル

同じ正規モデルファミリーに対して、作成者やプロバイダーが受け付けるネイティブのモデルIDです。

Fish Audio S2.1-Pro Default

Recommended production Fish Audio TTS model; improved quality, latency, and throughput over S2-Pro.

s2.1-pro
Fish Audio S2.1-Pro Free Variant

Same model as S2.1-Pro billed at $0 for testing/dev/small business under fair-use limits.

s2.1-pro-free

プロバイダー

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

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

対応言語

1言語
English en

ボイス

機能

Text to speech

Generates spoken audio from text input.

text_to_speech
Streaming

Supports streaming audio output (HTTP + WebSocket) with optional timestamps.

streaming
Synchronous

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

synchronous
Multilingual

Supports 83 languages.

multilingual
Voice cloning

Supports instant (reference audio) and persistent (reference_id) voice cloning.

voice_cloning
Emotion / expression control

Natural-language and bracket expression control; multi-speaker.

emotion_control

コード

クライアント
モード
言語

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: "fish/s2-1-pro",
  outputFormat: "mp3_44100_128"
}, {
  queryParams: {
    provider: {
      "only": [
        "fish"
      ]
    }
  }
});

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