Twilio/TwiML/Voice/SsmlProsody.pm

filter: Statementstmt 100% 50 / 50 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 18 / 18 Podpod 100% 15 / 15 totaltotal 100% 83 / 83 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/SsmlPhoneme.pm ↑ Summary Twilio/TwiML/Voice/SsmlS.pm »
1 # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file.
2 package Twilio::TwiML::Voice::SsmlProsody;
3  
4 2 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use parent 'Twilio::TwiML::TwiML';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '2.001';
10  
11 2 my %ATTRIBUTES = (
12 'pitch' => { name => 'pitch' },
13 'rate' => { name => 'rate' },
14 'volume' => { name => 'volume' },
15 );
16  
17 20 ▶sub attribute_table { return \%ATTRIBUTES }
Subroutine attribute_table: called CC=1 SCAR=0.0
Pod documented
18  
19 16 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
20 16 my ($class, $words, $attributes) = @_;
21 16 return $class->SUPER::new('prosody', $words, $attributes);
22 }
23  
24 2 ▶sub break {
Subroutine break: called CC=1 SCAR=0.0
Pod documented
25 2 my ($self, $attributes) = @_;
26 2 require Twilio::TwiML::Voice::SsmlBreak;
27 2 return $self->nest(Twilio::TwiML::Voice::SsmlBreak->new($attributes));
28 }
29  
30 2 ▶sub emphasis {
Subroutine emphasis: called CC=1 SCAR=0.0
Pod documented
31 2 my ($self, $words, $attributes) = @_;
32 2 require Twilio::TwiML::Voice::SsmlEmphasis;
33 2 return $self->nest(Twilio::TwiML::Voice::SsmlEmphasis->new($words, $attributes));
34 }
35  
36 2 ▶sub lang {
Subroutine lang: called CC=1 SCAR=0.0
Pod documented
37 2 my ($self, $words, $attributes) = @_;
38 2 require Twilio::TwiML::Voice::SsmlLang;
39 2 return $self->nest(Twilio::TwiML::Voice::SsmlLang->new($words, $attributes));
40 }
41  
42 2 ▶sub p {
Subroutine p: called CC=1 SCAR=0.0
Pod documented
43 2 my ($self, $words) = @_;
44 2 require Twilio::TwiML::Voice::SsmlP;
45 2 return $self->nest(Twilio::TwiML::Voice::SsmlP->new($words));
46 }
47  
48 2 ▶sub phoneme {
Subroutine phoneme: called CC=1 SCAR=0.0
Pod documented
49 2 my ($self, $words, $attributes) = @_;
50 2 require Twilio::TwiML::Voice::SsmlPhoneme;
51 2 return $self->nest(Twilio::TwiML::Voice::SsmlPhoneme->new($words, $attributes));
52 }
53  
54 2 ▶sub prosody {
Subroutine prosody: called CC=1 SCAR=0.0
Pod documented
55 2 my ($self, $words, $attributes) = @_;
56 2 require Twilio::TwiML::Voice::SsmlProsody;
57 2 return $self->nest(Twilio::TwiML::Voice::SsmlProsody->new($words, $attributes));
58 }
59  
60 2 ▶sub s {
Subroutine s: called CC=1 SCAR=0.0
Pod documented
61 2 my ($self, $words) = @_;
62 2 require Twilio::TwiML::Voice::SsmlS;
63 2 return $self->nest(Twilio::TwiML::Voice::SsmlS->new($words));
64 }
65  
66 2 ▶sub say_as {
Subroutine say_as: called CC=1 SCAR=0.0
Pod documented
67 2 my ($self, $words, $attributes) = @_;
68 2 require Twilio::TwiML::Voice::SsmlSayAs;
69 2 return $self->nest(Twilio::TwiML::Voice::SsmlSayAs->new($words, $attributes));
70 }
71  
72 2 ▶sub sub {
Subroutine sub: called CC=1 SCAR=0.0
Pod documented
73 2 my ($self, $words, $attributes) = @_;
74 2 require Twilio::TwiML::Voice::SsmlSub;
75 2 return $self->nest(Twilio::TwiML::Voice::SsmlSub->new($words, $attributes));
76 }
77  
78 2 ▶sub w {
Subroutine w: called CC=1 SCAR=0.0
Pod documented
79 2 my ($self, $words, $attributes) = @_;
80 2 require Twilio::TwiML::Voice::SsmlW;
81 2 return $self->nest(Twilio::TwiML::Voice::SsmlW->new($words, $attributes));
82 }
83  
84 1 ▶sub set_pitch {
Subroutine set_pitch: called CC=1 SCAR=0.0
Pod documented
85 1 my ($self, $value) = @_;
86 1 return $self->set_attribute('pitch', $value);
87 }
88  
89 1 ▶sub set_rate {
Subroutine set_rate: called CC=1 SCAR=0.0
Pod documented
90 1 my ($self, $value) = @_;
91 1 return $self->set_attribute('rate', $value);
92 }
93  
94 1 ▶sub set_volume {
Subroutine set_volume: called CC=1 SCAR=0.0
Pod documented
95 1 my ($self, $value) = @_;
96 1 return $self->set_attribute('volume', $value);
97 }
98  
99 2 1;
100  
101 __END__
« Twilio/TwiML/Voice/SsmlPhoneme.pm ↑ Summary Twilio/TwiML/Voice/SsmlS.pm »