Trigger Google Assistant on Raspberry Pi using Remote - Internet of Things

Trigger Google Assistant on Raspberry Pi using Remote


Step 1
First step is to set up google assistant on Pi. You can follow any guide for that and the latest custom wake word guide also should be fine. Click here for that guide.

Step 2
After setting up google assistant, replace the pre-existing pushtotalk Python file using this. You can find the pushtotalk file in /home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/grpc directory.

Step 3
Download this bash script to easily run the pushtotalk Python script. Make it executable by running the following command in the terminal:

Step 4
Connect your IR sensor to Raspberry Pi. The attached connection diagram is for HS0038 IR sensor. Pin configuration may change from sensor to sensor, so make the suitable wiring changes.

Step 5
Download this IR Sensor Python script and run it. Point a remote at the IR sensor and press any desired button. Make a note of the value and change it in the code as indicated in the video.

Step 6
Download this bash script and make it executable just like how its done in step 2.

Now start the Google Assistant script first, and then the IR script, using the bash files.

Please note that when you start the IR script for first time, the google assistant may get automatically triggered and may go on a listening loop until a query is made. So, as soon as you start the IR script make a query to stop the recording loop.

  Downloand File

Douploads |  uplod

Downloand |  Downloand 

Trigger Google Assistant on Raspberry Pi using Remote Trigger Google Assistant on Raspberry Pi using Remote Reviewed by XXX on สิงหาคม 07, 2560 Rating: 5

ไม่มีความคิดเห็น