Skip to main content

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

Static Badge YouTube Channel Subscribers

CC-BY-NC-4.0

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.3.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hunterhearspy-1.0.3-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file hunterhearspy-1.0.3.tar.gz.

File metadata

  • Download URL: hunterhearspy-1.0.3.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hunterhearspy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1b61f202245955536907c029f8ef2e14562f178d76f339e0a553bed1438eb368
MD5 3011bf5b85796fa8e39a5409e0236e00
BLAKE2b-256 a3e6da8f99b350b87946cb75a09d46a0fd659142a05902150497efd3d8b7e61b

See more details on using hashes here.

File details

Details for the file hunterhearspy-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: hunterhearspy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hunterhearspy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b723897a8c7dd7220f2be32f2fcd38dbf46e9470805907612c5894411c3b0ac6
MD5 09ad968e371f99f64f6370d9ac6bebe9
BLAKE2b-256 66a71fe8101f57eafeea0d7ceaf30603b1ca12255cb3e8e104bae90ab21c01c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page