Spaces:
Sleeping
Sleeping
Update api/audio.py
Browse files- api/audio.py +1 -1
api/audio.py
CHANGED
|
@@ -304,7 +304,7 @@ class TTSManager:
|
|
| 304 |
|
| 305 |
stream = self.streaming if stream is None else stream
|
| 306 |
|
| 307 |
-
kex =os.
|
| 308 |
headers = {"Authorization": f"Bearer {kex}"}
|
| 309 |
data = {"model": self.config.tts.name, "input": text, "voice": "alloy", "response_format": "opus"}
|
| 310 |
|
|
|
|
| 304 |
|
| 305 |
stream = self.streaming if stream is None else stream
|
| 306 |
|
| 307 |
+
kex =os.getenv('TTS_KEY')
|
| 308 |
headers = {"Authorization": f"Bearer {kex}"}
|
| 309 |
data = {"model": self.config.tts.name, "input": text, "voice": "alloy", "response_format": "opus"}
|
| 310 |
|