Playing a sound from CLI

promoxer

Member
Apr 21, 2023
182
17
18
I'm trying to setup Proxmox to play some audio, I have a USB sound card attached to it, but an error is thrown everytime I try to play something. Any idea?

Code:
root@pve:/etc/pve# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: USB [Scarlett Solo USB], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@pve:/etc/pve# aplay a.mp3
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
aplay: main:830: audio open error: No such file or directory
root@pve:/etc/pve#
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!