Spaces:
Runtime error
Runtime error
File size: 449 Bytes
c6fd5b2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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)}")
|