Merge pull request #1244 from omnivore-app/descrease-pause-time

Reduce the pause time to 250ms
This commit is contained in:
Hongbo Wu
2022-09-27 10:21:11 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ const ANCHOR_ELEMENTS_BLOCKED_ATTRIBUTES = [
function ssmlTagsForTopLevelElement() {
return {
opening: `<break />`,
opening: `<break time="250ms"/>`,
}
}
@ -170,7 +170,7 @@ function emitElement(
const cleanedText = cleanTextNode(child)
if (idx && cleanedText.length > 1) {
// Make sure it's more than just a space
emit(textItems, `<bookmark mark="${idx}" />`)
emit(textItems, `<bookmark mark="${idx}"/>`)
}
emitTextNode(textItems, cleanedText, child)
}

View File

@ -235,6 +235,6 @@ describe('convert HTML to Speech file', () => {
title: 'Wang Yi at the UN; Fu Zhenghua sentenced; Nvidia China sales',
options: TEST_OPTIONS,
})
expect(speechFile.utterances).to.have.lengthOf(11)
expect(speechFile.utterances).to.have.lengthOf(12)
})
})