var audio = new Audio("folder_name/audio_file.mp3"); audio.currentTime = 0; // Set audio play time from the beginning of audio audio.play(); // start playing audio audio.pause(); // pause audio