php - Twilio - How do I set the langauge parameter in xml voice file?Get the solution ↓↓↓
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?
We found the issue. It was a coding error on our part which was causing the setting of the language to be skipped.
People are also looking for solutions of the problem: composer detected issues in your platform: your composer dependencies require a php version ">= 7.3.0".
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.