play audio from network sources
Quote from ckruetze on August 11, 2018, 10:26 amGot may clock this week and started to play around with it today.
Bluetooth audio works fine except I haven't figured out how to change the volume on the clock. However I'm usually either listening to music on my NAS or some internet radio station. Is it already possible to play audio from network sources such as a local NAS or even internet radio stations?
Christian
Got may clock this week and started to play around with it today.
Bluetooth audio works fine except I haven't figured out how to change the volume on the clock. However I'm usually either listening to music on my NAS or some internet radio station. Is it already possible to play audio from network sources such as a local NAS or even internet radio stations?
Christian
Quote from Zheng Han on August 13, 2018, 4:03 pm@ckruetze
Oboo is capable of playing any mp3 streaming sources including internet radios. Here are some pointers to set it up
first you need to install some packages
opkg update
opkg install alsa-utils mpg123
then you need to make sure the audio subsystem is put in to internal audio mode
#Internal Audio
gpioctl dirout-low 41
# BT Audio
gpioctl dirout-high 41
You might need to toggle gpio 41 a few times to get it registered (we are working at simplifying the process)
To verify the sound card is recognized properly run
aplay -L
You should see the following
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=AUDIO
USB AUDIO, USB Audio
Default Audio Device
sysdefault:CARD=AUDIO
USB AUDIO, USB Audio
Default Audio Device
front:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
Front speakers
surround21:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
IEC958 (S/PDIF) Digital Audio Output
Now the fun part, find the URL of your favorate internet radio station and run
mpg123 <URL>
For example to play BBC world news you can use the following command
mpg123 http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws
to make it run in the background add
&
to the end of the commandFinally to adjust the volume use
alsamixer
@ckruetze
Oboo is capable of playing any mp3 streaming sources including internet radios. Here are some pointers to set it up
first you need to install some packages
opkg update
opkg install alsa-utils mpg123
then you need to make sure the audio subsystem is put in to internal audio mode
#Internal Audio
gpioctl dirout-low 41
# BT Audio
gpioctl dirout-high 41
You might need to toggle gpio 41 a few times to get it registered (we are working at simplifying the process)
To verify the sound card is recognized properly run
aplay -L
You should see the following
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=AUDIO
USB AUDIO, USB Audio
Default Audio Device
sysdefault:CARD=AUDIO
USB AUDIO, USB Audio
Default Audio Device
front:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
Front speakers
surround21:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=AUDIO,DEV=0
USB AUDIO, USB Audio
IEC958 (S/PDIF) Digital Audio Output
Now the fun part, find the URL of your favorate internet radio station and run mpg123 <URL>
For example to play BBC world news you can use the following command
mpg123 http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws
to make it run in the background add &
to the end of the command
Finally to adjust the volume use alsamixer
Quote from ckruetze on August 13, 2018, 5:18 pmVery cool, it works 🙂
Very cool, it works 🙂