fix deepgram returning an empty array

This commit is contained in:
Dave Horton
2024-04-03 10:39:08 -04:00
parent 05a379de15
commit 938854c4b3

View File

@@ -270,7 +270,7 @@ const normalizeDeepgram = (evt, channel, language, shortUtterance) => {
language_code: language, language_code: language,
channel_tag: channel, channel_tag: channel,
is_final: shortUtterance ? evt.is_final : evt.speech_final, is_final: shortUtterance ? evt.is_final : evt.speech_final,
alternatives: [alternatives[0]], alternatives: alternatives.length ? [alternatives[0]] : [],
vendor: { vendor: {
name: 'deepgram', name: 'deepgram',
evt: copy evt: copy