--- id: kaldi-native-fbank version: "1.22.3" license: Apache-2.0 license_treatment: permissive maintenance: aging --- # kaldi-native-fbank License: permissive · Maintenance: aging · Downloads: 257.7K/mo ## What it is and what it does kaldi-native-fbank is a Python wrapper around a C++ implementation of Kaldi-compatible filterbank feature extraction. It computes mel-frequency filterbank coefficients from raw audio waveforms, designed for real-time speech recognition pipelines. The package accepts audio samples at a specified sampling rate and produces frame-by-frame feature vectors without requiring external audio libraries or Kaldi itself. The package is built as a compiled extension with pre-built wheels for Python 3.8+ across Linux, macOS, and Windows on x86, ARM, and aarch64 architectures. It has no runtime Python dependencies and is intended for integration into speech recognition systems like sherpa-ncnn and sherpa-onnx, where it handles the feature extraction stage of online (streaming) speech processing. Use it for: - Extract mel-filterbank features from streaming audio in real-time speech recognition systems. - Replace Kaldi's fbank computation in modern speech pipelines without installing Kaldi itself. - Compute frame-level audio features for acoustic model inference in embedded or resource-constrained environments. - Validate or benchmark fbank feature extraction against Kaldi's reference implementation. - Integrate audio preprocessing into Python-based speech recognition frameworks. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Extracts Kaldi-compatible filterbank (fbank) audio features from waveforms in real-time without external dependencies, supporting online processing across multiple architectures and operating systems. Yes, if you are building a real-time speech recognition system that needs Kaldi-compatible fbank features without external dependencies. The package is well-maintained, permissively licensed, and has broad platform coverage. However, if your use case is offline batch processing or you already have Kaldi or another audio library integrated, the aging maintenance status (309 days since last release) and lack of recent activity may warrant checking whether active alternatives exist. ## Install pip install kaldi-native-fbank uv add kaldi-native-fbank poetry add kaldi-native-fbank ## Installing kaldi-native-fbank Before you install: Medium install friction due to compiled wheels for multiple Python versions and architectures (cp310–cp313, x86/arm/aarch64, Linux/macOS/Windows), but pre-built binaries are available. Maintenance is aging: last release was 309 days ago, though the repository remains active and the project is not archived. License in practice: Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions; you must retain license and copyright notices in distributions. Quickstart: pip install kaldi-native-fbank import kaldi_native_fbank as knf opts = knf.FbankOptions() opts.mel_opts.num_bins = 80 fbank = knf.OnlineFbank(opts) fbank.accept_waveform(16000, audio_samples) features = fbank.get_frame(0) Requires Python >= 3.8.0; audio samples must be provided as a list or array-like object compatible with the C++ backend. Verify before relying: - Whether the package works reliably on Android as claimed in the description, or if that is aspirational. - Performance characteristics (latency, throughput) for real-time speech recognition use cases. - Compatibility with specific speech recognition frameworks beyond the two CMake projects mentioned. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: aging - Downloads: 257.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags audio feature extraction fbank, kaldi compatible speech features, real-time fbank extractor, mel-frequency cepstral coefficients, online speech feature computation, waveform to fbank features, kaldi fbank alternative, audio-processing, speech-recognition, feature-extraction [View on SkillFed](https://skillfed.io/packages/kaldi-native-fbank) · [View on PyPI](https://pypi.org/project/kaldi-native-fbank/)