This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5746 - Voice script for Linux
|
DetailsThis is the first version of a script to create .talk clips, very loosely based on
The script contains of two parts: gentalkclips.sh and voicecommon.sh. voicecommon.sh contains functions that are used by both the talk clip script, and by the voice file script. It currently supports using either Flite or Festival for TTS and either Lame, oggenc or speexenc for encoding (only Lame is supported by Rockbox though). It should be very easy to add more encoders or TTS engines if necessary in the future. gentalkclips.sh mainly contains a recursive dir walker, that uses the functions from voicecommon to generate talk clips for all files. Once I figure out how to build the voicefile, I'll add a script to create .voice files to this task. |
This task depends upon
Closed by Jonas Häggqvist (rasher)
Friday, 03 November 2006, 22:49 GMT+2
Reason for closing: Accepted
Additional comments about closing: Added to CVS
Friday, 03 November 2006, 22:49 GMT+2
Reason for closing: Accepted
Additional comments about closing: Added to CVS
gentalkclips.sh - changed a few comments
genvoice.sh - switched a few uses of "sed" to simply use "cut"
voicecommon.sh - added support for using wavtrim, changed lame and vorbis encoding options
And finally, a voicefile built using these scripts with festival and lame. At 3mb, It's too large for archos iiuc, but works perfectly fine on SWCODEC. I'm not quite sure how to trim the size more.
- Remove bashisms from the scripts
- Patch tools/configure to allow building voice files easily
- Add wavtrim.c and voicefont.c to tools/ and tools/Makefile
With this patch, it's possible to build a voicefile by running tools/configure, answering the questions and running make.
The result still isn't completely great, partly due to the quality of Free TTS engines, but probably mostly due to my inability to properly configure Festival and/or Lame. This should be mostly fixable.
Still allows building using any combination of Festival/Flite and Lame/Oggenc/Speexenc, though Festival/Lame is recommended.
I'm new to Rockbox. I just went through the trouble of accomplishing a
similar task, didn't know this was here... There's too many patches in
here. Anyway I have yet to try your script, but wanted to make a
suggestion: I've been using espeak (http://espeak.sourceforge.net), which
is also free, and while it's not perfect I believe I prefer it to
festival/flite. You might want to try it out...
I'm working together with the author to improve eSpeak and I might port it to rockbox some day.
- Use the regular path of configure, resulting in a regular Makefile (with a "voice" target)
- Add the language prompt back into the configure script, but only call it if building a voicefile