I want Mathematica (Version 11.0.1.0) to automatically play a specific sound file after importing from the hard drive without any user intervention other than opening the notebook. Here is what I have tried:
SetDirectory["D:\\MyTestDirectory"];
mysound = Import["Two_musical_notes_overlap-for-test.wav"];
EmitSound[mysound]
After that cell is evaluated I get a dialog box with a play button that the user has has to click on to get the "wav" file to play. I do not want the user to have to do anything other than evaluate the cell which will cause the sound to be played. It would be nice if I could even suppress the sound dialog box from even appearing but I'll be happy with just getting this to play automatically.
Audio[]
object instead of as aSound[]
object. (It does sound confusing...) $\endgroup$$Version
are you using? 'Cause I have no problems withs = Import[ "ExampleData/rule30.wav"]; EmitSound[s]
on10.4.1 for Linux x86 (64-bit)
. $\endgroup$