Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Play audio files from command line?



Tony,

You can start it from the command line with the 'open' command i.e. 'open file.aiff &' Though this does load iTunes / the QuickTime player / etc., at least it only loads once (unless you kill it) and it only takes the focus from the command line window the first time.

I, too, would be interested in a purely CLI way to do this ... but this is a well-sort-of-ok-I-guess substitute for now, at least for me ...

Regards,

John

Say I have an AIFF file with 16-bit samples. Is there a way to send this to the speaker of my PowerBook G4 from the command line? I'm sure it's not as simple as cat > /dev/audio. Indeed /dev/audio doesn't appear to exist in Darwin despite having a man page.

What I'm probably looking for is a user-level interface to the Audio Hardware Abstraction Layer (HAL). Does such a thing exist, or could such a thing be contrived with a script? Is there some little utility I can download from somewhere?

Though I'm actually running MacOS X rather than bare Darwin, I'm specifically seeking a way to avoid having to load Quicktime or iTunes whenever I just want to audition a sound file. Perhaps there's some obvious thing I'm just missing.

Falling You - exploring the beauty of voice and sound
http://www.mp3.com/fallingyou
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Play audio files from command line? (From: Anthony Morton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.