Skip to content

streams-i2s-i2s does not work with 16 bits #186

Answered by pschatzmann
wimverlindensa asked this question in Q&A
Discussion options

You must be logged in to vote

I noticed that this microphone does not always provide proper data with 16 bits, so I suggest that you try to change the bits per sample to 32 both on the input and output side and I am surprised that you did not catch this when you tested the input.

You can reproduce the issue if you display the 16 bit data as CSV. I am getting proper values on channel 0, but invalid values (instead of 0) on channel 1: this is creating the noise!

11:52:54.164 -> -4, 0
11:52:54.164 -> -4, 0
11:52:54.164 -> -4, 0
11:52:54.164 -> -9, -32768
11:52:54.164 -> -9, -32768
11:52:54.164 -> -20, 0
11:52:54.164 -> -20, 0
11:52:54.164 -> -24, 0
11:52:54.164 -> -24, 0
11:52:54.164 -> -21, -16384
11:52:54.164 -> -21, -…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wimverlindensa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right
2 participants