Documentation
¶
Overview ¶
Package webui serves the minimal browser voice-mode interface.
Index ¶
Constants ¶
View Source
const ( // VoiceModePath is the browser voice-mode page route. VoiceModePath = "/voice-mode" // KeepalivePath is the lightweight browser keepalive route. KeepalivePath = "/keepalive" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the dedicated browser web UI HTTP server.
func Start ¶
func Start( ctx context.Context, logger *slog.Logger, workspace, listenAddr, certFile, keyFile string, transcriber transcriber, tts synthesizer, publisher *voice.TranscriptionPublisher, ) (*Server, error)
Start launches the browser-facing web UI listener.
func StartIn ¶
func StartIn( ctx context.Context, logger *slog.Logger, workspace, workDir, listenAddr, certFile, keyFile string, transcriber transcriber, tts synthesizer, publisher *voice.TranscriptionPublisher, ) (*Server, error)
StartIn launches the browser-facing web UI listener using workDir for fallback TLS assets.
func (*Server) SendResponse ¶
SendResponse synthesizes and queues browser playback for a web voice session.
Click to show internal directories.
Click to hide internal directories.