| gl_talk_shiny {googleLanguageR} | R Documentation |
Speak in Shiny module (server)
Description
Call via shiny::callModule(gl_talk_shiny, "your_id")
Usage
gl_talk_shiny(
input,
output,
session,
transcript,
...,
autoplay = TRUE,
controls = TRUE,
loop = FALSE,
keep_wav = FALSE
)
Arguments
input |
shiny input
|
output |
shiny output
|
session |
shiny session
|
transcript |
The (reactive) text to talk
|
... |
Arguments passed on to gl_talk
languageCodeThe language of the voice as a BCP-47 language code
nameName of the voice, see list via gl_talk_languages for supported voices. Set to NULL to make the service choose a voice based on languageCode and gender.
genderThe gender of the voice, if available
audioEncodingFormat of the requested audio stream
speakingRateSpeaking rate/speed between 0.25 and 4.0
pitchSpeaking pitch between -20.0 and 20.0 in semitones.
volumeGainDbVolumne gain in dB
sampleRateHertzSample rate for returned audio
inputTypeChoose between text (the default) or SSML markup. The input text must be SSML markup if you choose ssml
effectsProfileIdsOptional. An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given
|
autoplay |
passed to the HTML audio player - default TRUE plays on load
|
controls |
passed to the HTML audio player - default TRUE shows controls
|
loop |
passed to the HTML audio player - default FALSE does not loop
|
keep_wav |
keep the generated wav files if TRUE.
|
[Package
googleLanguageR version 0.3.0
Index]