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

# TTS-1 HD

> TTS-1 HD | 文字转语音

文字转语音 · `tts-hd`

使用此完整 MixRoute 模型 ID 选择路由。

`POST /v1/audio/speech`

请在 [MixRoute 模型市场](https://console.mixroute.ai/models) 核对密钥分组的可用性。列入目录不代表渠道已开放。

> [!WARNING]
>
> 此请求格式要求当前 MixRoute 分组已启用该模型的计费配置。如返回 `model_price_error`，请联系 MixRoute 支持；修改提示词不能开通渠道。

## 快速示例

运行前请设置 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/audio/speech' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --output speech.mp3 \
  --data '{
  "model": "tts-hd",
  "input": "Hello.",
  "voice": "alloy",
  "response_format": "mp3"
}'
```

响应是音频而不是 JSON，示例把音频保存为 `speech.mp3`。

## 参数

| 字段 | 说明 |
| - | - |
| `model` | `tts-hd`. 使用上面列出的完整模型 ID。 |
| `input` | 输入文本。 |
| `voice` | 输出语音的音色。 |

## API 参考

* [语音合成](https://mixroute.ai/docs/zh-Hans/api-reference/endpoint/audio-speech.md)


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