Remove some debugging logs

This commit is contained in:
Hongbo Wu 2022-09-15 10:58:27 +08:00
parent f0b01e6eba
commit e4fc10e09b

View file

@ -86,11 +86,6 @@ export const synthesizeTextToSpeech = async (
// The unit of e.audioOffset is tick (1 tick = 100 nanoseconds), divide by 10,000 to convert to milliseconds.
synthesizer.wordBoundary = (s, e) => {
console.debug(
`(word boundary) Audio offset: ${e.audioOffset / 10000}ms, text: ${
e.text
}`
)
speechMarks.push({
word: e.text,
time: (timeOffset + e.audioOffset) / 10000,
@ -101,11 +96,6 @@ export const synthesizeTextToSpeech = async (
}
synthesizer.bookmarkReached = (s, e) => {
console.debug(
`(bookmark reached) Audio offset: ${
e.audioOffset / 10000
}ms, bookmark text: ${e.text}`
)
speechMarks.push({
word: e.text,
time: (timeOffset + e.audioOffset) / 10000,