summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {