Learn R Programming

text2speech (version 1.0.0)

play_audio: Play audio in a browser

Description

This uses HTML5 audio tags to play audio in your browser.

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 to host the audio file.

Details

Borrowed from googleLanguageR::gl_talk_player()

Examples

Run this code
if (FALSE) {
  play_audio(audio = "audio.wav", html = "player.html")
}

Run the code above in your browser using DataLab