]> git.giacomolli.uk - onechat/blobdiff - voice_transcriber.go
Require consent and review for autosquash
[onechat] / voice_transcriber.go
index 976d66b6f282216f53489f4fdce8f142d27a1aae..732b50aabda01e51bfcadb324e347869747c16a5 100644 (file)
@@ -80,6 +80,7 @@ func (v *VoiceTranscriber) transcribe(ctx context.Context, path string) (text st
        output := filepath.Join(dir, "text")
        command := exec.CommandContext(ctx, program, "--model", model, "--file", path,
                "--language", "auto", "--max-context", "0", "--output-txt", "--output-file", output)
        output := filepath.Join(dir, "text")
        command := exec.CommandContext(ctx, program, "--model", model, "--file", path,
                "--language", "auto", "--max-context", "0", "--output-txt", "--output-file", output)
+
        command.Stdout = io.Discard
        command.Stderr = io.Discard
        command.WaitDelay = voiceProcessExitTimeout
        command.Stdout = io.Discard
        command.Stderr = io.Discard
        command.WaitDelay = voiceProcessExitTimeout