From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 29 19:49:28 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5608C16A421 for ; Thu, 29 Sep 2005 19:49:28 +0000 (GMT) (envelope-from freebsd@luna.afraid.org) Received: from gw.luna.afraid.org (lls-c-13303.adsl.wanadoo.nl [81.69.81.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF99E43D70 for ; Thu, 29 Sep 2005 19:49:21 +0000 (GMT) (envelope-from freebsd@luna.afraid.org) Received: from [127.0.0.1] (localhost [127.0.0.1]) by gw.luna.afraid.org (Postfix) with ESMTP id 3496F22 for ; Thu, 29 Sep 2005 21:49:20 +0200 (CEST) Message-ID: <433C453F.7080709@luna.afraid.org> Date: Thu, 29 Sep 2005 21:49:19 +0200 From: Raaf User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050905 Thunderbird/1.0.6 Mnenhy/0.7.2.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <4337F580.C3FCE63C@fadesa.es> <432EF7AB.ED2AF314@fadesa.es> <43385AE4.6090007@luna.afraid.org> <433BB4AE.BDD6E180@fadesa.es> In-Reply-To: <433BB4AE.BDD6E180@fadesa.es> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: about text2wave (audio/festival) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 19:49:28 -0000 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.