In continuation of the speechd lets your computer speak dtt, I've noticed that many others want to talk to their computers. The short way:
- follow the speechd DT&T (optional)
- configure microphone
- emerge cvoicecontrol
- microphone_config
- model_editor
- write custom scripts executed on command
Step 1:
After making sure you have festival working (speechd dtt), it's time to set up your microphone. If you already have your microphone working in linux, skip down to step 2. If you don't, I suggest gnome-alsamixer for configuring it correctly.
Code: Select all
emerge gnome-alsamixer- The "Mic" section is unmuted and the "Rec." button under the volume slider is selected.
- The "Capture" section is turned up and "Rec." is selected.
- Some users may find that the microphone works better when "Mic Boost (+20dB)" is checked.
The microphone should now be working. You can test it by talking into your microphone and you should hear your voice coming out of the speakers. If you don't get your microhpone working here, you can go ahead and install cvoicecontrol, but will be unable to run its configuration tools.
Step 2:
Now to install cvoicecontrol. This will be the voice recognition software that will call commands based on what you say.
Code: Select all
emerge cvoicecontrolNow to run the cvoicecontrol setup, which will configure cvoicecontrol to your computer. WARNING: You MUST "killall artsd" or close any programs that are using your sound device, or these configuration programs will not work.
Code: Select all
microphone_configStep 4:
Now that your microphone and cvoicecontrol are working together, it's time to set up the commands you want cvoicecontrol to run whenever you tell it to!
Code: Select all
model_editorStep 5:
It's time to run cvoicecontrol for the first time! Make sure nothing is using your sound card, and run:
Code: Select all
cvoicecontrol /path/to/savedmodelStep 6:
Now we'll get into some fun stuff. If you installed the optional festival text-to-speech program, you can make some custom scripts for your computer. I suggest making a directory somewhere in your home directory to store these scripts. Make sure they are executable (chmod +x)! For compatibility's sake, I will use the pipe method of sending text to festival, though you can change this accordingly.
- You say, "What time is it?" The following script is called:
Code: Select all
#!/bin/bash # Speak a few lines (echo "Today is"; date +%A; echo "and the current time is"; date +%I:%M\ %P) | festival --tts - Be creative and make your own scripts. Maybe things like, "What is today's fortune?" running "fortune -s | festival --tts".
Here are some words of warning for all males reading this: If you have a female voice installed for festival, I suggest you remove cvoicecontrol now. After a few weeks, you'll realize how terribly lonely you really are. Take it from a geek who has been there. Nothing beats the real thing- get a real woman! (I'm being facetious)
Edit:
- fixed fortune call (20030928)
- fixed wording and format (20030929)
- changed title to reflect contents better (20030929)
- removed 2.6 kernel suggestion (20040221)






