SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Speech Recognition Warning 13331: Hebrew (he-IL) Not Working with <Gather>

Issue

When using Twilio’s <Gather> verb for speech recognition in a voice application, specifying the language as Hebrew (he-IL) results in Warning 13331: “language is not a supported language.” As a result, speech recognition falls back to English (en-US), and the recognized text is returned in English rather than Hebrew.

 

Product

Programmable Voice

 

Environment

Twilio Console

 

Cause

Twilio’s speech recognition engine expects the language code for Hebrew to be iw-IL (not he-IL). Using the incorrect language code (he-IL) triggers Warning 13331, indicating the language is unsupported. This causes Twilio to default to English for speech recognition.

Additionally, the option to set a global default Speech Recognition provider (such as Google) may not be visible in the new Twilio Console layout. However, specifying the correct language code is required regardless of the provider.

 

Resolution

To resolve this issue:

  1. Update the Language Code in TwiML:
    • Use language="iw-IL" instead of he-IL in your <Gather> verb.
<Gather input="speech" language="iw-IL">
  <!-- Your prompt here -->
</Gather>
  1. Specifying the Speech Provider (Optional):
    • If you need to use Google as the speech provider, you can specify it directly in the <Gather> verb using the speechRecognition attribute (if available in your account).
<Gather input="speech" language="iw-IL" speechRecognition="google">
  <!-- Your prompt here -->
</Gather>
  • Note: The ability to set a global default provider may not be available in all Console layouts. If you do not see this option, specifying the provider per <Gather> is recommended.
  1. Check for Console Updates:
    • If you are unable to find the global Speech Provider setting, refer to the latest Twilio Voice documentation or reach out for further assistance.

 

Additional Information

  • The language code iw-IL is the correct ISO 639-1 code for Hebrew as used by Twilio and some speech recognition engines. The code he-IL is not recognized by Twilio’s speech recognition.
  • Warning 13331 indicates an unsupported language code in the <Gather> verb.
  • For a full list of supported languages and language codes, see the Twilio Gather Language Tags documentation.
  • If you continue to experience issues after updating the language code, ensure your account has access to the desired speech provider or contact Twilio for further support.
Have more questions? Submit a request
Powered by Zendesk