Call via shiny::callModule(gl_talk_shiny, "your_id")
gl_talk_shiny(
input,
output,
session,
transcript,
...,
autoplay = TRUE,
controls = TRUE,
loop = FALSE,
keep_wav = FALSE
)shiny input
shiny output
shiny session
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
forceLanguageCodeIf name is provided, this will ensure that the passed languageCode is used instead of being inferred from name. This is necessary for models that require the exact code (en-us, en-gb, ...), not just the two letters shorthand (en, es, ...)
passed to the HTML audio player - default TRUE plays on load
passed to the HTML audio player - default TRUE shows controls
passed to the HTML audio player - default FALSE does not loop
keep the generated wav files if TRUE.