Skip to content

Fish Audio 声音克隆

  • 2025.9.14 本站已经支持 fish-tts 模型
  • 超多默认声音 比如:马斯克、赵本山、猪八戒、孙悟空 声音克隆
  • 支持情感控制 Emotion Control
  • 支持自己上传音频文件进行克隆
  • 完全支持 openai tts /v1/audio/speech 接口

计费

  • 价格按汇率 1:3
  • 官网:每百万 UTF-8 字节 15.00 美元
  • 我们:每百万 UTF-8 字节 45.00 人民币

API

  • 约定 header 中含有 Authorization : Bearer hk-你的key

1.克隆声音

post https://api.openai-hk.com/v1/audio/speech

shell
curl --request POST \
  --url https://api.openai-hk.com/v1/audio/speech \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "fish-tts",
    "input": "(高兴) 师傅,我想娶媳妇",
    "voice": "d7900c21663f485ab63ebdb7e5905036"
}'  \
  --output speech.mp3
curl --request POST \
  --url https://api.openai-hk.com/v1/audio/speech \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "fish-tts",
    "input": "(高兴) 师傅,我想娶媳妇",
    "voice": "d7900c21663f485ab63ebdb7e5905036"
}'  \
  --output speech.mp3
  • 输出是 mp3 header Content-Type: application/octet-stream
  • 输出的 header 中含有 task-id: b7f228140bd949d7b466e1c33566a2fd
  • 得到这个 task-id mp3 的链接为 https://platform.r2.fish.audio/task/b7f228140bd949d7b466e1c33566a2fd.mp3
  • voice 是声音克隆来源 d7900c21663f485ab63ebdb7e5905036 是猪八戒的声音
  • 更多声音来源 可以通过接口获取 或者 自己上传 克隆你上传的声音
  • input 是内容,内容中支持情感控制指令 官方文档

2.自创声音克隆源

post https://api.openai-hk.com/fish/model

shell
curl --request POST \
  --url https://api.openai-hk.com/fish/model \
  --header 'Authorization: Bearer hk-xstw6k10000000098a9b5fc75ce0a78bd424d92427446253' \
  --header 'Content-Type: application/json' \
  --data '{
    "title":"老师"
    ,"description":"描述"
    ,"voices":"https://platform.r2.fish.audio/task/604133d7b3c7430385382470f67770e8.mp3"
    ,"cover_image":"https://www.open-hk.com/res/img/open.png"
    ,"train_mode":"fast"
}'
curl --request POST \
  --url https://api.openai-hk.com/fish/model \
  --header 'Authorization: Bearer hk-xstw6k10000000098a9b5fc75ce0a78bd424d92427446253' \
  --header 'Content-Type: application/json' \
  --data '{
    "title":"老师"
    ,"description":"描述"
    ,"voices":"https://platform.r2.fish.audio/task/604133d7b3c7430385382470f67770e8.mp3"
    ,"cover_image":"https://www.open-hk.com/res/img/open.png"
    ,"train_mode":"fast"
}'
  • 参数说明

    参数类型说明
    titlestring声音克隆名称
    descriptionstring声音克隆描述
    voicesstring声音文件地址
    cover_imagestring封面
    train_modestring声音克隆训练模式
  • 返回体

其中_idvoice 使用的

