<script> var audio = new Audio(); audio.src = ""; // I could not add the path of the file. audio.play(); </script>
I've tried this way:
audio.src = "@Server.MapPath("~/Content/sounds/beep.wav")";
I've also tried using html5. But again I could not access the other project in the "src". I tried converting the audio file into a byte on the controller part. But I didn't have a useful result.