Skip to content

Loading voices makes the GUI unresponsive #5

@easyaspi314

Description

@easyaspi314

Currently, due to microsoft/onnxruntime#27063 , the GIL will be locked while the TTS models are loaded. This causes the entire program to hang while loading voices (which is about 1-2 seconds). Not enough to be a "not responding", but it is still something I would like to avoid.

This issue doesn't exist on freethreaded builds.

Possible solutions:

  1. Verify stability on freethreaded Python and make it the preferred version.
  • piper_phonemize_fix has been updated to allow freethreading on Python 3.14t (but hasn't fully been tested)
  • Needs thorough testing
  1. Wait for onnxruntime to fix the issue.
  2. Use multiprocessing (which will complicate the entire program)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions