From aeb2700d14c23c175376e2a5749295cd9a5d72c7 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 3 Jan 2026 09:59:33 +0300 Subject: Refactor: building binary with no extra --- extra.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 extra.go (limited to 'extra.go') diff --git a/extra.go b/extra.go new file mode 100644 index 0000000..3ea63e2 --- /dev/null +++ b/extra.go @@ -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 \ No newline at end of file -- cgit v1.2.3