Use wordLength in the event

This commit is contained in:
Hongbo Wu 2022-10-05 17:42:24 +08:00
parent 321895844f
commit 73de22f678

View file

@ -91,7 +91,7 @@ export const synthesizeTextToSpeech = async (
word: e.text,
time: (timeOffset + e.audioOffset) / 10000,
start: wordOffset + e.textOffset,
length: e.text.length,
length: e.wordLength,
type: 'word',
})
}