Skip to content

Reusing the radio streaming code from the project #5

Answered by vladkorotnev
Raima010 asked this question in Q&A
Discussion options

You must be logged in to vote

The whole radio pipeline is basically located in a separate file, where the AudioRouter's IOPortNub is your I2SStream in the simplest case. (I plan to potentially add other output routes someday later, so I obtain the output port from the router)

So in the simplest case you would just take that class, change the argument to accept an I2SStream instead of the AudioRouter, then instantiate it and call something like pipeline.start("www.example.com/radio.mp3", [](bool loading) { if(loading) Serial.println("NOW LOADING!"); }); and there it goes!

I have to note that if you are not buying your ESP modules from a verified source such as Digikey (I was buying off some seller on Taobao), your mile…

Replies: 11 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by vladkorotnev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vladkorotnev
Comment options

Comment options

You must be logged in to vote
4 replies
@vladkorotnev
Comment options

@vladkorotnev
Comment options

@Raima010
Comment options

@vladkorotnev
Comment options

Comment options

You must be logged in to vote
1 reply
@vladkorotnev
Comment options

Comment options

You must be logged in to vote
1 reply
@vladkorotnev
Comment options

Comment options

You must be logged in to vote
1 reply
@Raima010
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vladkorotnev
Comment options

@Raima010
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3 on April 14, 2025 12:05.