tts_speak_engine: Speak Enginge for 'knitr'

Description Usage Arguments Value Examples

View source: R/tts_speak_engine.R

Description

Speak Enginge for knitr

Usage

1

Arguments

options

A list of chunk options. Usually this is just the object options passed to the engine function; see knit_engines

Value

A character string generated from the source code and output using the appropriate output hooks.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
knitr::knit_engines$set(speak = tts_speak_engine)
options = list(
code = "hey let's go to the park",
eval = FALSE,
label = "random",
fig.path = tempdir(),
echo = TRUE, results = "asis",
engine = "speak")
tts_speak_engine(options)
    if (tts_auth("google")) {
       options$eval = TRUE
       tts_speak_engine(options)
    }

text2speech documentation built on July 8, 2020, 5:54 p.m.