diff options
| author | yum <yum.food.vr@gmail.com> | 2025-05-29 19:45:48 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-05-29 19:45:48 -0700 |
| commit | f97cef182de55b6dbae8d2bc0477acfca6cc1f66 (patch) | |
| tree | 61c9237fb404dcb9749a496be57e6758e7341c2a /ui/preload.js | |
| parent | 82a5b3805b2a54faea501ee362419330664c277a (diff) | |
More UI work
1. main STT app works in new project structure
2. UI dumps mics on startup to populate mic list
3. add missing deps (hf-xet, wave)
4. normalize audio volume when transcribing. Probably still wrong tbqh.
5. add checkbox to save audio segments & improve logic so only segments
with speech get saved.
6. add default config settings
Diffstat (limited to 'ui/preload.js')
| -rw-r--r-- | ui/preload.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/preload.js b/ui/preload.js index 108bffe..e6c0623 100644 --- a/ui/preload.js +++ b/ui/preload.js @@ -6,7 +6,10 @@ contextBridge.exposeInMainWorld('electronAPI', { restartApp: () => ipcRenderer.invoke('restart-app'), getMicrophones: () => ipcRenderer.invoke('get-microphones'), installRequirements: () => ipcRenderer.invoke('install-requirements'), - onPythonOutput: (callback) => ipcRenderer.on('python-output', (event, data) => callback(data)) + startProcess: () => ipcRenderer.invoke('start-process'), + stopProcess: () => ipcRenderer.invoke('stop-process'), + onPythonOutput: (callback) => ipcRenderer.on('python-output', (event, data) => callback(data)), + onProcessStopped: (callback) => ipcRenderer.on('process-stopped', (event) => callback()) }); console.log('Preload script loaded.'); |
