Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llmkira/llmbot_plugin_reecho_voice
调用 reecho 的语音 Api 进行中文语音回复,自然真实的中文语音,且可快速克隆
https://github.com/llmkira/llmbot_plugin_reecho_voice
function-calling llmkira-function-calling
Last synced: 6 days ago
JSON representation
调用 reecho 的语音 Api 进行中文语音回复,自然真实的中文语音,且可快速克隆
- Host: GitHub
- URL: https://github.com/llmkira/llmbot_plugin_reecho_voice
- Owner: LlmKira
- License: mit
- Created: 2023-11-14T15:17:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-18T15:24:18.000Z (12 months ago)
- Last Synced: 2024-07-24T21:56:06.266Z (4 months ago)
- Topics: function-calling, llmkira-function-calling
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
适用于 [OpenaiBot](https://github.com/LlmKira/Openaibot) 的函数插件,可以提供中文语音合成功能。
## 📦 Install
```shell
pip install llmbot_plugin_reecho_voice -U
```## 📄 Usage
`/env REECHO_MODEL=xxx;REECHO_KEY=xxx;REECHO_VOICE_ID=xxx`
模型 ID 可以在 [ReEcho](https://dash.reecho.ai/voices) 的控制台中找到。注意需要完整的模型
ID,例如 `9ede7186-f24b-4018-a907-c3927c5e596a`。### 公共 API Key
可以额外配置 `PLUGIN_REECHO_KEY` 来指定默认公共 API Key。
默认参数如下
```python
voice_id = "4a632551-65d5-427e-b617-b2696c34587d"
model = "reecho-neural-voice-001"
```也就是晓蕾 https://dash.reecho.ai/voice/4a632551-65d5-427e-b617-b2696c34587d
## 📝 Hook
```python
class ReechoSpeak(BaseTool):
"""
语音工具
"""
silent: bool = False
function: Function = speak_chinese
keywords: list = ["语音", "说", "读", "念", "回答", "骂", "唱", "朗读", "朗诵"]
require_auth: bool = False
repeatable: bool = False
env_required: list = ["KEY", "VOICE_ID", "MODEL"]
env_prefix: str = "REECHO_"
```