Update app.py
Browse files
app.py
CHANGED
|
@@ -166,6 +166,9 @@ def _tts_to_mp3_file(text: str) -> tuple[str, int]:
|
|
| 166 |
voice_id=ELEVEN_VOICE_ID,
|
| 167 |
model_id=ELEVEN_MODEL_ID,
|
| 168 |
output_format=ELEVEN_OUTPUT_FORMAT,
|
|
|
|
|
|
|
|
|
|
| 169 |
)
|
| 170 |
|
| 171 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as tmp_out:
|
|
|
|
| 166 |
voice_id=ELEVEN_VOICE_ID,
|
| 167 |
model_id=ELEVEN_MODEL_ID,
|
| 168 |
output_format=ELEVEN_OUTPUT_FORMAT,
|
| 169 |
+
voice_settings=VoiceSettings(
|
| 170 |
+
speed=0.8,
|
| 171 |
+
),
|
| 172 |
)
|
| 173 |
|
| 174 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as tmp_out:
|