LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pw-play

Play audio files through PipeWire

TLDR

Play a WAV file
$ pw-play [path/to/file.wav]
copy
Play a file at a specific volume
$ pw-play --volume [0.8] [path/to/file.wav]
copy
Play with a custom sample rate
$ pw-play --rate [48000] [path/to/file.wav]
copy
Play to a specific target node
$ pw-play --target [node_name] [path/to/file.wav]
copy
Play with specific resampler quality
$ pw-play -q [8] [path/to/file.wav]
copy

SYNOPSIS

pw-play [options] file

DESCRIPTION

pw-play is a convenience wrapper for pw-cat --playback, used to play audio files through PipeWire. It supports common audio formats including WAV, FLAC, and Ogg.All options available to pw-cat in playback mode also apply to pw-play. See pw-cat for full documentation.

PARAMETERS

--volume level

Playback volume (1.0 = 100%).
--rate hz
Sample rate in Hz.
--channels num
Number of audio channels.
-q, --quality level
Resampler quality (0-15, default 4).
--target target
Target PipeWire node to connect to.
--channel-map map
Channel map to use (e.g., FL,FR for stereo).
--format format
Sample format (e.g., s16, s32, f32, f64).
--latency latency
Latency in milliseconds.

SEE ALSO

pw-cat(1), pw-record(1), pw-cli(1), pipewire(1)

Copied to clipboard
Kai