# Webradio player

**URL:** <https://discourse.zynthian.org/t/webradio-player/7013>\
**Category:** Software\
**Created:** [May 24, 2022, 9:02pm UTC](https://discourse.zynthian.org/t/webradio-player/7013 "2022-05-24T21:02:09Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [May 28, 2022, 8:57am UTC](https://discourse.zynthian.org/t/webradio-player/7013/22 "2022-05-28T08:57:20Z")

</div>

A post was split to a new topic: [Spotifyd on zynthian](https://discourse.zynthian.org/t/spotifyd-on-zynthian/7017)

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [May 28, 2022, 9:00am UTC](https://discourse.zynthian.org/t/webradio-player/7013/23 "2022-05-28T09:00:00Z")

</div>

I like the ability to play internet radio on my Zynthian. It is super cool - well done to everyone involved in this. I would suggest we create an engine for this so that you can add it to a chain without tying up pure data. (PD was a good tool to work up this proof-of-concept but is limited, e.g. does not support text/strings well.) If I find time I may look at doing so.

I was listening to Vigin 1970s Rock yesterday for quite a while until it went to the news, in Italian!

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [May 28, 2022, 4:57pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/24 "2022-05-28T16:57:52Z")

</div>

Add the ability to load up stations from a link via the webconf page as uploads.?

---

<div class="post-metadata">

**Author:** ![le51](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/le51/32/1706_2.png) [@le51](https://discourse.zynthian.org/u/le51)\
**Post date:** [May 28, 2022, 5:14pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/25 "2022-05-28T17:14:37Z")

</div>

This looks really exciting.  
Congratulations @reg & @ronsum .  
I will give it a try next week when I will be back home

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [May 28, 2022, 6:26pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/26 "2022-05-28T18:26:09Z")

</div>

Record & Play on Parameter Page & an appropriate playing graphic on the Audio Mixer Chain.

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/5/5ed19d3cb7843e7ee4eef5ce453f3db94fd7f55c.png)

Record & Play  
Would allow stream to be turned off rather than have the radio running on a 0 gain fader in the mixer and consuming resource.

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/b/b72084810d7167b112d012a54d1bea93eeefe4a9.png)

So a similar Green arrow in chain 8 to the Audio Player instance running ( but not making any sound at the moment) in Chain 9

Presumably station ident details where autoplayer puts the waveform?

A very welcome addition!

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [May 30, 2022, 10:00am UTC](https://discourse.zynthian.org/t/webradio-player/7013/27 "2022-05-30T10:00:15Z")

</div>

What about a naitive engine like this?

![inet_radio](https://discourse.zynthian.org/uploads/default/original/2X/6/63a901346f3e3653c19b6e4522f730593876df80.gif)

I knocked this together at the weekend, inspired by the work done here. It allows selection of streams from the preset list which can be catagorised with the bank list. Volume can be edged up / down and steam stopped and started. It supports mp3, aac, pls, m3u streams and probably others.

This dev depends on some changes in the audio player development branch so I can’t make it available until we merge that into testing… but that may be soon.  
[Edit] Actually - I have created a development branch for this so you can try it if you really feel brave! There is no guarantee that it will be accepted as a pucker Zynthian module - that depends on our glorious leader and maybe your lobbying.

What do you think? Worth having?

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [May 30, 2022, 12:27pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/28 "2022-05-30T12:27:33Z")

</div>

It is such a joy to have an internet radio that if so selected starts up on the zynthian from scratch and provides on the chain control in the mixer the ability to turn it to a level, and mute selection on another.

IT’s a great joy to get back to a radio device that doesn’t require GUI dexterity to operate it.

Now, of course, in recognition of the deeply subversive list @riban has presented can we operate the zynthian the other way?

Transmit Radio Goodie playing nothing but walk in the black forest parts one and two for ever more . . . ?

> **[The Goodies S01E07 - Radio Goodies - video Dailymotion](https://www.dailymotion.com/video/x3kgp61)**
>
> The GOODIES start their own Pirate Radio service outside the 5 Mile Limit but it all starts to get out of hand as Graeme wants to take over the World instead.

---

<div class="post-metadata">

**Author:** ![reg](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/reg/32/7845_2.png) [@reg](https://discourse.zynthian.org/u/reg)\
**Post date:** [May 30, 2022, 4:32pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/29 "2022-05-30T16:32:48Z")

</div>

I can’t edit my old posts, too few privileges I guess.  
Here’s a new version, based on latest ronsum’s one, with added play/stop control and playback speed control just for fun 😃  
[iNetRadio.zip](https://discourse.zynthian.org/uploads/short-url/fB4U90jTiDLni21rpvrJTilEGTY.zip) (118.9 KB)

---

<div class="post-metadata">

**Author:** ![reg](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/reg/32/7845_2.png) [@reg](https://discourse.zynthian.org/u/reg)\
**Post date:** [May 30, 2022, 4:36pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/30 "2022-05-30T16:36:13Z")

</div>

This seems really neat !  
I hope it gets to testing and main soon 🙂

---

<div class="post-metadata">

**Author:** ![ronsum](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@ronsum](https://discourse.zynthian.org/u/ronsum)\
**Post date:** [May 31, 2022, 3:30am UTC](https://discourse.zynthian.org/t/webradio-player/7013/31 "2022-05-31T03:30:03Z")

</div>

Very nice. Play along, just listen or let it play on stage while on break. Your Internet Radio Engine has my vote.

---

<div class="post-metadata">

**Author:** ![piattica](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/piattica/32/16278_2.png) [@piattica](https://discourse.zynthian.org/u/piattica)\
**Post date:** [January 24, 2024, 4:13pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/32 "2024-01-24T16:13:59Z")

</div>

how to add other iNetRadio stations?

---

<div class="post-metadata">

**Author:** ![reg](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/reg/32/7845_2.png) [@reg](https://discourse.zynthian.org/u/reg)\
**Post date:** [January 24, 2024, 6:12pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/33 "2024-01-24T18:12:38Z")

</div>

Hello,  
Well, I dug back into this from my phone, and it’s not as easy as I would like to edit the stations.  
If I miss nothing, and as it is now, the easiest way is to modify the .pd file with the pure:data software to add/edit the webradios’ stream links, and the .yaml with a text editor to make available the name of the stations in the right amount and order.

I hope I, or more likely someone else will look again into this, and try to make a simple text file to store the stations. This would probably ease the realization of Wileu’s idea of a link in the web interface to edit the stations.

If this can help somehow, here’s a bash radio player doing all this (scroll for english read-me) :

> **[GitHub - pouek/sh.radio.4000: Lecteur de radios internet en langage shell...](https://github.com/pouek/sh.radio.4000)**
>
> Lecteur de radios internet en langage shell avec ma sélection de radios - GitHub - pouek/sh.radio.4000: Lecteur de radios internet en langage shell avec ma sélection de radios

---

<div class="post-metadata">

**Author:** ![reg](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/reg/32/7845_2.png) [@reg](https://discourse.zynthian.org/u/reg)\
**Post date:** [January 25, 2024, 3:15am UTC](https://discourse.zynthian.org/t/webradio-player/7013/34 "2024-01-25T03:15:32Z")

</div>

Hey @riban ! :]  
What about your native engine project ?

> [@Webradio player](https://discourse.zynthian.org/t/webradio-player/7013/27):
>
> What about a naitive engine like this? [inet\_radio] I knocked this together at the weekend, inspired by the work done here. It allows selection of streams from the preset list which can be catagorised with the bank list. Volume can be edged up / down and steam stopped and started. It supports mp3, aac, pls, m3u streams and probably others. This dev depends on some changes in the audio player development branch so I can’t make it available until we merge that into testing… but that may be soon…

I didn’t find the branch, it may have disappeared since May 22…

May I start testing your thing ?

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2024, 6:40am UTC](https://discourse.zynthian.org/t/webradio-player/7013/35 "2024-01-25T06:40:08Z")

</div>

Hi @reg!

The branch is called [feature/internet\_radio](https://github.com/zynthian/zynthian-ui/tree/feature/internet_radio) and is still there but very old / out of date. I was fairly pleased with it at the time but there was very little interest in progressing it, especially from @jofemodo who maybe thought this a trivial distraction / bloat - with which I can quite agree 😄.

From memory there is a config file that defines the stations which are selected as presets, grouped / catagorised in preset banks. I am a bit busy at the moment but maybe if a there was significant interest in this then someone might bring it up to date, i.e. merge current stable / testing into this branch and make sure it works.

[Edit] I have merged current testing into the _feature/internet\_radio_ branch. I have not tested this but you could check it out and test. Good luck!

---

<div class="post-metadata">

**Author:** ![reg](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/reg/32/7845_2.png) [@reg](https://discourse.zynthian.org/u/reg)\
**Post date:** [January 25, 2024, 10:33am UTC](https://discourse.zynthian.org/t/webradio-player/7013/36 "2024-01-25T10:33:39Z")

</div>

Yes, I agree too…

Maybe there could be a “bloat” submenu. I can’t imagine how much work it represents, so feel free to let it go. :S

At (not so) worst, one can still use the above-linked bash script by ssh, I’ll try it again and report its status here.

About the native engine, thanks for the info and your proposal, it could be my autodidactisism to github pull-merge-push. And then we’ll see where it goes…

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2024, 1:20pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/37 "2024-01-25T13:20:14Z")

</div>

> [@reg](#):
>
> a “bloat” submenu

We discussed the idea of having user provided / optional modules but it would take some effort to write a plugin mechanism and consideration of what could be exposed, e.g. UI, audio, MIDI, etc. Some recent changes to the core codebase may facilitate such work but it continues to be a challenge that does not have spare effort to implement.

---

<div class="post-metadata">

**Author:** ![RusBay](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@RusBay](https://discourse.zynthian.org/u/RusBay)\
**Post date:** [January 28, 2024, 1:00am UTC](https://discourse.zynthian.org/t/webradio-player/7013/38 "2024-01-28T01:00:28Z")

</div>

Thanks for the PD patch!  
The SomaFM playlist has a link to the mp3 broadcast inside \*. pls. For example: DroneZone is

> [https://ice6.somafm.com/dronezone-256-mp3](https://ice6.somafm.com/dronezone-256-mp3)

It works in Zynthian

---

<div class="post-metadata">

**Author:** ![lexonic](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/lexonic/32/11027_2.png) [@lexonic](https://discourse.zynthian.org/u/lexonic)\
**Post date:** [February 1, 2024, 12:23pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/39 "2024-02-01T12:23:45Z")

</div>

This is a really cool feature to play webradio from Zynthian 😍  
I wrote a small python script to deploy radio stations from a text file (radiostations.txt) to the PD-patch and the zynconfig.  
Here is the updated file:  
[iNetRadio.zip](https://discourse.zynthian.org/uploads/short-url/eUYllSKvkpopQDavfOoPsbMpqL6.zip) (123.6 KB)

Just edit the ‘radiostations.txt’ file and run the ./setup.py script to deploy. Script is using .template files to generate the main.pd and the zynconfig.yml files.

In the PD-patch I have added a delay (800ms) when selecting stations to prevent ffplay~ from trying to load every stream while rotating the “Station” knob. BTW, template files have now 22 station slots.

---

<div class="post-metadata">

**Author:** ![reg](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/reg/32/7845_2.png) [@reg](https://discourse.zynthian.org/u/reg)\
**Post date:** [February 1, 2024, 1:41pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/40 "2024-02-01T13:41:37Z")

</div>

Wow ! Super ! Thanks !  
I’ll try this before the bash script via ssh…

---

<div class="post-metadata">

**Author:** ![piattica](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/piattica/32/16278_2.png) [@piattica](https://discourse.zynthian.org/u/piattica)\
**Post date:** [February 1, 2024, 2:09pm UTC](https://discourse.zynthian.org/t/webradio-player/7013/41 "2024-02-01T14:09:46Z")

</div>

> [@lexonic](#):
>
> run the ./setup.py script to deploy

please let me know hot to run ./setup.py  
I use win11; what I have to install to run it?

[Previous page](https://discourse.zynthian.org/t/webradio-player/7013.md?page=1)

[Next page](https://discourse.zynthian.org/t/webradio-player/7013.md?page=3)
