0
$\begingroup$

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!

$\endgroup$

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.

2
$\begingroup$

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.

$\endgroup$

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