Commit cc1aa88a authored by Yoann HOUPERT's avatar Yoann HOUPERT
Browse files

return all hypothese

parent 33eaf5b6
......@@ -70,7 +70,9 @@ class MyClient(WebSocketClient):
#print >> sys.stderr, "JSON was:", m
if response['status'] == 0:
if 'result' in response:
trans = response['result']['hypotheses'][0]['transcript']
#trans = response['result']['hypotheses'][0]['transcript']
trans = response['result']['hypotheses']
if response['result']['final']:
#print >> sys.stderr, trans,
self.final_hyps.append(trans)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment