Create Speech Synthesis Markup Language (SSML)
Usage
ms_create_ssml(
script,
voice = NULL,
gender = c("Female", "Male"),
language = "en-US",
escape = FALSE
)
Examples
ms_create_ssml("hey I really like things & dogs", escape = TRUE)
#> [1] "<speak version='1.0' xml:lang='en-US'><voice xml:lang='en-US' xml:gender='Female' name=''>hey I really like things and dogs</voice></speak>"
ms_create_ssml("hey I really like things")
#> [1] "<speak version='1.0' xml:lang='en-US'><voice xml:lang='en-US' xml:gender='Female' name=''>hey I really like things</voice></speak>"
ms_create_ssml('hey I <emphasis level="strong">really like</emphasis> things')
#> [1] "<speak version='1.0' xml:lang='en-US'><voice xml:lang='en-US' xml:gender='Female' name=''>hey I <emphasis level=\"strong\">really like</emphasis> things</voice></speak>"
ms_create_ssml('hey I <emphasis level="strong">really like</emphasis> things',
escape = TRUE)
#> [1] "<speak version='1.0' xml:lang='en-US'><voice xml:lang='en-US' xml:gender='Female' name=''>hey I emphasis level=\"strong\"really likeemphasis things</voice></speak>"