Skip to content

ADC i2s sampling is not continuous  #23

@Ramunas9

Description

@Ramunas9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions