sdkparity

package
v0.78.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sdkparity holds test-only parity harnesses that run the same behavioral assertions against the public SDK and reference-app implementations. It is internal to pkg/speechkit and never part of the public surface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTTSRouterParity

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

RunTTSRouterParity runs the shared provider-kind routing assertions.

Types

type TTSProviderKind

type TTSProviderKind string

TTSProviderKind classifies a provider by where it runs.

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

Provider kinds understood by the parity harness.

type TTSProviderSpec

type TTSProviderSpec struct {
	Name string
	Kind TTSProviderKind
	Err  error
}

TTSProviderSpec describes one fake provider handed to the router.

type TTSRouterHarness

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

TTSRouterHarness adapts a concrete TTS router to the parity suite.

type TTSRouterResult

type TTSRouterResult struct {
	Provider string
	Calls    []string
}

TTSRouterResult reports which provider served a request and the call order.

type TTSStrategy

type TTSStrategy string

TTSStrategy is the routing strategy under test.

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

Routing strategies understood by the parity harness.

Jump to

Keyboard shortcuts

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