Play sound on USB audio dongle
by mackowiakp from LinuxQuestions.org on (#576EF)
I would like to stream radio stations from the Internet on the satellite receiver when it is in standby mode and the TV is turned off. This receiver is based on Ubuntu/Debian. The operation of the satellite functions is handled by the Enigma 2 software.
The receiver is built on a 4 core ARMv7 and there is 4.6 GB of free Flash and 0.5 GB of free RAM. CPU usage is also low.
The goal is to stream radio station via plugged USB sound dongle.
USB audio dongle is properly recognized by the system of Sat receiver (type Zgemma H9 Combo):
Code:root@zegmma-p:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HISIAIAO [HISI-AIAO], device 0: Playback aiao-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0And:
Code:root@zegmma-p:/# cat /proc/asound/cards
0 [HISIAIAO ]: HISI-AIAO - HISI-AIAO
HISI-AIAO
2 [Set ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-f9880000.ohci-1, full speedAlsamixer shows controls for this USB card too (correctly).
It very easy to control it such streaming via home automation suite like Domoticz, and thats the way I want to do. It works perfectly on Raspberry Pi.
So my question is. What command and syntax I have to use to playback (using mpg123 for example) to play mp3 file or stream from Internet?


The receiver is built on a 4 core ARMv7 and there is 4.6 GB of free Flash and 0.5 GB of free RAM. CPU usage is also low.
The goal is to stream radio station via plugged USB sound dongle.
USB audio dongle is properly recognized by the system of Sat receiver (type Zgemma H9 Combo):
Code:root@zegmma-p:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HISIAIAO [HISI-AIAO], device 0: Playback aiao-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0And:
Code:root@zegmma-p:/# cat /proc/asound/cards
0 [HISIAIAO ]: HISI-AIAO - HISI-AIAO
HISI-AIAO
2 [Set ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-f9880000.ohci-1, full speedAlsamixer shows controls for this USB card too (correctly).
It very easy to control it such streaming via home automation suite like Domoticz, and thats the way I want to do. It works perfectly on Raspberry Pi.
So my question is. What command and syntax I have to use to playback (using mpg123 for example) to play mp3 file or stream from Internet?