feat: implement whisper transcription engine with hardware detection and IPC bridge
This commit is contained in:
@@ -228,6 +228,9 @@ function createWindow() {
|
||||
if (action === "maximize") win.isMaximized() ? win.unmaximize() : win.maximize();
|
||||
if (action === "close") win.close();
|
||||
});
|
||||
electron.ipcMain.on("open-explorer", (event, path2) => {
|
||||
electron.shell.showItemInFolder(path2);
|
||||
});
|
||||
}
|
||||
electron.app.whenReady().then(() => {
|
||||
utils.electronApp.setAppUserModelId("com.voicext.app");
|
||||
|
||||
@@ -6,7 +6,8 @@ const api = {
|
||||
startTranscription: (filePath, options) => electron.ipcRenderer.invoke("start-transcription", { filePath, options }),
|
||||
onTranscriptionProgress: (callback) => electron.ipcRenderer.on("transcription-progress", (_, progress) => callback(progress)),
|
||||
onTranscriptionData: (callback) => electron.ipcRenderer.on("transcription-data", (_, data) => callback(data)),
|
||||
detectHardware: () => electron.ipcRenderer.invoke("detect-hardware")
|
||||
detectHardware: () => electron.ipcRenderer.invoke("detect-hardware"),
|
||||
openExplorer: (path) => electron.ipcRenderer.send("open-explorer", path)
|
||||
};
|
||||
if (process.contextIsolated) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user