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

Bryan 5 Reputation points

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
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

    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