Skip to content

Commit fcd0ac1

Browse files
authored
Merge pull request #21 from seankross/dev
Ari 0.3.5
2 parents d36afaa + 239bd88 commit fcd0ac1

37 files changed

+1240
-1099
lines changed

DESCRIPTION

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: ari
22
Type: Package
33
Title: Automated R Instructor
4-
Version: 0.3.3
4+
Version: 0.3.5
55
Authors@R: c(
66
person("Sean", "Kross", email = "[email protected]", role = c("aut", "cre")),
77
person("John", "Muschelli", role = "ctb")
@@ -16,7 +16,7 @@ SystemRequirements: ffmpeg (>= 3.2.4)
1616
Depends:
1717
R (>= 3.1.0)
1818
Imports:
19-
text2speech (>= 0.2.4),
19+
text2speech (>= 0.2.8),
2020
tuneR,
2121
webshot,
2222
purrr,
@@ -30,13 +30,11 @@ Suggests:
3030
testthat,
3131
grDevices,
3232
xaringan,
33-
aws.signature,
34-
aws.polly,
3533
knitr
3634
License: MIT + file LICENSE
3735
URL: http://github.com/seankross/ari
3836
BugReports: http://github.com/seankross/ari/issues
3937
Encoding: UTF-8
4038
LazyData: true
41-
RoxygenNote: 6.1.1
39+
RoxygenNote: 7.0.2
4240
VignetteBuilder: knitr

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ importFrom(rvest,html_nodes)
3636
importFrom(rvest,html_text)
3737
importFrom(text2speech,tts)
3838
importFrom(text2speech,tts_auth)
39+
importFrom(text2speech,tts_default_voice)
3940
importFrom(tools,file_ext)
4041
importFrom(tools,file_path_sans_ext)
4142
importFrom(tuneR,Wave)

NEWS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# ari 0.3.5
2+
3+
- Removed `have_polly()`.
4+
5+
# ari 0.3.4
6+
7+
- Removed strict dependency on aws.polly and associated Cloudyr projects because
8+
they have been orphaned.
9+
110
# ari 0.3.3
211

312
- Added vignette for using via a Docker image.

R/ari_narrate.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
#' \code{\link[text2speech]{tts_voices}} for more information
1717
#' about what voices are available.
1818
#' @param service speech synthesis service to use,
19-
#' passed to \code{\link[text2speech]{tts}}.
19+
#' passed to \code{\link[text2speech]{tts}}.
20+
#' Either \code{"amazon"} or \code{"google"}.
2021
#' @param capture_method Either \code{"vectorized"} or \code{"iterative"}.
2122
#' The vectorized mode is faster though it can cause screens to repeat. If
2223
#' making a video from an \code{\link[rmarkdown]{ioslides_presentation}}
@@ -52,7 +53,7 @@
5253
#' }
5354
ari_narrate <- function(script, slides,
5455
output = tempfile(fileext = ".mp4"),
55-
voice = "Joanna",
56+
voice = text2speech::tts_default_voice(service = service),
5657
service = "amazon",
5758
capture_method = c("vectorized", "iterative"),
5859
subtitles = FALSE, ...,

R/ari_spin.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#' Create a video from images and text
22
#'
33
#' Given equal length vectors of paths to images (preferably \code{.jpg}s
4-
#' or \code{.png}s) and strings which will be
5-
#' \code{\link[aws.polly]{synthesize}}d by
4+
#' or \code{.png}s) and strings which will be synthesized by
65
#' \href{https://aws.amazon.com/polly/}{Amazon Polly} or
76
#' any other synthesizer available in
87
#' \code{\link[text2speech]{tts}}, this function creates an
@@ -15,7 +14,7 @@
1514
#' narration. You can find a guide for accessing AWS from R
1615
#' \href{http://seankross.com/2017/05/02/Access-Amazon-Web-Services-in-R.html}{here}.
1716
#' For more information about how R connects
18-
#' to Amazon Polly see the \code{\link[aws.polly]{aws.polly}} documentation
17+
#' to Amazon Polly see the \code{aws.polly]} documentation
1918
#' \href{https://github.com/cloudyr/aws.polly}{here}.
2019
#'
2120
#' @param images A vector of paths to images.
@@ -25,7 +24,8 @@
2524
#' \code{\link[text2speech]{tts_voices}} for more information
2625
#' about what voices are available.
2726
#' @param service speech synthesis service to use,
28-
#' passed to \code{\link[text2speech]{tts}}
27+
#' passed to \code{\link[text2speech]{tts}}.
28+
#' Either \code{"amazon"} or \code{"google"}.
2929
#' @param subtitles Should a \code{.srt} file be created with subtitles? The
3030
#' default value is \code{FALSE}. If \code{TRUE} then a file with the same name
3131
#' as the \code{output} argument will be created, but with the file extension
@@ -34,7 +34,7 @@
3434
#'
3535
#' @return The output from \code{\link{ari_stitch}}
3636
#'
37-
#' @importFrom text2speech tts_auth tts
37+
#' @importFrom text2speech tts_auth tts tts_default_voice
3838
#' @importFrom tuneR bind Wave
3939
#' @importFrom purrr map reduce
4040
#' @importFrom progress progress_bar
@@ -54,7 +54,7 @@
5454
ari_spin <- function(
5555
images, paragraphs,
5656
output = tempfile(fileext = ".mp4"),
57-
voice = "Joanna",
57+
voice = text2speech::tts_default_voice(service = service),
5858
service = "amazon",
5959
subtitles = FALSE,
6060
...){
@@ -135,4 +135,4 @@ ari_spin <- function(
135135
attr(res, "voice") = voice
136136
attr(res, "service") = service
137137
return(res)
138-
}
138+
}

R/ari_talk.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' about what voices are available.
99
#' @param service speech synthesis service to use,
1010
#' passed to \code{\link[text2speech]{tts}}
11-
#'
11+
#' Either \code{"amazon"} or \code{"google"}.
1212
#' @return A \code{Wave} output object, with the attribute \code{outfile}
1313
#' of the output file name.
1414
#' @importFrom text2speech tts_auth tts
@@ -17,7 +17,7 @@
1717
#' @export
1818
ari_talk <- function(paragraphs,
1919
output = tempfile(fileext = ".wav"),
20-
voice = "Joanna",
20+
voice = text2speech::tts_default_voice(service = service),
2121
service = "amazon") {
2222
auth = text2speech::tts_auth(service = service)
2323
if (!auth) {

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ to put narration right in your `.Rmd` file (see
4848
`file.show(ari_example("ari_comments.Rmd"))`). Make sure to knit your `.Rmd`
4949
file into the HTML slides you want to be turned into a video.
5050

51-
Once you've finished your script and slides install the
52-
[`aws.polly`](https://github.com/cloudyr/aws.polly) package. You can find a
53-
guide for quickly setting up R to use Amazon Web Services
51+
Once you have finished your script and slides install the
52+
`aws.polly` package. You can find a guide for quickly
53+
setting up R to use Amazon Web Services
5454
[here](http://seankross.com/2017/05/02/Access-Amazon-Web-Services-in-R.html).
5555
Run `aws.polly::list_voices()` to make sure your keys are working (this
5656
function should return a data frame). Once you've set up your access keys you

cran-comments.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88

99
## R CMD check results
1010

11-
0 errors | 0 warnings | 0 notes
11+
0 errors | 0 warnings | 1 note
12+
13+
* New submission, Package was archived on CRAN

docs/404.html

Lines changed: 150 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)