# NOT RUN {
# }
# NOT RUN {
library(magrittr)
gl_talk("The rain in spain falls mainly in the plain",
output = "output.wav")
gl_talk("Testing my new audio player") %>% gl_talk_player()
# using SSML
gl_talk('<speak>The <say-as interpret-as=\"characters\">SSML</say-as>
standard <break time=\"1s\"/>is defined by the
<sub alias=\"World Wide Web Consortium\">W3C</sub>.</speak>',
inputType = "ssml")
# using effects profiles
gl_talk("This sounds great on headphones",
effectsProfileIds = "headphone-class-device")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab