Skip to content

Commit

Permalink
fix: some typos, complete the speech.ts
Browse files Browse the repository at this point in the history
但我不知道 speechId 和 fileId 差在哪裡
  • Loading branch information
howard9199 authored Nov 25, 2024
1 parent 87e1628 commit dca332d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/lib/types/speech.ts
Original file line number Diff line number Diff line change
@@ -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
};
}

0 comments on commit dca332d

Please sign in to comment.