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 === "maximize") win.isMaximized() ? win.unmaximize() : win.maximize();
|
||||||
if (action === "close") win.close();
|
if (action === "close") win.close();
|
||||||
});
|
});
|
||||||
|
electron.ipcMain.on("open-explorer", (event, path2) => {
|
||||||
|
electron.shell.showItemInFolder(path2);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
electron.app.whenReady().then(() => {
|
electron.app.whenReady().then(() => {
|
||||||
utils.electronApp.setAppUserModelId("com.voicext.app");
|
utils.electronApp.setAppUserModelId("com.voicext.app");
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ const api = {
|
|||||||
startTranscription: (filePath, options) => electron.ipcRenderer.invoke("start-transcription", { filePath, options }),
|
startTranscription: (filePath, options) => electron.ipcRenderer.invoke("start-transcription", { filePath, options }),
|
||||||
onTranscriptionProgress: (callback) => electron.ipcRenderer.on("transcription-progress", (_, progress) => callback(progress)),
|
onTranscriptionProgress: (callback) => electron.ipcRenderer.on("transcription-progress", (_, progress) => callback(progress)),
|
||||||
onTranscriptionData: (callback) => electron.ipcRenderer.on("transcription-data", (_, data) => callback(data)),
|
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) {
|
if (process.contextIsolated) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user