Skip to content
Snippets Groups Projects
Commit 77e95e28 authored by Andres Marafioti's avatar Andres Marafioti
Browse files

fix melo install

parent 012d8bf7
No related branches found
No related tags found
No related merge requests found
from MeloTTS.melo.api import TTS from melo.api import TTS
import logging import logging
from baseHandler import BaseHandler from baseHandler import BaseHandler
import librosa import librosa
......
...@@ -962,7 +962,7 @@ def main(): ...@@ -962,7 +962,7 @@ def main():
) )
if module_kwargs.llm != "mlx-lm": if module_kwargs.llm != "mlx-lm":
logger.warning( logger.warning(
"For macOS users, it is recommended to use mlx-lm." "For macOS users, it is recommended to use mlx-lm. You can activate it by passing --llm mlx-lm."
) )
if module_kwargs.tts != "melo": if module_kwargs.tts != "melo":
logger.warning( logger.warning(
...@@ -1068,7 +1068,11 @@ def main(): ...@@ -1068,7 +1068,11 @@ def main():
) )
elif module_kwargs.tts == 'melo': elif module_kwargs.tts == 'melo':
from TTS.melotts import MeloTTSHandler try:
from TTS.melotts import MeloTTSHandler
except RuntimeError as e:
logger.error(f"Error importing MeloTTSHandler. You might need to run: python -m unidic download")
raise e
tts = MeloTTSHandler( tts = MeloTTSHandler(
stop_event, stop_event,
queue_in=lm_response_queue, queue_in=lm_response_queue,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment