-
Notifications
You must be signed in to change notification settings - Fork 7
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
audio format #1
Comments
Hey! Hmm haven't used the "arecord" tool so not sure what the output is, the format is just floats that can be parsed by golang, like below, separated by new lines:
|
In my case tge output is 8 but unsigned, so values are between 0 and 255 |
Do you have an example of a file that you can't get to work? |
Yep, here is the output of "arecord -t raw -f FLOAT_LE" So far i tried converting sets of 8 bytes with binary.LittleEndian to float64 but that hasn't gotten anywhere. Thanks |
Update: |
What code are you trying to run with the file? Do you have an example (maybe it's the 10s sample that breaks if there isn't enough data points available). |
Ah, im tring advanced example with the attached file |
Aha! Let me check it! |
Hi,
Can you please tell me what fornat the example txt files are in ?
I am trying to use "arecord -t raw -f U8" and use unsigned 8 bit data but its not working.
Thanks
The text was updated successfully, but these errors were encountered: