espnet3.systems.esp2_lid.src.collect_stats.collect_speech_shapes
Less than 1 minute
espnet3.systems.esp2_lid.src.collect_stats.collect_speech_shapes
espnet3.systems.esp2_lid.src.collect_stats.collect_speech_shapes(config) → None
Collect raw speech shapes and language mappings without a model.
- Parameters:config – Training configuration with
dataset,stats_dirand optionalparallelsettings. Withoutparallel, collection runs in this process. Preprocessing is disabled during collection. - Returns: None. Writes speech_shape, lang2utt, category2utt, dataset2utt, utt2dataset, batch_keys and stats_keys under stats_dir/{train,valid}. IDs match the CombinedDataset, including speed-perturbed variants.
Example
>>> collect_speech_shapes(training_config)