S2 Pro
Fish Audio S2 is the second-generation TTS model from Fish Audio. It's trained on over 10 million hours of audio across approximately 80 languages, and it introduces inline tag control: natural-language instructions embedded directly in your script at any position, giving you fine-grained direction over how speech is delivered at the word or phrase level. 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-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);Playground
Try out S2 Pro by Fish Audio. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Your generated audio will appear here
Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|
More models by Fish Audio
| Model |
|---|