Fix: whisper binary

This commit is contained in:
Grail Finder
2025-11-10 13:06:05 +03:00
parent 48f32ba36a
commit a84930621c
2 changed files with 122 additions and 32 deletions

View File

@@ -31,8 +31,10 @@ type StreamCloser interface {
func NewSTT(logger *slog.Logger, cfg *config.Config) STT {
switch cfg.STT_TYPE {
case "WHISPER_BINARY":
logger.Debug("stt init, chosen whisper binary")
return NewWhisperBinary(logger, cfg)
case "WHISPER_SERVER":
logger.Debug("stt init, chosen whisper server")
return NewWhisperServer(logger, cfg)
}
return NewWhisperServer(logger, cfg)