Update app.py
Browse files
app.py
CHANGED
@@ -176,9 +176,9 @@ async def process_transcript_line(line, default_voice, rate, pitch):
|
|
176 |
process_next = not process_next
|
177 |
continue
|
178 |
if process_next and part.strip():
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
audio_path = await generate_audio_with_voice_prefix(part, default_voice, rate, pitch)
|
183 |
if audio_path:
|
184 |
audio_segments.append(audio_path)
|
|
|
176 |
process_next = not process_next
|
177 |
continue
|
178 |
if process_next and part.strip():
|
179 |
+
if check1:
|
180 |
+
# Skip the first iteration logic here if needed
|
181 |
+
check1 = False # After first iteration, set it to False
|
182 |
audio_path = await generate_audio_with_voice_prefix(part, default_voice, rate, pitch)
|
183 |
if audio_path:
|
184 |
audio_segments.append(audio_path)
|