Skip to main content

Speech processing with Python

Project description

Build Status Documentation Status License


This pure-python library allows for flexible computation of speech features.

For example, given feature configuration called fbanks.json:

  "name": "stft",
  "bank": "fbank",
  "frame_length_ms": 25,
  "include_energy": true,
  "pad_to_nearest_power_of_two": true,
  "window_function": "hanning",
  "use_power": true

You can compute triangular, overlapping filters like Kaldi or HTK with the commands

import json
from pydrobert.speech import *
# get the feature computer ready
params = json.load(open('fbank.json'))
computer = util.alias_factory_subclass_from_arg(compute.FrameComputer, params)
# assume "signal" is a numpy float array
feats = computer.compute_full(signal)

If you plan on using a PyTorch DataLoader or Kaldi tables in your ASR pipeline, you can compute all a corpus' features by using the commmands signals-to-torch-feat-dir (requires pytorch package) or compute-feats-from-kaldi-tables (requires pydrobert-kaldi package).

This package can compute much more than f-banks, with many different permutations. Consult the documentation for a more in-depth discussion of how to use it.



pydrobert-speech is available via both PyPI and Conda.

conda install -c sdrobert pydrobert-speech
pip install pydrobert-speech
pip install git+ # bleeding edge

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pydrobert-speech, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pydrobert_speech-0.0.1-py2.py3-none-any.whl (56.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pydrobert-speech-0.0.1.tar.gz (77.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page