How to read radio stream url metadata like ESP32 audio extension

waszee 0 Reputation points
2024-09-16T14:18:06.5933333+00:00

I was redirected from the Microsoft Community to post this query here. I need some advice on getting started with an internet radio app.

I have created a simple ESP32 internet radio app that plays a selected URL and displays the station name when I change URLs. The song titles are displayed each time a new song starts. Several variations of this code were posted on Youtube by others if interested. The microcontroller uses an ESP32 audio extension to parse the incoming metadata from the streaming headers. How should I do this using Windows 11 system? I would like to port the ESP32 application to Windows 11 and maybe enhance the displayed information to take advantage of windows display size as well as use the windows audio interface options instead of the i2s stream on the ESP32.

So far I found that I can easily play most of the selected URLs by adding the NAudio extension in VS Studio. Can also just stream using browser or VLC or a media player but those apps do not seem to show the metadata information like the ESP32. NAudio does not seem to support detecting the metadata headers or other stream formats. I am not sure about NAudio addons.

I started to look at CSCore and Xaudio2. CSCore is not running on my system. The McAfee_Live virus scanner on the Win11 system (.net 8) immediately quarantines the cscli.dll file that is required when compiled and flags as being dangerous each time I build so have given up for now. The one XAudio2 CPP example that I found did not run on my C# VS2022 WinApp blank option so before trying to debug and then see if XAudio2 can even do what I want I thought I would post a query to see if anybody might give me pointers to get started using Windows 11 to get metadata from streaming audio links. I thought this should be just a few lines of code like on the ESP32 if I can find the right api to support me.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,384 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.