play audio javascript with my text code example Example: play sound javascript var audio = new Audio("folder_name/audio_file.mp3"); audio.play();