Spaces:
Sleeping
Sleeping
Commit
•
1049327
1
Parent(s):
b6e8571
Audio speed
Browse files- api/audio.py +1 -1
api/audio.py
CHANGED
@@ -158,7 +158,7 @@ class TTSManager:
|
|
158 |
headers = {"Authorization": "Bearer " + self.config.tts.key}
|
159 |
try:
|
160 |
if self.config.tts.type == "OPENAI_API":
|
161 |
-
data = {"model": self.config.tts.name, "input": text, "voice": "alloy", "response_format": "opus"}
|
162 |
response = requests.post(self.config.tts.url + "/audio/speech", headers=headers, json=data)
|
163 |
elif self.config.tts.type == "HF_API":
|
164 |
response = requests.post(self.config.tts.url, headers=headers, json={"inputs": text})
|
|
|
158 |
headers = {"Authorization": "Bearer " + self.config.tts.key}
|
159 |
try:
|
160 |
if self.config.tts.type == "OPENAI_API":
|
161 |
+
data = {"model": self.config.tts.name, "input": text, "voice": "alloy", "response_format": "opus", "speed": 1.5}
|
162 |
response = requests.post(self.config.tts.url + "/audio/speech", headers=headers, json=data)
|
163 |
elif self.config.tts.type == "HF_API":
|
164 |
response = requests.post(self.config.tts.url, headers=headers, json={"inputs": text})
|