Audio processing.
Project description
hunterHearsPy
A comprehensive collection of Python utilities for audio processing.
Audio Processing Made Simple
Load and Save Audio Files
Read audio files with automatic stereo conversion and sample rate control:
from hunterHearsPy import readAudioFile, writeWAV
# Load audio with sample rate conversion
waveform = readAudioFile('input.wav', sampleRate=44100)
# Save in WAV format (always 32-bit float)
writeWAV('output.wav', waveform)
Process Multiple Audio Files at Once
Load and process batches of audio files:
from hunterHearsPy import loadWaveforms
# Load multiple files with consistent formatting
array_waveforms = loadWaveforms(['file1.wav', 'file2.wav', 'file3.wav'])
# The result is a unified array with shape (channels, samples, file_count)
Work with Spectrograms
Convert between waveforms and spectrograms:
from hunterHearsPy import stft, halfsine
# Create a spectrogram with a half-sine window
spectrogram = stft(waveform, windowingFunction=halfsine(1024))
# Convert back to a waveform
reconstructed = stft(spectrogram, inverse=True, lengthWaveform=original_length)
Process Audio in the Frequency Domain
Create functions that operate on spectrograms:
from hunterHearsPy import waveformSpectrogramWaveform
def boost_low_frequencies(spectrogram):
# Boost frequencies below 500 Hz
spectrogram[:, :10, :] *= 2.0
return spectrogram
# Create a processor that handles the STFT/ISTFT automatically
processor = waveformSpectrogramWaveform(boost_low_frequencies)
# Apply the processor to a waveform
processed_waveform = processor(original_waveform)
Installation
pip install hunterHearsPy
My recovery
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hunterhearspy-1.0.0.tar.gz
(23.1 kB
view details)
File details
Details for the file hunterhearspy-1.0.0.tar.gz.
File metadata
- Download URL: hunterhearspy-1.0.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a7868bfd1bb77745d235d6ad91e1d1340f0542d4594ba14fc3a79fa5b0f1673
|
|
| MD5 |
bdd81c61ccf1fca0aa8b9b3b4b078a8a
|
|
| BLAKE2b-256 |
f1509884c537ac372aa94b80f450d5e0dd6f473cd07c22b0a5f9b8efa442cf29
|