diff options
author | Grail Finder <wohilas@gmail.com> | 2023-02-16 21:19:09 +0600 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2023-02-16 21:19:09 +0600 |
commit | ef8df5b18af0217287335e32936db073e0083919 (patch) | |
tree | 2dc50b15a265886044757d2d48000931b31e8b79 /main.go | |
parent | 6a3467e034798fa1153170fadb0aab50fac9f640 (diff) |
Feat: use opus; buffered queue
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ func linesToUtterances(lines []string, fd *FileData) []*Utterance { RightTime: strings.TrimSpace(splitted[1]), FD: fd, } - u.OutPath = fmt.Sprintf("%s/%s_%s_%s.wav", outdir, fd.AudioBase, + u.OutPath = fmt.Sprintf("%s/%s_%s_%s.opus", outdir, fd.AudioBase, u.LeftTime, u.RightTime) // todo: compare and filter time @@ -166,7 +166,7 @@ func main() { // filteredUtterances := []*Utterance{} // === concurrent === - queue := make(chan *Utterance) + queue := make(chan *Utterance, len(utterances)) done := make(chan bool, 1) for _, ut := range utterances { |