# speechbot
A local, interactive, speech-based chatbot with Rasa and Mozilla Deepspeech/TTS
This was heavily inspired by the excellent example from Rasa [here](https://blog.rasa.com/how-to-build-a-voice-assistant-with-open-source-rasa-and-mozilla-tools/), the TTS colab [here](https://colab.research.google.com/drive/1tKHSI20kRlOL0PSA8mCVJQIrgRIswg0F?usp=sharing#scrollTo=ofPCvPyjZEcT) and the deepspeech docs [here](https://deepspeech.readthedocs.io/en/v0.9.3/?badge=latest)
# Getting started
To set up speechbot:
```
pip install requirments.txt
sh setup_stt.sh
sh setup_tts.sh
```
Once setup is complete, the example scripts should work. To run the rasa example you will need to start one of the rasa bots, which can be done by entering the rasa_[bot] directory and calling `$rasa run`. I recommend starting with the rasa_example, as rasa_greeter is still a work in progress.
# Add your own bot
To add a new bot, you just have to copy the custom_channel.py into your bot's addons directory, and copy the following into the credentials.yml:
```
addons.custom_channel.MyIO:
username: "user_name"
another_parameter: "some value"
```
# Contributing
Todo:
- [ ] Debugging threading issues
- [ ] Simplifying use of TTS library (is there a pip package?)
- [ ] Setting up alternate voice models
没有合适的资源?快使用搜索试试~ 我知道了~
speechbot:具有Rasa和Mozilla DeepspeechTTS的本地,基于语音的交互式聊天机器人
共36个文件
yml:16个
py:13个
sh:2个
5星 · 超过95%的资源 需积分: 10 8 下载量 146 浏览量
2021-03-31
11:23:51
上传
评论
收藏 33KB ZIP 举报
温馨提示
语音机器人 具有Rasa和Mozilla Deepspeech / TTS的本地,基于语音的交互式聊天机器人 这是很大程度上受到很好的例子,从莎灵感的TTS colab 和deepspeech文档 入门 要设置语音机器人,请执行以下操作: pip install requirments.txt sh setup_stt.sh sh setup_tts.sh 设置完成后,示例脚本应该可以使用。 要运行rasa示例,您将需要启动一个rasa机器人,这可以通过输入rasa_ [bot]目录并调用$rasa run 。 我建议从rasa_example开始,因为rasa_greeter仍在进行中。 添加自己的机器人 要添加新的机器人,只需将custom_channel.py复制到您的机器人的addons目录中,然后将以下内容复制到certificate.yml中: addons.custom_
资源详情
资源评论
资源推荐
收起资源包目录
speechbot-main.zip (36个子文件)
speechbot-main
.gitignore 2KB
rasa_example.py 710B
setup_stt.sh 219B
requirements.txt 214B
rasa_greeter
data
nlu.yml 2KB
rules.yml 308B
stories.yml 1KB
endpoints.yml 1KB
tests
test_stories.yml 934B
domain.yml 2KB
actions
actions.py 4KB
__init__.py 0B
config.yml 973B
addons
custom_channel.py 2KB
__init__.py 0B
credentials.yml 1KB
rasa_example
data
nlu.yml 1KB
rules.yml 244B
stories.yml 542B
endpoints.yml 1KB
tests
test_stories.yml 2KB
domain.yml 565B
actions
actions.py 742B
__init__.py 0B
config.yml 1KB
addons
custom_channel.py 2KB
__init__.py 0B
credentials.yml 1KB
LICENSE 1KB
README.md 1KB
respeaker_example.py 991B
tts_example.py 3KB
speechbot_example.py 1KB
scale_stats.npy 10KB
setup_tts.sh 531B
stt_example.py 3KB
共 36 条
- 1
weixin_42097189
- 粉丝: 38
- 资源: 4567
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1