This is a patch for the media-sound/festival/festival-1.4.3 ebuild. Added a new USE variable "asterisk" to include the asterisk patch in Festival. The Asterisk patch adds a new command named tts_textasterisk that is required by Asterisk to communicate with the Festival server. There is no requirement to have Asterisk install to use this patch or the tts_textasterisk command.
Created attachment 18830 [details, diff] Patch for ebuild This adds a new use for "asterisk".
Created attachment 18831 [details, diff] Patch to add tts_textasterisk to Festival This should be put under files/
A little more background to why I did this: Asterisk is an Open Source PBX System. Festival of course being a Text->Speech engine. Asterisk can be configured to communicate with the Festival Server to bring back text as Speech over the phone, however Asterisk requires the waves to be 8000hz. This patch adds a new macro to generate the wave properly rescaled and resampled at 8000hz. This patch is non-invasive and will not affect the rest of Festival in any other way. I've also made only two adjustments to the festival patch that is bundled with Asterisk. First I changed the paths so it will properly patch with Portage, and second I've fixed a bug where the string wasn't properly terminated. Someone forget a \ :) Feel free to email me if you have any questions. Thanks.
In portage now... didn't revbump since most people would waste compile-time on this by not settingthe asterisk USE flag.