Skip to content

j23414/test_aws_polly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Test install ARI and AWS Polly on MacOS

Artificially generated voice for tutorials/talks

Saw a talk at BCC2020 with an artificially generated voice, to make writing tutorials scriptable. I'm checking ease of installation. Pretty easy to install on MacOS v10.13.6 :)

Please cite the original jhudsl/ari repo.

Begin Test

(1) Install on MacOS - DONE

In R

# Install packages
install.packages(c("ari", "aws.polly"))

library(ari)
library(aws.polly)
# You will need an AWS instance with key (see security section/key generation)
Sys.setenv("AWS_ACCESS_KEY_ID" = "paste your key here",
           "AWS_SECRET_ACCESS_KEY" = "paste other key here",
           "AWS_DEFAULT_REGION" = "us-east-2")

In bash, install ffmpeg. I used homebrew package manager.

brew install ffmpeg
(2) Create an example video - DONE

An example talk is converted to video jen_example.Rmd.

In R

ari_narrate(
  "talk/jen_example.Rmd",
  "talk/jen_example.html",
  voice = "Kendra",
  delay = 0.5,
  capture_method = "iterative")

In bash... for some reason the generated video is not in current directory

# The path name is printed in R
mv /private/var/folders/wt/gw5b79wn4sjcpny6d0x4p1680000gn/T/RtmpQCS9pF/file10a1b28a86c6f.mp4 .
mv file10a1b28a86c6f.mp4 jen_example.mp4    # rename it

Finish: See Ari Generated Video. : )

About

Artificially generated voice for tutorials/talks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages