diff --git a/volia/skyrim.py b/volia/skyrim.py index cb73763..6292022 100644 --- a/volia/skyrim.py +++ b/volia/skyrim.py @@ -35,7 +35,7 @@ def utt2spk(lst: str, outfile: str): lst_ = read_lst(lst) with open(outfile, "w") as f: - for id_ in lst: + for id_ in lst_: splited = id_.split(",") spk_id = splited[0] + "-" + splited[1] f.write(id_ + " " + spk_id + "\n") @@ -45,7 +45,7 @@ def utt2char(lst: str, outfile: str): lst_ = read_lst(lst) with open(outfile, "w") as f: - for id_ in lst: + for id_ in lst_: splited = id_.split(",") char_id = splited[1] f.write(id_ + " " + char_id + "\n") @@ -81,7 +81,7 @@ if __name__ == '__main__': # Run commands runner = SubCommandRunner({ - "lst2wav" : lst2wav, + "lst2wav": lst2wav, "utt2spk": utt2spk, "utt2char": utt2char })