Skip to content

Instantly share code, notes, and snippets.

@ymattu
Last active June 9, 2018 09:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ymattu/6d4b08de387e054a67cf7cb6e8f24bdf to your computer and use it in GitHub Desktop.
Save ymattu/6d4b08de387e054a67cf7cb6e8f24bdf to your computer and use it in GitHub Desktop.
---
title: "R で音声入りのスライドを作る"
author: "@y__mattu"
date: "データ解析備忘録"
output:
xaringan::moon_reader:
css: "for_xaringan.css"
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
# セットアップ
### パッケージ
```{r eval=FALSE}
library(ari)
```
### 環境変数
```{r eval=FALSE}
Sys.setenv("AWS_ACCESS_KEY_ID" = "**********",
"AWS_SECRET_ACCESS_KEY" = "********************",
"AWS_DEFAULT_REGION" = "ap-northeast-1")
```
---
# ビデオを作成
### スライドと原稿を指定し、実行
```{r eval=FALSE}
ari_narrate(script = "genkou.md",
slides = "blog.html",
voice = "Takumi",
output = "video.mp4",
capture_method = "iterative")
```
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
body {
font-family: Avenir , "Open Sans" , "Helvetica Neue" , Helvetica , Arial , Verdana , Roboto , "游ゴシック" , "Yu Gothic" , "游ゴシック体" , "YuGothic" , "ヒラギノ角ゴ Pro W3" , "Hiragino Kaku Gothic Pro" , "Meiryo UI" , "メイリオ" , Meiryo , "MS Pゴシック" , "MS PGothic" , sans-serif;
font-size: 100px;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
/* font-size: 100px; */
}
a, a > code {
color: rgb(249, 38, 114);
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 90%;
}
.remark-code, .remark-inline-code { font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace; }
.remark-code-line-highlighted { background-color: #ffff88; }
.inverse {
background-color: #272822;
color: #d6d6d6;
text-shadow: 0 0 20px #333;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #f3f3f3;
line-height: 1.0em;
}
.pull-left {
float: left;
width: 47%;
}
.pull-right {
float: right;
width: 47%;
}
.pull-right ~ * {
clear: both;
}
img {
max-width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment