Weird mic sample rate issues

Hi,

I am trying to make a mic work on ESP32, but using Arduino core. I set the sample rate at 44100hz. When my receiver is at 44100hz the sound goes almost 3x slower and I sound very low, if I set the receiver's sample rate at around 120khz, the playback speed becomes normal, but then I sound like a chipmunk. Any ideas what is going on?

My receiver: import socketimport wave# UDP IP address and port number to listen onUDP - Pastebin.com
My transmitter: #include <Arduino.h>#include <ESP_I2S.h>#include "WiFi.h"#include "AsyncUD - Pastebin.com

Please instead of linking to external sources, include both your codes in the post (make sure you mark it with editor's <CODE/> key.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.