Re: [linux-audio-user] Piping multiple text documents into Audio

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] Piping multiple text documents into Audio
From: Jeremiah Benham (jjbenham_AT_chicagoguitar.com)
Date: Mon Dec 06 2004 - 16:36:17 EET


On Mon, Dec 06, 2004 at 10:26:59AM +0200, mark_AT_kfm.co.za wrote:
> Hello Everybody
>
> I have a lot of text documents that I wish to output into speech
> audio. Firstly I wanted to know if there is any software that would
> allow one to do this. This could be likened to an educational tool
> of sorts that reads a file.

festival comes with a program called text2wav. It does just what your are asking. Also if you do:
echo 'hello' | festival --tts

You can change the voices also.

you can do something like this in python if you want a seperate wav for each word (will probably make it easier if you want to only parts of words and such):

import os
x = ['the', 'way', 'that', 'can', 'be', 'experienced', 'is', 'not', 'true']
for s in x:
        os.system('echo %s | text2wave > tmp/%s.wav'% (s, s))
        os.system('sox tmp/%s.wav -r 44100 %s.wav '% (s,s))

Jeremiah


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Dec 06 2004 - 16:38:10 EET