From 483a30acdddf3aecb1f4ae8e6641cb21bb21db5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Fri, 9 Aug 2024 16:39:07 +0300 Subject: [PATCH] feat: fix audio for ai --- src/components/App/index.tsx | 2 +- src/types/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 0d6277a88..3cef5601f 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -135,7 +135,7 @@ export const App = () => { const handleAiSummaryAudio = useCallback( (data: AiSummaryAudioResponse) => { if (data.ref_id) { - setAiSummaryAnswer(data.ref_id, { audio_en: data.audio_en }) + setAiSummaryAnswer(data.ref_id, { audio_en: data.audio_EN }) } }, [setAiSummaryAnswer], diff --git a/src/types/index.ts b/src/types/index.ts index b94ee5ceb..7c27bee37 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -330,5 +330,5 @@ export interface ExtractedEntitiesResponse { export type AiSummaryAudioResponse = { ref_id: string - audio_en: string + audio_EN: string }