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

ADC i2s sampling is not continuous #23

Open
Ramunas9 opened this issue Dec 23, 2021 · 1 comment
Open

ADC i2s sampling is not continuous #23

Ramunas9 opened this issue Dec 23, 2021 · 1 comment

Comments

@Ramunas9
Copy link

I am using MAX9814 mic with ESP32 38 pin board, and i2s_sampling project from this repository. Mic is connected to ADC7
However, audio recording is not continuous, between each audio sample, while ESP32 is sending data to the server, recording is not performed simultaniously. So final audio has missing audio. I am using the same parameters as in your repo code, I did not change sampling code.

I tried enumerating packets and time when they were sent and it seems that some not recorded time is missing:
27: 397959
28: 399442
29: 400861
30: 402280
31: 403699
32: 404926
33: 406151
34: 407634
35: 408860
36: 410280
37: 411699
38: 412923
39: 414343
40: 415568
41: 416794
42: 418085
43: 419504
44: 420923

It seems that your code is simpler and different from video explanation, and I don't quite understand how code knows when to read buffers. Maybe sending audio actually stops recording, ESP32 has two cores maybe tasks are not divided? I am rather new to ESP32 programing.

I also get a lot of static noise, but I think it is not related to this problem.

@User-0041
Copy link

Hi so i am having the same issue and i wana know did you find a fix for it

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