Skip to content

Commit c82f11b

Browse files
committed
fix user client compatibility with python 3.10
1 parent d0e0b53 commit c82f11b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user/STAR.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ def on_quickspeak(self, evt):
432432
speech.speak("nothing to speak")
433433
return
434434
self.script_continuous_preview = False
435-
self.audiospeak(f"{self.voices[voice]['name']}: {self.quickspeak.Value.replace('\n', ' ')}")
435+
text_to_quickspeak = self.quickspeak.Value.replace('\n', ' ')
436+
self.audiospeak(f"{self.voices[voice]['name']}: {text_to_quickspeak}")
436437
def on_preview_script(self, evt):
437438
"""The script previewing facility, handles ctrl+alt+(space, up and down) calling self.audiospeak for each speech line detected."""
438439
pos = self.script.GetInsertionPoint()

0 commit comments

Comments
 (0)