Athspi commited on
Commit
4f59ded
·
verified ·
1 Parent(s): cfc714e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- "voice": voice_id,
97
- "tone": tone,
98
- "language": "tamil"
 
 
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
  )