PyAssistant
Make your raspberry pi a smart speaker
ABILLITIES
- Acoustic Speech Recognition
- Cognitive Service Speech Api with sox
- Hotword Detection
- Snowboy
- button trigger
- Speech Language Understanding
- Cognitive Service LUIS Api
- Text To Speech
- Open Jtalk
- IR Control
INSTALL
clone and install package
git clone https://github.com/garicchi/pyassistant.git
cd pyassistant
./setup.sh
copy sample python script
cp samples/app.py .
get cognitive service keys
access and register here https://azure.microsoft.com/ja-jp/try/cognitive-services/
get following apis
- Bing Speech API Key
- Bing Video Search API Key
setup luis
download sample
wget https://raw.githubusercontent.com/garicchi/pyassistant/master/sample/luis-pyassistant-sample.json
access and register here https://www.luis.ai/
click import new app
and upload above json file
move setting
and get app id
press train
and press Publish to Production slot
get app key
paste api keys
edit and paste above api keys
nano ~/.pyassistant/setting.json
RUN ASSISTANT IN CONSOLE
python3 app.py assistant run
you can say "ハローラズパイ" and can say "今日の天気は?"
IR contorol
buy some circuit elements
create following circuit
register ir
python3 app.py ir register --name 'tv_on' --pin 20
test send
python3 app.py ir send --name 'tv_on'
send from code
agent.ir.send_channel('tv_on')
show help for ir
python3 app.py ir --help