NAME
Twilio::TwiML::Voice::SsmlProsody - The prosody element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Voice::SsmlProsody->new($words, \%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Voice::SsmlProsody->new($words, \%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
break
my $child = $element->break(\%attributes);
Add Break child. Returns a Twilio::TwiML::Voice::SsmlBreak.
emphasis
my $child = $element->emphasis($words, \%attributes);
Add Emphasis child. Returns a Twilio::TwiML::Voice::SsmlEmphasis.
lang
my $child = $element->lang($words, \%attributes);
Add Lang child. Returns a Twilio::TwiML::Voice::SsmlLang.
p
my $child = $element->p($words);
Add P child. Returns a Twilio::TwiML::Voice::SsmlP.
phoneme
my $child = $element->phoneme($words, \%attributes);
Add Phoneme child. Returns a Twilio::TwiML::Voice::SsmlPhoneme.
prosody
my $child = $element->prosody($words, \%attributes);
Add Prosody child. Returns a Twilio::TwiML::Voice::SsmlProsody.
s
my $child = $element->s($words);
Add S child. Returns a Twilio::TwiML::Voice::SsmlS.
say_as
my $child = $element->say_as($words, \%attributes);
Add Say-As child. Returns a Twilio::TwiML::Voice::SsmlSayAs.
sub
my $child = $element->sub($words, \%attributes);
Add Sub child. Returns a Twilio::TwiML::Voice::SsmlSub.
w
my $child = $element->w($words, \%attributes);
Add W child. Returns a Twilio::TwiML::Voice::SsmlW.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
pitch-
Specify the pitch, available values: default, x-low, low, medium, high, x-high, +n%, -n%
rate-
Specify the rate, available values: x-slow, slow, medium, fast, x-fast, n%
volume-
Specify the volume, available values: default, silent, x-soft, soft, medium, loud, x-loud, +ndB, -ndB
set_pitch
set_rate
set_volume
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.