The example sink is a good starting point for writing a custom sink. We refer to the source code for more information.
libpipewire-module-example-sink
node.name: a unique name for the streamnode.description: a human readable name for the streamstream.props = {}: properties to be passed to the streamOptions with well-known behavior.