0

We have been utilizing the Twilio php library for several years and have recently attempted to have our voice calls from XML files use the a different language.

Our code is building the following xml file for test purposes.

<Response>
    <Pause length='1'/><Say voice='alice' language='es-MX'>Prueba de nuevos manejadores de mensajes. ¿Recibiste este mensaje, Timoteo?</Say><Pause length='1'/>
</Response>

We have also tried placing a comma after voice-'alice'.

When the voice file plays, the language is not changed from english and so the phrase is not spoken properly.

What must we do to get the language parameter to be accepted?

Tim
  • 31
  • 5
  • Have you tried using double quotes instead of single quotes? The TwiML examples use double quotes. – Alan May 17 '21 at 15:27
  • Thanks for the suggestion. We found a coding error in the decision logic for setting the spanish parameter. – Tim May 18 '21 at 13:27

1 Answers1

0

We found the issue. It was a coding error on our part which was causing the setting of the language to be skipped.

Tim
  • 31
  • 5