Best Solution for Medium Quality Audio Streaming to ESP32 #1019
-
I'm putting together a system for streaming audio from a raspberry pi with a connected audio interface to a number of ESP32s. On the pi side I'm using gstreamer to send the audio. On the ESP32 I'm using audio tools to capture the stream. Such an awesome tool set. I've been sending a broadcast UDP stream over wifi using a wifi router. It works well when I send a raw stream at 16 Kbs but I don't get a great distance before getting breaks in the audio, maybe about 15 feet. I don't need a very high sample rate as I am mostly concerned with sending lower frequency audio. I figured if I lowered the bit rate I could get greater distance. My latest attempt is to use AAC compression at 22050 bps. This worked better and I probably get about 30 feet but would love to get even better distance and reception. So far I am just using ESP32s with an internal antenna.I can't seem to find the mini ESP modules with external antenna. Wondering if anyone has thoughts for improvement. Would another codec such as Opus give me a lower bit rate hence greater distance? I was wondering if I should try ESPnow, though I like the idea of using a router connected to the PI for sending audio. If anyone has thoughts for improvement I would love to hear your suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
A couple of thoughts:
|
Beta Was this translation helpful? Give feedback.
-
I thought it would make sense to have a RTSP client available as well. Quite some time ago I was trying to convert the live555 for Arduino but could never make the streamers work properly. This week I implemented a RTSP client and this seems to work quite nicely |
Beta Was this translation helpful? Give feedback.
A couple of thoughts: