Pijush2023 commited on
Commit
f1f58de
·
verified ·
1 Parent(s): 9fc71c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -514,7 +514,7 @@ def show_map_if_details(history,choice):
514
 
515
  def generate_audio_elevenlabs(text):
516
  XI_API_KEY = os.environ['ELEVENLABS_API']
517
- VOICE_ID = 'SHZHI20rSPDR3iE8SvZ0' # Replace with your voice ID
518
  tts_url = f"https://api.elevenlabs.io/v1/text-to-speech/{VOICE_ID}/stream"
519
  headers = {
520
  "Accept": "application/json",
@@ -524,9 +524,9 @@ def generate_audio_elevenlabs(text):
524
  "text": str(text),
525
  "model_id": "eleven_multilingual_v2",
526
  "voice_settings": {
527
- "stability": 0.7,
528
  "similarity_boost": 0.5,
529
- "style": 0.50, # Adjust style for more romantic tone
530
  "use_speaker_boost": False
531
  }
532
  }
 
514
 
515
  def generate_audio_elevenlabs(text):
516
  XI_API_KEY = os.environ['ELEVENLABS_API']
517
+ VOICE_ID = 'ifnv0iyeLoEYHre9oxnx' # Replace with your voice ID
518
  tts_url = f"https://api.elevenlabs.io/v1/text-to-speech/{VOICE_ID}/stream"
519
  headers = {
520
  "Accept": "application/json",
 
524
  "text": str(text),
525
  "model_id": "eleven_multilingual_v2",
526
  "voice_settings": {
527
+ "stability": 1.0,
528
  "similarity_boost": 0.5,
529
+ "style": 0.70, # Adjust style for more romantic tone
530
  "use_speaker_boost": False
531
  }
532
  }