PatrickMay16
June 7th, 2007, 02:13 AM
I've created a script for nautilus that turns a text file into an mp3 file. It's not very good, but it works, and maybe someone else would find it handy. I'd appreciate any suggestions for improvement, like making it able to handle multiple files instead of just one... I'm very poor at bash scripting.
## Textfile2mp3 - a simple bash script to turn a textfile into an mp3.
## By P May. ****-BENIS.
export voice_wave_file=-$RANDOM
text2wave "$1" -o "voice$voice_wave_file.wav"
lame -v -b 8 -B 32 "voice$voice_wave_file.wav" "$1.mp3"
rm "voice$voice_wave_file.wav"
## Textfile2mp3 - a simple bash script to turn a textfile into an mp3.
## By P May. ****-BENIS.
export voice_wave_file=-$RANDOM
text2wave "$1" -o "voice$voice_wave_file.wav"
lame -v -b 8 -B 32 "voice$voice_wave_file.wav" "$1.mp3"
rm "voice$voice_wave_file.wav"