Refactor whisper config (#287)

* may use custom whisper exe

* refactor whisper config code

* display progress when using local whisper transcribe
This commit is contained in:
an-lee
2024-02-09 17:07:21 +08:00
committed by GitHub
parent 5eafd45ac5
commit a95c247c8c
7 changed files with 110 additions and 41 deletions

View File

@@ -246,6 +246,8 @@ type EnjoyAppType = {
findOrCreate: (params: any) => Promise<TranscriptionType>;
process: (params: any, options: any) => Promise<void>;
update: (id: string, params: any) => Promise<void>;
onProgress: (callback: (event, progress: number) => void) => void;
removeProgressListeners: () => Promise<void>;
};
waveforms: {
find: (id: string) => Promise<WaveFormDataType>;