Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2005 21:49:19 +0200
From:      Raaf <freebsd@luna.afraid.org>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: about text2wave (audio/festival)
Message-ID:  <433C453F.7080709@luna.afraid.org>
In-Reply-To: <433BB4AE.BDD6E180@fadesa.es>
References:  <4337F580.C3FCE63C@fadesa.es> <432EF7AB.ED2AF314@fadesa.es> <43385AE4.6090007@luna.afraid.org> <433BB4AE.BDD6E180@fadesa.es>

next in thread | previous in thread | raw e-mail | index | archive | help
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
work though:

(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
directly.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?433C453F.7080709>