fish-audio
Generate AI text-to-speech audio, use saved voices, or create a one-shot voice clone from an HTTPS reference audio URL and exact transcript via AceDataCloud API.
Ace Data Cloud
@acedatacloud
Install
$ openclaw skills install @acedatacloud/fish-audioFish Audio — Text-to-Speech
Generate narration / voiceover through AceDataCloud's Fish Audio API.
First-time setup
- Install the official Skill with
clawhub install @acedatacloud/fish-audio. Check that the ClawHub publisher is @acedatacloud. - Sign in at AceDataCloud → Applications, open General application, and check Fish Audio access, balance, and current pricing. Copy its API key, or select Manage Keys → Create for a separate key. Copy the key value without
Bearer; aplatform-...management token is not a service API key. - If you enable Allowed APIs restrictions, include
/fish/tts(and/fish/tasksfor asynchronous TTS). Advanced workflows below may call additional routes. - On the OpenClaw Gateway host, put
ACEDATACLOUD_API_TOKEN=your_api_key_herein~/.openclaw/.env, then restart the Gateway and start a new session. For a direct terminal test, runexport ACEDATACLOUD_API_TOKEN="your_api_key_here"in that shell. Never put the key in a prompt or commit an.envfile. - Run the Quick Start below. If this workflow returns a task ID, query that same task until it finishes; do not submit the same billable request again just to check progress.
Illustrated key setup, first run, and troubleshooting · Token details
Quick Start
curl -X POST https://api.acedata.cloud/fish/tts \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-H "model: s2-pro" \
-d '{"text":"你好,欢迎使用 AceData Cloud。","reference_id":"d7900c21663f485ab63ebdb7e5905036","format":"mp3"}'
Synchronous responses return a direct audio URL:
{"audio_url":"https://platform.r2.fish.audio/task/8a72ff9840234006a9f74cb2fa04f978.mp3"}
Endpoints
| Endpoint | Purpose |
|---|---|
POST /fish/tts | Text-to-speech generation |
GET /fish/model | Browse/search public Fish reference voices |
GET /fish/model/{id} | Fetch one reference voice by ID |
POST /fish/tasks | Poll async TTS jobs when async: true |
Workflows
1. Find a reference voice
curl "https://api.acedata.cloud/fish/model?page_size=10&page_number=1&title=Marcus" \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN"
The response includes items[] with public voice metadata such as _id, title,
languages, tags, visibility, and state. Use an item _id as
reference_id in TTS requests.
2. Text-to-Speech
POST /fish/tts
Headers:
model: s2-pro
{
"text": "Your narration text.",
"reference_id": "d7900c21663f485ab63ebdb7e5905036",
"format": "mp3"
}
3. One-shot voice cloning
Use a temporary reference voice without creating a persistent model:
POST /fish/tts
Headers:
model: s2-pro
{
"text": "New speech in the referenced voice.",
"format": "mp3",
"references": [{
"audio": "https://cdn.acedata.cloud/reference.mp3",
"text": "The exact words spoken in the reference audio."
}]
}
audio must be a public HTTPS MP3/WAV URL and text must be the exact transcript. Use one reference lasting 10–270 seconds. Do not combine references with reference_id; use reference_id when the same saved/public voice will be reused. Raw bytes, Base64, data URIs, and MessagePack are not accepted by the AceDataCloud endpoint.
4. Async TTS
POST /fish/tts
Headers:
model: s1
{
"text": "Longer narration for background processing.",
"callback_url": "https://your-domain.example/fish-webhook"
}
Use an actual public webhook that you operate; replace the example URL. If you
do not have one, use the synchronous Quick Start above. After an asynchronous
submission returns a task ID, see async task polling and query POST /fish/tasks with {"id":"..."}.
Parameters — /fish/tts
Header
| Parameter | Values | Description |
|---|---|---|
model | "s1", "s2-pro", "s2.1-pro" | Fish TTS engine selection |
JSON body
| Parameter | Type / Values | Description |
|---|---|---|
text | string | Text to synthesize (required) |
reference_id | string | Public/reference voice ID from GET /fish/model |
format | "mp3", "wav", "pcm" | Output format |
sample_rate | integer | Optional output sample rate |
mp3_bitrate | 64, 128, 192 | MP3 bitrate |
latency | "normal", "balanced" | TTS latency mode |
chunk_length / min_chunk_length | integer | Chunking controls |
temperature, top_p, repetition_penalty | number | Sampling controls |
max_new_tokens | integer | Maximum generated tokens |
normalize | boolean | Normalize generated audio |
prosody | object | Prosody tuning |
references | array | One {audio, text} object for a one-shot voice clone; mutually exclusive with reference_id |
callback_url | string | Async callback URL |
async | boolean | Run asynchronously and poll /fish/tasks |
Gotchas
- The documented TTS endpoint is
POST /fish/tts— not/fish/audios. - Choose the Fish engine with the
modelrequest header, not a JSONmodelfield. - Use
reference_idfromGET /fish/model— notvoice_id. - Use
referencesfor a one-shot clone that is not saved as a model. - Billing is based on the target text UTF-8 byte count; the reference audio does not add a separate clone fee.
- Synchronous requests return
audio_urldirectly; async jobs should be polled via/fish/tasks.
Top skills in this category
Nano Banana Pro
@steipeteGenerate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
AdMapix
@fly0pantsAdMapix raw data layer for ad creatives, apps, rankings, downloads/revenue, and market metadata. Returns structured JSON from the AdMapix API; the calling ag...
YouTube Watcher
@michaelgatharaFetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
SuperDesign
@mpociotExpert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface.
Video Frames
@steipeteExtract frames or short clips from videos using ffmpeg.