Skip to main content

A library for optimizing audio processing parameters using differential evolution.

Project description

Audio Optimizer

PyPI version
A Python library for optimizing audio processing parameters using differential evolution. This library is particularly useful for improving audio processing pipelines by fine-tuning parameters of noise reduction techniques.


Features

  • Automatically optimize audio processing parameters with Differential Evolution.
  • Seamlessly integrates with the noisereduce library for noise reduction.
  • Handles audio file loading, processing, and evaluation with librosa.
  • Computes Mean Squared Error (MSE) as the optimization loss function.
  • Easily customizable bounds for optimization parameters.

Usage

from audio_optimizer.core import optimize_parameters

Input audio paths

input_audio_path = "input_audio.wav" target_audio_path = "target_audio.wav"

Optimize parameters

best_params, loss = optimize_parameters(input_audio_path, target_audio_path, epochs=50, popsize=15)

print("Best Parameters:", best_params) print("Final Loss:", loss)


Installation

Install the library using pip:

pip install audio-optimizer

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

nnaudio_GovGPT-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file nnaudio_GovGPT-0.1.0.tar.gz.

File metadata

  • Download URL: nnaudio_GovGPT-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.0

File hashes

Hashes for nnaudio_GovGPT-0.1.0.tar.gz
Algorithm Hash digest
SHA256 326711137053f0bb8b05e7e04d0f11ad873b292ea00f0a7f89de0f63eb12f465
MD5 2573b976ad4d0591c9e3956ecbdbfcaf
BLAKE2b-256 54c3652ef71dc216a1cd05a797d6525c98b7417ecdb6533e9926dcb34147d331

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