json
{
  "_id": "d3645891f9e742108c313e66271394ac",
  "type": "tts",
  "title": "老师",
  "description": "描述",
  "cover_image": "coverimage/d3645891f9e742108c313e66271394ac",
  "train_mode": "fast",
  "state": "trained",
  "tags": [],
  "samples": [
    {
      "title": "Default Sample",
      "text": "通过光合作用,植物能够将阳光转化为生命所需的能量。这个精密的生物化学过程不仅维持了植物的生长,更为地球上的氧气循环做出了重要贡献,展现了自然界的奇妙平衡。",
      "task_id": "1ae43d4f956d4744b7ecb6c6d54e4437",
      "audio": "task/1ae43d4f956d4744b7ecb6c6d54e4437.mp3"
    }
  ],
  "created_at": "2025-09-14T15:10:09.033883Z",
  "updated_at": "2025-09-14T15:10:09.033485Z",
  "languages": ["zh"],
  "visibility": "public",
  "lock_visibility": false,
  "default_text": "通过光合作用,植物能够将阳光转化为生命所需的能量。这个精密的生物化学过程不仅维持了植物的生长,更为地球上的氧气循环做出了重要贡献,展现了自然界的奇妙平衡。",
  "like_count": 0,
  "mark_count": 0,
  "shared_count": 0,
  "task_count": 0,
  "unliked": false,
  "liked": false,
  "marked": false
}
{
  "_id": "d3645891f9e742108c313e66271394ac",
  "type": "tts",
  "title": "老师",
  "description": "描述",
  "cover_image": "coverimage/d3645891f9e742108c313e66271394ac",
  "train_mode": "fast",
  "state": "trained",
  "tags": [],
  "samples": [
    {
      "title": "Default Sample",
      "text": "通过光合作用,植物能够将阳光转化为生命所需的能量。这个精密的生物化学过程不仅维持了植物的生长,更为地球上的氧气循环做出了重要贡献,展现了自然界的奇妙平衡。",
      "task_id": "1ae43d4f956d4744b7ecb6c6d54e4437",
      "audio": "task/1ae43d4f956d4744b7ecb6c6d54e4437.mp3"
    }
  ],
  "created_at": "2025-09-14T15:10:09.033883Z",
  "updated_at": "2025-09-14T15:10:09.033485Z",
  "languages": ["zh"],
  "visibility": "public",
  "lock_visibility": false,
  "default_text": "通过光合作用,植物能够将阳光转化为生命所需的能量。这个精密的生物化学过程不仅维持了植物的生长,更为地球上的氧气循环做出了重要贡献,展现了自然界的奇妙平衡。",
  "like_count": 0,
  "mark_count": 0,
  "shared_count": 0,
  "task_count": 0,
  "unliked": false,
  "liked": false,
  "marked": false
}

3.官网声音源

get https://api.openai-hk.com/fish/q/model?page_size=10&page_number=1&title=&language=zh&sort_by=task_count

返回体 其中_idvoice 使用的

json
{
  "total": 272820,
  "items": [
    {
      "_id": "54a5170264694bfc8e9ad98df7bd89c3",
      "type": "tts",
      "title": "丁真",
      "description": "",
      "cover_image": "coverimage/54a5170264694bfc8e9ad98df7bd89c3",
      "train_mode": "fast"
    },
    ......,
    {}
  ]
}
{
  "total": 272820,
  "items": [
    {
      "_id": "54a5170264694bfc8e9ad98df7bd89c3",
      "type": "tts",
      "title": "丁真",
      "description": "",
      "cover_image": "coverimage/54a5170264694bfc8e9ad98df7bd89c3",
      "train_mode": "fast"
    },
    ......,
    {}
  ]
}

4.情感与控制指令

示例

  • 句首用法:(愤怒)你就是这样回报我的吗?
  • 句中用法:我对你这么信任,(愤怒)你就是这样回报我的吗?
  • 语速变快:快走!后面有人在追,(语速变快)再不跑就来不及了!
  • 语速变慢:他一字一顿,(语速变慢)仿佛每个字都有千斤重。
  • 声音变小:他凑到我耳边,(声音变小)悄悄告诉我一个秘密。
  • 声音变大:(大声)你说什么?我听不见!
  • 语气激动:这太不可思议了!(语气激动)我们竟然真的成功了!
  • 大笑:听到这个笑话,他再也忍不住了,(大笑)哈哈哈哈!
  • 哭泣:她捂着脸,(哭泣)呜呜呜,再也说不出一句话。
  • 叹气:事情怎么会变成这样……(叹气)唉。