-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for Sox's compression(bitrate) argument #153
base: master
Are you sure you want to change the base?
Conversation
Hello @adinhodovic, the new feature looks great but from what I can see you are changing one of the dependencies from |
hey @lostanlen, I believe the dependency was renamed in the PyPi registry and the newer versions were only found under
|
It would be nice to have this merged @lostanlen |
sox/transform.py
Outdated
@@ -343,6 +344,9 @@ def _validate_output_format(self, output_format): | |||
if channels is not None and channels <= 0: | |||
raise ValueError('channels must be a positive number') | |||
|
|||
if not isinstance(bitrate, float) and bitrate is not None: | |||
raise ValueError('bitrate must be an float or None') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grammar
must be a positive float
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
tests are failing on MP3 ? |
Adds support for bitrate as parameter to output arguments. It is useful converting files to MP3 format. Requires a new version of soundfile(0.11.0) that supports MP3 formats alongside upgraded libsndfile version to 1.1.0. This is for the `test_bitrate_valid` test.
f82feb1
to
e0721a9
Compare
Can you re run the workflow, think the OS mp3 dependency was missing. |
👍 looking forward to this functionality being added |
Adds support for bitrate as parameter to output arguments. It is useful converting files to MP3 format. Requires a new version of soundfile(0.11.0) that supports MP3 formats alongside upgraded libsndfile version to 1.1.0. This is for the
test_bitrate_valid
test.