sdkparity

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTTSRouterParity

func RunTTSRouterParity(t *testing.T, h TTSRouterHarness)

func RunWakeAutoEndParity

func RunWakeAutoEndParity(t *testing.T, h WakeAutoEndHarness)

func RunWakeDispatcherParity

func RunWakeDispatcherParity(t *testing.T, h WakeDispatcherHarness)

Types

type TTSProviderKind

type TTSProviderKind string
const (
	TTSProviderKindLocalBuiltIn   TTSProviderKind = "local_built_in"
	TTSProviderKindLocalProvider  TTSProviderKind = "local_provider"
	TTSProviderKindCloudProvider  TTSProviderKind = "cloud_provider"
	TTSProviderKindDirectProvider TTSProviderKind = "direct_provider"
)

type TTSProviderSpec

type TTSProviderSpec struct {
	Name string
	Kind TTSProviderKind
	Err  error
}

type TTSRouterHarness

type TTSRouterHarness struct {
	Synthesize func(ctx context.Context, strategy TTSStrategy, providers []TTSProviderSpec) (TTSRouterResult, error)
}

type TTSRouterResult

type TTSRouterResult struct {
	Provider string
	Calls    []string
}

type TTSStrategy

type TTSStrategy string
const (
	TTSStrategyCloudFirst TTSStrategy = "cloud-first"
	TTSStrategyCloudOnly  TTSStrategy = "cloud-only"
	TTSStrategyLocalOnly  TTSStrategy = "local-only"
)

type WakeAutoEndConfig

type WakeAutoEndConfig struct {
	SilenceCutoff time.Duration
	ExitPhrases   []string
}

type WakeAutoEndHarness

type WakeAutoEndHarness struct {
	DefaultConfig func() WakeAutoEndConfig
	NewPolicy     func(WakeAutoEndConfig) WakeAutoEndPolicy
}

type WakeAutoEndPolicy

type WakeAutoEndPolicy interface {
	Start()
	NotifyTranscript(string)
	EndSignal() <-chan string
	Close()
}

type WakeDetection

type WakeDetection struct {
	Phrase      string
	Mode        string
	Probability float32
}

type WakeDispatcherHarness

type WakeDispatcherHarness struct {
	Dispatch           func(ctx context.Context, opts WakeDispatcherOptions, events []WakeDetection) ([]WakeHotkeyEvent, error)
	DispatchAfterClose func(ctx context.Context, opts WakeDispatcherOptions, event WakeDetection) ([]WakeHotkeyEvent, error)
}

type WakeDispatcherOptions

type WakeDispatcherOptions struct {
	SyntheticRelease bool
	ReleaseAfter     time.Duration
}

type WakeHotkeyEvent

type WakeHotkeyEvent struct {
	KeyDown bool
	Binding string
	Source  string
}

Jump to

Keyboard shortcuts

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