wyoming

package
v1.9.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.5.4"

Variables

This section is empty.

Functions

func Dial

func Dial(rawURL string) (core.Producer, error)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func DialAPI

func DialAPI(address string) (*API, error)

func NewAPI

func NewAPI(conn net.Conn) *API

func (*API) Close

func (w *API) Close() error

func (*API) ReadEvent

func (w *API) ReadEvent() (*Event, error)

func (*API) WriteEvent

func (w *API) WriteEvent(evt *Event) (err error)

type Backchannel

type Backchannel struct {
	core.Connection
	// contains filtered or unexported fields
}

func (*Backchannel) AddTrack

func (b *Backchannel) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error

func (*Backchannel) GetTrack

func (b *Backchannel) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)

func (*Backchannel) Start

func (b *Backchannel) Start() error

type Event

type Event struct {
	Type    string
	Data    string
	Payload []byte
}

type EventHeader

type EventHeader struct {
	Type          string `json:"type"`
	Version       string `json:"version"`
	DataLength    int    `json:"data_length,omitempty"`
	PayloadLength int    `json:"payload_length,omitempty"`
}

type Producer

type Producer struct {
	core.Connection
	// contains filtered or unexported fields
}

func (*Producer) Start

func (p *Producer) Start() error

type Server

type Server struct {
	Name  string
	Event map[string]string

	VADThreshold int16
	WakeURI      string

	MicHandler func(cons core.Consumer) error
	SndHandler func(prod core.Producer) error

	Trace func(format string, v ...any)
	Error func(format string, v ...any)
}

func (*Server) Handle

func (s *Server) Handle(conn net.Conn)

func (*Server) HandleMic

func (s *Server) HandleMic(conn net.Conn)

func (*Server) HandleSnd

func (s *Server) HandleSnd(conn net.Conn)

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

type WakeWord

type WakeWord struct {
	*API

	Detection string
	// contains filtered or unexported fields
}

func DialWakeWord

func DialWakeWord(rawURL string) (*WakeWord, error)

func (*WakeWord) Close

func (w *WakeWord) Close() error

func (*WakeWord) Start

func (w *WakeWord) Start() error

func (*WakeWord) WriteChunk

func (w *WakeWord) WriteChunk(payload []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL