Options (6)
-d, --durationbooleanPlay the first 10 seconds of a specific file at 2500 Hz
Example:
aplay {{[-d|--duration]}} {{10}} {{[-r|--rate]}} {{2500}} {{path/to/file}}-r, --ratebooleanPlay the first 10 seconds of a specific file at 2500 Hz
Example:
aplay {{[-d|--duration]}} {{10}} {{[-r|--rate]}} {{2500}} {{path/to/file}}-c, --channelsbooleanPlay the raw file as a 22050 Hz, mono, 8-bit, Mu-Law `.au` file
Example:
aplay {{[-c|--channels]}} {{1}} {{[-t|--file-type]}} {{raw}} {{[-r|--rate]}} {{22050}} {{[-f|--format]}} {{mu_law}} {{path/to/file}}-t, --file-typebooleanPlay the raw file as a 22050 Hz, mono, 8-bit, Mu-Law `.au` file
Example:
aplay {{[-c|--channels]}} {{1}} {{[-t|--file-type]}} {{raw}} {{[-r|--rate]}} {{22050}} {{[-f|--format]}} {{mu_law}} {{path/to/file}}-f, --formatbooleanPlay the raw file as a 22050 Hz, mono, 8-bit, Mu-Law `.au` file
Example:
aplay {{[-c|--channels]}} {{1}} {{[-t|--file-type]}} {{raw}} {{[-r|--rate]}} {{22050}} {{[-f|--format]}} {{mu_law}} {{path/to/file}}-l, --list-devicesbooleanList available audio devices
Example:
aplay {{[-l|--list-devices]}}Examples (4)
Play a specific file (sampling rate, bit depth, etc. will be automatically determined for the file format)
aplay path/to/filePlay the first 10 seconds of a specific file at 2500 Hz
aplay [-d|--duration] 10 [-r|--rate] 2500 path/to/filePlay the raw file as a 22050 Hz, mono, 8-bit, Mu-Law `.au` file
List available audio devices
aplay [-l|--list-devices]made by @shridhargupta | data from tldr-pages