Feat: use ffmpeg wasm (#177)
* add ffmepg wasm * refactor whisper config * refactor ffmpeg config * remove depected codes * refactor model download * decouple whipser & ffmpeg when transcribe * do not always toast not found error * ffmpeg works in renderer * transcode in renderer & transcript in main * improve transcode * refactor * remove ffmpeg check * fix whisper config check * update whisper check * enable SharedArrayBuffer * remove ffmpeg setting * fix UI * handle ffmpeg not ready * may create issue when whisper check failed * upgrade deps * hide ffmpeg setting if not ready * hide record button when not in region
This commit is contained in:
@@ -14,6 +14,8 @@ log.errorHandler.startCatching();
|
||||
// Fix "getRandomValues() not supported"
|
||||
global.crypto = crypto;
|
||||
|
||||
app.commandLine.appendSwitch('enable-features','SharedArrayBuffer')
|
||||
|
||||
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
|
||||
if (require("electron-squirrel-startup")) {
|
||||
app.quit();
|
||||
|
||||
Reference in New Issue
Block a user