play_audio: Play audio in a browser

View source: R/aaa_utils.R

play_audioR Documentation

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

## Not run: 
  play_audio(audio = "audio.wav", html = "player.html")

## End(Not run)

text2speech documentation built on July 26, 2023, 5:30 p.m.