• Tip Jar

Using Speech-dispatcher with Yasr

I was wondering if Yasr could use any other synth than emacspeak. Turns out, if you are using Ubuntu intrepid or later, or if you have the latest version of Yasr installed, it can. For those of you who don’t know, yasr is a terminal based screen reader.
Yasr can now use speech-dispatcher. This means, it can use Espeak, or any other synthesizer that speech-dispatcher supports. To get it, in Ubuntu, type:
sudo apt-get install yasr
Once it is installed, you will need to edit the /etc/yasr/yasr..conf file to get the speech-dispatcher support working. First, you need to be sure that speech-dispatcher is installed and working. To get it:
sudo apt-get install speech-dispatcher python-speechd
Once it is installed, type:
spd-conf
to get it set up. You can accept the defaults on all of the questions it asks except the port. For some reason, on my computer at least, it wants to set the port to 6561. It should be 6560, so be sure to type that into the prompt for the port if it says something else. When that has finished, launch it with:
speech-dispatcher
If you want, you can make it start automatically by going to System, Preferences, Sessions and adding speech-dispatcher to the start up programs.
name: speech-dispatcher
command: speech-dispatcher
Now, for the /etc/yasr/yasr.conf file. Open it with sudo, remove the # at the beginning of the speech-dispatcher lines, there are 2 of them. Then add the # in front of the emacspeak lines. Once again, there are 2 of them.
You can change speech rate, pitch, etc by editing the file:
~/.speech-dispatcher/conf/speechd.conf
Most of the lines are commented out, so remember to remove the # if you want your changes to be applied. To launch yasr, type yasr in terminal.

Bookmark the permalink.

Comments are closed

  • Tip Jar