Skip to main content

NeuralAudio

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.

Installation

This package is available on PyPI can be installed using pip install neural-audio

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. Information on how to use custom filters is available in the documentation and corresponding tutorial (see below).
  • 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.

Tutorials and documentation

Tutorials provide narrative explanations of how functions and their parameters work, alongside sample code and corresponding output. The objective is to help the user get a quick practical grasp of how to use the toolbox. They can be found in the tutorials folder. For more details, documentation is also available via ReadTheDocs.

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.3.tar.gz (15.5 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.3-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neural_audio-0.0.3.tar.gz
  • Upload date:
  • Size: 15.5 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.3.tar.gz
Algorithm Hash digest
SHA256 1983746056acfe19173d9a659f4d7f8e94e570401ca39a86946567b95a269947
MD5 fb5fbf2be818b74f7587ce877f77b1ff
BLAKE2b-256 f71e34d21092b2982ef74857638093f3eba2551806cdffd71178a18f6b780b34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neural_audio-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 55469ad100e30271ebfafbf51598ac61dc396f0234cc9b42172f1e791bccef6d
MD5 bf54a7bb29eac9cfde4dd24b3e1fb829
BLAKE2b-256 cf5695874a9c266bc14f80779154c00094349be9d3177fe61430c562bc569174

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

1 file

Supported by

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