AI Generated Cheatsheets

afplay Cheatsheet

Overview

afplay is a command-line audio player for macOS. It allows you to play audio files from the command line or from a script.

Usage

afplay [options] audio_file

Options

Examples

Play an audio file:

afplay audio_file.mp3

Play an audio file with reduced volume:

afplay -v 0.5 audio_file.mp3

Play an audio file for 30 seconds:

afplay -t 30 audio_file.mp3

Resources