Skip to main content

Online Fbank

Project description

online-fbank

Online-fbank is a wrapper of kaldi-native-fbank. It can be used to extract streaming fbank or streaming LFR (Lower Frame Rate) fbank for FunASR-based automatic speech recognition models.

Usage

  • fbank
from online_fbank import OnlineFbank

fbank = OnlineFbank()
fbank.accept_waveform(audio_samples, is_last=True)
feats = fbank.get_frames()
  • lower frame rate fbank
from online_fbank import OnlineFbank

fbank = OnlineFbank(window_type="hamming")
fbank.accept_waveform(audio_samples, is_last=True)
feats = fbank.get_lfr_frames(neg_mean=neg_mean, inv_stddev=inv_stddev)

Project details


Download files

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

Source Distribution

online-fbank-0.0.4.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file online-fbank-0.0.4.tar.gz.

File metadata

  • Download URL: online-fbank-0.0.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for online-fbank-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6843dcb51c6b4b73b3158513846c32fe764360dade142baa437b9d40c7f1eb60
MD5 9a1d2b9948855e56630048e6363ab83c
BLAKE2b-256 071e7c011e8c3207678220c4f34b5b978a4a92c07d61b688670a8c9c469cee3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page