Hi, you seem to have called speech recognizer incorrectly. Please refer to the correct implementation here. It should look like this:
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config)
Hope this helps!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am following the below documents for keyword detection -
azure.cognitiveservices.speech.recognizer
I have followed each step. Created the keyword model. However I am stuck at using the recognizer class and corresponding module. Based on the documents, I used it like below -
keywordRecognizer = speechsdk.Recognizer()
result = keywordRecognizer .start_keyword_recognition(keywordModel ))
The above code is throwing below error -
'Recognizer' object has no attribute '_impl'
I am not able to understand the implementation from speech.py code too which says -
def start_keyword_recognition(self, model: KeywordRecognitionModel):
"""
Synchronously initiates keyword recognition operation.
:param model: the keyword recognition model that specifies the keyword to be recognized.
"""
return self._impl.start_keyword_recognition(model._impl)
Hi, you seem to have called speech recognizer incorrectly. Please refer to the correct implementation here. It should look like this:
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config)
Hope this helps!