I've never worked with audio before, so it was hard. But with some luck and persistence I managed to finish this project 😮💨.
- create an output pipewire node
- if
target
is specified than settarget
property on the node - depending on presence of the target node it will play sound to the default output device or
to the
target
node (for example discord).
Run the CLI with two arguments: file
and target
. File is a path to some supported audio file.
Target is a name of a pipewire node, to get the name use Helvum, it is the label on top of every node.
- pipewire's examples folder
- helvum useful to see and rearrange nodes
- pipewire tutorial. The tutorial is for C, but some solutions are available in the examples folder in rust
- symphonia