适用于 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 = "4a632551-65d5-427e-b617-b2696c34587d"
model = "reecho-neural-voice-001"
也就是晓蕾 https://dash.reecho.ai/voice/4a632551-65d5-427e-b617-b2696c34587d
📝 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_"
Metadata
Release files for llmbot_plugin_reecho_voice 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llmbot_plugin_reecho_voice-0.0.4.tar.gz | 5.6 kB | Without provenance | Details for llmbot_plugin_reecho_voice-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llmbot_plugin_reecho_voice-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for llmbot_plugin_reecho_voice-0.0.4-py3-none-any.whl |
Total release size: 12.9 kB
Release files / llmbot_plugin_reecho_voice-0.0.4.tar.gz
| Download URL | llmbot_plugin_reecho_voice-0.0.4.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5668095d9f3412ca12f043e2a7917dc278b1e9149343d03c07b9f028614f20e
|
|
BLAKE2b-256 checksum How to use checksums |
14b63f9bb02d4d595cfb81525509de977d506cc423381af586d4b4ff8878c590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1016-azure
|
Release files / llmbot_plugin_reecho_voice-0.0.4-py3-none-any.whl
| Download URL | llmbot_plugin_reecho_voice-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1f7052a7fd174d762f7d16a07207efb3efd9b8e1196e0a23fb999c0efdd817e
|
|
BLAKE2b-256 checksum How to use checksums |
fe9ed981f89923fa6c883bd59277ca00ae470d353a9e9c17f70024596010ffbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1016-azure
|
Security for llmbot_plugin_reecho_voice 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.