Skip to main content

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.

License PyPI version

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!

Metadata

Release files for AudioCarver 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AudioCarver 0.1.0
File Size Uploaded Provenance
audiocarver-0.1.0.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for AudioCarver 0.1.0
File Interpreter ABI Platform
AudioCarver-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / audiocarver-0.1.0.tar.gz

Download URL audiocarver-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e00c6e0741914e42be497d2566f0d9fd27b3a4c989000fb4931c7bcaa0a53a2f
BLAKE2b-256 checksum
How to use checksums
84f2a35f84afcee8e0d6d33e2d44119f3ca4f8bc10fdcb18152908404a42a71b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release files / AudioCarver-0.1.0-py3-none-any.whl

Download URL AudioCarver-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cdd258bb8c2a03b540c564e878513f28f545537ea3501e51d1b94c2e9ce34e6
BLAKE2b-256 checksum
How to use checksums
a6e135064f61c29827ea7c9c77442500d69fc8c3fb9c06a38d6fc7798245167e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Security for AudioCarver 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page