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.3.tar.gz (6.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: online-fbank-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3a66940dac6b103bb920813a14c1a4294173b135e43fcadfb901385b687c7792
MD5 945190f4ffdd54990de8cd3c09adc888
BLAKE2b-256 385032b8e084e1f5d21c64b9f02231fea33102a5b72af9f0eaa8c74d892477ec

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