speech to text and speech assessment stops immediately after started when I deploy to Heroku. It works fine locally,.

ethan li 0 Reputation points
2023-06-26T02:38:18.22+00:00

My code works fine locally for speech to text and speech assessment. When I deploy it to Heroku, with the same code(logic) and key and region. Either speech to text of assessment stops immdetiately after started. got empty text response.

I use the function example from azure

pronunciation_assessment_continuous_from_file

where I input a wav file around 49 seconds and assess it with a pre-defined text. Works fine locally.

log

SESSION STARTED: SessionEventArgs(session_id=ea6e39a53c86435198f783996819ae43) 2023-06-24T15:56:13.163603+00:00 app[web.1]: p12 2023-06-24T15:56:13.166020+00:00 app[web.1]: CANCELED SpeechRecognitionCanceledEventArgs(session_id=ea6e39a53c86435198f783996819ae43, result=SpeechRecognitionResult(result_id=72729763ae1a4fa38082eacd4e2d208d, text="", reason=ResultReason.Canceled)) 2023-06-24T15:56:13.166100+00:00 app[web.1]: SESSION STOPPED SessionEventArgs(session_id=ea6e39a53c86435198f783996819ae43) 2023-06-24T15:56:13.166108+00:00 app[web.1]: CLOSING on SessionEventArgs(session_id=ea6e39a53c86435198f783996819ae43)

been stuck for couple of days. ><

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,078 questions
{count} votes

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.