Skip to main content

pytorch_speech_features

DOI

A simple PyTorch reimplementation of library python_speech_features.

Uses

  • Great for Intepretability experiments - All audio processing operations can be performed and the results can be backpropagated to the original signal tensor.
  • Supports Hybrid Model Design - Parametric operations at different stages of audio processing.

Example use

Installation

Install from PyPI

pip install pytorch-speech-features

Install from GitHub

git clone https://github.com/Debjoy10/pytorch_speech_features
python setup.py develop

Usage

Functions same as python_speech_features (Refer to its documentation here).

Instead of input signal as list / numpy array, pass tensor (both 'cpu' and 'cuda' supported!!).

See example use given above.

Supported features:

  • Mel Frequency Cepstral Coefficients
  • Filterbank Energies
  • Log Filterbank Energies
  • Spectral Subband Centroids

Testing

Two things to test for pytorch_speech_features operations -

  1. Similarity to python_speech_features outputs.
  2. Gradient correctness via Autograd Gradcheck.
Find the testing python notebook here -

Open In Colab

Citation

@misc{https://doi.org/10.5281/zenodo.8021586,
  doi = {10.5281/ZENODO.8021586},
  url = {https://zenodo.org/record/8021586},
  author = {{Debjoy Saha}},
  title = {Debjoy10/pytorch_speech_features: Release v0.0.1},
  publisher = {Zenodo},
  year = {2023},
  copyright = {Open Access}
}

References

  • Python_speech_features library - Link
  • Sample english.wav - Link

Release files for pytorch-speech-features 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytorch-speech-features 0.0.3
File Size Uploaded
pytorch_speech_features-0.0.3.tar.gz 8.7 kB Details

Release files / pytorch_speech_features-0.0.3.tar.gz

Download URL pytorch_speech_features-0.0.3.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7a4dbffaa7c049b941c40488ffba5c54f272b3bf8d2367197dd2455c0f843607
BLAKE2b-256 checksum
How to use checksums
6ae6f94f67675673386e28ba66080665007a83cd20180cd0965474f9b95d2d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page