A library built to carve out minimum seams from an audio file
Project description
AudioCarver
Seam Carving as a Data Augmentation Technique
For more detail please check out my website
Audio Processing Library
A Python library for performing seam carving on audio files, converting audio to matrix and back, and generating spectrograms.
Table of Contents
Installation
You can install the library using pip:
pip install audio_carver
Usage
Example in a python file:
from audio_carver import carve_audio, sig_to_wav
# Carving in time domain and writing to output
magnitude, phase = carve_audio(number_of_seams, magnitude, phase, is_vertical=True) # default true
sig_to_wav('output.wav', magnitude, phase)
Example in terminal(Recommended):
$ python main.py <input_file.wav> <number_of_seams> <--carve_time> # remove to carve in frequency
Features
Current Supported Audio Formats: .wav
Audio Processing Capabilities: Spectral analysis, Time-domain operations, Signal modification
Input Requirements: None
Output: Mono signal with sampling rate inherited from the original input file's sampling rate
VIsualization: Spectrogram comparisons of before/after carving
Examples
How to load an audio file:
from audio_carver import *
audio, sampling_rate = load_wavfile('filename.wav')
Find the minimum seam:
from audio_carver import *
minimum_energy_seam = min_vertical_seam_energy(magnitude)
Documentation
Documentaion will be uploaded soon.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
Please contact alicjam@uw.edu for questions, suggestions, etc. Thank You!
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 AudioCarver-0.1.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 1cdd258bb8c2a03b540c564e878513f28f545537ea3501e51d1b94c2e9ce34e6 |
|
| MD5 | 6e772c1dda54364d67bfd62e5f798541 |
|
| BLAKE2b-256 | a6e135064f61c29827ea7c9c77442500d69fc8c3fb9c06a38d6fc7798245167e |