I encounter an exception with Amazon Transcribe when I try to get the transcription result. I haven't found a way to pass a callback or receive a notification when the transcription is done. So I regularly check if the result is available.
Here is my code:
var getTranscriptionJobRequest = new GetTranscriptionJobRequest()
{
TranscriptionJobName = fileName
};
// Regularly check the request status
GetTranscriptionJobResponse getTranscriptionJobResponse;
do
{
Thread.Sleep(250); // Wait 250 ms
getTranscriptionJobResponse = amazonTSClient.GetTranscriptionJob(getTranscriptionJobRequest);
}
while (getTranscriptionJobResponse.TranscriptionJob.TranscriptionJobStatus != TranscriptionJobStatus.COMPLETED);
And here is the exception:
Amazon.TranscribeService.AmazonTranscribeServiceException: 'Rate exceeded'
I found here that the error is due to too many requests to the AWS API.
So, my question is:
Is it possible to be notified when the transcription result is available? Or if not, what is the maximum call rate to the AWS API?