Giter Site home page Giter Site logo

soul-an / dueros Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jim2meng/dueros

0.0 1.0 0.0 16.3 MB

PSound card baidu dueros for linux (Raspberry Pi)

License: GNU General Public License v3.0

Makefile 0.91% C 88.40% C++ 8.16% Objective-C 1.66% Shell 0.37% Python 0.49%

dueros's Introduction

dueros

baidu lightdueros for linux and Raspberry Pi

#DCS3.0 linux 使用说明(下面所有说明在 linux,树莓派 3B/3B+中验证测试通过)

—————————————————————————————————————————————————

1. 编译环境搭建:

gstreamer1.0 :

sudo apt-get update
sudo apt-get install gstreamer1.0*

安装成功下面三行不需要执行,安装失败,请按照下面分三步分开安装
sudo apt-get install libgstreamer1.0*
sudo apt-get install gstreamer1.0-omx-generic*
sudo apt-get install gstreamer1.0-plugins*
卸载下面的,不然gstreamer在树莓派上可能运行不成功
sudo apt-get remove gstreamer1.0-omx-rpi*

snowboy 使用的第三方库

sudo apt-get install libatlas-base-dev

alsa :

sudo apt-get install alsa-base alsa-utils libasound2-dev

2. 下载源代码编译:

pi@raspberrypi:~ $ cd ~

如果没有下载请先执行git clone把源代码先download下来。

pi@raspberrypi:~ $ git clone https://github.com/jim2meng/dueros.git

如果已经下载了,进入dueros目录,更新一下代码,确保本地代码是最新的

pi@raspberrypi:~ $ cd dueros

pi@raspberrypi:~/dueros $ git pull

pi@raspberrypi:~/dueros $ make

如果编译成功,会生成执行文件duerospi.

3. 运行方式:

运行编译生成的可执行文件duerospi

参数 -p <路径>/profile

参数 -w '[路径]/唤醒词模型文件'

如果不指定唤醒词模型,默认为“小度小度”.

运行之前我们先要进入dueros目录,可执行文件在这个目录下面。

例如:

sudo ./duerospi -p ./profile  (通过小度小度唤醒) 

sudo ./duerospi -p ./profile -w ./resources/models/snowboy.umdl  (通过snowboy唤醒) 

注意:项目自带的profile都是一样的,profile是设备ID,如果保证以后都可以正常使用Dueros,请使用自己设备的profile,或者向我们申请一个profile.

否则如果多个人同时使用一个profile,只有最后一个人使用正常,之前的都会与Dueros云服务器断开。

4. 按键说明:

运行成功后,确保键盘不在大写锁定状态,所有按键都不需要长按。

  • q : 退出
  • w : 增加音量
  • s : 减小音量
  • a : 上一曲
  • d : 下一曲
  • e : 静音
  • z : 暂停/开始 (播放)
  • x : 开始录音
  • c : 切换语音交互模式 (0:普通模式,1:中翻英,2:英翻中)

5. 树莓派运行环境

树莓派默认没有麦克风,要接麦克风才可以正常使用,下面是树莓派专用的麦克风阵列淘宝购买链接为: https://item.taobao.com/item.htm?spm=a230r.1.14.7.13d7138aIGBFSI&id=586904707401&ns=1&abbucket=2#detail

如果上面购买链接不存在 ,请在店铺主页中查找 https://diyiot.taobao.com/

dueros's People

Contributors

jim2meng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.