Fish Audio: Fish Audio S2.1-Pro
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.
Modelos variantes
Son IDs de modelo nativos que el autor o proveedor acepta para la misma familia de modelos canónica.
Recommended production Fish Audio TTS model; improved quality, latency, and throughput over S2-Pro.
Same model as S2.1-Pro billed at $0 for testing/dev/small business under fair-use limits.
Proveedores
Distintos proveedores pueden alojar el mismo modelo. Elige un proveedor cuando necesites un backend fijo, o deja que el enrutamiento elija entre ellos.
Idiomas admitidos
en
Voces
Funciones
Generates spoken audio from text input.
text_to_speech
Supports streaming audio output (HTTP + WebSocket) with optional timestamps.
streaming
Synthesizes speech from fully-submitted text in a single synchronous request.
synchronous
Supports 83 languages.
multilingual
Supports instant (reference audio) and persistent (reference_id) voice cloning.
voice_cloning
Natural-language and bracket expression control; multi-speaker.
emotion_control
Código
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: "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.
}
