play_audio | R Documentation |
This uses HTML5 audio tags to play audio in your browser. Borrowed from
googleLanguageR::gl_talk_player()
.
play_audio(audio = "output.wav", html = "player.html")
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 |
For more info, see this Mozilla documentation
detailing the <audio>
HTML element.
No return value, called for side effects
## Not run:
# Opens a browser with embedded audio
play_audio(audio = "output.wav")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.