about text2wave (audio/festival)
freebsd at luna.afraid.org
Thu Sep 29 12:49:28 PDT 2005
José M. Fandiño wrote:
> Raaf wrote:
>>>thanks you Randy, but I need convert text in audio files.
>>Hi, you can use this to output to an audio file:
>>(Parameter.set 'Audio_Method 'Audio_Command)
>>(Parameter.set 'Audio_Command "sox -t raw -r $SR -sw -c 1 $FILE foo.wav")
> are you sure this works?
> with a simple line it seems work, but for text files with multiple
> lines festival constantly reopens the same file for writting, so
> I finish with the last lines of the text converted to an audio file
> and not the whole text.
> just try this:
> festival --tts /usr/share/doc/handbook/book.txt
Yes you are right, it doesn't work with large texts. This should
(Parameter.set 'Audio_Command "cat $FILE >> foo.raw")
Afterwards you can process the raw audio file with sox.
You can also try audio/flite port which can output to wave file
More information about the freebsd-multimedia