IBM / watson-voice-bot

Create a Watson Assistant chatbot that uses voice over a web browser.

Home Page:https://developer.ibm.com/patterns/create-a-web-based-voice-chatbot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Speech-to-text Listening issue

Saraswathi24 opened this issue · comments

image
I have followed all the steps mentioned in Readme.nd and tried to deploy the code locally. I haven't installed any web socket yet.
With the default one, I am getting output as follows:
INFO:engineio.server:Server initialized for threading.
INFO:assistant_setup:Using WORKSPACE_ID=cd761ded-c1a9-476a-89c4-c6de53e00ce2
WARNING:werkzeug:WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.

  • Serving Flask app "app" (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
    INFO:werkzeug: * Running on http://192.168.29.211:5000/ (Press CTRL+C to quit)
    INFO:werkzeug:192.168.29.211 - - [17/Sep/2020 14:02:58] "GET /api/conversation HTTP/1.1" 200 -
    INFO:werkzeug:192.168.29.211 - - [17/Sep/2020 14:03:05] "POST /api/text-to-speech HTTP/1.1" 200 -

The program isn't working when the mic button is clicked it is just enabling the listening mode, after that webpage isn't responding anything. Kindly help me with this issue.

@sanjeevghimire Can you help with this?

@Saraswathi24 the code is working mostly in firefox and chrome. I tested it on mine and the mic works. Can you make sure the version chrome and firefox you use has support for navigator.getUserMedia and is not deprecated?

@sanjeevghimire The navigator.getUserMedia() is not deprecated in Chrome, even then I find difficulty in recording the audio.It is still not working as expected.

@sanjeevghimire - We have similar issues. Voice bot shows as "listening" when we talk but does not respond back.. We have tried this from multiple Mac laptops and multiple browsers like Firefox and Chrome. navigator.getUserMedia() is not deprecated.

@sanjeevghimire @markstur I'm having the same issue running off a ThinkPad, I've tried chrome and firefox. I've attached the respective DevTools consoles for the browsers.

Chrome:

chrome console
Firefox:

firefox console

commented

Having same issue.

It worked on my PC but when I did the exact same thing from scratch on laptop, I faced this issue and could not figure it out.

OK so I found a solution for those who still need it. First of all, use this repository: [deleted]
Also, after you configure it on one device, do not use the same credentials on another device.

I edited the above comment from @erum007 suggesting to use another repository because I don't see any updates there. It is just a copy of this one. Please clarify if there is an actual fix. Maybe there is a point-in-time or commit in this repo you are referring to? Please don't just redirect folks to another repository.

The comment about not using multiple devices is a good tip though. I think this bot gets confused easily and having multiple connections from wherever probablky doesn't help.

I edited the above comment from @erum007 suggesting to use another repository because I don't see any updates there. It is just a copy of this one. Please clarify if there is an actual fix. Maybe there is a point-in-time or commit in this repo you are referring to? Please don't just redirect folks to another repository.

I don’t know man, I was just playing around. Found that one and it worked while this didn’t. That one is outdated while this one is relatively updated so there must be a problem with any update made. I didn’t dig deep as to what specifically was the problem.

Right, and thanks for the info. I think this issue is mostly about browser compatibility, but people are also getting caught in some other problems (e.g. multiple simultaneous connections?) that have not been well reproduced. With the latest version I've seen some "works for me" responses. I'll put the commit which was used in that "other repo" in this comment. It's from 2018, but if anyone wants to compare an old version w/ the latest I don't want to lose that info. The latest commit used above was:

e3b2f1d

Has anyone fix this issue? I am currently having the same issue. Hope anyone can give me pointer on this. It works fine at first, but now it cannot listen what I speak. I tried using firefox , ie, edge as well. but nothing works