mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 01:06:19 +00:00
Formatting
This commit is contained in:
@@ -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",
|
||||||
@@ -123,10 +124,11 @@ 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)
|
||||||
|
|
||||||
|
self.ctx.duration = self.get_audio_duration(path)
|
||||||
|
|
||||||
return self.time_with_whisper(path)
|
return self.time_with_whisper(path)
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_options(cls) -> list:
|
def get_options(cls) -> list:
|
||||||
options = [
|
options = [
|
||||||
|
|||||||
Reference in New Issue
Block a user