• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pw-play Command Examples in Linux

by Deepika

In PipeWire, pw-cat is a command-line tool used for reading and writing audio data to and from PipeWire clients. It can be used to capture audio from a source, process it, and play it back on a sink. However, using pw-cat can require specifying several command-line options, which can be cumbersome for some users.

To simplify the process of playing audio using pw-cat, the pw-play tool was introduced. pw-play is a shorthand tool for pw-cat –playback, which allows users to play audio files with a single command.

To use pw-play, users need to specify the audio file they want to play using its file path. Users can also specify any additional options they want to use, such as the audio format or the sink to play the audio on

pw-play Command Examples

1. List all available playback targets:

# pw-play --list-targets

2. Play a wav sound file over the default target:

# pw-play {{path/to/file.wav}}

3. Play a wav sound file at a different volume level:

# pw-play --volume={{0.1}} {{path/to/file.wav}}

Summary

Overall, pw-play is a convenient tool for playing audio files in PipeWire, allowing users to quickly and easily play audio without having to specify multiple command-line options. More information about using PipeWire CLI tools can be found in the PipeWire documentation.

Filed Under: Linux

Some more articles you might also be interested in …

  1. ghci: The Glasgow Haskell Compiler’s interactive environment
  2. CentOS / RHEL : How to find kernel parameters used while booting
  3. “git ignore” Command Examples
  4. coffee: Executes CoffeeScript scripts or compiles them into JavaScript
  5. kwriteconfig5 Command Examples in Linux
  6. “aws rds” Command Examples
  7. Linux OS Service ‘ntpd’
  8. amass intel – Collect open source intel on an organisation like root domains and ASNs
  9. “hg branch” Command Examples
  10. clifm: The command line file manager

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright