0
$\begingroup$

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$
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.

| improve this answer | |
$\endgroup$

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