File tree Expand file tree Collapse file tree
development/python-modules/kaldi-native-fbank Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ cmake ,
6+ setuptools ,
7+ pybind11 ,
8+ kissfft ,
9+ } :
10+ buildPythonPackage ( finalAttrs : {
11+ pname = "kaldi-native-fbank" ;
12+ version = "1.22.3" ;
13+ pyproject = true ;
14+
15+ src = fetchFromGitHub {
16+ owner = "csukuangfj" ;
17+ repo = "kaldi-native-fbank" ;
18+ tag = "v${ finalAttrs . version } " ;
19+ hash = "sha256-Wu4wM52T6NoQ1t5/iAyPtkEGnZki5P0jx0eYMFZMb5o=" ;
20+ } ;
21+
22+ build-system = [
23+ cmake
24+ setuptools
25+ ] ;
26+
27+ buildInputs = [ pybind11 ] ;
28+
29+ dontUseCmakeConfigure = true ;
30+
31+ env . KALDI_NATIVE_FBANK_CMAKE_ARGS = lib . concatStringsSep " " [
32+ "-DFETCHCONTENT_SOURCE_DIR_KISSFFT=${ kissfft . src } "
33+ "-DFETCHCONTENT_SOURCE_DIR_PYBIND11=${ pybind11 . src } "
34+ "-DKALDI_NATIVE_FBANK_BUILD_TESTS=OFF"
35+ "-DKALDI_NATIVE_FBANK_BUILD_PYTHON=ON"
36+ ] ;
37+
38+ pythonImportsCheck = [ "kaldi_native_fbank" ] ;
39+
40+ meta = {
41+ description = "Kaldi-compatible online fbank extractor without external dependencies" ;
42+ homepage = "https://github.com/csukuangfj/kaldi-native-fbank" ;
43+ license = lib . licenses . asl20 ;
44+ maintainers = with lib . maintainers ; [ lach ] ;
45+ } ;
46+ } )
Original file line number Diff line number Diff line change @@ -8153,6 +8153,8 @@ self: super: with self; {
81538153
81548154 kaldi-active-grammar = callPackage ../development/python-modules/kaldi-active-grammar { };
81558155
8156+ kaldi-native-fbank = callPackage ../development/python-modules/kaldi-native-fbank { };
8157+
81568158 kaleido = callPackage ../development/python-modules/kaleido { };
81578159
81588160 kalshi-python = callPackage ../development/python-modules/kalshi-python { };
You can’t perform that action at this time.
0 commit comments