feat/758: for google getting the language_code from evt (#843)

This commit is contained in:
rammohan-kore
2024-08-06 17:15:08 +05:30
committed by GitHub
parent e4e37d5697
commit 4259a24fa0

View File

@@ -316,8 +316,10 @@ const normalizeIbm = (evt, channel, language) => {
const normalizeGoogle = (evt, channel, language) => { const normalizeGoogle = (evt, channel, language) => {
const copy = JSON.parse(JSON.stringify(evt)); const copy = JSON.parse(JSON.stringify(evt));
const language_code = evt.language_code || language;
return { return {
language_code: language, language_code: language_code,
channel_tag: channel, channel_tag: channel,
is_final: evt.is_final, is_final: evt.is_final,
alternatives: [evt.alternatives[0]], alternatives: [evt.alternatives[0]],