#!/bin/sh # toast was compiled trivially inside the src directory with: # mipsel-linux-gcc -ansi -pedantic -O2 -DNeedFunctionPrototypes=1 \ # -DSASR -DDWAV49 -DNDEBUG -I../inc -o toast *.c # # The file fed to toast must be in GSM format with Microsoft-style # framing but no RIFF headers (i.e., a stripped WAV49 files) like # one produced by feeding a Sun u-Law file to: # /usr/bin/toast -c -s file.au >file.gsm # or a raw little-endian 16-bit PCM file to: # /usr/bin/toast -c -l file.raw >file.gsm # etc. (for more choices of formats, see: "toast -h") # Nevertheless, it must end in .mp3, or else Asterisk, not finding # any ".mp3" file, won't execute mpg123 at all... # For comfortable playback as MOH, use an input file about 25 dB # below maximum dynamics (i.e., about sixteen times below saturation # level). # while [ 1 ] ; do /usr/bin/toast -c -d -l