Ace Data Cloud · AI Speech Synthesis

Fish Audio Speech Synthesis and Voice Cloning

Turn text into natural-sounding speech with Fish Audio. Select s1, s2-pro, or s2.1-pro via the request header, reuse public voices, or create your own voice from authorized recordings.

🐟 s1 / s2-pro / s2.1-pro 🎙️ Voice Cloning 🌍 Multilingual Support
Public Voices
Filter by language, tag, or name
3
TTS models to choose from
Per Byte
UTF-8 text billing
Callback Support
Asynchronous synthesis for long text

Core Features

From text-to-speech to voice cloning, one API covers the entire speech synthesis workflow.

🗣️

Highly Expressive TTS

Use text to submit the text to synthesize. Select s1, s2-pro, or s2.1-pro using the model request header; if omitted, s2-pro is used.

🎙️

Voice Cloning

Pass reference_id to reuse an existing voice, or use references[].audio + text to clone one instantly in a single request—making the synthesized voice resemble the specified speaker.

📚

Public Voice Search

Use GET /fish/model to search public voices, filter by language, tag, or title, and use the resulting _id as the reference_id.

⚡

Synchronous / Asynchronous

For short text, synchronous requests return audio_url and the request's cost directly; for long text, pass callback_url to receive a task_id immediately. Both cost in the callback and response.cost in the final task state contain the actual billed amount.

Get speech in one request

Submit text to synthesize speech, with MP3 output by default. A successful synchronous request returns an audio_url for playback or download and the actual billing information in cost.

cURL · POST /fish/tts
curl -X POST https://api.acedata.cloud/fish/tts \
  -H "authorization: Bearer YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "text": "今天天气真好,我们一起出去散散步吧。",
    "format": "mp3"
  }'

JSON response

The following excerpt from the existing API guide shows the fields used to read the result. The sample model, task ID, and media content come from that historical example; use the actual values returned by your request.

{
  "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3"
}

Get started in 3 steps

From obtaining a token to getting audio, it only takes a few minutes.

1

Get a token

Go to the application list, open General Application, and click the copy button to the right of API KEY. Store the key on your server and use it to replace YOUR_API_KEY in the example.

Get an Ace Data Cloud API Key
2

Submit text

Call POST /fish/tts with text and optionally set format to mp3, wav, or pcm.

3

Get audio

The synchronous response returns audio_url and cost for direct playback and billing based on actual Credits; for long text, read cost from the callback and final Tasks result.

What is Fish Audio suitable for?

From audio content to in-app speech, it covers most speech synthesis needs.

📖

Audiobooks / Podcasts

Convert articles and manuscripts into natural-sounding speech in batches, using s1 to reliably process long texts.

🎬

Video Voiceovers / Spoken Presentations

Generate narration for short videos, tutorials, and explainers, using prosody to adjust speed and volume.

☎️

IVR / Customer Service Speech

Dynamically generate prompts and scripts, using a consistent voice to maintain brand voice consistency.

♿

Accessible Reading

Provide read-aloud capabilities for web pages and documents, outputting pcm for real-time concatenation and playback on the client.

🎮

Games / Character Voice Acting

Use voice cloning to create unique voices for characters and quickly generate large volumes of dialogue.

🧑‍💻

Digital Humans / Virtual Hosts

Synthesize scripts into speech in real time for digital human presentations and virtual host livestreams.

Two Capabilities, One API

Specify a model directly for synthesis, or call the voice API to save and retrieve voices.

🗣️ Text-to-Speech TTS

Submit text to synthesize speech, with support for mp3, wav and pcm, use prosody to adjust speed and volume, and sample_rate to specify the sample rate.

POST /fish/tts model: s1 / s2-pro / s2.1-pro

🎙️ Voice Management Model

Clone a new voice using reference audio, retrieve public voices, or look up details of a single voice by _id—the resulting _id can be used directly as reference_id.

POST /fish/model GET /fish/model GET /fish/model/{id}

Fish Audio Pricing

Pay for what you use, no subscription fees, no hidden fees.

Voice search (GET /fish/model) is free

Pay as you go
Pay for usage
Per byte

TTS is billed by the number of UTF-8 bytes in the synthesized text; voice creation and lookup are free.

  • ✓ Same rate for all three TTS models
  • ✓ Voice creation and lookup—Free
  • ✓ Voice search GET—Free
View pricing details
Enterprise
Custom

Tailored plans for high-volume teams

  • ✓ Tiered discounts based on usage
  • ✓ Priority support and an account manager
  • ✓ Higher concurrency and capacity
  • ✓ SLA guarantee
  • ✓ Private deployment options
Contact sales

Frequently Asked Questions

Common questions about using the Fish Audio API

How does Fish Audio charge for its services?›

TTS is billed by the number of UTF-8 bytes in the synthesized text; Chinese characters typically occupy multiple bytes. All three models use the same rate. See Fish Audio pricing for the current rate. Creating, retrieving, and querying voices is free.

Which audio formats are supported?›

Use format to select mp3, wav, or pcm. The default is mp3. mp3_bitrate applies only to MP3. Both wav and pcm return a WAV container.

How do I clone or specify a voice?›

There are two options: pass reference_id to reuse an existing voice (retrieve an _id from the public library using GET /fish/model, or clone your own voice using POST /fish/model); or use references[].audio + text to clone a voice on the fly in a single request. Choose one of the two.

How do I choose a voice model?›

Use the model request header to select s1, s2-pro, or s2.1-pro. You can start with the default s2-pro and compare the models using the same text and voice.

What if synthesizing long text is slow?›

Synthesizing long text in one request may take from over ten seconds to tens of seconds. Pass callback_url in the request body, and the API will immediately return {task_id, started_at}, then POST the result to that URL when complete; you can also use the Fish Tasks API to retrieve the result by task_id.

How long is the returned audio link valid?›

audio_url points to the platform's CDN and can be played or downloaded directly. The file extension follows the output format; saving important results to your own storage is still recommended.

Explore More AI Audio Services

Ace Data Cloud offers a range of AI audio and music generation APIs

Start Generating Speech with Fish Audio Now

Generate speech from text and preview public voices or your own authorized voices.