Spaces:
Runtime error
Runtime error
File size: 417 Bytes
92772e9 a8c39f5 92772e9 a8c39f5 92772e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from tts_service.utils import data_dir
from tts_service.voices import voice_manager
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}")
print(f"Voices: {', '.join(voice_manager.voice_names)}")
|