Skip to content

Commit

Permalink
Fix get_stt timing context handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 3, 2023
1 parent 2965df6 commit 1476b19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neon_speech/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,9 @@ def build_context(msg: Message):
with self._stopwatch:
_, parser_data, transcriptions = \
self._get_stt_from_file(wav_file_path, lang)
message.context.setdefault('timing', dict())
message.context['timing']['get_stt'] = self._stopwatch.time
message.context["audio_parser_data"] = parser_data
context = build_context(message)
context['timing']['get_stt'] = self._stopwatch.time
data = {
"utterances": transcriptions,
"lang": message.data.get("lang", "en-us")
Expand Down

0 comments on commit 1476b19

Please sign in to comment.