descriptinc / audiotools

Object-oriented handling of audio data, with GPU-powered augmentations, and more.
https://descriptinc.github.io/audiotools/
MIT License
219 stars 37 forks source link

Discourse upload, widget improvements, bug fixes. #15

Closed pseeth closed 2 years ago

pseeth commented 2 years ago

Added a function to upload audio to Discourse. I'm going to bundle a fix for shlex not working when punctuation is present in a file name next.

I also fixed some bugs related to reading in files with single quotes in the file-name.

I also improved the audio widget. You can add titles, and make more complex plots with subplots, etc (as long as each subplot takes up the full row - multicolumn subplots won't make sense here. You can also pass in a fig_size argument to change the height of it. Here's a demo:

https://share.descript.com/view/VUl2wk9xZ8d

To see a demo, just do:

python -m audiotools.core.playback && open /tmp/index.html

I also fixed the low-pass filter function so it works on GPU, and has a simpler implementation.