# vhost-device-sound ## Synopsis vhost-device-sound --socket --backend ## Description A virtio-sound device using the vhost-user protocol. ## Options ```text --socket vhost-user Unix domain socket path --backend audio backend to be used [possible values: null, pipewire, alsa] -h, --help Print help -V, --version Print version ``` ## Examples Launch the backend on the host machine: ```shell host# vhost-device-sound --socket /tmp/snd.sock --backend null ``` With QEMU, you can add a `virtio` device that uses the backend's socket with the following flags: ```text -chardev socket,id=vsnd,path=/tmp/snd.sock \ -device vhost-user-snd-pci,chardev=vsnd,id=snd ``` ## License This project is licensed under either of - [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0 - [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause)