Open ytya opened 1 week ago
Very cool, thank you very much! But I think the write
function is the wrong place for this.
Thank you for the review. I've moved them to parameter of SoundFile. Is that what you meant?
ah I had just finally started implementing the bitrate in a branch myself, glad to see this is already nearing completion
also, I tested with OPUS as well as MP3 and am happy to see that setting the compression level in this way works across formats. This will resolve my request in #252 for writing OPUS with variable bit rates as well as resolving #390
@bastibe
I followed your advice and changed the code. As for __repr__
, i thought there was no problem with the operation as None was entered before the change, but we modified it from the point of view of not displaying extra information.
Please feel free to point out if this is not what you intended.
@sammlapp Thanks for testing. I also tested opus and flac and it worked.
Added interface to change compression level and bitrate mode as described in #390. I was able to test it on Windows, but not on other platforms.