You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Backport text-to-speech support.
This commit is contained in:
@@ -74,6 +74,7 @@ def get_opts():
|
||||
BoolVariable("use_tsan", "Use LLVM/GCC compiler thread sanitizer (TSAN))", False),
|
||||
BoolVariable("use_msan", "Use LLVM/GCC compiler memory sanitizer (MSAN))", False),
|
||||
BoolVariable("pulseaudio", "Detect and use PulseAudio", True),
|
||||
BoolVariable("speechd", "Detect and use Speech Dispatcher for Text-to-Speech support", True),
|
||||
BoolVariable("udev", "Use udev for gamepad connection callbacks", True),
|
||||
BoolVariable("debug_symbols", "Add debugging symbols to release/release_debug builds", True),
|
||||
BoolVariable("separate_debug_symbols", "Create a separate file containing debugging symbols", False),
|
||||
@@ -347,6 +348,13 @@ def configure(env):
|
||||
else:
|
||||
print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.")
|
||||
|
||||
if env["speechd"]:
|
||||
if os.system("pkg-config --exists speech-dispatcher") == 0: # 0 means found
|
||||
env.Append(CPPDEFINES=["SPEECHD_ENABLED"])
|
||||
env.ParseConfig("pkg-config speech-dispatcher --cflags") # Only cflags, we dlopen the library.
|
||||
else:
|
||||
print("Warning: Speech Dispatcher development libraries not found. Disabling Text-to-Speech support.")
|
||||
|
||||
if platform.system() == "Linux":
|
||||
env.Append(CPPDEFINES=["JOYDEV_ENABLED"])
|
||||
if env["udev"]:
|
||||
|
||||
Reference in New Issue
Block a user