jhudsl / ari

:dancers: The Automated R Instructor
https://jhudatascience.org/ari/
Other
147 stars 37 forks source link

Use of SSML #34

Open bebersb opened 2 years ago

bebersb commented 2 years ago

I tried to use SSML when having my texts spoken by Amazon Polly. Unfortunately, it does not work. See the example below - I tried both with and without .

Does anybody have an idea?

Thanks.

slides <- system.file("test", c("mab2.png", "mab1.png"),
                      package = "ari")
sentences <- c("Welcome to my very <s> interesting lecture.",
               "<speak>Here are some fantastic <s> equations I came up with.</speak>")
ari_spin(slides, sentences, voice = "Brian", output = "Videos/slides_test_test.mp4")
muschellij2 commented 2 years ago

You need to pass ari_spin(..., tts_args = list(ssml = TRUE))