Skip to content

Commit

Permalink
try to fix firefox android speech button - take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
eyaler committed Nov 10, 2024
1 parent efb3822 commit 156ff4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resen/kaddish/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ play.addEventListener('click', event => {
utter.lang = voice.lang
}
utter.rate = .6
utter.onend = e => {console.log(e.charIndex, utter.text.length); if (e.charIndex == utter.text.length) play.click()}
utter.onend = e => {if (!e.charLength) play.click()}
speechSynthesis.speak(utter)
} else speechSynthesis.cancel()
})

0 comments on commit 156ff4e

Please sign in to comment.