summaryrefslogtreecommitdiff
path: root/extra/whisper_binary.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-11-14 12:20:00 +0300
committerGrail Finder <wohilas@gmail.com>2025-11-14 12:20:00 +0300
commit88b45f04b73fa408a9d7565c604a59c307bf9652 (patch)
treed1751b1e904533fdb287e405814a1c2c4f327bdb /extra/whisper_binary.go
parent2695cf437e127ce6cdb33d4ea51a612d47934257 (diff)
Enha: show user an error in case stt failedHEADmaster
Diffstat (limited to 'extra/whisper_binary.go')
-rw-r--r--extra/whisper_binary.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/extra/whisper_binary.go b/extra/whisper_binary.go
index 92533b9..b18edeb 100644
--- a/extra/whisper_binary.go
+++ b/extra/whisper_binary.go
@@ -1,22 +1,5 @@
package extra
-/*
-#cgo LDFLAGS: -lasound
-
-#include <alsa/asoundlib.h>
-
-extern void go_alsa_error_handler(const char *file, int line, const char *function, int err, const char *fmt, ...);
-
-void set_alsa_error_handler() {
- snd_lib_error_set_handler(go_alsa_error_handler);
-}
-
-void go_alsa_error_handler(const char *file, int line, const char *function, int err, const char *fmt, ...) {
- return; // Complete suppression
-}
-*/
-import "C"
-
import (
"bytes"
"context"
@@ -49,7 +32,6 @@ type WhisperBinary struct {
func NewWhisperBinary(logger *slog.Logger, cfg *config.Config) *WhisperBinary {
ctx, cancel := context.WithCancel(context.Background())
// Set ALSA error handler first
- C.set_alsa_error_handler()
return &WhisperBinary{
logger: logger,
whisperPath: cfg.WhisperBinaryPath,