Update engines/orpheus_engine.py
Browse files- engines/orpheus_engine.py +11 -2
engines/orpheus_engine.py
CHANGED
@@ -13,7 +13,7 @@ from RealtimeTTS.engines import BaseEngine, TimingInfo
|
|
13 |
DEFAULT_API_URL = "http://127.0.0.1:1234"
|
14 |
DEFAULT_HEADERS = {"Content-Type": "application/json"}
|
15 |
DEFAULT_MODEL = "SebastianBodza/Kartoffel_Orpheus-3B_german_synthetic-v0.1"
|
16 |
-
DEFAULT_VOICE = "
|
17 |
SAMPLE_RATE = 24000 # Specific sample rate for Orpheus
|
18 |
|
19 |
# Special token definitions for prompt formatting and token decoding
|
@@ -33,7 +33,7 @@ class OrpheusEngine(BaseEngine):
|
|
33 |
Real-time Text-to-Speech (TTS) engine for the Orpheus model via LM Studio API.
|
34 |
|
35 |
This engine supports real-time token generation, audio synthesis, and voice configuration.
|
36 |
-
|
37 |
_SPEAKERS = [
|
38 |
# männlich
|
39 |
OrpheusVoice("Jakob", "m"),
|
@@ -57,6 +57,15 @@ class OrpheusEngine(BaseEngine):
|
|
57 |
OrpheusVoice("Lina", "f"),
|
58 |
OrpheusVoice("Lea", "f"),
|
59 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
def __init__(
|
61 |
self,
|
62 |
api_url: str = DEFAULT_API_URL,
|
|
|
13 |
DEFAULT_API_URL = "http://127.0.0.1:1234"
|
14 |
DEFAULT_HEADERS = {"Content-Type": "application/json"}
|
15 |
DEFAULT_MODEL = "SebastianBodza/Kartoffel_Orpheus-3B_german_synthetic-v0.1"
|
16 |
+
DEFAULT_VOICE = "Martin"
|
17 |
SAMPLE_RATE = 24000 # Specific sample rate for Orpheus
|
18 |
|
19 |
# Special token definitions for prompt formatting and token decoding
|
|
|
33 |
Real-time Text-to-Speech (TTS) engine for the Orpheus model via LM Studio API.
|
34 |
|
35 |
This engine supports real-time token generation, audio synthesis, and voice configuration.
|
36 |
+
|
37 |
_SPEAKERS = [
|
38 |
# männlich
|
39 |
OrpheusVoice("Jakob", "m"),
|
|
|
57 |
OrpheusVoice("Lina", "f"),
|
58 |
OrpheusVoice("Lea", "f"),
|
59 |
]
|
60 |
+
"""
|
61 |
+
_SPEAKERS = [
|
62 |
+
# männlich
|
63 |
+
OrpheusVoice("Martin", "m"),
|
64 |
+
OrpheusVoice("Luca", "m"),
|
65 |
+
# weiblich
|
66 |
+
OrpheusVoice("Anne", "f"),
|
67 |
+
OrpheusVoice("Emma", "f"),
|
68 |
+
]
|
69 |
def __init__(
|
70 |
self,
|
71 |
api_url: str = DEFAULT_API_URL,
|