Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
app.py
CHANGED
|
@@ -357,6 +357,7 @@ def parse_speechtypes_text(gen_text):
|
|
| 357 |
try: # if type dict
|
| 358 |
current_type_dict = json.loads(type_str)
|
| 359 |
except json.decoder.JSONDecodeError:
|
|
|
|
| 360 |
current_type_dict = {"name": type_str, "seed": -1, "speed": 1.0}
|
| 361 |
|
| 362 |
return segments
|
|
|
|
| 357 |
try: # if type dict
|
| 358 |
current_type_dict = json.loads(type_str)
|
| 359 |
except json.decoder.JSONDecodeError:
|
| 360 |
+
type_str = type_str[1:-1] # remove brace {}
|
| 361 |
current_type_dict = {"name": type_str, "seed": -1, "speed": 1.0}
|
| 362 |
|
| 363 |
return segments
|