mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1244 from omnivore-app/descrease-pause-time
Reduce the pause time to 250ms
This commit is contained in:
commit
3a93e0a135
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue