aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/freesound/audioprocessing.py
Commit message (Collapse)AuthorAgeFilesLines
* Reinstate audio spectrograms on Python 3 [#5610].Fernando Gutierrez2021-03-031-616/+0
| | | | | | | | The `audiotospectrogram` module is a complete rewrite of the existing spectrogram code with support for Python 3. This allows us to drop the bundled `freesound` library and Python 2-only `audioprocessing` and `spectrogram` modules. Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Fix audio thumbnailing once and for all.Ben Sturmfels2020-04-011-26/+1
| | | | | | | | | | This change adds a Python 3-specific audio thumbnailer that side-steps the bundled Python 2-only `audioprocessing` module. Instead of an audio spectrogram, Python 3 users will get a static image. This also allows me to remove my ineffective customisations to `audioprocessing`, returning it to the upstream version as should always be the case for vendored code in "extlib".
* Work around lack of scikits.audiolab support on Python 3.Ben Sturmfels2019-09-121-0/+25
|
* Make freesound compatible with python3Boris Bobrov2016-01-221-12/+12
| | | | | | | | | | | Freesound is a lib used for audio processing. Unfortunately, it doesn't work with python3. It lives in extlib, so we don't own the code. But, since the patch is pretty trivial, it was decided to merge it anyway and propose the fix to upstream. Which was done in https://github.com/MTG/freesound/pull/700 . Also, a bugreport was opened to use upstream version instead of our local, when it gets merged, ticket 5403.
* Fix an occurence of `print ...` to `print(...)`Boris Bobrov2016-01-211-1/+1
|
* PIL: Support systems with Pillow and withoutAlon Levy2013-04-171-1/+1
| | | | | | | Fixes for systems with Pillow, but leaves a "try: except ImportError" to support anything that doesn't have a PIL top level import. Signed-off-by: Alon Levy <alon@pobox.com>
* Changed audio.* Image* importsJoar Wandborg2012-03-271-1/+1
| | | | | | | | | | | | so that they no longer import from PIL explicitly. This is due to explicit PIL.Image* imports failing on a Ubuntu machine within virtualenv. PIL is a mystery I have yet to find the energy to unravel. The 'implicit' approach works both for the affected machine and my local machine and I've seen it more often out in the wild, so I'm assuming it is the right way.
* Audio thumbnailing & spectrograms, media plugins use sniffingJoar Wandborg2012-02-281-0/+616
* Added extlib/freesound/audioprocessing.py * config_spec * Added create_spectrogram setting * Added media:medium and media:thumb max_{width,height} settings * Added sniffing logic to - audio.processing:sniff_handler - video.processing:sniff_handler * Changed audio.processing:sniff_handler logic * Added audio thumbnailing functionality to audio.processing (works only with create_spectrogram enabled) * Refractored contexts in audio.processing * Added audio.transcoders:AudioThumbnailer Used for creating spectrograms and spectrogram thumbnails - Wadsworth's Constant, we meet again :) * audio.transcoders:AudioTranscoder - Added mux_string kwarg - Delete self.pipeline on self.halt() * Changed str.format formatting in image.processing:sniff_handler Had {1} without an {0}, changed to {0} * Refractored VideoTranscoder to use transcode() for transcoding instead of __init__() * Added discover() method to video.transcoders:VideoTranscoder * Added spectrogram display to media_displays/audio.html * Updated test_submission to reflect changes in media plugin delegation