diff README.md @ 79:d4eec2afbe01

Select pyaudio audio device from command line * Additional cmdline argument for pyaudio * Update command line args and README for PyAudio * README typo
author Mathieu Durand <mathieu.durand@ingeno.ca>
date Thu, 01 Nov 2018 01:51:44 -0400
parents 3e939c1049dc
children 9741b52f194a
line wrap: on
line diff
--- a/README.md	Sat Oct 06 12:02:01 2018 +0200
+++ b/README.md	Thu Nov 01 01:51:44 2018 -0400
@@ -86,6 +86,13 @@
 
     rec -q -t raw -r 16000 -c 1 -b 16 -e signed - | auditok -i -
 
+### PyAudio
+
+When capturing input with PyAudio, you may need to adjust the device index with -I if multiple input devices are available. Use `lsusb -t` to get the list of usb devices, or use `arecord -l` if you're using a non-usb input device. If you don't know what index to use, just try `0`, `1`, `2` and so on, outputting the audio using `-E` (echo) until you hear the sound.
+
+You may also get an error `[Errno -9981] Input overflowed` from PyAudio. If that's the case, you need a bigger frame buffer.
+Use `-F` with 2048 or 4096 (the default is 1024).
+
 ### Play back detections
 
     auditok -E