Commit 9730b212 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

create main method

See merge request !22
parents 4227166f 94c0f43b
...@@ -53,3 +53,6 @@ def prepare_dataset(dataset_path, json_path, n_mfcc=13, hop_length=512, n_fft=20 ...@@ -53,3 +53,6 @@ def prepare_dataset(dataset_path, json_path, n_mfcc=13, hop_length=512, n_fft=20
# store in json file # store in json file
with open(json_path, "w") as fp: with open(json_path, "w") as fp:
json.dump(data, fp, indent=4) json.dump(data, fp, indent=4)
if __name__ == "__main__":
prepare_dataset(DATASET_PATH, JSON_PATH)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment