View source: R/tts_speak_engine.R
tts_speak_engine | R Documentation |
knitr
Speak Engine for knitr
tts_speak_engine(options)
options |
A list of chunk options. Usually this is just the object
options passed to the engine function; see |
A character string generated from the source code and output using the appropriate output hooks.
## Not run:
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)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.