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 dene the command as an expected input.
This increases the detecon rate.
Open the le "googlecloudtalkingpi.py" with the following command:
Add the following recognizer. expect_phrase command to the exisng phrases:
Replace the placeholder with your own voice command.
Now that we have dened the expected speech input, it is now possible to dene the command from
actual recognion.
To do this, add the following content to the exisng denions as the le is opened.
sudo nano /home/pi/voice-recognizer-raspi/src/googlecloudtalkingpi.py
recognizer.expect_phrase('[Ihr eigenes Sprachkommando]')