From Fedora Project Wiki

Revision as of 10:37, 12 February 2021 by Lruzicka (talk | contribs) (Draft of the PipeWire CLI test case)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PipeWire CLI tools

This test case tests that PipeWire can be controlled using CLI commands.

Setup

  1. This test case should be performed on a bare machine.
  2. The computer must be equipped with a sound device and a microphone (or another source of audio).
  3. Install a desktop version of Fedora 34 (or later).
  4. Log in as a common user.
  5. Install the pipewire-utils package.
  6. Connect your speakers (headphones) to the default sound device.
  7. Have an audio file ready (wav).

How to test

  1. List all available playback devices (targets).

    $ pw-cat -p --list-targets

    You will notice a number identifying a particular target. Also, the default target is marked with an asterisk (*).

  2. Play a sound file over the default target.

    $ pw-cat -p <audiofile>

  3. Play a sound file and set the volume level.

    $ pw-cat -p --volume=0.1 <audiofile>

  4. List all available recording devices (targets).

    $ pw-cat -r --list-targets

  5. Connect your microphone (or a source of audio) to the default sound device.

  6. Record a sample recording using your default sound device.

    $ pw-cat -r audiotest.wav

  7. Record a sample recording using a different volume level.

    $ pw-cat -r --volume=0.1 quiet.wav

  8. Record a sample recording using a different rate.

    $ pw-cat -r --rate=6000 lowrate.wav

  9. If you have more than one audio devices, you can repeat the previous steps with another device using the --target option, such as

    $ pw-cat -p --target=XX <audiofile>

    where XX stands for the device number obtained by the --list-targets option.

Expected results

  1. Playback targets are listed and they correspond to your audio devices.
  2. The audio file is correctly played back in step 3.
  3. The selected audio is played back much quieter when compared to step 3.
  4. Recording targets are listed and they correspond to your devices.
  5. The audio is correctly recorded and can be played back (using pw-cat or another application).
  6. The audio recorded with limited volume (sensitivity) is much quieter when compared to the recording from step 7.
  7. The audio recorded with limited rate has much lower quality when compared to the recording from step 7.
  8. If you test different sound devices that have been recognized by PipeWire, it must be possible to use them for playback and recording via the --target option.