Documentation
¶
Index ¶
- func RunTTSRouterParity(t *testing.T, h TTSRouterHarness)
- func RunWakeAutoEndParity(t *testing.T, h WakeAutoEndHarness)
- func RunWakeDispatcherParity(t *testing.T, h WakeDispatcherHarness)
- type TTSProviderKind
- type TTSProviderSpec
- type TTSRouterHarness
- type TTSRouterResult
- type TTSStrategy
- type WakeAutoEndConfig
- type WakeAutoEndHarness
- type WakeAutoEndPolicy
- type WakeDetection
- type WakeDispatcherHarness
- type WakeDispatcherOptions
- type WakeHotkeyEvent
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 TTSStrategy ¶
type TTSStrategy string
const ( TTSStrategyCloudFirst TTSStrategy = "cloud-first" TTSStrategyCloudOnly TTSStrategy = "cloud-only" TTSStrategyLocalOnly TTSStrategy = "local-only" )
type WakeAutoEndConfig ¶
type WakeAutoEndHarness ¶
type WakeAutoEndHarness struct {
DefaultConfig func() WakeAutoEndConfig
NewPolicy func(WakeAutoEndConfig) WakeAutoEndPolicy
}
type WakeAutoEndPolicy ¶
type WakeDetection ¶
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 WakeHotkeyEvent ¶
Click to show internal directories.
Click to hide internal directories.