A real-time audio time-scale modification library
Project description
AudioTSM is a python library for real-time audio time-scale modification procedures, i.e. algorithms that change the speed of an audio signal without changing its pitch.
- Documentation:
- Source code repository and issue tracker:
- License:
MIT – see the file LICENSE for details.
Installation
Audiotsm should work with python 2.7 and python 3.4+.
For now you should probably install audiotsm directly from the github repository using pip:
pip install git+https://github.com/Muges/audiotsm.git
A package should be available on PyPI soon.
You may also need to install the sounddevice library in order to run the examples or to use a StreamWriter.
Basic usage
The audiotsm package implements several time-scale modification procedures:
OLA (Overlap-Add), which should only be used for percussive audio signals;
WSOLA (Waveform Similarity-based Overlap-Add), an amelioration of the OLA procedure which should give good results on most inputs.
Below is a basic example showing how to reduce the speed of a wav file by half using the WSOLA procedure:
from audiotsm import wsola
from audiotsm.io.wav import WavReader, WavWriter
with WavReader(input_filename) as reader:
with WavWriter(output_filename, reader.channels, reader.samplerate) as writer:
tsm = wsola(reader.channels, speed=0.5)
tsm.run(reader, writer)
Thanks
If you are interested in time-scale modification procedures, I highly recommend reading A Review of Time-Scale Modification of Music Signals by Jonathan Driedger and Meinard Müller.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file audiotsm-0.1.0.tar.gz.
File metadata
- Download URL: audiotsm-0.1.0.tar.gz
- Upload date:
- Size: 31.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb3517531641b9096a8be5eb0766c7a6ba5e052259059839d35d0bff0caa6c2e
|
|
| MD5 |
6deca6e5aa42fe08c28e9689268c3c29
|
|
| BLAKE2b-256 |
dd502eff5dbda8a8a0334fee2de500f73c9a9f252c52f37333ce15a9745e9551
|
File details
Details for the file audiotsm-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: audiotsm-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ddfe767f7ed59d7fc3dc4549dca09aae81d77f3fe1d3fd3570f90a0c1df98d9
|
|
| MD5 |
42c677440418154102066819d2a81da3
|
|
| BLAKE2b-256 |
5dc3da6cb8aa6ca0d32f9b4f38415cbe801aae20054a193c49294494c70ed4eb
|