We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15bb614 + acee979 commit 36197b9Copy full SHA for 36197b9
api/src/routers/development.py
@@ -104,7 +104,7 @@ async def generate_chunks():
104
105
if chunk_audio is not None:
106
# Normalize audio before writing
107
- normalized_audio = await normalizer.normalize(chunk_audio)
+ normalized_audio = normalizer.normalize(chunk_audio)
108
# Write chunk and yield bytes
109
chunk_bytes = writer.write_chunk(normalized_audio)
110
if chunk_bytes:
@@ -114,6 +114,7 @@ async def generate_chunks():
114
final_bytes = writer.write_chunk(finalize=True)
115
if final_bytes:
116
yield final_bytes
117
+ writer.close()
118
else:
119
raise ValueError("Failed to generate audio data")
120
0 commit comments