【教程第二弹】让你的deepin也吃上开源免费的语音助手
Tofloor
poster avatar
心平气和
deepin
2020-05-31 02:44
Author
本帖最后由 xiaobaizhang 于 2020-5-30 19:16 编辑

前言

很多人抱怨没有语音助手,现在他来了,几个腾讯大佬开源了悟空语音助手,so 我们可以在deepin 上体验一波语音助手哦,善意提醒,这个需要折腾,如果懒得折腾,出门左拐——---》UOS。

安装
step one:
安装 pip 包管理工具
  1. sudo apt install python3-pip
Copy the Code

ps: 如果你的pip 下载 极慢,这里我推荐你换源,具体参考这个(戳我

step two(重头戏):
我们为了简单 ,这里笔者给你推荐一键安装脚本,如果你不嫌麻烦,你可以去github 下载,自己编译安装哦(戳我
脚本命令如下:
  1. sudo wget http://wukong-install.oss-cn-hangzhou.aliyuncs.com/install.sh && sudo chmod 777 install.sh &&./install.sh
Copy the Code
ps:
  • 安装目录位于 ~/wukong-robot/
  • 默认使用阿里云的源进行安装,如有问题请切换到github源进行安装
  • 运行后如果出现No module named 'xxx’ 可能是有pip3的网络原因引起的,请切换到 ~/wukong-robot/ 目录后执行以下命令:
            sudo pip3 install -r requirements.txt

Step three:

进入 wukong-root 目录下,执行
  1. python3 wukong.py
Copy the Code
出现如下图:说明运行成功:


这时你可以 对你的屏幕大喊悟空 就能唤醒 如下图



PS ;
自带的语音模型 是作者的声音,不能保证每个人都能唤醒,你首先要去训练自己的语音模型
比较建议到 [color=var(--theme-color,#42b983)]snowboy 官网 上训练自己的模型,然后把模型放在 ~/.wukong 中,并修改 ~/.wukong/config.yml 里的几个 hotword 指向的文件名(如果文件名没改,则不用变)。一共有三个唤醒词需要修改:
  • hotword:全局唤醒词。默认为 “孙悟空” (wukong.pmdl)
  • /do_not_bother/on_hotword:让 wukong-robot 进入勿扰模式的唤醒词。默认为 “悟空别吵” (悟空别吵.pmdl)
  • /do_not_bother/off_hotword:让 wukong-robot 结束勿扰模式的唤醒词。默认为 “悟空醒醒” (悟空醒醒.pmdl)



如果还无法唤醒,请检查 自己的麦克是否工作正常

扩展:

如果你会python 语言,你可以自定义自己的技能,比如帮你打开记事本,帮你打开你家的智慧电器
,作者提供了三个demo 你们可以参考一下

https://wukong.hahack.com/#/writing-skill

更多的详细信息,请去官网,
悟空roboot(点我)



Reply Favorite View the author
All Replies
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-05-31 06:07
#1
问题:GUI怎么办?
Reply View the author
Comments
houyawei
2020-06-01 01:59
进服务端可以看到一些东西2333
avatar
心平气和
deepin
2020-05-31 06:30
#2
https://bbs.deepin.org/post/195299
问题:GUI怎么办?

自己写一个(手动狗头)
Reply View the author
avatar
linux000
deepin
2020-05-31 20:03
#3
顶顶顶      
Reply View the author
avatar
houyawei
deepin
2020-06-01 01:47
#4
本帖最后由 houyawei 于 2020-5-31 17:52 编辑

悟空我之前装过https://bbs.deepin.org/post/193074
后来还添加了homeassistant,用悟空控制米家台灯,空调https://bbs.deepin.org/post/194386
后台服务端界面换成傻妞了,之后电脑有一次崩了,重装完就没搞了


Reply View the author
avatar
心平气和
deepin
2020-06-01 04:09
#5
houyawei 发表于 2020-5-31 17:47
悟空我之前装过https://bbs.deepin.org/post/193074#
后来还添加了homeassi ...

还是得常备份
Reply View the author
avatar
qq1156029468
deepin
2020-07-10 03:04
#6
厉害了,!!!
Reply View the author
avatar
jianguo922
deepin
2020-07-10 04:51
#7
厉害了
Reply View the author
avatar
xiao_hao
deepin
2020-07-10 14:16
#8
The user is banned, and the content is hidden.
avatar
chaodn
deepin
2020-07-10 16:07
#9
我的电脑没有麦克风,无所谓。
Reply View the author
avatar
linux000
deepin
2020-07-10 17:38
#10
https://bbs.deepin.org/post/195299
怎么进入:进入 wukong-root 目录下 ???

cd ~/wukong-robot/
默认是这个,这个是安装路径,你安装在哪就进入哪。
Reply View the author
avatar
xiao_hao
deepin
2020-07-10 22:07
#11
The user is banned, and the content is hidden.