godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.6k stars 21.1k forks source link

Godot UI freezes while generating speech #75441

Open nightblade9 opened 1 year ago

nightblade9 commented 1 year ago

Godot version

4.0.0 official binaries, .NET flavour.

System information

Manjaro (Arch) with KDE Plasma; GPU = NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)

Issue description

When generating speech via DisplayServer.tts_speak, on my Linux box, there's roughly a two-second pause (irrespective of audio length) while the system libraries do their thing. During this time, the Godot UI is completely frozen.

As I would like to allow users to rapidly move from, say, menu button to menu button, I really need:

I tried work-around (e.g. running this in a Thread.new()) but it seems to have no effect.

Steps to reproduce

Minimal reproduction project

Not necessary, as this is trivially reproducible.

btzr-io commented 1 year ago

I can confirm this issue also exists on windows 10 ( Godot v4.0.1 )

novalis commented 1 year ago

Could this be #77754? (I know it's probably not that for Windows, but for Linux). time spd-say -L > /dev/null will give you a hint: if it takes about 2 seconds, that's your bug. If not, then it's something else.

nightblade9 commented 1 year ago

time reports 0.016s total, so I guess it's not the same issue. Thanks for providing clear instructions on how to verify it.