Skip to content

Commit 7dea8e0

Browse files
committed
Revert "Suppress 'interrupted' speech error on stop"
This reverts commit c9de0a8.
1 parent c9de0a8 commit 7dea8e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/composables/useSpeechSynthesis.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function useSpeechSynthesis() {
9999
if (pendingCount.value === 0) {
100100
isSpeaking.value = false
101101
}
102-
if (event.error !== 'canceled' && event.error !== 'interrupted') {
102+
if (event.error !== 'canceled') {
103103
if (event.error === 'not-allowed') {
104104
error.value = 'Audio playback not allowed. Please allow sound permission in browser/system settings.'
105105
} else {
@@ -159,7 +159,7 @@ export function useSpeechSynthesis() {
159159
utterance.onerror = (event) => {
160160
pendingCount.value--
161161
isSpeaking.value = false
162-
if (event.error !== 'canceled' && event.error !== 'interrupted') {
162+
if (event.error !== 'canceled') {
163163
if (event.error === 'not-allowed') {
164164
error.value = 'Audio playback not allowed. Please allow sound permission in browser/system settings.'
165165
resolve()

0 commit comments

Comments
 (0)