← 返回命令列表

Linux command

play 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Play audio file

play [audio.mp3]

Play with effects

play [audio.wav] reverb

Play at different speed

play [audio.wav] speed 1.5

Play with volume change

play [audio.wav] vol 0.5

Combine files

play [file1.wav] [file2.wav]

说明

play plays audio files from the command line with optional real-time effects processing. Part of the SoX (Sound eXchange) audio toolkit, it supports a wide range of formats including WAV, MP3, FLAC, OGG, and many others. Audio effects such as reverb, echo, speed change, volume adjustment, and equalization can be chained together on the command line. Multiple files can be concatenated for sequential playback.

参数

-v _VOLUME_
Volume level.
-r _RATE_
Sample rate.
--help
Display help.

FAQ

What is the play command used for?

play plays audio files from the command line with optional real-time effects processing. Part of the SoX (Sound eXchange) audio toolkit, it supports a wide range of formats including WAV, MP3, FLAC, OGG, and many others. Audio effects such as reverb, echo, speed change, volume adjustment, and equalization can be chained together on the command line. Multiple files can be concatenated for sequential playback.

How do I run a basic play example?

Run `play [audio.mp3]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v _VOLUME_ do in play?

Volume level.