latest release: 0.1.0 (What’s new?)
Klio is currently under rapid development.
This means that APIs and features will evolve.
It is recommended that teams who adopt Klio today upgrade their installation as new releases become available, as backwards compatibility is not yet guaranteed.
klio-audio is an optional library with helper transforms related to processing audio, including downloading from GCS into memory, loading into numpy via librosa, generate various spectrograms, among others.
To make use of klio-audio, add klio[audio] in your job-requirements.txt file so that it is installed in your job’s Docker image.
As the klio-audio library is not meant to be installed directly, check out the installation
guide for how to setup
There is also the user guide and the API
documentation for more information.
Decorator to handle the required loading/unloading of binary data.
Load audio into memory as a numpy.ndarray.
Calculate Short-time Fourier transform from a numpy.ndarray.
Generate a dB-scaled spectrogram from a numpy.ndarray.
Generate a spectrogram from a numpy.ndarray using the mel scale.
Calculate MFCCs from a numpy.ndarray.
Generate a matplotlib figure of the spectrogram of a numpy.ndarray.
Generate a matplotlib figure of the mel spectrogram of a a numpy.ndarray.
Generate a matplotlib figure of the MFCCs as a numpy.ndarray.
Generate a matplotlib figure of the wave form of a numpy.ndarray.
Download binary file from GCS into memory.
Upload a matplotlib figure to GCS.