Merge pull request #211 from fireblade2534/master
Some checks failed
CI / test (3.10) (push) Has been cancelled

fixes the low quality fix not working properly
This commit is contained in:
Fireblade2534 2025-02-28 22:01:00 -05:00 committed by GitHub
commit 2a54140c46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}")