UNO-Q-AudioPlayer-Brick

I just published a new UNO Q App Lab experiment:

:musical_note: UNO-Q-AudioPlayer-Brick

The project explores a generic audio playback brick architecture for Arduino App Lab on UNO Q.

Main features:

  • custom App Lab brick
  • containerized Linux audio backend
  • ALSA audio playback
  • MP3 streaming
  • volume control
  • playback status
  • reusable Python API

The current version focuses on HTTP/HTTPS audio streams:

from audioplayer import AudioPlayer

player = AudioPlayer()

player.set_volume(50)

player.play("http://icecast.radiofrance.fr/franceinfo-lofi.mp3")

The backend uses:

  • Docker containers
  • mpg123
  • ALSA
  • /dev/snd exposure inside the container

This project started as a WebRadio experiment and progressively evolved into a more generic audio abstraction layer for App Lab.

Local MP3 file playback will be explored in a future update.

Repository:

Small update on the AudioPlayer custom brick experiment for UNO Q.

The project now supports both:

  • HTTP / HTTPS audio streams
  • local MP3 playback from the UNO Q host filesystem

Example:

player.play("http://icecast.radiofrance.fr/franceinfo-lofi.mp3")
player.play("/hosthome/test.mp3")

The brick now demonstrates:

  • reusable Python API
  • custom App Lab brick
  • embedded containerized backend via brick_compose.yaml
  • ALSA audio access through /dev/snd
  • local host filesystem mounting for MP3 playback

Repository updated:

This turned out to be a very interesting exploration of what custom bricks can encapsulate on UNO Q.