title: pipe sox play command to stdout
body: <p>So I'm currently trying to stream my microphone input from my raspberry pi (rasbian)
  to some sort of network stream in order to receive it later on my phone.
  In order to do this I use <code>arecord -D plughw:1,0 -f dat -r 44100 |</code> top pipe the soundstream from my usb-microphone to stdout  which works fine as far as I can see but I needed it to be a bit louder so I can understand people standing far away from it .</p>
  
  <p>So i piped it to the sox play command like this :</p>
  
  <p><code>arecord -D plughw:1,0 -f dat -r 44100| play -t raw -b 16 -e signed -c 2 -v 7 -r 44100 - test.wav</code>
  (test.wav is just some random wav file id doesn't work without it and there is a whitespace between the - behind  44100 and test.wav because i think - is a seperate parameter:</p>
  
  <p><code>SPECIAL FILENAMES (infile, outfile):
  -                        Pipe/redirect input/output (stdin/stdout); may need -t
  -d, --default-device     Use the default audio device (where available)</code>)</p>
  
  <p>I figured out by using the -v parameter i can increase the volume.
  This plays the recorded stream to the speakers I connected to the raspberry pi 3 .</p>
  
  <p><strong>Final goal :</strong> pipe the volume increased soundstream to the stdout(or some fifopipe file) so i can get it from stdin inside  another script to send it to my phone.</p>
  
  <p>However im very confused by the manpage of the play command <a href="http://sox.sourceforge.net/sox.html" rel="nofollow noreferrer">http://sox.sourceforge.net/sox.html</a> </p>
  
  <p>i need to select the outputdevice to pipe or stout or something<br>
  if you know a better way to just increase the voulme of the i think <code>Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo</code>soundstream let me know </p>