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:
@@ -49,7 +49,7 @@ export function milisecondsToTimestamp(ms: number) {
|
||||
const hours = Math.floor(ms / 3600000).toString();
|
||||
const minutes = Math.floor((ms % 3600000) / 60000).toString();
|
||||
const seconds = Math.floor(((ms % 360000) % 60000) / 1000).toString();
|
||||
const milliseconds = Math.floor(((ms % 360000) % 60000) % 1000).toString();
|
||||
const milliseconds = Math.round(((ms % 360000) % 60000) % 1000).toString();
|
||||
return `${hours.padStart(2, "0")}:${minutes.padStart(
|
||||
2,
|
||||
"0"
|
||||
|
||||
Reference in New Issue
Block a user