Spanicin commited on
Commit
cc75e44
·
verified ·
1 Parent(s): af26267

Update app_parallel.py

Browse files
Files changed (1) hide show
  1. app_parallel.py +2 -2
app_parallel.py CHANGED
@@ -175,7 +175,7 @@ def generate_audio(voice_cloning, voice_gender, text_prompt):
175
  if voice_gender == 'male':
176
  voice = 'echo'
177
  print('Entering Audio creation using elevenlabs')
178
- # set_api_key(os.getenv('ELEVENLABS_API_KEY'))
179
 
180
  audio = generate(text = text_prompt, voice = "Daniel", model = "eleven_multilingual_v2",stream=True, latency=4)
181
  with tempfile.NamedTemporaryFile(suffix=".mp3", prefix="text_to_speech_",dir=TEMP_DIR.name, delete=False) as temp_file:
@@ -201,7 +201,7 @@ def generate_audio(voice_cloning, voice_gender, text_prompt):
201
  print('Audio file saved using whisper')
202
 
203
  elif voice_cloning == 'yes':
204
- set_api_key(os.getenv('ELEVENLABS_API_KEY'))
205
  # voice = clone(name = "User Cloned Voice",
206
  # files = [user_voice_path] )
207
  voice = Voice(voice_id="CEii8R8RxmB0zhAiloZg",name="Marc",settings=VoiceSettings(
 
175
  if voice_gender == 'male':
176
  voice = 'echo'
177
  print('Entering Audio creation using elevenlabs')
178
+ set_api_key('92e149985ea2732b4359c74346c3daee')
179
 
180
  audio = generate(text = text_prompt, voice = "Daniel", model = "eleven_multilingual_v2",stream=True, latency=4)
181
  with tempfile.NamedTemporaryFile(suffix=".mp3", prefix="text_to_speech_",dir=TEMP_DIR.name, delete=False) as temp_file:
 
201
  print('Audio file saved using whisper')
202
 
203
  elif voice_cloning == 'yes':
204
+ set_api_key('92e149985ea2732b4359c74346c3daee')
205
  # voice = clone(name = "User Cloned Voice",
206
  # files = [user_voice_path] )
207
  voice = Voice(voice_id="CEii8R8RxmB0zhAiloZg",name="Marc",settings=VoiceSettings(