Package com.twilio.twiml.voice
Class Say.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Say.Builder>
-
- com.twilio.twiml.voice.Say.Builder
-
- Enclosing class:
- Say
public static class Say.Builder extends TwiML.Builder<Say.Builder>
Create a new<Say>element
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Say.Builderbreak_(SsmlBreak ssmlBreak)Add a child<break>elementSaybuild()Create and return resulting<Say>elementSay.Builderemphasis(SsmlEmphasis ssmlEmphasis)Add a child<emphasis>elementstatic Say.BuilderfromXml(String xml)Create and return a<Say.Builder>from an XML stringSay.Builderlang(SsmlLang ssmlLang)Add a child<lang>elementSay.Builderlanguage(Say.Language language)Message languageSay.Builderloop(Integer loop)Times to loop messageSay.Builderp(SsmlP ssmlP)Add a child<p>elementSay.Builderphoneme(SsmlPhoneme ssmlPhoneme)Add a child<phoneme>elementSay.Builderprosody(SsmlProsody ssmlProsody)Add a child<prosody>elementSay.Builders(SsmlS ssmlS)Add a child<s>elementSay.BuildersayAs(SsmlSayAs ssmlSayAs)Add a child<say-as>elementSay.Buildersub(SsmlSub ssmlSub)Add a child<sub>elementSay.Buildervoice(Say.Voice voice)Voice to useSay.Builderw(SsmlW ssmlW)Add a child<w>element-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Constructor Detail
-
Builder
public Builder(String message)
Create a<Say>with message
-
Builder
public Builder()
Create a<Say>with child elements
-
-
Method Detail
-
fromXml
public static Say.Builder fromXml(String xml) throws TwiMLException
Create and return a<Say.Builder>from an XML string- Throws:
TwiMLException
-
voice
public Say.Builder voice(Say.Voice voice)
Voice to use
-
loop
public Say.Builder loop(Integer loop)
Times to loop message
-
language
public Say.Builder language(Say.Language language)
Message language
-
break_
public Say.Builder break_(SsmlBreak ssmlBreak)
Add a child<break>element
-
emphasis
public Say.Builder emphasis(SsmlEmphasis ssmlEmphasis)
Add a child<emphasis>element
-
lang
public Say.Builder lang(SsmlLang ssmlLang)
Add a child<lang>element
-
p
public Say.Builder p(SsmlP ssmlP)
Add a child<p>element
-
phoneme
public Say.Builder phoneme(SsmlPhoneme ssmlPhoneme)
Add a child<phoneme>element
-
prosody
public Say.Builder prosody(SsmlProsody ssmlProsody)
Add a child<prosody>element
-
s
public Say.Builder s(SsmlS ssmlS)
Add a child<s>element
-
sayAs
public Say.Builder sayAs(SsmlSayAs ssmlSayAs)
Add a child<say-as>element
-
sub
public Say.Builder sub(SsmlSub ssmlSub)
Add a child<sub>element
-
w
public Say.Builder w(SsmlW ssmlW)
Add a child<w>element
-
build
public Say build()
Create and return resulting<Say>element
-
-