Skip to main content

Overview

Transform any text into natural, expressive speech using Fish Audio’s advanced TTS models. Choose from pre-made voices or use your own cloned voices. Discover the world’s best cloned voices models on our Discovery page.

Quick Start

Web Interface

The easiest way to generate speech:
1

Visit Playground

Go to fish.audio and log in
2

Enter Your Text

Type or paste the text you want to convert
3

Choose a Voice

Select from available voices or use your own
4

Generate

Click “Generate” and download your audio

Using the SDK

1

Install the SDK

2

Basic Usage

Generate speech with just a few lines of code:

Voice Options

Using Pre-made Voices

Browse and select voices from the playground:

Using Your Cloned Voice

Use voices you’ve created:

Using Reference Audio

Provide reference audio directly:

Model Selection

Choose the right model for your needs: Specify a model in your request:

Advanced Options

Audio Formats

Choose your output format:

Chunk Length

Control text processing chunks:

Latency Mode

Optimize for speed or quality:
Balanced mode reduces latency to ~300ms but may slightly decrease stability.

Direct API Usage

For direct API calls without the SDK:

Streaming Audio

Stream audio for real-time applications:

Adding Emotions

Make your speech more expressive:
Available emotions:
  • Basic: (happy), (sad), (angry), (excited), (calm)
  • Tones: (shouting), (whispering), (soft tone)
  • Effects: (laughing), (sighing), (crying)
For more precise control over pronunciation and additional paralanguage features like pauses and breathing, see Fine-grained Control.

Best Practices

Text Preparation

Do:
  • Use proper punctuation for natural pauses
  • Add emotion markers for expression
  • Break long texts into paragraphs
  • Use consistent formatting
Don’t:
  • Use ALL CAPS (unless shouting)
  • Mix multiple languages randomly
  • Include special characters unnecessarily
  • Forget punctuation

Performance Tips

  1. Batch Processing: Process multiple texts efficiently
  2. Cache Models: Store frequently used model IDs
  3. Optimize Chunk Size: Use 200 characters for best balance
  4. Handle Errors: Implement retry logic for network issues

Quality Optimization

For best results:
  • Use high-quality reference audio for cloning
  • Choose appropriate emotion markers
  • Test different latency modes
  • Monitor API rate limits

Troubleshooting

Common Issues

No audio output:
  • Check API key validity
  • Verify model ID exists
  • Ensure proper audio format
Poor quality:
  • Use better reference audio
  • Try normal latency mode
  • Check text formatting
Slow generation:
  • Use balanced latency mode
  • Reduce chunk length
  • Check network connection

Code Examples

Batch Processing

Error Handling

API Reference

Request Parameters

Response

Returns audio data in the specified format as binary stream.

Get Support

Need help with text-to-speech?