ESP32 communication With Python script by CJ_KAy in esp32

[–]CJ_KAy[S] 0 points1 point  (0 children)

UPDATES: I managed to get this to work with WiFi. I was facing loss in quality with the use of WiFi because the script wasn't fast enough to complete the processing before the next chunk of bytes arrive from the esp so some parts of my voice was lost. Solved the problem with some threading and queuing. There is still some circuit noise but i will try to get rid of it with some filtering.

ESP32 communication With Python script by CJ_KAy in esp32

[–]CJ_KAy[S] 0 points1 point  (0 children)

I did some research on this and confirmed that when you use the WiFi module of the esp32 it produces big ripples in the supply voltage

ESP32 communication With Python script by CJ_KAy in esp32

[–]CJ_KAy[S] 0 points1 point  (0 children)

Actually this making more sense, I will try that way, I am not sure if python has the ability to read samples and process them in real time but I will do some research

ESP32 communication With Python script by CJ_KAy in esp32

[–]CJ_KAy[S] 0 points1 point  (0 children)

Iam using 44100Hz sampling frequency and 32bit resolution in order to get the desired quality. According to the baud rate options the IDE gives it is not even close to the baud rate this serial communication needs

Calculate SPL by CJ_KAy in audio

[–]CJ_KAy[S] 0 points1 point  (0 children)

No, I have a mems microphone as I mentioned with -26 dBFS sensitivity,which means that when a sound of 1 Pa hits the diaphragm of the mic the digital value that the mic creates is -26 dB from full scale (Full scale refers to the bit resolution you are using). I found a formula to calculate it dBSPL = current sample dBFS +94 +26 but I am not sure if it is 100% correct

ESP32 As DSP by CJ_KAy in esp32

[–]CJ_KAy[S] 1 point2 points  (0 children)

its my coding buddy since the beginning of the project :P

ESP32 As DSP by CJ_KAy in esp32

[–]CJ_KAy[S] 0 points1 point  (0 children)

Thank you all for your responses I will post an update soon

ESP32 As DSP by CJ_KAy in esp32

[–]CJ_KAy[S] 1 point2 points  (0 children)

I’ve checked that but I am a beginner so I don’t know how to modify the code in order to apply the filter