SaileshSivan commited on
Commit
7199219
·
1 Parent(s): 71041ef

Added Text to speech feature.

Browse files

Used text-to-speech API to give a speech response.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ if submit:
88
  # Text-to-speech
89
  audio_response = openai.audio.speech.create(
90
  model="tts-1",
91
- voice="alloy",
92
  input=response
93
  )
94
 
 
88
  # Text-to-speech
89
  audio_response = openai.audio.speech.create(
90
  model="tts-1",
91
+ voice="nova",
92
  input=response
93
  )
94