Skip to contents

This uses HTML5 audio tags to play audio in your browser. Borrowed from googleLanguageR::gl_talk_player().

Usage

play_audio(audio = "output.wav", html = "player.html")

Arguments

audio

The file location of the audio file. Must be supported by HTML5

html

The html file location that will be created host the audio

Value

No return value, called for side effects

Details

For more info, see this Mozilla documentation detailing the <audio> HTML element.

Examples

if (FALSE) { # \dontrun{
# Opens a browser with embedded audio
play_audio(audio = "output.wav")
} # }