turndetector

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HGModel          = "livekit/turn-detector"
	ONNXFilename     = "model_q8.onnx"
	MaxHistoryTokens = 128
	MaxHistoryTurns  = 6

	RemoteInferenceTimeout = 2 * time.Second
)
View Source
const (
	PluginTitle   = "rtp-agent.plugins.turn_detector"
	PluginVersion = "1.5.15"
	PluginPackage = "rtp-agent.plugins.turn_detector"
)

Variables

This section is empty.

Functions

func RemoteInferenceURL added in v0.0.15

func RemoteInferenceURL(urlBase string) string

Types

type Model added in v0.0.15

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

func NewEnglishModel added in v0.0.15

func NewEnglishModel(opts ...ModelOption) *Model

func NewMultilingualModel added in v0.0.15

func NewMultilingualModel(opts ...ModelOption) *Model

func (*Model) InferenceMethod added in v0.0.15

func (m *Model) InferenceMethod() string

func (*Model) Model added in v0.0.15

func (m *Model) Model() ModelType

func (*Model) ModelRevision added in v0.0.15

func (m *Model) ModelRevision() string

func (*Model) Provider added in v0.0.15

func (m *Model) Provider() string

func (*Model) RemoteInferenceURL added in v0.0.15

func (m *Model) RemoteInferenceURL() string

func (*Model) UnlikelyThreshold added in v0.0.15

func (m *Model) UnlikelyThreshold(language string) (float64, bool)

type ModelOption added in v0.0.15

type ModelOption func(*Model)

func WithRemoteInferenceBaseURL added in v0.0.15

func WithRemoteInferenceBaseURL(urlBase string) ModelOption

func WithUnlikelyThreshold added in v0.0.15

func WithUnlikelyThreshold(threshold float64) ModelOption

type ModelType added in v0.0.15

type ModelType string
const (
	ModelEnglish      ModelType = "en"
	ModelMultilingual ModelType = "multilingual"
)

type Plugin added in v0.0.15

type Plugin struct{}

func (Plugin) DownloadFiles added in v0.0.15

func (Plugin) DownloadFiles() error

Jump to

Keyboard shortcuts

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