diff options
-rw-r--r-- | main.go | 4 | ||||
-rw-r--r-- | readme.md | 1 |
2 files changed, 3 insertions, 2 deletions
@@ -160,7 +160,7 @@ func dirRun(dirpath string) []*Utterance { resp := []*Utterance{} vttFiles := getVttList(dirpath) for _, vtt := range vttFiles { - utterances := oneFileRun(path.Join(dirpath, vtt)) + utterances := oneFileRun(vtt) resp = append(resp, utterances...) } return resp @@ -175,7 +175,7 @@ func getVttList(dirpath string) []string { return err } if strings.Contains(info.Name(), subExt) { - resp = append(resp, info.Name()) + resp = append(resp, path) } return nil }) @@ -3,3 +3,4 @@ - key-pair in metadata doesnt guarantee existence of audiofile; - instead of writing ffmpeg commands to file maybe better to run them in go; - change metadata format from json to csv for lower memory consumption; +- add config file; move constance to config file; |