Skip to content

Commit

Permalink
Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Dec 28, 2024
1 parent 1b0819c commit 0e55cd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion open_dubbing/coqui.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import logging
import re
import subprocess
import warnings

from TTS.api import TTS

Expand All @@ -23,8 +24,9 @@ class Coqui:
"""Builds a list models available per each language"""

def __init__(self, device="cpu"):
logging.getLogger("TTS.utils.manage").setLevel(logging.ERROR)
logging.getLogger("TTS.utils").setLevel(logging.ERROR)
logging.getLogger("TTS.utils.audio.processor").setLevel(logging.ERROR)
warnings.filterwarnings("ignore", category=FutureWarning)
language_models = self._build_list_language_model()
self.language_model = self._select_model_per_language(language_models)
self.device = device
Expand Down

0 comments on commit 0e55cd9

Please sign in to comment.