dictate.js
dictate.js copied to clipboard
How configure dictate project on my PC?
Hi Kaarel, I have launched kaldi-gstreamer-server on my computer successfully . I want to configure dictate project to call my local server. I'd be grateful if could tell which parts of source codes must be revised and how?
When you instantiate the Dictate object, then you need to provide your own "server" and "serverStatus", e.g. the "mob" demo does it in the HTML code, see: https://github.com/Kaljurand/dictate.js/blob/master/demos/mob.html#L53-L56 which is then used to instantiate the object in https://github.com/Kaljurand/dictate.js/blob/master/demos/mob.js#L55-L57
You should add an option for your local server, e.g.:
<option value="ws://localhost:8080/client/ws/speech|ws://localhost:8080/client/ws/status" selected="selected">localhost</option>
Thanks a lot Kaarel for your reply. I'll try it and report here what happens.
@Kaljurand @hadiasheri i added the option, and the status respond success. but after i record my audio, i click stop, it will be stuck as stopping state. did you have the same problem.
@AlexPeng19 Have you found solution? I'm experiencing same problem.