Nathan C. Smith wrote:
The sound conversion tool is asking for "pygst"   Google seems to indicate
it is Gtstreamer for python-  where does one find that library - does it
come with something else I should have installed?

Thanks.

-Nate


See attached shell script, that uses 'find' to recursively search for .wav files in the current dir, and 'sox' to make alaw and gsm files. You can easily modify it to produce ulaw if you need. I figure this has fewer dependencies than requiring Python, Gstreamer, Pygst etc...
#!/bin/bash
#
# Recursively convert all .wav files to alaw and gsm for use with OpenPBX
#
# $Id: wav2pbx.sh 122 2006-02-15 04:34:57Z dswarbrick $

for file in `find -name *.wav`; do
        echo $file
        sox -V $file -r 8000 -c1 `echo $file|sed -e s/wav/al/` resample -ql;
        sox -V $file -r 8000 -c1 `echo $file|sed -e s/wav/gsm/` resample -ql;
done
_______________________________________________
Openpbx-dev mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-dev

Reply via email to