v104: точная привязка слогов к аудио через word timestamps Whisper
This commit is contained in:
@@ -89,6 +89,10 @@ async function doCompare(blob, originalText, duration) {
|
||||
// Слоги — в отдельный div, не в diff (diff перезаписывается)
|
||||
_currentBlob = blob;
|
||||
_currentSylBuf = null;
|
||||
_currentSylMap = whisperResult.words && whisperResult.words.length > 0
|
||||
? mapSyllablesToTimestamps(originalText, whisperResult.words)
|
||||
: null;
|
||||
console.log('[SYL] map:', _currentSylMap);
|
||||
const sylDiv = document.getElementById('syllables');
|
||||
sylDiv.innerHTML = '';
|
||||
const sy = syllabifyIT(originalText);
|
||||
|
||||
Reference in New Issue
Block a user