Spaces:
Paused
Paused
Update app.py
Browse files
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 = '
|
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
|
528 |
"similarity_boost": 0.5,
|
529 |
-
"style": 0.
|
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 |
}
|