Improve stt (#764)
* refactor * add isolate option for alignment * setup isolate for alignment * refactor transcription form * add transribing output * update locale * refactor * display transcribing output * cannot cancel when transcribing
This commit is contained in:
@@ -69,9 +69,11 @@ type MediaPlayerContextType = {
|
||||
originalText?: string;
|
||||
language?: string;
|
||||
service?: WhisperConfigType["service"];
|
||||
}) => void;
|
||||
isolate?: boolean;
|
||||
}) => Promise<void>;
|
||||
transcribing: boolean;
|
||||
transcribingProgress: number;
|
||||
transcribingOutput: string;
|
||||
transcriptionDraft: TranscriptionType["result"];
|
||||
setTranscriptionDraft: (result: TranscriptionType["result"]) => void;
|
||||
// Recordings
|
||||
@@ -172,6 +174,7 @@ export const MediaPlayerProvider = ({
|
||||
generateTranscription,
|
||||
transcribing,
|
||||
transcribingProgress,
|
||||
transcribingOutput,
|
||||
abortGenerateTranscription,
|
||||
} = useTranscriptions(media);
|
||||
|
||||
@@ -611,6 +614,7 @@ export const MediaPlayerProvider = ({
|
||||
generateTranscription,
|
||||
transcribing,
|
||||
transcribingProgress,
|
||||
transcribingOutput,
|
||||
transcriptionDraft,
|
||||
setTranscriptionDraft,
|
||||
isRecording,
|
||||
|
||||
Reference in New Issue
Block a user