The results are generally impressive. But I hope this might be some help in improving the codec. For instance, the roughening of sibilants like 'sss' in English (which becomes something like a 'sh' under codec2) is easily reproduced with festival.
To use this script, change the first line to point to the directory in which your c2enc file resides, save the script as, say, 'tts-codec2.sh' and then issue the command 'chmod a+x tts-codec2.sh' so that the script is executable. Then run it on the command line with 'tts-codec2.sh "Salmon steaks grill beautifully."' You'll hear the non-codec2 version, then the codec2 version.
CODEC2_HOME=/home/brucerob/Codec2/codec2/src TFILEA="/tmp/$(basename $0).$$a.tmp" TFILERAW="/tmp/$(basename $0).$$.raw" echo $1 | text2wave | sox - -r 8000 -t raw -s -2 $TFILERAW play -r 8000 -t raw -s -2 $TFILERAW $CODEC2_HOME/c2enc $TFILERAW $TFILEA $CODEC2_HOME/c2dec $TFILEA $TFILERAW du -sh $TFILEA play -r 8000 -t raw -s -2 $TFILERAW
No comments:
Post a Comment