From a73f53d4aa283add55a9c483f1cf1dcc187694d8 Mon Sep 17 00:00:00 2001 From: xiaohou Date: Thu, 18 Nov 2021 16:14:31 +0800 Subject: [PATCH] Update prepare_speech_command.py --- .../speechcommand_v1/s0/local/prepare_speech_command.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/speechcommand_v1/s0/local/prepare_speech_command.py b/examples/speechcommand_v1/s0/local/prepare_speech_command.py index d2d198f..8b6a340 100644 --- a/examples/speechcommand_v1/s0/local/prepare_speech_command.py +++ b/examples/speechcommand_v1/s0/local/prepare_speech_command.py @@ -7,14 +7,11 @@ CLASSES = 'unknown, yes, no, up, down, left, right, on, off, stop, go'.split( CLASS_TO_IDX = {CLASSES[i]: str(i) for i in range(len(CLASSES))} if __name__ == '__main__': - parser = argparse.ArgumentParser( - description= - 'prepare kaldi format file for google speech command dataset ') + parser = argparse.ArgumentParser(description='prepare kaldi format file') parser.add_argument( '--wav_list', required=True, - help= - 'wave list is a file containts full path of a wav file in google speech command dataset' + help='wave_list containts full path of a wav file' ) parser.add_argument('--data_dir', required=True,