From 0e55cd9353f2d267ec483c3c5d57bf29aca9557c Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Sat, 28 Dec 2024 11:46:27 +0100 Subject: [PATCH] Warnings --- open_dubbing/coqui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/open_dubbing/coqui.py b/open_dubbing/coqui.py index 71804d7..3e6c300 100644 --- a/open_dubbing/coqui.py +++ b/open_dubbing/coqui.py @@ -15,6 +15,7 @@ import logging import re import subprocess +import warnings from TTS.api import TTS @@ -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