MCPcopy Create free account
hub / github.com/ASLP-lab/OSUM / get_args

Function get_args

OSUM/tools/websocket/performance-ws.py:70–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70def get_args():
71 parser = argparse.ArgumentParser(description='')
72 parser.add_argument(
73 '-u',
74 '--ws_uri',
75 required=True,
76 help="websocket_server_main's uri, e.g. ws://127.0.0.1:10086")
77 parser.add_argument('-w',
78 '--wav_scp',
79 required=True,
80 help='path to wav_scp_file')
81 parser.add_argument('-t',
82 '--trans',
83 required=True,
84 help='path to trans_text_file of wavs')
85 parser.add_argument('-s',
86 '--save_to',
87 required=True,
88 help='path to save transcription')
89 parser.add_argument('-n',
90 '--num_concurrence',
91 type=int,
92 required=True,
93 help='num of concurrence for query')
94 args = parser.parse_args()
95 return args
96
97
98def print_result(info):

Callers 1

performance-ws.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected