Skip to content

Commit

Permalink
Update compute_fbank_commonvoice_splits.py (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Dec 30, 2023
1 parent 140e638 commit f42258c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egs/commonvoice/ASR/local/compute_fbank_commonvoice_splits.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def compute_fbank_commonvoice_splits(args):
extractor = KaldifeatFbank(KaldifeatFbankConfig(device=device))
logging.info(f"device: {device}")

set_audio_duration_mismatch_tolerance(0.01) # 10ms tolerance
set_audio_duration_mismatch_tolerance(0.05) # 50ms tolerance
set_caching_enabled(False)
for i in range(start, stop):
idx = f"{i + 1}".zfill(num_digits)
idx = f"{i}".zfill(num_digits)
logging.info(f"Processing {idx}/{num_splits}")

cuts_path = output_dir / f"cv-{language}_cuts_{subset}.{idx}.jsonl.gz"
Expand Down

0 comments on commit f42258c

Please sign in to comment.