def asr_result(self, asr, text, uttid): struct = Gst.Structure("result") struct.set_value("hyp", text) struct.set_value("uttid", uttid) self.debugMsg("asr result: " + text, 0) asr.post_message(Gst.message_new_application(asr, struct))
def asr_result(self, asr, text, uttid): struct = Gst.Structure("result"); struct.set_value("hyp", text); struct.set_value("uttid", uttid); self.debugMsg("asr result: " + text, 0); asr.post_message(Gst.message_new_application(asr, struct));