Report None type as transcription when STT fails
@@ -151,6 +151,8 @@ class AudioConsumer(Thread):
}
self.emitter.emit("recognizer_loop:utterance", payload)
self.metrics.attr('utterances', [transcription])
+ else:
+ ident = str(stopwatch.timestamp)
# Report timing metrics
report_timing(ident, 'stt', stopwatch,
{'transcription': transcription})
