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

Received audio is only static noise #26

Open
ericlindersson opened this issue Jan 29, 2023 · 2 comments
Open

Received audio is only static noise #26

ericlindersson opened this issue Jan 29, 2023 · 2 comments

Comments

@ericlindersson
Copy link

ericlindersson commented Jan 29, 2023

I have connected everything according to the code, default pin numbers et.c. I can see that data is being received from the mic and being sent. The receiver receives data, but I can only hear a ticking noise from the speaker. I have also tested the components alone and was able to record my voice over UDP, and used the speaker with a webradio sample with success.
I have only tried ESP-NOW, could that be the problem? Or is there anything else I could try?

@meloluan
Copy link

I have the same problem, did you manage to solve it?

@FedericoBusero
Copy link
Collaborator

FedericoBusero commented May 22, 2023

The code was not yet compatible with IDF version 4, now it should work again.
Remark that I2S input using INMP441 on ESP32 only works until
platform = [email protected]
which is based on IDF v4.4.1-1-gb8050b365e and Arduino 2.0.3
All later versions contain bugs in the I2S input part on ESP32 so that the microphone no longer works. This is described in espressif/esp-idf#9635 and contains a workaround:
#define I2S_MIC_CHANNEL I2S_CHANNEL_FMT_ONLY_RIGHT
instead of
#define I2S_MIC_CHANNEL I2S_CHANNEL_FMT_ONLY_LEFT
in config.h
There should be a fix in later versions (IDF 4.4.5?)

Remark that on some chips (e.g. ESP32-S2) and in some versions, you can fix microphone issues by setting

Remark also that defines can be set in platformio.ini or config.h : USE_I2S_MIC_INPUT & USE_ESP_NOW are set in platformio.ini

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

3 participants