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
class CoquiTTSEngine(BaseTTSEngine):
voices = [
"Claribel Dervla",
@@ -124,8 +125,9 @@ class CoquiTTSEngine(BaseTTSEngine):
if self.to_force_duration:
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
def get_options(cls) -> list: