gl_talk_shiny function

Speak in Shiny module (server)

Speak in Shiny module (server)

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 )

Arguments

  • input: shiny input

  • output: shiny output

  • session: shiny session

  • transcript: The (reactive) text to talk

  • ...: Arguments passed on to gl_talk

    • languageCode: The language of the voice as a BCP-47 language code
    • name: Name 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.
    • gender: The gender of the voice, if available
    • audioEncoding: Format of the requested audio stream
    • speakingRate: Speaking rate/speed between 0.25 and 4.0
    • pitch: Speaking pitch between -20.0 and 20.0 in semitones.
    • volumeGainDb: Volumne gain in dB
    • sampleRateHertz: Sample rate for returned audio
    • inputType: Choose between text (the default) or SSML markup. The input text must be SSML markup if you choose ssml
    • effectsProfileIds: Optional. 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.