User manual
Ausgabe 27.12.2017 Copyright by Joy-IT 13
3
Talking-Pi
4. Custom Commands
To add your own voice commands, which the Talking-Pi recognizes as a separate command, it is necessary
to rst dene the command as an expected input.
This increases the detecon rate.
Open the le "googlecloudtalkingpi.py" with the following command:
Add the following recognizer. expect_phrase command to the exisng phrases:
Replace the placeholder with your own voice command.
Now that we have dened the expected speech input, it is now possible to dene the command from
actual recognion.
To do this, add the following content to the exisng denions as the le is opened.
sudo nano /home/pi/voice-recognizer-raspi/src/googlecloudtalkingpi.py
recognizer.expect_phrase('[Ihr eigenes Sprachkommando]')