Package com.twilio.twiml.voice
Class SsmlW.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<SsmlW.Builder>
-
- com.twilio.twiml.voice.SsmlW.Builder
-
- Enclosing class:
- SsmlW
public static class SsmlW.Builder extends TwiML.Builder<SsmlW.Builder>
Create a new<w>element
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SsmlW.Builderbreak_(SsmlBreak ssmlBreak)Add a child<break>elementSsmlWbuild()Create and return resulting<w>elementSsmlW.Builderemphasis(SsmlEmphasis ssmlEmphasis)Add a child<emphasis>elementstatic SsmlW.BuilderfromXml(String xml)Create and return a<SsmlW.Builder>from an XML stringSsmlW.Builderphoneme(SsmlPhoneme ssmlPhoneme)Add a child<phoneme>elementSsmlW.Builderprosody(SsmlProsody ssmlProsody)Add a child<prosody>elementSsmlW.Builderrole(String role)Customize the pronunciation of words by specifying the word’s part of speech or alternate meaningSsmlW.BuildersayAs(SsmlSayAs ssmlSayAs)Add a child<say-as>elementSsmlW.Buildersub(SsmlSub ssmlSub)Add a child<sub>element-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Constructor Detail
-
Builder
public Builder(String words)
Create a<w>with words
-
Builder
public Builder()
Create a<w>with child elements
-
-
Method Detail
-
fromXml
public static SsmlW.Builder fromXml(String xml) throws TwiMLException
Create and return a<SsmlW.Builder>from an XML string- Throws:
TwiMLException
-
role
public SsmlW.Builder role(String role)
Customize the pronunciation of words by specifying the word’s part of speech or alternate meaning
-
break_
public SsmlW.Builder break_(SsmlBreak ssmlBreak)
Add a child<break>element
-
emphasis
public SsmlW.Builder emphasis(SsmlEmphasis ssmlEmphasis)
Add a child<emphasis>element
-
phoneme
public SsmlW.Builder phoneme(SsmlPhoneme ssmlPhoneme)
Add a child<phoneme>element
-
prosody
public SsmlW.Builder prosody(SsmlProsody ssmlProsody)
Add a child<prosody>element
-
sayAs
public SsmlW.Builder sayAs(SsmlSayAs ssmlSayAs)
Add a child<say-as>element
-
sub
public SsmlW.Builder sub(SsmlSub ssmlSub)
Add a child<sub>element
-
build
public SsmlW build()
Create and return resulting<w>element
-
-