Skip to main content

A library for bio-inspired sound processing.

Project description

AudioToolbox

This toolbox is an implementation of an auditory model of the cochlea as developed by Shamma et al, first developed in MATLAB by Powen Ru and colleagues (Neural Systems Laboratory, University of Maryland). Their original documentation, containing the theoretical basis of the implementation, can be found here.

Key functions

  • wav2aud permits the user to produce a spectrogram ('audiogram') in which each row represents the average spike count carried by an auditory nerve fiber
  • aud2cor represents auditory information along four dimensions : scale, rate, time and frequency. This outputs a 4D complex-valued matrix stored in a binary file. Currently under development.

Important to note

  • When filter coefficients were exported from MATLAB as a CSV and loaded in directly, they resulted in filters with significant numerical instability, even when using sosfilt. They were then exported in zpk format and this seemed to fix the problem, but the reason for this is unclear.
  • The behavior of other filters beyond those produced by the work of Shamma et al has not been tested. While it is possible to load in different filters, the function may not behave as expected. Custom filters requires converting the zpk information to a numpy-specific format (npz). See documentation for details.
  • The correctness of the functions was tested against the MATLAB implementation, and numerically corresponds to the MATLAB output with an absolute tolerance of 0.01.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

neural_audio-0.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file neural_audio-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: neural_audio-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for neural_audio-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8585798bdb2b6cc666bc52137113e237f569c59bfcdea635bd21121048ba6d
MD5 9e4bb1729c8730dc50be7e047ddec533
BLAKE2b-256 07fa8c4154210143a3bdf258c080c8feb3d0b033ecc8e053596d0958cfb05984

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