Skip to content

Commit 9af1399

Browse files
committed
change default value of dither.
1 parent babc24a commit 9af1399

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torchaudio/compliance/kaldi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _subtract_column_mean(tensor, subtract_mean):
194194

195195

196196
def spectrogram(
197-
waveform, blackman_coeff=0.42, channel=-1, dither=1.0, energy_floor=0.0,
197+
waveform, blackman_coeff=0.42, channel=-1, dither=0.0, energy_floor=1.0,
198198
frame_length=25.0, frame_shift=10.0, min_duration=0.0,
199199
preemphasis_coefficient=0.97, raw_energy=True, remove_dc_offset=True,
200200
round_to_power_of_two=True, sample_frequency=16000.0, snip_edges=True,
@@ -429,7 +429,7 @@ def get_mel_banks(num_bins, window_length_padded, sample_freq,
429429

430430

431431
def fbank(
432-
waveform, blackman_coeff=0.42, channel=-1, dither=1.0, energy_floor=0.0,
432+
waveform, blackman_coeff=0.42, channel=-1, dither=0.0, energy_floor=1.0,
433433
frame_length=25.0, frame_shift=10.0, high_freq=0.0, htk_compat=False, low_freq=20.0,
434434
min_duration=0.0, num_mel_bins=23, preemphasis_coefficient=0.97, raw_energy=True,
435435
remove_dc_offset=True, round_to_power_of_two=True, sample_frequency=16000.0,
@@ -547,8 +547,8 @@ def _get_lifter_coeffs(num_ceps, cepstral_lifter):
547547

548548

549549
def mfcc(
550-
waveform, blackman_coeff=0.42, cepstral_lifter=22.0, channel=-1, dither=1.0,
551-
energy_floor=0.0, frame_length=25.0, frame_shift=10.0, high_freq=0.0, htk_compat=False,
550+
waveform, blackman_coeff=0.42, cepstral_lifter=22.0, channel=-1, dither=0.0,
551+
energy_floor=1.0, frame_length=25.0, frame_shift=10.0, high_freq=0.0, htk_compat=False,
552552
low_freq=20.0, num_ceps=13, min_duration=0.0, num_mel_bins=23, preemphasis_coefficient=0.97,
553553
raw_energy=True, remove_dc_offset=True, round_to_power_of_two=True,
554554
sample_frequency=16000.0, snip_edges=True, subtract_mean=False, use_energy=False,

0 commit comments

Comments
 (0)