import logging from .utils import data_dir from .voices import voice_manager log = logging.getLogger(__name__) class InstallationError(Exception): pass def check_installation(): if not voice_manager.voice_names: paths = ", ".join(str(p) for p in data_dir("voices").glob("*")) raise InstallationError(f"No voice models found, voice dir contents: {paths}") log.info(f"Voices: {', '.join(voice_manager.voice_names)}")