summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2023-02-16 21:19:09 +0600
committerGrail Finder <wohilas@gmail.com>2023-02-16 21:19:09 +0600
commitef8df5b18af0217287335e32936db073e0083919 (patch)
tree2dc50b15a265886044757d2d48000931b31e8b79 /main.go
parent6a3467e034798fa1153170fadb0aab50fac9f640 (diff)
Feat: use opus; buffered queue
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index b7b84f2..de3fa58 100644
--- a/main.go
+++ b/main.go
@@ -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 {