Update app.py
Browse files
app.py
CHANGED
|
@@ -93,9 +93,11 @@ def generate_audio(script, voice_id, tone):
|
|
| 93 |
app.config['TTS_API_URL'],
|
| 94 |
json={
|
| 95 |
"text": script,
|
| 96 |
-
"
|
| 97 |
-
"
|
| 98 |
-
"
|
|
|
|
|
|
|
| 99 |
},
|
| 100 |
timeout=300
|
| 101 |
)
|
|
|
|
| 93 |
app.config['TTS_API_URL'],
|
| 94 |
json={
|
| 95 |
"text": script,
|
| 96 |
+
"voice_name": voice_name,
|
| 97 |
+
"cheerful": cheerful,
|
| 98 |
+
"sample_rate": 24000,
|
| 99 |
+
"channels": 1,
|
| 100 |
+
"sample_width": 2
|
| 101 |
},
|
| 102 |
timeout=300
|
| 103 |
)
|