speech_end_detected not working in python (azure.cognitiveservices.speech)

Bryan 5 Reputation points
2023-07-13T13:52:11.42+00:00

I am using start_continuous_recognition to start the recognition, but for some reason speech_end_detected is not being triggered so stop_continuous_recognition is never being called.

It used to work, but for some reason it isn't anymore. I was using version 1.24.2, but I also tried 1.29.0 and 1.30.0 with but the issue persists.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,261 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
811 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bryan 5 Reputation points
    2023-09-11T11:41:13.2566667+00:00

    I was able to resolve the issue. I made two changes.
    I removed this line:
    logger.info("Azure: CLOSING on %s", event.result.json)

    Trying to get the result.json in the closing event was messing it up.

    Also I moved the speech_recognizer.stop_continuous_recognition() to after the while loop.

    1 person found this answer helpful.
    0 comments No comments