Formatting

This commit is contained in:
2024-02-20 14:54:37 +01:00
parent f6e4fa6bd3
commit 3ca3732102

View File

@@ -9,6 +9,7 @@ from .BaseTTSEngine import BaseTTSEngine, Word
from ...utils.prompting import get_prompt from ...utils.prompting import get_prompt
class CoquiTTSEngine(BaseTTSEngine): class CoquiTTSEngine(BaseTTSEngine):
voices = [ voices = [
"Claribel Dervla", "Claribel Dervla",
@@ -124,8 +125,9 @@ class CoquiTTSEngine(BaseTTSEngine):
if self.to_force_duration: if self.to_force_duration:
self.force_duration(float(self.duration), path) self.force_duration(float(self.duration), path)
return self.time_with_whisper(path) self.ctx.duration = self.get_audio_duration(path)
return self.time_with_whisper(path)
@classmethod @classmethod
def get_options(cls) -> list: def get_options(cls) -> list: