How can I play a mavica wav file?

I would like to know a simple way to implement a function playWav[filename_String]that plays a WAV file (as a side effect).

+5
source share
2 answers
playSound[filename_String] := EmitSound @ Import[filename, "WAV"]
+8
source

Changing “wav” to “Sound” allows you to play without a GUI

playSound[filename_String] := EmitSound @ Import[filename, "Sound"]
0
source

All Articles