Package com.twilio.twiml.voice
Class SsmlProsody.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<SsmlProsody.Builder>
-
- com.twilio.twiml.voice.SsmlProsody.Builder
-
- Enclosing class:
- SsmlProsody
public static class SsmlProsody.Builder extends TwiML.Builder<SsmlProsody.Builder>
Create a new<prosody>element
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SsmlProsody.Builderbreak_(SsmlBreak ssmlBreak)Add a child<break>elementSsmlProsodybuild()Create and return resulting<prosody>elementSsmlProsody.Builderemphasis(SsmlEmphasis ssmlEmphasis)Add a child<emphasis>elementstatic SsmlProsody.BuilderfromXml(String xml)Create and return a<SsmlProsody.Builder>from an XML stringSsmlProsody.Builderlang(SsmlLang ssmlLang)Add a child<lang>elementSsmlProsody.Builderp(SsmlP ssmlP)Add a child<p>elementSsmlProsody.Builderphoneme(SsmlPhoneme ssmlPhoneme)Add a child<phoneme>elementSsmlProsody.Builderpitch(String pitch)Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%SsmlProsody.Builderprosody(SsmlProsody ssmlProsody)Add a child<prosody>elementSsmlProsody.Builderrate(String rate)Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%SsmlProsody.Builders(SsmlS ssmlS)Add a child<s>elementSsmlProsody.BuildersayAs(SsmlSayAs ssmlSayAs)Add a child<say-as>elementSsmlProsody.Buildersub(SsmlSub ssmlSub)Add a child<sub>elementSsmlProsody.Buildervolume(String volume)Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndBSsmlProsody.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 words)
Create a<prosody>with words
-
Builder
public Builder()
Create a<prosody>with child elements
-
-
Method Detail
-
fromXml
public static SsmlProsody.Builder fromXml(String xml) throws TwiMLException
Create and return a<SsmlProsody.Builder>from an XML string- Throws:
TwiMLException
-
volume
public SsmlProsody.Builder volume(String volume)
Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
-
rate
public SsmlProsody.Builder rate(String rate)
Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
-
pitch
public SsmlProsody.Builder pitch(String pitch)
Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
-
break_
public SsmlProsody.Builder break_(SsmlBreak ssmlBreak)
Add a child<break>element
-
emphasis
public SsmlProsody.Builder emphasis(SsmlEmphasis ssmlEmphasis)
Add a child<emphasis>element
-
lang
public SsmlProsody.Builder lang(SsmlLang ssmlLang)
Add a child<lang>element
-
p
public SsmlProsody.Builder p(SsmlP ssmlP)
Add a child<p>element
-
phoneme
public SsmlProsody.Builder phoneme(SsmlPhoneme ssmlPhoneme)
Add a child<phoneme>element
-
prosody
public SsmlProsody.Builder prosody(SsmlProsody ssmlProsody)
Add a child<prosody>element
-
s
public SsmlProsody.Builder s(SsmlS ssmlS)
Add a child<s>element
-
sayAs
public SsmlProsody.Builder sayAs(SsmlSayAs ssmlSayAs)
Add a child<say-as>element
-
sub
public SsmlProsody.Builder sub(SsmlSub ssmlSub)
Add a child<sub>element
-
w
public SsmlProsody.Builder w(SsmlW ssmlW)
Add a child<w>element
-
build
public SsmlProsody build()
Create and return resulting<prosody>element
-
-