Spaces:
Runtime error
Runtime error
Update spaces.py
Browse files
spaces.py
CHANGED
|
@@ -69,7 +69,7 @@ def generate_speech(text, voice_id, stability=0.8, style=0):
|
|
| 69 |
"stability": stability,
|
| 70 |
"similarity_boost": 0.5,
|
| 71 |
"use_speaker_boost": True,
|
| 72 |
-
"style":
|
| 73 |
}
|
| 74 |
}
|
| 75 |
headers = {
|
|
@@ -169,7 +169,7 @@ def process_message(args):
|
|
| 169 |
else:
|
| 170 |
text_color = "#FFFFFF"
|
| 171 |
stability = 0.31
|
| 172 |
-
style = 0.
|
| 173 |
|
| 174 |
try:
|
| 175 |
audio_content = generate_speech(message, voice_id, stability=stability, style=style)
|
|
|
|
| 69 |
"stability": stability,
|
| 70 |
"similarity_boost": 0.5,
|
| 71 |
"use_speaker_boost": True,
|
| 72 |
+
"style": style,
|
| 73 |
}
|
| 74 |
}
|
| 75 |
headers = {
|
|
|
|
| 169 |
else:
|
| 170 |
text_color = "#FFFFFF"
|
| 171 |
stability = 0.31
|
| 172 |
+
style = 0.35
|
| 173 |
|
| 174 |
try:
|
| 175 |
audio_content = generate_speech(message, voice_id, stability=stability, style=style)
|