Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ async def generate_audio_with_voice_prefix(text_segment, default_voice, rate, pi
|
|
89 |
match = re.search(r'([A-Za-z]+)([-]?\d*)', processed_text)
|
90 |
if match:
|
91 |
prefix_pitch = match.group(1)
|
92 |
-
number =
|
93 |
if prefix_pitch in voice_map:
|
94 |
current_pitch += number
|
95 |
#processed_text = re.sub(r'[A-Za-z]+-?\d+', '', processed_text, count=1).strip()
|
|
|
89 |
match = re.search(r'([A-Za-z]+)([-]?\d*)', processed_text)
|
90 |
if match:
|
91 |
prefix_pitch = match.group(1)
|
92 |
+
number = match.group(2)
|
93 |
if prefix_pitch in voice_map:
|
94 |
current_pitch += number
|
95 |
#processed_text = re.sub(r'[A-Za-z]+-?\d+', '', processed_text, count=1).strip()
|