We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee365d5 commit 4868081Copy full SHA for 4868081
source/speech/speech.py
@@ -40,6 +40,7 @@
40
SuppressUnicodeNormalizationCommand,
41
CharacterModeCommand,
42
WaveFileCommand,
43
+ CallbackCommand,
44
)
45
from .shortcutKeys import getKeyboardShortcutsSpeech
46
@@ -149,9 +150,10 @@ def _setLastSpeechString(
149
150
priority: Spri,
151
):
152
# Check if the speech sequence contains text to speak
- if [item for item in speechSequence if isinstance(item, str)]:
153
+ if any(isinstance(item, str) for item in speechSequence):
154
global _lastSpeech
- _lastSpeech = speechSequence, symbolLevel
155
+ log.debug(f"{speechSequence=}")
156
+ _lastSpeech = [item for item in speechSequence if not isinstance(item, CallbackCommand)], symbolLevel
157
158
159
def initialize():
0 commit comments