Why does the Azure API stop responding for translation requests in 3 minutes?

Aayush Shah 0 Reputation points
2024-08-30T11:12:31.2533333+00:00

I have setup a BOT using Zoom SDK which uses the Azure AI Language translation API. I have set it up for translating only one language, English to Hindi.

When I start the zoom call, the audio stream is sent to Azure server and we get the Hindi translated Audio back also.

But after 3 minutes, the translation stops.

We need to wait for 3-4 hours before running the connection again for i to work.

Can you please help us find the problem and fix it.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
421 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 25,866 Reputation points
    2024-09-01T13:46:04.37+00:00

    API tokens or access keys might have an expiration time. If the token is valid only for a short duration, the service will stop responding after the token expires. You may need to verify that your application is refreshing the token regularly if required after check the authentication method you're using and ensure it complies with Azure guidelines for long-running services.

    Timeout settings on either the client-side (your bot) or server-side (Azure) might be set to a default value (such as 3 minutes), causing the connection to terminate after that time. Review any timeout configurations and see if they can be adjusted.

    If you're sending a large number of requests in a short period, you might hit Azure rate limits, causing the service to stop processing requests temporarily.

    User's image

    https://video2.skills-academy.com/en-us/azure/ai-services/translator/service-limits#character-limits-per-hour

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.