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
wav2audpermits the user to produce a spectrogram ('audiogram') in which each row represents the average spike count carried by an auditory nerve fiberaud2correpresents 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 inzpkformat 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1983746056acfe19173d9a659f4d7f8e94e570401ca39a86946567b95a269947
|
|
| MD5 |
fb5fbf2be818b74f7587ce877f77b1ff
|
|
| BLAKE2b-256 |
f71e34d21092b2982ef74857638093f3eba2551806cdffd71178a18f6b780b34
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55469ad100e30271ebfafbf51598ac61dc396f0234cc9b42172f1e791bccef6d
|
|
| MD5 |
bf54a7bb29eac9cfde4dd24b3e1fb829
|
|
| BLAKE2b-256 |
cf5695874a9c266bc14f80779154c00094349be9d3177fe61430c562bc569174
|