Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mic on windows ignores bitwidth setting #40

Open
UCABJDP opened this issue Aug 26, 2020 · 1 comment
Open

Mic on windows ignores bitwidth setting #40

UCABJDP opened this issue Aug 26, 2020 · 1 comment

Comments

@UCABJDP
Copy link

UCABJDP commented Aug 26, 2020

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)

@lexasss
Copy link

lexasss commented Nov 17, 2022

Hi. It seems that this issue persists in 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants