Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2024-01-04 12:39:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-01-04 12:39:06 +0800
Commit
0be71a31f53da34a2481782348625191dbb03c71
0be71a31
1 parent
547a22f7
Use high_freq -400 in computing fbank features. (#515)
Fixes #514
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
12 行增加
和
0 行删除
sherpa-onnx/csrc/features.cc
sherpa-onnx/csrc/offline-stream.cc
sherpa-onnx/csrc/features.cc
查看文件 @
0be71a3
...
...
@@ -46,6 +46,12 @@ class FeatureExtractor::Impl {
opts_
.
mel_opts
.
num_bins
=
config
.
feature_dim
;
// Please see
// https://github.com/lhotse-speech/lhotse/blob/master/lhotse/features/fbank.py#L27
// and
// https://github.com/k2-fsa/sherpa-onnx/issues/514
opts_
.
mel_opts
.
high_freq
=
-
400
;
fbank_
=
std
::
make_unique
<
knf
::
OnlineFbank
>
(
opts_
);
}
...
...
sherpa-onnx/csrc/offline-stream.cc
查看文件 @
0be71a3
...
...
@@ -83,6 +83,12 @@ class OfflineStream::Impl {
opts_
.
frame_opts
.
samp_freq
=
config
.
sampling_rate
;
opts_
.
mel_opts
.
num_bins
=
config
.
feature_dim
;
// Please see
// https://github.com/lhotse-speech/lhotse/blob/master/lhotse/features/fbank.py#L27
// and
// https://github.com/k2-fsa/sherpa-onnx/issues/514
opts_
.
mel_opts
.
high_freq
=
-
400
;
fbank_
=
std
::
make_unique
<
knf
::
OnlineFbank
>
(
opts_
);
}
...
...
请
注册
或
登录
后发表评论