Skip to content

Commit

Permalink
feat(init):project
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Nov 14, 2023
1 parent f36d19d commit 98f9a79
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,49 @@
<a href="https://llmkira.github.io/Docs/plugin/basic">
<img src="https://raw.githubusercontent.com/LlmKira/.github/main/llmbot/func_call_big.png">
</a>
<h2>llmbot-plugin-bilisearch</h2>
<h2>llmbot_plugin_reecho_voice</h2>
</div>

适用于 [OpenaiBot](https://github.com/LlmKira/Openaibot) 的函数插件,可以通过自然语言调用哔哩哔哩搜索功能
适用于 [OpenaiBot](https://github.com/LlmKira/Openaibot) 的函数插件,可以提供中文语音合成功能

## 📦 Install

```shell
pip install llmbot_plugin_bilisearch -U
pip install llmbot_plugin_reecho_voice -U
```

https://github.com/LlmKira/llmbot_plugin_bilisearch/blob/main/llmbot_plugin_bilisearch/__init__.py#L2-L8
## 📄 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 = "e91ee8b1-11ac-4e5e-b381-5978e184f055"
model = "reecho-neural-voice-001"
```

也就是 https://dash.reecho.ai/voice/e91ee8b1-11ac-4e5e-b381-5978e184f055

## 📝 Hook

https://github.com/LlmKira/llmbot_plugin_bilisearch/blob/cbe0e4b20320b8789a5dad44eefef3c0c8233484/llmbot_plugin_bilisearch/__init__.py#L63-L71
```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_"
```

0 comments on commit 98f9a79

Please sign in to comment.