PulseAudio naming a device

pulseaudio

I found the Question and answer:

How can I use PulseAudio virtual audio streams to play music over Skype?

I am currently using the command

pactl load-module module-null-sink sink_name=Virtual1

to create my virtual devices. But would like to use

pactl load-module module-null-sink sink_name=Virtual1 sink_properties=device.description="NAME HERE (mic+music)"

But when issuing the command, I get the following error.

$ pactl load-module module-null-sink sink_name=Virtual2 sink_properties=device.description="NAME HERE (only music)"
Failure: Module initialization failed

Is there another way to name the device? Whilst making a virtual device.

Best Answer

There is no documentation to the effect but it looks like you need to create the sink first then assign it properties.

pacmd load-module module-null-sink sink_name=MySink
pacmd update-sink-proplist MySink device.description=MySink

To add a device.description with spaces please use the format "single-quotes"-"double-quotes"-"label".

pacmd load-module module-null-sink sink_name=MySink
pacmd update-sink-proplist MySink device.description='"My Sink"'
Related Question