Skip to content

Commit

Permalink
Use high_freq -400 in computing fbank features. (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Jan 4, 2024
1 parent f42258c commit 8136ad7
Show file tree
Hide file tree
Showing 127 changed files with 127 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/conformer_ctc/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/pruned_transducer_stateless2/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/pruned_transducer_stateless3/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = args.sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def decode_dataset(
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

log_interval = 50

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/tdnn_lstm_ctc/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/transducer_stateless/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/zipformer/streaming_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ def decode_dataset(
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

log_interval = 100

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = args.sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def decode_dataset(
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

log_interval = 50

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def create_streaming_feature_extractor(sample_rate) -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def decode_dataset(
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

log_interval = 50

Expand Down
1 change: 1 addition & 0 deletions egs/gigaspeech/ASR/zipformer/streaming_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ def decode_dataset(
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

log_interval = 100

Expand Down
1 change: 1 addition & 0 deletions egs/libriheavy/ASR/zipformer_prompt_asr/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/librispeech/ASR/conformer_ctc/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/librispeech/ASR/conformer_ctc3/jit_pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
1 change: 1 addition & 0 deletions egs/librispeech/ASR/conformer_ctc3/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ def create_streaming_feature_extractor() -> Fbank:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return Fbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def create_streaming_feature_extractor(sample_rate) -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def create_streaming_feature_extractor() -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def create_streaming_feature_extractor() -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ def create_streaming_feature_extractor() -> Fbank:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return Fbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = args.sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ def create_streaming_feature_extractor() -> Fbank:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return Fbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = args.sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def create_streaming_feature_extractor() -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def create_streaming_feature_extractor() -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def create_streaming_feature_extractor() -> OnlineFeature:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return OnlineFbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = args.sample_rate
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ def create_streaming_feature_extractor() -> Fbank:
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400
return Fbank(opts)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def main():
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = params.sample_rate
opts.mel_opts.num_bins = params.feature_dim
opts.mel_opts.high_freq = -400

fbank = kaldifeat.Fbank(opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def decode_dataset(
opts.frame_opts.snip_edges = False
opts.frame_opts.samp_freq = 16000
opts.mel_opts.num_bins = 80
opts.mel_opts.high_freq = -400

log_interval = 100

Expand Down
Loading

0 comments on commit 8136ad7

Please sign in to comment.