Refactor: building binary with no extra

This commit is contained in:
Grail Finder
2026-01-03 09:59:33 +03:00
parent 6b875a2782
commit aeb2700d14
14 changed files with 142 additions and 213 deletions

28
extra.go Normal file
View File

@@ -0,0 +1,28 @@
//go:build extra
// +build extra
package main
import (
"gf-lt/config"
"gf-lt/extra"
"log/slog"
)
// Interfaces and implementations when extra modules are included
type Orator = extra.Orator
type STT = extra.STT
func NewOrator(logger *slog.Logger, cfg *config.Config) Orator {
return extra.NewOrator(logger, cfg)
}
func NewSTT(logger *slog.Logger, cfg *config.Config) STT {
return extra.NewSTT(logger, cfg)
}
// TTS channels from extra package
var TTSTextChan = extra.TTSTextChan
var TTSFlushChan = extra.TTSFlushChan
var TTSDoneChan = extra.TTSDoneChan