Generate Voice From reecho.ai Api In OpenAiBot.
Project description
适用于 OpenaiBot 的函数插件,可以提供中文语音合成功能。
📦 Install
pip install llmbot_plugin_reecho_voice -U
📄 Usage
/env REECHO_MODEL=xxx;REECHO_KEY=xxx;REECHO_VOICE_ID=xxx
模型 ID 可以在 ReEcho 的控制台中找到。注意需要完整的模型
ID,例如 9ede7186-f24b-4018-a907-c3927c5e596a
。
公共 API Key
可以额外配置 PLUGIN_REECHO_KEY
来指定默认公共 API Key。
默认参数如下
voice_id = "e91ee8b1-11ac-4e5e-b381-5978e184f055"
model = "reecho-neural-voice-001"
也就是 https://dash.reecho.ai/voice/e91ee8b1-11ac-4e5e-b381-5978e184f055
📝 Hook
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_"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for llmbot_plugin_reecho_voice-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828e9f587c07fe68a8a0d34b2397631c3b7b03c2c199c3b99b1e60125b5d7e68 |
|
MD5 | 38abe388679f0fed7911d50ca504f0a9 |
|
BLAKE2b-256 | 99ae22bf3b94db284e07a62e48b99da46189959fd40ea47d4025ba8afcae8658 |
Close
Hashes for llmbot_plugin_reecho_voice-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd5c442475052041a3c32086baeaf132109a9dd9fe448b56249d8d13729fe5c0 |
|
MD5 | 37f5ddbc1a5546a8b1b2afcc44a02318 |
|
BLAKE2b-256 | e277d9d98469545bb03e33a42cbb6564fef708d6ad7f95ee55f8470426f39994 |