A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
Hi, when using this module on Windows, the audio stream seems to ignore the settings given, and instead pipes out 32 bit PCM audio no matter what. To test I streamed audio from the mic module into a file, and played the resulting file in VLC, where the codec information states it's 32bit Signed LE PCM audio.
Reading the documentation appears to show this is intentional: -p is an alias for -t sox -, which sets the file format to .sox, which is 32bit PCM audio. Viewing the resultant file in a hex editor confirms it's a .sox file as it has a default comment of "Processed by sox" (or wtte)
http://sox.sourceforge.net/sox.html#FILENAMES (see: -p and -t)
http://sox.sourceforge.net/soxformat.html (see .sox)
Hi, when using this module on Windows, the audio stream seems to ignore the settings given, and instead pipes out 32 bit PCM audio no matter what. To test I streamed audio from the mic module into a file, and played the resulting file in VLC, where the codec information states it's 32bit Signed LE PCM audio.
Reading the documentation appears to show this is intentional: -p is an alias for -t sox -, which sets the file format to .sox, which is 32bit PCM audio. Viewing the resultant file in a hex editor confirms it's a .sox file as it has a default comment of "Processed by sox" (or wtte) http://sox.sourceforge.net/sox.html#FILENAMES (see: -p and -t) http://sox.sourceforge.net/soxformat.html (see .sox)