Skip to main content

Transform audio waveforms into spike trains using a biologically-plausible cochlea model.

Project description

LAUSCHER Logo

LAUSCHER – Flexible Auditory Spike Conversion Chain

If you find this package useful for your scientific work, please consider citing our paper https://ieeexplore.ieee.org/document/9311226

@article{cramer_heidelberg_2020,
	title = {The {Heidelberg} {Spiking} {Data} {Sets} for the {Systematic} {Evaluation} of {Spiking} {Neural} {Networks}},
	issn = {2162-2388},
	doi = {10.1109/TNNLS.2020.3044364},
	journal = {IEEE Transactions on Neural Networks and Learning Systems},
	author = {Cramer, B. and Stradmann, Y. and Schemmel, J. and Zenke, F.},
	year = {2020},
	pages = {1--14}
}

Installation

Lauscher uses the SoundFile package for parsing audio data. On Linux, this library requires you to install libsndfile via your distribution's package manager, e.g. via apt install libsndfile1.

We recommend setting up a virtualenv (you'll need apt install python3-venv or similar) for your lauscher project:

git clone https://github.com/electronicvisions/lauscher.git
cd lauscher
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

Assuming you are working in a private copy of lauscher that has been installed as noted above, you can continue by calculating a first spiketrain from one of the included examples:

python -m lauscher test/resources/spoken_digit.flac my_first_spiketrain.npz --num_channels 70 --verbose

Note that due to the complexity of the implemented model, even short audio files might take multiple minutes to convert. Memory consumption might be huge for long audio files.

License

LAUSCHER - Flexbile Auditory Spike Conversion Chain
Copyright (C) 2020 Benjamin Cramer
                   Yannik Stradmann
                   Koshika Yadava

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

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.

lauscher-1.0.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file lauscher-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: lauscher-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for lauscher-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cccb245c0aa38d4b4918751649a7b3bcc874eef1de7b1d4f017ee31fbf6ec26
MD5 90c01bd3bfcfcd6068ae72ba28809c46
BLAKE2b-256 5ce74647ad7260a42bd19549d79de0ff188ad9925dcce6eb04cc768209a4508e

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