voip:create_moh_files
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| voip:create_moh_files [2013/12/05 22:00] – biggi | voip:create_moh_files [2015/08/15 22:56] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Quick script to convert .mp3 files to .wav | + | Quick script |
| + | |||
| + | Example: " | ||
| + | 8000_ArtistGuy_-_SongTitle.wav\\ | ||
| + | 16000_ArtistGuy_-_SongTitle.wav\\ | ||
| + | 32000_ArtistGuy_-_SongTitle.wav\\ | ||
| + | 48000_ArtistGuy_-_SongTitle.wav\\ | ||
| + | |||
| + | So, HZ is added and space is converted to underscore. | ||
| <code - convertsongs.sh> | <code - convertsongs.sh> | ||
| Line 14: | Line 22: | ||
| IFS=$IFSORG; | IFS=$IFSORG; | ||
| for y in $BITRATES; do | for y in $BITRATES; do | ||
| - | echo "$y Hz.."; | + | echo |
| mpg123 -q -s -f 8192 --mono -r $y -w " | mpg123 -q -s -f 8192 --mono -r $y -w " | ||
| done | done | ||
| + | echo ""; | ||
| IFS=$' | IFS=$' | ||
| done | done | ||
| Line 22: | Line 31: | ||
| echo "Done converting." | echo "Done converting." | ||
| - | |||
| </ | </ | ||
voip/create_moh_files.1386277220.txt.gz · Last modified: (external edit)
