A research-based framework for exploring sound as well as machine learning in the context of sound.
Project description
SoundPy
SoundPy is an experimental framework for exploring sound as well as machine learning in the context of sound.
Documentation
For examples and to navigate the code, see the documentation.
Github
You can find the Github repo here.
Examples
Explore example code:
Visually and Aurally in the Documentation:
Via Jupyter Notebook
You can have a look at the notebooks in the repo: jupyter_notebooks
Main Uses:
Visualization
- pre and post filtering
- during feature extraction process
- various feature types: raw signal vs stft vs fbank vs mfcc
- voice activity in signal
- dominant frequency in signal
Audio Prep / Manipulation
- convert audiofiles
- extract features: raw signal, stft, powspec, fbank, mfcc
- augment audio: speed, pitch, add noise, time shift, shuffle, vtlp, harmonic distortion
- filter noise (e.g. wiener filter)
- denoise signal (e.g. with pretrained denoiser model)
- remove non-speech from signal
- identify voice activity in signal
- measure dominant and basic frequencies in signal
Train and Implement Deep Neural Networks
- cnn model (e.g. sound classifier)
- cnn+lstm model (e.g. speech recognition)
- autoencoder model (e.g. denoiser model)
- pretrained ResNet50 model (e.g. language classifier)
Requirements
- Python 3.6 (specifically 3.6.9, but other versions should probably work)
- libsndfile1 installed for Linux users
Installation
I suggest a virtual environment before installing:
$ virtualenv -p python3.6 env
or
$ python3 -m venv env
Then activate the environment
$ source env/bin/activate
(env)..$
Then install SoundPy via pip:
(env)..$ pip install soundpy
About
Note: as is, SoundPy is not yet a stable framework, meaning changes might periodically be made without extreme focus on backwards compatibility.
Those who might find this useful:
- speech and sound enthusiasts
- digital signal processing / mathematics / physics / acoustics enthusiasts
- deep learning enthusiasts
- researchers
- linguists
- psycholinguists
The main goal of soundpy is to provide the code and functionality with more context via visualization, research, and mathematics. Most of the resources used to build the functionality stems from publicly available research and datasets. (For a list of open datasets, see my ever growing collection.)
As it covers quite a large range, from audio file conversion to implementation of trained neural networks, the purpose of soundpy is not to be the perfect implementation of all functions (although that is also a goal :P ), but rather a peak into how they can be implemented, hopefully offering others a foundation for trying out different ways of implementation (feature extraction, building neural networks, etc.).
This project is still in the beginning stages and has a lot of room for growth, especially with contributors having a background / knowlege in data science, computer science, machine and deep learning, physics, acoustics, or dsp. Contributors from other backgrounds are also welcome! If you'd like soundpy to do something it doesn't, try making it or create an issue.
Example datasets
If you would like to play around with various types of sound, check out my repo containing mini datasets of sound, ranging from speech to noise. They are very small so don't expect much as it comes to training neural networks.
About the Author
I studied clinical linguistics for my master's which introduced me to the inspiring world of open source software, python programming, and the beauty of acoustics. My interests broadened from academic experimental design to the development of tools for identifiying speech irregularities and beyond. Through this I discovered a bit of a missing niche in the Python community: a high-level sound tool for filtering, analysis, and deep learning that also offers context to its functionality. You can read more about me and my projects on my blog.
The Beginnings of SoundPy
This project stemmed from the Prototype Fund project NoIze which was presented at PyConDE / PyData Berlin in 2019. This fork broadens the application of the software from smart noise filtering to general sound analysis, filtering, visualization, preparation, etc. Therefore the name has been adapted to more general sound functionality.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for soundpy-0.1.0a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d6b79f4032113dc77f556f2d21af096ba9b022b7d2d98165d0bca1b3a46cf5 |
|
MD5 | b5aeae6111e4f03d937e12522222f11a |
|
BLAKE2b-256 | a1ddd13a1e3a1c72d2e622ad215afcce1a584c0124aeb18caadba3ccf0d6e707 |