Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 125365

Summary: app-accessibility/speechd-0.56-r2.ebuild (Update) - Festival commands support
Product: Gentoo Linux Reporter: Francesco Monica <fmonica>
Component: New packagesAssignee: Gentoo Accessibility Team <accessibility>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: app-accessibility/speechd-0.56-r3.ebuild

Description Francesco Monica 2006-03-07 07:58:03 UTC

Please find attached speechd-0.56-r3.ebuild. This ebuild adds a patch applied to the perl script /usr/bin/speechd that allows to pass commands to the festival server through the /dev/speech fifo.

I give you an example: 

With the previous version it is impossible to change the voice used by festival server because any string submitted to /dev/speech is translated into a festival command like '(SayText "...")'. So, if you write:
$ echo "(voice_lp_diphone)" > /dev/speech
The command sent to festival become something like:
  (SayText "(voice_lp_diphone)")

The patched version of the script, before generating the festival command, tests if the input string has a command-like syntax (text between parenthesis, only spaces on the left) and, in that case, send it as-is to the festival server. After that you can type:
$ echo "(voice_lp_diphone)" > /dev/speech
$ echo "Ciao" > /dev/speech
And hear what is expected (italian voice in this case)...

Let me know if this patch is useful and correct.

Comment 1 Francesco Monica 2006-03-07 08:00:14 UTC
Created attachment 81604 [details]

The upgraded ebuild basically adds only this line to the src_unpack() function:
+       epatch ${FILESDIR}/${P}-festival-command.patch
Comment 2 Francesco Monica 2006-03-07 08:03:20 UTC
Created attachment 81605 [details, diff]

This is the patch file to the perl script /usr/bin/speechd

Actually, I'm not a perl programmer, hope it is good enough...
Comment 3 William Hubbs gentoo-dev 2011-08-29 19:19:09 UTC
This package has been removed from portage; see bug #360067 for