jiaaro / pydub

Manipulate audio with a simple and easy high level interface
http://pydub.com
MIT License
8.98k stars 1.05k forks source link

Python exception when calling AudioSegment.export() with bitrate of int type (Issue #784) #786

Open rwmnau opened 8 months ago

rwmnau commented 8 months ago

This pull request is associated with issue https://github.com/jiaaro/pydub/issues/784.

The fix checks if the bitrate passed into the method is an int, and if it is, it recasts it as a string before adding it to the args list. If it's not present or any other type, it leaves it alone.