bf4fb61c34ceaa9cc50bbaa5e4a1487504e7537b

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Force 16 kHz S16_LE mono in TUI mic capture

Diff

 1diff --git a/cmd/kaiwari/main.go b/cmd/kaiwari/main.go
 2index 8dfe569e067f0bd4d389f3a2b57c36a0164074a1..e09e2abf6976886764581ece643779ecdbbca6a1 100644
 3--- a/cmd/kaiwari/main.go
 4+++ b/cmd/kaiwari/main.go
 5@@ -24,7 +24,7 @@ import (
 6 const recordCap = 15 * time.Second
 7 
 8 // The capture command is fixed for this deployment; it is not user-configurable.
 9-const recordCommand = "arecord"
10+const recordCommand = "arecord -r 16000 -f S16_LE -c 1"
11 
12 func main() {
13 	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)