update:增加自定义的TTS接口服务的使用说明

This commit is contained in:
hrz
2025-05-22 11:26:00 +08:00
parent 1ad8aeeaa7
commit 2ecce6485c
2 changed files with 7 additions and 7 deletions
@@ -7,12 +7,12 @@ where `id` = 'SYSTEM_TTS_custom';
UPDATE `ai_model_config` SET
`doc_link` = NULL,
`remark` = '自定义TTS配置说明:
1. TTS接口服务
2. 使GET/POST方式请求
3.
4. tmp/
1. TTS接口服务TTS服务
2. KokoroTTS为例
3. cpu运行docker run -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-cpu:latest
4. gpu运行docker run --gpus all -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-gpu:latest
1. params中配置请求参数,使JSON格式
{"text": "{prompt_text}", "voice": "{voice}", "speed": "{speed}"}
KokoroTTS{ "input": "{prompt_text}", "speed": 1, "voice": "zm_yunxi", "stream": true, "download_format": "mp3", "response_format": "mp3", "return_download_link": true }
2. headers中配置请求头
3. ' WHERE `id` = 'TTS_CustomTTS';
@@ -157,9 +157,9 @@ databaseChangeLog:
encoding: utf8
path: classpath:db/changelog/202505201744.sql
- changeSet:
id: 202505151450
id: 202505151451
author: hsoftxl
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202505151450.sql
path: classpath:db/changelog/202505151451.sql