Calculate the length of each sentence in speech marks

This commit is contained in:
Hongbo Wu
2022-10-04 19:23:26 +08:00
parent 5e79529e11
commit 034f833529

View File

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