knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
The goal of mario
is to automatically create videos from a set of
Google Slides. Whatever is written in the speaker notes section of the
Google Slides will be read in the video.
If you update the slides, all you need to do is re-run mario
to update the video.
You can install mario
from GitHub with:
# install.packages("remotes") remotes::install_github("FredHutch/mario")
Before you can run mario
, you will need two things:
1) API Key 2) Google Slides ID
TODO
If you have a Google Slides set, you can obtain the Google Slides set ID from the URL:
https://docs.google.com/presentation/d/**presentationId**/edit
Your Google Slides permissions must be set to Anyone with the link
.
For testing purposes, we've included a set of test slides you can use to practice.
# Google Slides ID id <- "1sFsRXfK7LKxFm-ydib5dxyQU9fYujb95katPRu0WVZk" # Run mario! res <- mario::mario(id, voice = "en-US-Wavenet-F") # Write the video mario::mario_write_video( res)
Mario will print a file path to the newly rendered video in the console. If you'd like to see a list of all the voice options:
voice_options <- mario_voices() head(voice_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.