Skip to content

Commit

Permalink
Add 2 second pause, repeat message for voicemail, and change voice to…
Browse files Browse the repository at this point in the history
… Amazon Polly Joanna
  • Loading branch information
kylemhall committed Dec 17, 2020
1 parent 7aa07d9 commit cccbf47
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Koha/Plugin/Com/ByWaterSolutions/TwilioVoice/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,19 @@ sub twiml {
}

my $tw = new WWW::Twilio::TwiML;
$tw->Response->Say(
$tw->Response
->Pause({length => 2})->parent
->Say(
{
voice => "alice",
voice => "Polly.Joanna",
language => "en-US"
},
$message->content
)->parent
->Pause({length => 2})->parent
->Say(
{
voice => "Polly.Joanna",
language => "en-US"
},
$message->content
Expand Down

0 comments on commit cccbf47

Please sign in to comment.