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 Distribution

neural_audio-0.0.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

neural_audio-0.0.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file neural_audio-0.0.2.tar.gz.

File metadata

  • Download URL: neural_audio-0.0.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for neural_audio-0.0.2.tar.gz
Algorithm Hash digest
SHA256 20b3336c2e1d2f75b64f977aafb687ff35a37bffa770014441cbee8c0e3c9d77
MD5 8ec0a23c6b5b1f0dea5865d7ff063a83
BLAKE2b-256 309e4091889352a2d6069734d676e232fef2f8b954bea14eb18ee2d38f868f4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neural_audio-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e43cc0d1db533bd3f77300ab8e25ce940d79651ea277d0ea5524153c14aaba1
MD5 a9cde09098f2e0ce46a3d1b194692e6e
BLAKE2b-256 b92ee06e517d48e43e54c3f5af996545ea33409fd2851b47a9e35f2c12907ae9

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