play_audio {conrad}R Documentation

Play audio in a browser

Description

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

Details

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

Value

No return value, called for side effects

Examples

## Not run: 
# Opens a browser with embedded audio
play_audio(audio = "output.wav")

## End(Not run)

[Package conrad version 1.0.0 Index]