INNER CODE UNIT · Python

get_all_accepted_voices

devnen/Kitten-TTS-Server · engine.py:221

def get_all_accepted_voices() -> List[str]:
    """Returns all accepted voice identifiers (named + internal) for API validation."""
    named = get_available_voices()
    # Also accept raw internal voice keys (expr-voice-*) for API compatibility
    if voices_data is not None:
        internal = list(voices_data.keys())
        return list(dict.fromkeys(named + internal))  # deduplicated, order preserved
    return named


def get_model_info() -> Dict[str, Any]:
    """
    Returns information about the currently loaded model.
    Used by the API to expose model details to the UI.
    """
    if loaded_model_selector and loaded_model_selector in MODEL_REGISTRY:
        reg = MODEL_REGISTRY[loaded_model_selector]
        return {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…