diff --git a/speech.py b/speech.py index cbfd9b3..7fb08c8 100644 --- a/speech.py +++ b/speech.py @@ -54,6 +54,9 @@ class Speech: return except ImportError: pass + except Exception as error: + # Installed but unusable, such as speech-dispatcher failing to start. + print(f"speechd could not be started: {error}") # Try accessible_output2 next try: @@ -64,6 +67,9 @@ class Speech: return except ImportError: pass + except Exception as error: + # A broken backend, such as SAPI under Wine, must not stop the game. + print(f"accessible_output2 could not be started: {error}") # No speech providers found print("No speech providers found.")