Blame view
egs/chime5/s5b/local/make_noise_list.py
387 Bytes
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/usr/bin/env python3 import glob import os import sys if len(sys.argv) != 2: print ("Usage: {} <noises-dir>".format(sys.argv[0])) raise SystemExit(1) for line in glob.glob("{}/*.wav".format(sys.argv[1])): fname = os.path.basename(line.strip()) print ("--noise-id {} --noise-type point-source " "--bg-fg-type foreground {}".format(fname, line.strip())) |