Little Girl's Mostly Linux Blog

PlaySoundFile

Play sound file

This page was last updated on July 18, 2009.

Type this command in a terminal window, replacing the path and filename with the path and filename to the sound file you wish to play:
aplay -q "/path/filename.wav"

Note that this works by default with .wav files. To use it with au, raw, or voc files, you have to add a t to the command, followed by the file type. Examples:

  • .au:
  • aplay -qt au "/path/filename.au"
  • .raw:
  • aplay -qt raw "/path/filename.raw"
  • .voc:
  • aplay -qt voc "/path/filename.voc"



Obligatory Happy Ending

And they all lived happily ever after. The end.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Comment:

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: