APC Australia

Voice command tweaks

-

Once your Voicecomma­nd software is up and running, you can edit the configurat­ion file to add new commands or modify existing ones. Run the command sudo nano /root/.commands.conf to view the configurat­ion file. As you’ll see, most of the lines begin with a # symbol, which means the Pi ignores them. Delete the symbol to activate the line. If, for instance, you want to change the keyword that activates the voice recognitio­n software from “Pi” to “Jessie”, you would change the line from

#!keyword==pi to -!keyword=jessie . If you use the Firefox web browser instead of Midori on your Raspberry Pi, you may also want to change ~Internet==midori & to ~Internet==firefoxesr & . The software can run any command. For instance, to open the desktop by saying the word “desktop”, add the following line to the end of the file: desktop==home/pi/Desktop . You can also launch programs as you would from the terminal — for example, notepad==leafpad .

As you’re talking to your Raspberry Pi, you may want it to respond to you with speech. Do this first by opening Terminal and installing the speech synthesis software Festival with the following command: sudo apt-get install festival The basic format to get the Raspberry Pi to talk is echo “Your message here” | festival –tts . You can also have the Pi read out system informatio­n. For example, if you wanted the Pi to tell you the date and time, you would need to add the following line to the config file: time==echo “The time is” | festival --tts && date | festival –tts

 ??  ??

Newspapers in English

Newspapers from Australia