forked from sandboxdream/AI-Vtuber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
XzaiCloud
committed
Mar 16, 2023
1 parent
b8f3849
commit d9369e1
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
# AI-Vtuber | ||
|
||
# AI Vtuber | ||
|
||
AI Vtuber是一个由ChatterBot驱动的虚拟主播,可以在Bilibili直播中与观众实时互动。它使用自然语言处理和文本转语音技术生成对观众问题的回答。 | ||
|
||
### 运行环境 | ||
- Python 3.6+ | ||
- Windows操作系统 | ||
|
||
### 安装依赖 | ||
在命令行中使用以下命令安装所需库: | ||
```bash | ||
pip install ChatterBot bilibili-api-python | ||
``` | ||
此外,还需要[下载并安装mpv](https://mpv.io/installation/)。在Windows操作系统上,也需要将 `mpv.exe` 添加到环境变量中。对于其他操作系统,请将其路径添加到系统 `PATH` 环境变量中。 | ||
|
||
### 配置 | ||
1. 打开 `main.py` 文件并修改 `database_uri` 变量的值以指定用于存储对话历史的SQLite数据库文件的路径。 | ||
|
||
### 使用 | ||
1. 在命令行中运行以下命令启动程序: | ||
```bash | ||
python main.py | ||
``` | ||
2. 输入要连接的B站直播间编号。 | ||
3. 按下`Enter`键开始监听弹幕流。 | ||
|
||
当有观众发送弹幕消息时,机器人将自动生成回复并将其转换为语音。声音文件将被保存并立即播放。 | ||
|
||
### 许可证 | ||
MIT许可证。详情请参阅LICENSE文件。 |