> ## 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.

# DeepSeek-TTS

把文字转换为自然语音。没有语种参数，语种根据文本自动识别。

### 模型参数

* 模型ID：`deepseek-tts`
* 模型价格：[DeepSeek-TTS](https://geekai.co/models/deepseek-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`
> * `instructions`
>
> 附：[DeepSeek-TTS 官方 API 文档](https://api-docs.deepseek.com/zh-cn/guides/tts/)

### 模型价格

DeepSeek-TTS 语音合成模型按照输入的文本字符数计费：

| 模型 | 价格（元/万字符） |
| - | - |
| deepseek-tts | 3 |

使用极客智坊提供的[低价代理渠道](https://docs.geekai.co/cn/docs/model_price.md)调用时，不同参数对应价格按照价格表x对应的折扣值即可：以高可用通道为例，折扣值是 `0.5`，那么通过 `deepseek-tts` 模型合成一段1万字符文本的价格是 `0.5 x 3 = 1.5` 元。其他参数依次类推。

### 语音合成

你可以使用 `deepseek-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": "deepseek-tts",
    "input": "你好，我是 DeepSeek"
  }' \
  --output speech.mp3
```

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

* `mp3`
* `wav`

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

* `stella`（默认音色）：海星，女声
* `tide`：暗潮，男声


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