Skip to content

Commit 53ac284

Browse files
authored
Added Minimax TTS document support (#7)
* Update tts.md * Update tts.md * Update tts.md fix
1 parent ae96523 commit 53ac284

File tree

2 files changed

+46
-0
lines changed
  • docs/user-guide/backend
  • i18n/en/docusaurus-plugin-content-docs/current/user-guide/backend

2 files changed

+46
-0
lines changed

docs/user-guide/backend/tts.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,26 @@ siliconflow_tts:
273273
stream: true # 是否启用流式传输
274274
speed: 1 # 语速(0.5~2.0,1为默认)
275275
gain: 0 # 音量增益
276+
```
277+
278+
## MiniMax TTS(在线、需要API密钥)
279+
MiniMax提供的在线的TTS服务,`speech-02-turbo`等模型具有强大的TTS性能,并且可以自由定制音色。
280+
281+
### 配置步骤
282+
1. **获取`group_id`和`api_key`**
283+
您可以通过Minimax官网注册来获取`group_id`和`api_key`,[官方教程文档](https://platform.minimaxi.com/document/Fast)
284+
285+
2. **填写`conf.yaml`配置**
286+
在配置文件的 `minimax_tts` 段落中,按以下格式填写参数(示例):
287+
```yaml
288+
minimax_tts:
289+
group_id: '' # 你在 Minimax官网获取到 的 group_id
290+
api_key: '' # 你在 Minimax官网获取到 的 api_key
291+
# 支持的模型: 'speech-02-hd', 'speech-02-turbo'(推荐使用 'speech-02-turbo')
292+
model: 'speech-02-turbo' # minimax 模型名称
293+
voice_id: 'female-shaonv' # minimax 语音 id,默认 'female-shaonv'
294+
# 自定义发音字典,默认为空。
295+
# 示例: '{"tone": ["测试/(ce4)(shi4)", "危险/dangerous"]}'
296+
pronunciation_dict: ''
297+
```
298+
其中`voice_id`是可以配置的声音音色,具体的支持声音列表可以查看[官方文档中查询可用声音ID的部分](https://platform.minimaxi.com/document/get_voice)。`pronunciation_dict`是可以支持的自定义发声规则,比如您可以把`牛肉`发音为`neuro`,可以用类似示例的方法来定义这个发声规则。

i18n/en/docusaurus-plugin-content-docs/current/user-guide/backend/tts.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,26 @@ siliconflow_tts:
281281
stream: true # Enable streaming mode
282282
speed: 1 # Speaking speed (range: 0.5–2.0; 1 = default)
283283
gain: 0 # Volume gain (range: -10–10; 0 = default)
284+
```
285+
286+
## MiniMax TTS (Online, API Key Required)
287+
MiniMax provides an online TTS service where models like `speech-02-turbo` offer powerful TTS capabilities with customizable voice options.
288+
289+
### Configuration Steps
290+
1. **Obtain `group_id` and `api_key`**
291+
You can register on the Minimax official website to get your `group_id` and `api_key`, [Official Documentation](https://platform.minimaxi.com/document/Fast)
292+
293+
2. **Fill in the `conf.yaml` configuration**
294+
In the `minimax_tts` section of the configuration file, enter parameters in the following format (example):
295+
```yaml
296+
minimax_tts:
297+
group_id: '' # Your minimax group_id
298+
api_key: '' # Your minimax api_key
299+
# Supported models: 'speech-02-hd', 'speech-02-turbo' (recommended: 'speech-02-turbo')
300+
model: 'speech-02-turbo' # minimax model name
301+
voice_id: 'female-shaonv' # minimax voice id, default is 'female-shaonv'
302+
# Custom pronunciation dictionary, default empty.
303+
# Example: '{"tone": ["测试/(ce4)(shi4)", "危险/dangerous"]}'
304+
pronunciation_dict: ''
305+
```
306+
The `voice_id` parameter can be configured to different voice tones. You can check the [voice ID query section in the official documentation](https://platform.minimaxi.com/document/get_voice) for a complete list of supported voices. The `pronunciation_dict` supports custom pronunciation rules - for example, you can define rules to pronounce "牛肉" as "neuro" using the format shown in the example.

0 commit comments

Comments
 (0)