Fixes for speech so windows works.
This commit is contained in:
1 parent
b68e1b73c2
commit
3619c6720b
1 file changed
+6
@@ -54,6 +54,9 @@ class Speech:
|
|||||||
return
|
return
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
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 accessible_output2 next
|
||||||
try:
|
try:
|
||||||
@@ -64,6 +67,9 @@ class Speech:
|
|||||||
return
|
return
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
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
|
# No speech providers found
|
||||||
print("No speech providers found.")
|
print("No speech providers found.")
|
||||||
|
|||||||
Reference in new issue
Block a user