public static class SsmlW.Builder extends TwiML.Builder<SsmlW.Builder>
<w>
elementConstructor and Description |
---|
Builder()
Create a
<w> with child elements |
Builder(String words)
Create a
<w> with words |
Modifier and Type | Method and Description |
---|---|
SsmlW.Builder |
break_(SsmlBreak ssmlBreak)
Add a child
<break> element |
SsmlW |
build()
Create and return resulting
<w> element |
SsmlW.Builder |
emphasis(SsmlEmphasis ssmlEmphasis)
Add a child
<emphasis> element |
static SsmlW.Builder |
fromXml(String xml)
Create and return a
<SsmlW.Builder> from an XML string |
SsmlW.Builder |
phoneme(SsmlPhoneme ssmlPhoneme)
Add a child
<phoneme> element |
SsmlW.Builder |
prosody(SsmlProsody ssmlProsody)
Add a child
<prosody> element |
SsmlW.Builder |
role(String role)
Customize the pronunciation of words by specifying the word’s part of speech
or alternate meaning
|
SsmlW.Builder |
sayAs(SsmlSayAs ssmlSayAs)
Add a child
<say-as> element |
SsmlW.Builder |
sub(SsmlSub ssmlSub)
Add a child
<sub> element |
addChild, addText, option
public Builder(String words)
<w>
with wordspublic Builder()
<w>
with child elementspublic static SsmlW.Builder fromXml(String xml) throws TwiMLException
<SsmlW.Builder>
from an XML stringTwiMLException
public SsmlW.Builder role(String role)
public SsmlW.Builder break_(SsmlBreak ssmlBreak)
<break>
elementpublic SsmlW.Builder emphasis(SsmlEmphasis ssmlEmphasis)
<emphasis>
elementpublic SsmlW.Builder phoneme(SsmlPhoneme ssmlPhoneme)
<phoneme>
elementpublic SsmlW.Builder prosody(SsmlProsody ssmlProsody)
<prosody>
elementpublic SsmlW.Builder sayAs(SsmlSayAs ssmlSayAs)
<say-as>
elementpublic SsmlW.Builder sub(SsmlSub ssmlSub)
<sub>
elementpublic SsmlW build()
<w>
elementCopyright © 2019 Twilio, Inc. All Rights Reserved.