mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
fixes the low quality fix not working properly
This commit is contained in:
parent
9247bc3a12
commit
226a75e782
1 changed files with 1 additions and 1 deletions
|
@ -26,8 +26,8 @@ class StreamingAudioWriter:
|
|||
if self.format != "pcm":
|
||||
self.output_buffer = BytesIO()
|
||||
self.container = av.open(self.output_buffer, mode="w", format=self.format)
|
||||
#print(av.codecs_available)
|
||||
self.stream = self.container.add_stream(codec_map[self.format],sample_rate=self.sample_rate,layout='mono' if self.channels == 1 else 'stereo')
|
||||
self.stream.bit_rate = 128000
|
||||
else:
|
||||
raise ValueError(f"Unsupported format: {format}")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue