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

[fix] decoder: name sys is not defined -> import #248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kaldigstserver/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import logging
import thread
import os
import sys

logger = logging.getLogger(__name__)

Expand Down
5 changes: 3 additions & 2 deletions kaldigstserver/decoder2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import logging
import thread
import os
import sys
from collections import OrderedDict

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -82,7 +83,7 @@ def create_pipeline(self, conf):
decoder_config["fst"] = decoder_config.pop("fst")
if "model" in decoder_config:
decoder_config["model"] = decoder_config.pop("model")

for (key, val) in decoder_config.iteritems():
if key != "use-threaded-decoder":
logger.info("Setting decoder property: %s = %s" % (key, val))
Expand Down Expand Up @@ -208,7 +209,7 @@ def init_request(self, id, caps_str):
self.filesink.set_property('location', "%s/%s.raw" % (self.outdir, id))
self.filesink.set_state(Gst.State.PLAYING)

#self.filesink.set_state(Gst.State.PLAYING)
#self.filesink.set_state(Gst.State.PLAYING)
#self.decodebin.set_state(Gst.State.PLAYING)
self.pipeline.set_state(Gst.State.PLAYING)
self.filesink.set_state(Gst.State.PLAYING)
Expand Down