Skip to content

MARIO: Making Automated R Instructors Online

License

Notifications You must be signed in to change notification settings

FredHutch/mario

Repository files navigation

mario

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.

Installation

You can install mario from GitHub with:

# install.packages("remotes")
remotes::install_github("FredHutch/mario")

Example

Before you can run mario, you will need two things:

  1. API Key
  2. Google Slides ID

API Key

TODO

Google Slides ID

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.

Running Mario

# 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)

About

MARIO: Making Automated R Instructors Online

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published