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_talklanguageCodeThe language of the voice as a
BCP-47language codenameName of the voice, see list via gl_talk_languages for supported voices. Set to
NULLto make the service choose a voice based onlanguageCodeandgender.genderThe gender of the voice, if available
audioEncodingFormat of the requested audio stream
speakingRateSpeaking rate/speed between
0.25and4.0pitchSpeaking pitch between
-20.0and20.0in semitones.volumeGainDbVolumne gain in dB
sampleRateHertzSample rate for returned audio
inputTypeChoose between
text(the default) or SSML markup. Theinputtext must be SSML markup if you choosessmleffectsProfileIdsOptional. 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
nameis provided, this will ensure that the passedlanguageCodeis 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, ...)
- autoplay
passed to the HTML audio player - default
TRUEplays on load- controls
passed to the HTML audio player - default
TRUEshows controls- loop
passed to the HTML audio player - default
FALSEdoes not loop- keep_wav
keep the generated wav files if TRUE.
