janvda / balena-pulseaudio

Is a balena application running a pulseaudio server and demonstrating how it can be used for playing and recording audio on a raspberry pi. It also supports bluetooth audio devices.
Eclipse Public License 2.0
6 stars 2 forks source link

mqtt interface providing similar functionality as pavucontrol #23

Closed janvda closed 5 years ago

janvda commented 5 years ago

The goal is to provide an mqtt interface that allows to do and see the same things as pavucontrol.

This includes the following features:

  1. Regarding input devices (audio capture devices)
    1. List input devices
    2. Specify active one
    3. Specify volume
    4. mute
    5. show current volume real-time
  2. Regarding output devices (playback devices) The same as for the input devices
  3. Regarding playback
  4. Regarding recording
  5. Regarding configuration
janvda commented 5 years ago

Some interesting projects to start of:

janvda commented 5 years ago

I have tried to use the node.js library https://github.com/mscdex/paclient but due to following issue https://github.com/mscdex/paclient/issues/1 this is currently not an option.

janvda commented 5 years ago

I have upgraded Host OS version to balenaOS 2.43.0+rev1 and this resolved the problem.

See following output

root@ba7c427:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Device [USB2.0 Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@ba7c427:/#