ratox-nuggets

useful ratox related scripts
git clone git://git.2f30.org/ratox-nuggets
Log | Files | Refs | LICENSE

rat-remotemic (528B)


      1 #!/bin/sh
      2 # Remote microphone script
      3 # Usage:
      4 #    rat-remotemic
      5 #        if no call is pending it'll initiate the call, if call is pending, i'tt be answered
      6 #        It should be called within friend dir, where call_in amd call_out pipes reside
      7 
      8 LIBRARY_LOCATION=`dirname $BASH_SOURCE`
      9 . $LIBRARY_LOCATION/functions
     10 export PATH=$LIBRARY_LOCATION:$PATH
     11 
     12 function remotemic() {
     13     TRASHER=$(stdin_trasher)
     14     arecord -r 48000 -c 1 -f S16_LE -
     15 }
     16 
     17 test "X$(basename -- "$0")" = "Xrat-remotemic" && remotemic < call_out > call_in