Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I know you can import sounds/images from the Mathematica library, but I was wondering if I could import sounds I have on my computer (i.e. .wav files)? I've tried using the Import functon and properly named the file, but it says it can't be found. Thank you for any assistance anyone can provide!

share|improve this question

marked as duplicate by Yves Klett, Sjoerd C. de Vries, Simon Woods, Artes, whuber Apr 21 '13 at 20:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Did you provide the full path to your file? –  J. M. Apr 21 '13 at 6:57
1  
It is possible to import .wav files. Take a look at reference.wolfram.com/mathematica/ref/format/WAV.html –  Rod Apr 21 '13 at 7:05

1 Answer 1

Make sure you're telling Mathematica to look the right place:

SetDirectory["/Users/me/Desktop/sound-files"]

/Users/me/Desktop/sound-files

List the files:

FileNames["*.wav"]

{"asteroidexplode.wav", "fire.wav", "rule30.wav", "shipexplode.wav", "thrust.wav"}

Then import a file:

fire = Import["fire.wav"]

screen grab

Now you can refer to the answers that @Yves pointed to in the comments.

share|improve this answer
    
Thank you very much! –  FF5Ninja Apr 21 '13 at 13:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.