Skip to content

Commit bc4ee15

Browse files
authored
Merge pull request #95 from wuxiuzhi738/main
openspeech/datasets/aishell/preprocess.py line137 ,modification
2 parents ae3dd1d + 86fe082 commit bc4ee15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openspeech/datasets/aishell/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,6 @@ def generate_character_script(dataset_path: str, manifest_file_path: str, vocab_
133133
for idx, audio_path in enumerate(audio_paths):
134134
audio_paths[idx] = audio_path.replace(f"{dataset_path}/", '')
135135

136-
for (audio_path, transcript, label) in zip(audio_paths, transcripts, labels):
136+
#for (audio_path, transcript, label) in zip(audio_paths, transcripts, labels):
137+
for (audio_path, transcript, label) in zip(keys, transcripts, labels):
137138
f.write(f"{audio_path}\t{transcript}\t{label}\n")

0 commit comments

Comments
 (0)