dictate.js icon indicating copy to clipboard operation
dictate.js copied to clipboard

How configure dictate project on my PC?

Open hadiasheri opened this issue 7 years ago • 4 comments

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?

hadiasheri avatar Jan 16 '18 16:01 hadiasheri

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>

Kaljurand avatar Jan 20 '18 21:01 Kaljurand

Thanks a lot Kaarel for your reply. I'll try it and report here what happens.

hadiasheri avatar Jan 22 '18 16:01 hadiasheri

@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 avatar Aug 29 '18 08:08 AlexPeng19

@AlexPeng19 Have you found solution? I'm experiencing same problem.

Tsotne001 avatar May 11 '20 09:05 Tsotne001