Skip to content

Commit

Permalink
Fix error during speak all
Browse files Browse the repository at this point in the history
  • Loading branch information
feerrenrut committed Dec 16, 2019
1 parent 7ab6071 commit 5602078
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/speech/__init__.py
Expand Up @@ -2395,11 +2395,10 @@ def getSpeechWithoutPauses( # noqa: C901
return self._getSpeech(speechSequence)

def _flushPendingSpeech(self):
if self._pendingSpeechSequence:
# Place the last incomplete phrase in to finalSpeechSequence to be spoken now
pending = self._pendingSpeechSequence
self._pendingSpeechSequence = []
return pending
# Place the last incomplete phrase in to finalSpeechSequence to be spoken now
pending = self._pendingSpeechSequence
self._pendingSpeechSequence = []
return pending

def _detectBreaksAndGetSpeech(self, speechSequence):
lastStartIndex = 0
Expand Down

0 comments on commit 5602078

Please sign in to comment.