INNER CODE UNIT · Python
get_download_status
devnen/Kitten-TTS-Server · engine.py:203
def get_download_status() -> Dict[str, Any]:
"""Returns the current download/loading status for UI polling."""
return dict(_download_status)
def is_loading() -> bool:
"""Returns True if a model is currently being loaded in the background."""
return _load_thread is not None and _load_thread.is_alive()
def get_available_voices() -> List[str]:
"""Returns the named voice list for the currently loaded model (for UI dropdown)."""
if loaded_model_selector and loaded_model_selector in MODEL_REGISTRY:
return list(MODEL_REGISTRY[loaded_model_selector]["voices"])
# Fallback
return list(_V01_VOICES)