Open ghost opened 5 years ago
The server stores all audio that it receives to the directory configured with the out-dir
property in the YAML file. Check that there is actually speech in the audio. Most probably you are just sending it silence, due to some client-side audio configuration issue.
Thanks for the insight. To start up my worker, I had used https://github.com/jcsilva/docker-kaldi-gstreamer-server
. The only out-dir
config is the one in sample_english_nnet2.yaml
, and it's pointed to tmp in the Docker container. Inside tmp, the only content is pip_build_root
and no audio files.
At the same time, I know my client side audio configuration is working because your mob demo works fine. Therefore the issue must be the connection between my Node server and the Kaldi server.
On the Node.js side, I changed the following in dictate.js
var SERVER = "ws://localhost:8080/client/ws/speech";
var SERVER_STATUS = "ws://localhost:8080/client/ws/status";
var REFERENCE_HANDLER = "ws://localhost:8080/client/dynamic/reference";
and in my home page added
option(value='ws://localhost:8080/client/ws/speech|ws://localhost:8080/client/ws/status', selected='selected') localhost
I use localhost because Kaldi is sitting in a container on my local machine. Not sure why this won't work?
I have 1 master and 1 worker up and running, I have checked to make sure worker is up properly. I have also configured a Node.js client using https://github.com/Kaljurand/dictate.js. The client server is very simple and I only changed the path that points to the worker.
However I am unable to send data from the client to the worker. This is my worker log. The app log does not offer anything for me to debug, and I can't get much information out of the worker log either.
Worker log: