Feat: Improve alignment for the audio with background noise (#870)
* use echogarden.alignSegments * fix cloudflare whisper * refactor azure ai transcribe * refactor * fix align result * refactor * edit transcription in srt format * improve timeline * refactor * fix update current segment index * validate text when use upload transcript * add form description * refactor codes * do not change sentence timeline based on word timeline
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts
|
||||
import { contextBridge, ipcRenderer, IpcRendererEvent } from "electron";
|
||||
import { version } from "../package.json";
|
||||
import { Timeline } from "echogarden/dist/utilities/Timeline";
|
||||
|
||||
contextBridge.exposeInMainWorld("__ENJOY_APP__", {
|
||||
app: {
|
||||
@@ -439,6 +440,9 @@ contextBridge.exposeInMainWorld("__ENJOY_APP__", {
|
||||
align: (input: string, transcript: string, options: any) => {
|
||||
return ipcRenderer.invoke("echogarden-align", input, transcript, options);
|
||||
},
|
||||
alignSegments: (input: string, timeline: Timeline, options: any) => {
|
||||
return ipcRenderer.invoke("echogarden-align-segments", input, timeline, options);
|
||||
},
|
||||
transcode: (input: string) => {
|
||||
return ipcRenderer.invoke("echogarden-transcode", input);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user