bb900faca99e91a5466604462bd9979ee02b9d47,demo/python/porcupine_demo_offline.py,,,#,90
Before Change
porcupine.delete()
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--input_audio_file_path", help="Absolute path to input audio file", type=str, required=True)
parser.add_argument("--keyword_file_paths", help="comma-separated absolute paths to keyword files", type=str, required=True)
parser.add_argument(
"--library_path",
help="absolute path to Porcupine"s dynamic library",
type=str)
parser.add_argument(
"--model_file_path",
help="absolute path to model parameter file",
type=str,
default=os.path.join(os.path.dirname(__file__), "../../lib/common/porcupine_params.pv"))
parser.add_argument("--sensitivity", help="detection sensitivity [0, 1]", default=0.5)
args = parser.parse_args()
_run(
input_audio_file_path=args.input_audio_file_path,
library_path=args.library_path if args.library_path is not None else _default_library_path(),
model_file_path=args.model_file_path,
keyword_file_paths=[x.strip() for x in args.keyword_file_paths.split(",")],
sensitivity=float(args.sensitivity))
After Change
sensitivity=float(args.sensitivity))
if __name__ == "__main__":
main()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: Picovoice/porcupine
Commit Name: bb900faca99e91a5466604462bd9979ee02b9d47
Time: 2019-10-09
Author: alireza@picovoice.ai
File Name: demo/python/porcupine_demo_offline.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: 1b50e0ce69cff758a6ed4cef847c01e9aa5b3f2d
Time: 2020-01-28
Author: guillaumekln@users.noreply.github.com
File Name: tools/release_model.py
Class Name:
Method Name:
Project Name: AlexEMG/DeepLabCut
Commit Name: 8f21597f5113a909dcc9a3e886846609425de783
Time: 2019-07-14
Author: amathis@fas.harvard.edu
File Name: deeplabcut/pose_estimation_tensorflow/train.py
Class Name:
Method Name: