> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# MiMo-V2.5-TTS

MiMo-V2.5-TTS 是小米开发的开源文本转语音模型，能够将文本内容合成为语音。可通过配置发音风格、音色等参数，生成自然生动的语音内容。

核心能力：

* **预置音色开箱即用**：内置多种精品音色，无需额外配置即可快速使用。
* **音色设计与克隆**：支持通过文本描述设计音色，或基于音频样本复刻任意音色。
* **多样化发音风格**：支持语速、情绪、角色扮演、方言等多种风格控制，语音表达更生动自然。

### 模型参数

* 模型ID：`mimo-v2.5-tts`/`mimo-v2.5-tts-voicedesign`/`mimo-v2.5-tts-voiceclone`
* 模型价格：参考模型详情页：[MiMo-V2.5-TTS](https://geekai.co/models/mimo-v2.5-tts)
* 调用入口：`https://geekai.co/api/v1/audio/speech`
* 模型参数：参考[文本转语音 API 手册](https://docs.geekai.co/cn/api/audio/texttospeech.md)
* API认证：[获取 API KEY](https://geekai.co/user/api_keys)

> [!NOTE]
>
> 不支持语音转录公共 API 中的以下参数：
>
> * `stream_format`
> * `speed`
>
> 附：[MiMo-V2.5-TTS 官方 API 文档](https://mimo.mi.com/docs/zh-CN/api/audio/tts-post)

### 模型价格

MiMo-V2.5-TTS 系列语音模型目前均免费提供。

### 语音合成

你可以使用 `mimo-v2.5-tts` 模型进行语音合成：

```bash theme={null}
curl https://geekai.co/api/v1/audio/speech \
  -H "Authorization: Bearer $GEEKAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mimo-v2.5-tts",
    "input": "Today is a wonderful day to build something people love!",
    "voice": "mimo_default"
  }' \
  --output speech.mp3
```

模型默认以 WAV 二进制语音文件返回生成音频，你可以通过 `response_format` 参数指定返回格式，可选值如下：

* `mp3`
* `wav`
* `pcm`
* `pcm16`

你还可以通过 `voice` 参数指定音频使用的音色ID，MiMo-V2.5-TTS 模型支持以下预置音色：

* `mimo_default`（默认音色）
* `冰糖`
* `茉莉`
* `苏打`
* `白桦`
* `Mia`
* `Chloe`
* `Milo`
* `Dean`

### 音色设计

你可以使用 `mimo-v2.5-tts-voicedesign` 模型进行音色设计，通过 `instructions` 参数传入音色描述，通过 `input` 输入音频内容：

```bash theme={null}
curl https://geekai.co/api/v1/audio/speech \
  -H "Authorization: Bearer $GEEKAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mimo-v2.5-tts-voicedesign",
    "input": "Hello, this is a custom voice design example.",
    "instructions": "Design a warm and friendly voice."
  }' \
  --output speech.mp3
```

描述越具体、越生动，生成的音色越贴近预期。一条好的音色描述通常涵盖以下多个维度（不需要面面俱到）：

| 维度 | 示例 |
| - | - |
| 性别与年龄 | "young woman in her mid-20s"、"五十多岁的中年男性" |
| 音色/质感 | "deep and gravelly"、"丝滑醇厚、带着磁性" |
| 情绪/语气 | "warm and confident"、"温柔但带着一丝疲惫" |
| 语速/节奏 | "slow and deliberate"、"语速极快，像连珠炮" |

以下维度可选择性加入，增加丰富度：

* 角色/人设：narrator, podcast host, 评书先生, 深夜电台DJ
* 说话风格：casual and colloquial, 一本正经地, 压低嗓音像在密谋
* 场景描写：narrating a nature documentary, 在给投资人路演
* 年代参照：1940s film noir, 八十年代译制片配音

注意事项：

* 长度：1-4 句即可，不需要写长文。核心特征描述清楚比堆砌维度更重要
* 避免冲突：不要同时要求矛盾的特征（如"稚嫩的童声 + CEO气场"）
* 避免音质效果词：不要写混响、回声、EQ、压缩等后期处理相关描述
* 避免模糊词：不要用"普通的""正常的""外国的"等缺乏具体指向的描述
* 中英文均可：模型同时支持中英文音色描述，选择你最能精确表达的语言
* 合成文本要贴合音色：`input` 消息中的合成文本应与音色描述相匹配，才能获得最佳效果。例如为"温柔治愈系女声"搭配一段晚安独白，而非一段激烈的体育解说。建议使用 LLM 根据你的音色描述自动生成适配的合成文本。

### 声音克隆

你可以使用 `mimo-v2.5-tts-voiceclone` 模型进行声音克隆，通过 `voice` 参数提供音频样本生成与原音相似的语音。例如：

```bash theme={null}
curl https://geekai.co/api/v1/audio/speech \
  -H "Authorization: Bearer $GEEKAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mimo-v2.5-tts-voiceclone",
    "input": "Hello, this is a voice cloning example.",
    "voice": "音频文件URL或base64编码的音频数据"
  }' \
  --output speech.mp3
```

> [!NOTE]
>
> 传入的音色音频文件大小上限为 10 MB，支持的音频格式为 `mp3` 和 `wav`。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.