tts_speak_engine {text2speech}R Documentation

Speak Engine for knitr

Description

Speak Engine for knitr

Usage

tts_speak_engine(options)

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

## 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)

[Package text2speech version 1.0.0 Index]