Skip to content

Commit

Permalink
Show the tts button as "stop" when the tts text starts with a pause
Browse files Browse the repository at this point in the history
  • Loading branch information
caarmen committed Mar 21, 2021
1 parent 6dd54cb commit 2f1c4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/model/speech/SpeechEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class SpeechEngine {
this._utterancesToSpeak = UtteranceSplitter.splitText(selection)
this._playNextUtterance()
}
this._updateState()
}

_playNextUtterance() {
Expand Down Expand Up @@ -131,7 +132,6 @@ class SpeechEngine {
this._utterancesToSpeak = []
clearTimeout(this._timeoutId)
this._timeoutId = undefined
this._updateState()
}
}
SpeechEngine.SETTING_KEY_HAS_RELOADED = "has_reloaded"
Expand Down

0 comments on commit 2f1c4ba

Please sign in to comment.