Learn R Programming

mscstts (version 0.4.0)

create_ssml: Create SSML for Passing to Synthesize

Description

Create SSML for Passing to Synthesize

Usage

create_ssml(script, gender = c("Female", "Male"), language = "en-US",
  escape = FALSE)

Arguments

script

A character vector of lines to be spoken

gender

Sex of the Speaker

language

Language to be spoken, must be from ms_language_codes

escape

Should non-standard characters be substituted? Should not be used if script has SSML tags

Value

A character string of the text and SSML markup

Examples

Run this code
# NOT RUN {
create_ssml("hey I really like things & dogs", escape = TRUE)
create_ssml("hey I really like things")
create_ssml('hey I <emphasis level="strong">really like</emphasis> things')
create_ssml('hey I <emphasis level="strong">really like</emphasis> things',
escape = TRUE)

# }

Run the code above in your browser using DataLab