From dca332d56e9487399f19f1ffb6be3ba019ebb2bf Mon Sep 17 00:00:00 2001 From: HowChienLu <53228984+howard9199@users.noreply.github.com> Date: Tue, 26 Nov 2024 03:32:32 +0800 Subject: [PATCH] fix: some typos, complete the speech.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 但我不知道 speechId 和 fileId 差在哪裡 --- src/lib/types/speech.ts | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/lib/types/speech.ts b/src/lib/types/speech.ts index 3eb708a..d2c20a8 100644 --- a/src/lib/types/speech.ts +++ b/src/lib/types/speech.ts @@ -1,5 +1,19 @@ -export interface SpeechFirestore { +export interface FirestoreSpeech { speechId: string; - fileid: string; - transation: string; + fileId: string; + transcription: string; +} + +export interface Speech { + speechId: string; + fileId: string; + transcription: string; +} + +export function convertFirestoreSpeech(data: FirestoreSpeech): Speech { + return { + speechId: data.speechId, + fileId: data.fileId, + transcription: data.transcription + }; }