merge_scp2json.py
Less than 1 minute
merge_scp2json.py
Given each file paths with such format as <key>:<file>:<type>. type> can be omitted and the default is “str”. e.g. /home/runner/work/espnet/espnet/tools/venv/bin/sphinx-build –input-scps feat:data/feats.scp shape:data/utt2feat_shape:shape –input-scps feat:data/feats2.scp shape:data/utt2feat2_shape:shape –output-scps text:data/text shape:data/utt2text_shape:shape –scps utt2spk:data/utt2spk
usage: merge_scp2json.py [-h] [--input-scps [INPUT_SCPS ...]]
[--output-scps [OUTPUT_SCPS ...]]
[--scps SCPS [SCPS ...]] [--verbose VERBOSE]
[--allow-one-column ALLOW_ONE_COLUMN] [--out OUT]