Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with GST #1

Closed
hcoolh opened this issue Jun 9, 2014 · 2 comments
Closed

problem with GST #1

hcoolh opened this issue Jun 9, 2014 · 2 comments

Comments

@hcoolh
Copy link

hcoolh commented Jun 9, 2014

Hi
Could you please help me with this ? I started sample_worker.py:
python kaldigstserver/worker.py -u ws://localhost:8888/worker/ws/speech -c sample_worker.yaml
and then used sample_client.py to test it. I changed the 50th line in sample_client.py to this:
ws = MyClient('ws://localhost:8888/client/ws/speech?%s' ...

here is the output of worker:

2014-06-09 12:38:11 - INFO: decoder: Setting decoder property: word-syms = test/models/english/voxforge/tri2b_mmi_b0.05/words.txt
2014-06-09 12:38:11 - INFO: decoder: Setting decoder property: model = test/models/english/voxforge/tri2b_mmi_b0.05/final.mdl
2014-06-09 12:38:11 - INFO: decoder: Setting decoder property: lda-mat = test/models/english/voxforge/tri2b_mmi_b0.05/final.mat
2014-06-09 12:38:11 - INFO: decoder: Setting decoder property: fst = test/models/english/voxforge/tri2b_mmi_b0.05/HCLG.fst
2014-06-09 12:38:11 - INFO: decoder: Setting decoder property: silence-phones = 1:2:3:4:5
2014-06-09 12:38:11 - INFO: decoder: Created GStreamer elements
2014-06-09 12:38:11 - INFO: decoder: Linking GStreamer elements
2014-06-09 12:38:11 - INFO: decoder: Setting pipeline to READY
2014-06-09 12:38:15 - INFO: decoder: Set pipeline to READY
2014-06-09 12:38:15 - INFO: main: Opening websocket connection to master server
2014-06-09 12:38:15 - INFO: main: Opened websocket connection to server
2014-06-09 12:38:29 - INFO: main: d9407236-33ad-43b6-8df4-a93fe85b4a9b: Started timeout guard
2014-06-09 12:38:29 - INFO: main: d9407236-33ad-43b6-8df4-a93fe85b4a9b: Initialized request

(python:15676): GStreamer-CRITICAL **: gst_event_new_caps: assertion 'gst_caps_is_fixed (caps)' failed

(python:15676): GStreamer-CRITICAL **: gst_pad_push_event: assertion 'GST_IS_EVENT (event)' failed
2014-06-09 12:38:29 - ERROR: decoder: (GError('Internal data flow error.',), 'gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstAppSrc:appsrc:\nstreaming task paused, reason not-negotiated (-4)')
2014-06-09 12:38:34 - INFO: decoder: d9407236-33ad-43b6-8df4-a93fe85b4a9b: Pushing EOS to pipeline

Thank you very much.

@alumae
Copy link
Owner

alumae commented Jun 9, 2014

Thanks for noticing. I think the problem was caused by a bug in sample_client.py which caused the content type not to be sent.

I've deleted the outdated and ugly sample_client.py and added client.py. I also updated the main README and added a note how to test the server using kaldigstserver/client.py. Hope this helps.

@alumae
Copy link
Owner

alumae commented Sep 22, 2014

Seems to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants