我试图获取一些在网上找到的代码,以使用README.md文件中给出的用法示例。这些工具的目的是从单独的事件中合成音频场景。我不知道如何运行给出的用法示例,这些示例是:
* ./simscene.py -h
Displays command line syntax and option descriptions.
* ./simscene.py example/sound/ output/ 10 -e example/forest_events.xls -b example/forest_backgrounds.xls -N 10 -v
Creates wavefiles and plots of 10 instances of scenes for which events are described in example/forest_events.xls and
background sounds in example/forest_backgrounds.xls
我尝试在终端上运行这些行(我正在使用PyCharm),但是错误是即使我尝试运行“ simscene,也无法将“ simscene.py识别为内部或外部命令,可操作程序或批处理文件”。 .py”,而没有任何输入。
I've been able to get the function simscene to run from another script by importing it, but then run into errors. It looks like the file simscene.py uses lines of argparse to prompt the user, but I can't seem to activate these prompts to start running.
使用示例如何将指定的输入中继到函数,以及如何运行使用示例?