Merge pull request #1244 from omnivore-app/descrease-pause-time
Reduce the pause time to 250ms
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user