summaryrefslogtreecommitdiff
path: root/extra.go
diff options
context:
space:
mode:
Diffstat (limited to 'extra.go')
-rw-r--r--extra.go28
1 files changed, 28 insertions, 0 deletions
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