Update engines/__init__.py
Browse files- engines/__init__.py +1 -99
engines/__init__.py
CHANGED
|
@@ -3,27 +3,13 @@ from .orpheus_engine import OrpheusEngine
|
|
| 3 |
|
| 4 |
__all__ = [
|
| 5 |
"BaseEngine", "TimingInfo",
|
| 6 |
-
"AzureEngine", "AzureVoice",
|
| 7 |
"SystemEngine", "SystemVoice",
|
| 8 |
-
"ElevenlabsEngine", "ElevenlabsVoice",
|
| 9 |
-
"CoquiEngine", "CoquiVoice",
|
| 10 |
-
"OpenAIEngine", "OpenAIVoice",
|
| 11 |
-
"GTTSEngine", "GTTSVoice",
|
| 12 |
-
"ParlerEngine", "ParlerVoice",
|
| 13 |
-
"EdgeEngine", "EdgeVoice",
|
| 14 |
-
"StyleTTSEngine", "StyleTTSVoice",
|
| 15 |
-
"PiperEngine", "PiperVoice",
|
| 16 |
-
"KokoroEngine", "KokoroVoice",
|
| 17 |
"OrpheusEngine", "OrpheusVoice",
|
| 18 |
]
|
| 19 |
|
| 20 |
|
| 21 |
# Lazy loader functions for the engines in this subpackage.
|
| 22 |
-
|
| 23 |
-
from .azure_engine import AzureEngine, AzureVoice
|
| 24 |
-
globals()["AzureEngine"] = AzureEngine
|
| 25 |
-
globals()["AzureVoice"] = AzureVoice
|
| 26 |
-
return AzureEngine
|
| 27 |
|
| 28 |
|
| 29 |
def _load_system_engine():
|
|
@@ -32,70 +18,6 @@ def _load_system_engine():
|
|
| 32 |
globals()["SystemVoice"] = SystemVoice
|
| 33 |
return SystemEngine
|
| 34 |
|
| 35 |
-
|
| 36 |
-
def _load_elevenlabs_engine():
|
| 37 |
-
from .elevenlabs_engine import ElevenlabsEngine, ElevenlabsVoice
|
| 38 |
-
globals()["ElevenlabsEngine"] = ElevenlabsEngine
|
| 39 |
-
globals()["ElevenlabsVoice"] = ElevenlabsVoice
|
| 40 |
-
return ElevenlabsEngine
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
def _load_coqui_engine():
|
| 44 |
-
from .coqui_engine import CoquiEngine, CoquiVoice
|
| 45 |
-
globals()["CoquiEngine"] = CoquiEngine
|
| 46 |
-
globals()["CoquiVoice"] = CoquiVoice
|
| 47 |
-
return CoquiEngine
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
def _load_openai_engine():
|
| 51 |
-
from .openai_engine import OpenAIEngine, OpenAIVoice
|
| 52 |
-
globals()["OpenAIEngine"] = OpenAIEngine
|
| 53 |
-
globals()["OpenAIVoice"] = OpenAIVoice
|
| 54 |
-
return OpenAIEngine
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
def _load_gtts_engine():
|
| 58 |
-
from .gtts_engine import GTTSEngine, GTTSVoice
|
| 59 |
-
globals()["GTTSEngine"] = GTTSEngine
|
| 60 |
-
globals()["GTTSVoice"] = GTTSVoice
|
| 61 |
-
return GTTSEngine
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
def _load_parler_engine():
|
| 65 |
-
from .parler_engine import ParlerEngine, ParlerVoice
|
| 66 |
-
globals()["ParlerEngine"] = ParlerEngine
|
| 67 |
-
globals()["ParlerVoice"] = ParlerVoice
|
| 68 |
-
return ParlerEngine
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
def _load_edge_engine():
|
| 72 |
-
from .edge_engine import EdgeEngine, EdgeVoice
|
| 73 |
-
globals()["EdgeEngine"] = EdgeEngine
|
| 74 |
-
globals()["EdgeVoice"] = EdgeVoice
|
| 75 |
-
return EdgeEngine
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
def _load_style_engine():
|
| 79 |
-
from .style_engine import StyleTTSEngine, StyleTTSVoice
|
| 80 |
-
globals()["StyleTTSEngine"] = StyleTTSEngine
|
| 81 |
-
globals()["StyleTTSVoice"] = StyleTTSVoice
|
| 82 |
-
return StyleTTSEngine
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
def _load_piper_engine():
|
| 86 |
-
from .piper_engine import PiperEngine, PiperVoice
|
| 87 |
-
globals()["PiperEngine"] = PiperEngine
|
| 88 |
-
globals()["PiperVoice"] = PiperVoice
|
| 89 |
-
return PiperEngine
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
def _load_kokoro_engine():
|
| 93 |
-
from .kokoro_engine import KokoroEngine, KokoroVoice
|
| 94 |
-
globals()["KokoroEngine"] = KokoroEngine
|
| 95 |
-
globals()["KokoroVoice"] = KokoroVoice
|
| 96 |
-
return KokoroEngine
|
| 97 |
-
|
| 98 |
-
|
| 99 |
def _load_orpheus_engine():
|
| 100 |
from .orpheus_engine import OrpheusEngine, OrpheusVoice
|
| 101 |
globals()["OrpheusEngine"] = OrpheusEngine
|
|
@@ -105,28 +27,8 @@ def _load_orpheus_engine():
|
|
| 105 |
|
| 106 |
# Map attribute names to lazy loader functions.
|
| 107 |
_lazy_imports = {
|
| 108 |
-
"AzureEngine": _load_azure_engine,
|
| 109 |
-
"AzureVoice": _load_azure_engine,
|
| 110 |
"SystemEngine": _load_system_engine,
|
| 111 |
"SystemVoice": _load_system_engine,
|
| 112 |
-
"ElevenlabsEngine": _load_elevenlabs_engine,
|
| 113 |
-
"ElevenlabsVoice": _load_elevenlabs_engine,
|
| 114 |
-
"CoquiEngine": _load_coqui_engine,
|
| 115 |
-
"CoquiVoice": _load_coqui_engine,
|
| 116 |
-
"OpenAIEngine": _load_openai_engine,
|
| 117 |
-
"OpenAIVoice": _load_openai_engine,
|
| 118 |
-
"GTTSEngine": _load_gtts_engine,
|
| 119 |
-
"GTTSVoice": _load_gtts_engine,
|
| 120 |
-
"ParlerEngine": _load_parler_engine,
|
| 121 |
-
"ParlerVoice": _load_parler_engine,
|
| 122 |
-
"EdgeEngine": _load_edge_engine,
|
| 123 |
-
"EdgeVoice": _load_edge_engine,
|
| 124 |
-
"StyleTTSEngine": _load_style_engine,
|
| 125 |
-
"StyleTTSVoice": _load_style_engine,
|
| 126 |
-
"PiperEngine": _load_piper_engine,
|
| 127 |
-
"PiperVoice": _load_piper_engine,
|
| 128 |
-
"KokoroEngine": _load_kokoro_engine,
|
| 129 |
-
"KokoroVoice": _load_kokoro_engine,
|
| 130 |
"OrpheusEngine": _load_orpheus_engine,
|
| 131 |
"OrpheusVoice": _load_orpheus_engine,
|
| 132 |
}
|
|
|
|
| 3 |
|
| 4 |
__all__ = [
|
| 5 |
"BaseEngine", "TimingInfo",
|
|
|
|
| 6 |
"SystemEngine", "SystemVoice",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"OrpheusEngine", "OrpheusVoice",
|
| 8 |
]
|
| 9 |
|
| 10 |
|
| 11 |
# Lazy loader functions for the engines in this subpackage.
|
| 12 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
def _load_system_engine():
|
|
|
|
| 18 |
globals()["SystemVoice"] = SystemVoice
|
| 19 |
return SystemEngine
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
def _load_orpheus_engine():
|
| 22 |
from .orpheus_engine import OrpheusEngine, OrpheusVoice
|
| 23 |
globals()["OrpheusEngine"] = OrpheusEngine
|
|
|
|
| 27 |
|
| 28 |
# Map attribute names to lazy loader functions.
|
| 29 |
_lazy_imports = {
|
|
|
|
|
|
|
| 30 |
"SystemEngine": _load_system_engine,
|
| 31 |
"SystemVoice": _load_system_engine,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
"OrpheusEngine": _load_orpheus_engine,
|
| 33 |
"OrpheusVoice": _load_orpheus_engine,
|
| 34 |
}
|