def __init__(self, conf={}):
        logger.info("Creating decoder using conf: %s" % conf)
        self.create_pipeline(conf)
        self.outdir = conf.get("out-dir", None)
        if not os.path.exists(self.outdir):
            os.makedirs(self.outdir)
        elif not os.path.isdir(self.outdir):
            raise Exception("Output directory %s already exists as a file" % self.outdir)

        self.result_handler = None
        self.full_result_handler = None
        self.eos_handler = None
        self.error_handler = None
        self.request_id = "<undefined>"
dataset/ETHPy150Open alumae/kaldi-gstreamer-server/kaldigstserver/decoder2.py/DecoderPipeline2.__init__/original