-
Notifications
You must be signed in to change notification settings - Fork 41
Uncaught TypeError: Cannot read property 'intent' of undefined #24
Comments
I am experiencing the same issue. |
@alxferraz @aadhi0319 Any luck with this? Getting the same issue |
@7bamboo I got it to work after a lot of suffering but I can't remember exactly what I changed to get it to work as I did this a while back. Do you start and stop the microphone? Also make sure the microphone doesn't automatically disconnect. If those suggestions don't work I'd be happy to compare your code to mine to see where the implementation is different. Good luck! |
latest release should fix it. this microphone repo is not being actively maintained however, as it is still using our legacy API. You might need to change the code a bit to support parsing the new API response. |
@aforaleka Thank you for the response. I did a git pull for the microphone repository and I still get the error. Are you saying that in order to fix this issue I must switch from using microphone commands to using the Wit HTTP API (https://wit.ai/docs/http/20170307)? |
@alxferraz @7bamboo I modified the microphone.min.js file to fix the issue. Replace microphone/js/microphone.min.js content with the following:
And use this to parse results:
Hope this helps. |
I just tried to run the example as described in quickstart.md but i get this error:
Uncaught TypeError: Cannot read property 'intent' of undefined
at a.handleResult (microphone.min.js:2)
at a.result (microphone.min.js:2)
at a.fsm (microphone.min.js:2)
at WebSocket. (microphone.min.js:2)
can anybody help me out here?
The text was updated successfully, but these errors were encountered: