@Alexander Brown I do not much experience with NextJS but I would suggest the following to debug the scenario.
- Use the files that fail on Azure speech studio. Upload the file directly under pronunciation assessment page of the speech studio and check if the audio file works. You also need to input the reference text for the audio file to complete the assessment. If the assessment fails, then the file has issue with the audio format. If the assessment works, then something is wrong with the code while reading the file from the blob. The next steps should help to check further in this case.
- Check for file permissions in the blob, if the file cannot be read and the content is not streamed to the API then it might be just seeing no voice audio and failing with the timeout. Are the files that do work also from the same blob container?
- What is the reference text that is passed along with the file? Is it the same for every file or does it need to be updated with each file? What is also the freeInput being passed? Does the fetch request pass any text while calling the API?
I hope this helps!! Thanks!!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.