Skip to content

Commit

Permalink
Merge pull request #232 from TwilioDevEd/fix-deprecated-alice
Browse files Browse the repository at this point in the history
fix(voice): Replace Alice with Polly.Amy
  • Loading branch information
tomwanzek authored Jul 14, 2023
2 parents 3a393c0 + 976ab50 commit 272a414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ivr/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function giveExtractionPointInstructions() {
'the street. Then Left down an alley. Avoid the police cars. Turn left ' +
'into an unfinished housing development. Fly over the roadblock. Go ' +
'passed the moon. Soon after you will see your mother ship.',
{voice: 'alice', language: 'en-GB'}
{voice: 'Polly.Amy', language: 'en-GB'}
);

twiml.say(
Expand Down Expand Up @@ -88,7 +88,7 @@ function listPlanets() {
'To call the planet Broh doe As O G, press 2. To call the planet DuhGo ' +
'bah, press 3. To call an oober asteroid to your location, press 4. To ' +
'go back to the main menu, press the star key ',
{voice: 'alice', language: 'en-GB', loop: 3}
{voice: 'Polly.Amy', language: 'en-GB', loop: 3}
);

return twiml.toString();
Expand All @@ -102,7 +102,7 @@ function redirectWelcome() {
const twiml = new VoiceResponse();

twiml.say('Returning to the main menu', {
voice: 'alice',
voice: 'Polly.Amy',
language: 'en-GB',
});

Expand Down
2 changes: 1 addition & 1 deletion tests/ivr/handler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('IvrHandler#Planets', () => {
expect(twiml).toContain('Dial');

// TwiML content
expect(twiml).toContain('+12027336637');
expect(twiml).toContain('+16513582243');
});
});

Expand Down

0 comments on commit 272a414

Please sign in to comment.