Fixed store_true in --json
This commit is contained in:
parent
abe9583b16
commit
2057305df7
@ -104,7 +104,7 @@ def main():
|
||||
help='Print version and exits')
|
||||
parser.add_argument('--extended', required=False, action='store_true',
|
||||
help='Output string from extended metadata')
|
||||
parser.add_argument('--json', required=False, action='store_false',
|
||||
parser.add_argument('--json', required=False, action='store_true',
|
||||
help='Output json from metadata with timestamp of each word')
|
||||
args = parser.parse_args()
|
||||
|
||||
@ -138,7 +138,7 @@ def main():
|
||||
inference_start = timer()
|
||||
if args.extended:
|
||||
print(metadata_to_string(ds.sttWithMetadata(audio)))
|
||||
if args.json:
|
||||
elif args.json:
|
||||
print(metadata_json_output(ds.sttWithMetadata(audio)))
|
||||
else:
|
||||
print(ds.stt(audio))
|
||||
|
Loading…
x
Reference in New Issue
Block a user