Skip to content

Add 'normalize' argument to Audio to make normalization optional#11650

Merged
Carreau merged 7 commits intoipython:masterfrom
matangover:optional-normalization
Mar 19, 2019
Merged

Add 'normalize' argument to Audio to make normalization optional#11650
Carreau merged 7 commits intoipython:masterfrom
matangover:optional-normalization

Conversation

@matangover
Copy link
Contributor

Fixes #8608. Based on #11161 with changes as discussed (see comment).
It might be easier to review each commit separately in this PR.

While working on the fix, I encountered and fixed the following small bugs:

  • Audio from list of samples, without numpy installed, would fail with ugly exception on Python 3.
  • When rate wasn't specified but audio data was given, error was not helpful.
  • Error when data was not found said 'image' instead of 'audio'.

@Carreau Carreau added this to the 7.4 milestone Mar 19, 2019
@Carreau
Copy link
Member

Carreau commented Mar 19, 2019

That looks good to me, thanks ! Apologies for the delay in reviewing, and welcome to the party !

@Carreau Carreau merged commit 08aaa2e into ipython:master Mar 19, 2019
@matangover
Copy link
Contributor Author

Great :) thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Volume normalization in IPython.display.Audio should be optional

2 participants