How to Add Text-to-Speech to Your App with the Fish TTS API
Adding text-to-speech sounds simple until you need reliable audio URLs, controllable output formats, cloned voices, and a way to handle longer synthesis jobs without keeping one HTTP connection open forever. This guide walks through the Fish TTS API exposed through Ace Data Cloud. It focuses on the practical integration path: sending text to POST https://api.acedata.cloud/fish/tts , choosing the right audio format, controlling speech output, and using callback_url when a request should run asynchronously. What you can do The endpoint synthesizes text into audio and returns an audio_url hosted on the platform CDN. The same API can also use a cloned voice through reference_id or inline references , adjust prosody, and switch between Fish TTS models using an HTTP header. Generate speech from a non-empty text string. Return mp3 , wav , or pcm output. The default format is mp3 . Use reference_id or references for cloned voice scenarios. Use common sample rates such as 16000 , 22...