S2.1 Pro
S2.1 Pro is Fish Audio's current state-of-the-art voice model — the best model we have, now available to every developer for free via API. It is a neural speech synthesis model designed for production-grade AI voice generation, with particular strengths in low-latency streaming, multilingual TTS, and voice cloning. Your use is subject to Fish Audio's Terms & Privacy Policies.
import { experimental_generateSpeech as generateSpeech } from 'ai';import { gateway } from '@ai-sdk/gateway';import { writeFile } from 'node:fs/promises';
const result = await generateSpeech({ model: gateway.speechModel('fish-audio/s2.1-pro'), text: 'Hello from the Vercel AI Gateway!', // Browse voices at https://fish.audio/app/discovery // Open a voice, then use "Copy Model Id" in its "..." menu. voice: '933563129e564b19a115bedd57b7406a',});
await writeFile('speech.mp3', result.audio.uint8Array);More models by Fish Audio
| Model |
|---|