From: <aut...@us...> - 2012-11-23 01:00:26
|
Revision: 465 http://upstage.svn.sourceforge.net/upstage/?rev=465&view=rev Author: aut-upstage Date: 2012-11-23 01:00:19 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Scott & Gavin ------ voices.py fix attempt 3 Modified Paths: -------------- branches/2.4.2/upstage/voices.py Modified: branches/2.4.2/upstage/voices.py =================================================================== --- branches/2.4.2/upstage/voices.py 2012-11-23 00:55:59 UTC (rev 464) +++ branches/2.4.2/upstage/voices.py 2012-11-23 01:00:19 UTC (rev 465) @@ -43,9 +43,9 @@ echo_in = ''#cat | ' #"read SPEECH ; echo $SPEECH |" #Heath Behrens readded the -x switch used for byte switching as it breaks some voices. -fest_lame = " | %s lame -S --quiet -m s -s %%s --resample 22.05 - $1 " % timeout -rsynth_lame = " | %s lame -S --quiet -m m -r -s 11.025 --preset phone - $1 " % timeout -espeak_mbrola_lame = " | %s lame -S --quiet -m m -s 16 --resample 22.05 --preset phone $1.wav $1" % timeout +fest_lame = " | %s lame -S --quiet -m s -r -s %%s --resample 22.05 --preset phone - $1 " % timeout +rsynth_lame = " | %s lame -S --quiet -m m -r -s 11.025 --preset phone - $1 " % timeout +espeak_mbrola_lame = " %s lame -S --quiet -m m -s 16 --resample 22.05 --preset phone $1.wav $1" % timeout # espeak doesn't seem to like piping to stdout, so it saves to tmp file instead espeak_lame = " %s lame -S --quiet -m m -s 22.05 --preset phone $1.wav $1 " % timeout @@ -57,7 +57,7 @@ #The other option is to simply copy all voices from the folder to the previous folder. path_to_embrola_alt = "/usr/share/mbrola/voices" -text2wave = '/usr/local/share/festvox/festival/bin/text2wave' +text2wave = '/usr/bin/text2wave' #these functions are run over the definitions in VOICE_KIT, below, to #create the appropriate shell script for each voice. @@ -101,9 +101,9 @@ if not espeak or not mbrola: return None s = ''.join((echo_in, timeout, espeak, " -k27 -v ", voice, options, " --stdin ", log, - " | ", mbrola, " -e ", mboptions, " " + path_to_embrola, mbvoice, - " - $1.wav ", log)) - return [s, espeak_mbrola_lame, espeak_cleanup] + " | ", mbrola, " -e ", mboptions, " /usr/share/mbrola/", mbvoice, + " - $1.wav ", log)) +return [s, espeak_mbrola_lame, espeak_cleanup] #XXX perhaps ought to be moved OUT of python code into a real config file. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |