Comment on Should I upgrade to ESP32-P4-WIFI?
q1p_@lemmy.zip 16 hours agoAt max I just need a few MB for reading a websocket response into internal RAM and to feed the audio loop that is running on Core 1. The issue is that the Network delivers at around 25 KB/s but the audio playback consumes 48 KB/s (buffer underrun). I can’t lower the sample rate (I tried). I’d change to another codec like Opus but Deepgram API does only support PCM at 24 KHz.
just_another_person@lemmy.world 13 hours ago
You probably only want to use the websocket as a control point, and have another socket open to receive an audio as passthrough? Pretty sure that’s how Sonos et al do it. More lightweight, and you don’t have to worry about overruns like you’re dealing with now perhaps.
q1p_@lemmy.zip 8 hours ago
The connection is bi-directional with different states.