Commit acbafc41477a4063d51e5312961c6a045171f0eb

Authored by Quillot Mathias
1 parent a7a92c6a20
Exists in master

add wav scp method to voxceleb module but it is under construction

Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff

... ... @@ -41,6 +41,10 @@
41 41 out.write(spk + " " + " ".join(ids) + "\n")
42 42  
43 43  
  44 +def wavscp(datadir: str, outfile: str):
  45 + raise Exception("Under construction")
  46 + pass
  47 +
44 48 if __name__ == "__main__":
45 49 # Main parser
46 50 parser = argparse.ArgumentParser(description="Voxceleb data management")
... ... @@ -58,6 +62,12 @@
58 62 parser_spk2utt.add_argument("--outfile", default="spk2utt", help="output file")
59 63 parser_spk2utt.set_defaults(which="spk2utt")
60 64  
  65 + # wavscp
  66 + parser_wavscp = subparser.add_parser("wavscp", help="generate wav scp file")
  67 + parser_wavscp.add_argument("--datadir", required=True, help="data directory of masseffect")
  68 + parser_wavscp.add_argument("--outfile", default="wav.scp", help="wav.scp output file")
  69 + parser_wavscp.set_defaults(which="wavscp")
  70 +
61 71 # Parse
62 72 args = parser.parse_args()
63 73  
... ... @@ -65,6 +75,7 @@
65 75 runner = SubCommandRunner({
66 76 "utt2spk" : utt2spk,
67 77 "spk2utt": spk2utt,
  78 + "wavscp": wavscp
68 79 })
69 80  
70 81 runner.run(args.which, args.__dict__, remove="which")