Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def text_to_speech(text):
|
|
| 103 |
try:
|
| 104 |
temp_filename = f"temp_tts_chunk_{i}_{int(time.time())}.wav"
|
| 105 |
options = SpeakOptions(
|
| 106 |
-
model="aura-2-
|
| 107 |
)
|
| 108 |
deepgram.speak.rest.v("1").save(temp_filename, {"text": chunk}, options)
|
| 109 |
|
|
|
|
| 103 |
try:
|
| 104 |
temp_filename = f"temp_tts_chunk_{i}_{int(time.time())}.wav"
|
| 105 |
options = SpeakOptions(
|
| 106 |
+
model="aura-2-theia-en", encoding="linear16", container="wav"
|
| 107 |
)
|
| 108 |
deepgram.speak.rest.v("1").save(temp_filename, {"text": chunk}, options)
|
| 109 |
|