working backend
This commit is contained in:
@@ -14,7 +14,7 @@ corresponding console script is not available in the current environment.
|
||||
"""
|
||||
|
||||
from .tts_generic import GenericTTSBackend
|
||||
|
||||
from . import PathLike
|
||||
|
||||
class AedocwBackend(GenericTTSBackend):
|
||||
"""Generic aedocw backend wrapper.
|
||||
@@ -35,6 +35,9 @@ class AedocwBackend(GenericTTSBackend):
|
||||
"language": "--language",
|
||||
}
|
||||
INTERMEDIATE_TXT = True
|
||||
INTERMEDIATE_CALL = GenericTTSBackend._replace_map
|
||||
|
||||
|
||||
|
||||
|
||||
class AedocwEpub2TTS(AedocwBackend):
|
||||
@@ -45,6 +48,16 @@ class AedocwEpub2TTS(AedocwBackend):
|
||||
class AedocwEpub2TTSEdge(AedocwBackend):
|
||||
"""Backend configured for github.com/aedocw/epub2tts-edge."""
|
||||
DEFAULT_SPEAKER = "en-US-AndrewNeural"
|
||||
CMD = "epub2tts-edge"
|
||||
REPO = "epub2tts-edge"
|
||||
|
||||
def gen_input_flag(self, input_path) -> list[str]:
|
||||
"""Return backend flag for input file or directory."""
|
||||
p = self._normalize_path(input_path)
|
||||
return [str(p)] # epub2tts-edge expects a single path, no flag
|
||||
|
||||
gen_output_flag = None
|
||||
|
||||
|
||||
|
||||
class TTSEdge(AedocwEpub2TTSEdge):
|
||||
|
||||
Reference in New Issue
Block a user