ari_narrate
creates a video from a script written in markdown and HTML
slides created with rmarkdown
or a similar package.
This function uses Amazon Polly
via ari_spin
.
ari_narrate( script, slides, output = tempfile(fileext = ".mp4"), voice = text2speech::tts_default_voice(service = service), service = "amazon", capture_method = c("vectorized", "iterative"), subtitles = FALSE, ..., verbose = FALSE, audio_codec = get_audio_codec(), video_codec = get_video_codec(), cleanup = TRUE )
script | Either a markdown file where every paragraph will be read over
a corresponding slide, or an |
---|---|
slides | A path or URL for an HTML slideshow created with
|
output | The path to the video file which will be created. |
voice | The voice you want to use. See
|
service | speech synthesis service to use,
passed to |
capture_method | Either |
subtitles | Should a |
... | Arguments that will be passed to |
verbose | print diagnostic messages. If > 1, then more are printed |
audio_codec | The audio encoder for the splicing. If this
fails, try |
video_codec | The video encoder for the splicing. If this
fails, see |
cleanup | If |
The output from ari_spin
if (FALSE) { # ari_narrate(system.file("test", "ari_intro_script.md", package = "ari"), system.file("test", "ari_intro.html", package = "ari"), voice = "Joey") }