ysharma HF staff commited on
Commit
a7f8c36
1 Parent(s): e92c6df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,9 +12,9 @@ def tts(text, model, voice, api_key):
12
  client = OpenAI(api_key=api_key)
13
 
14
  response = client.audio.speech.create(
15
- model='tts-1', # "tts-1","tts-1-hd"
16
- voice='alloy', # 'alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'
17
- input='input text',
18
  )
19
 
20
  except Exception as error:
 
12
  client = OpenAI(api_key=api_key)
13
 
14
  response = client.audio.speech.create(
15
+ model=model, # "tts-1","tts-1-hd"
16
+ voice=voice, # 'alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'
17
+ input=text,
18
  )
19
 
20
  except Exception as error: