router

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package router is a compatibility alias shim: the STT routing layer now lives in the public framework package pkg/speechkit/stt (Router, Strategy, BuildRouter), so both the Device-Target and the Server-Target assemble it through one path. Existing internal call sites keep compiling unchanged via the aliases below. New code should import pkg/speechkit/stt directly.

The shim also owns the host-side audit wiring: the public router exposes a provider-selected observer instead of importing internal/auditlog, and this package installs the audit-log observer for both targets at init time.

Index

Constants

View Source
const (
	StrategyDynamic   = pkgstt.StrategyDynamic
	StrategyLocalOnly = pkgstt.StrategyLocalOnly
	StrategyCloudOnly = pkgstt.StrategyCloudOnly
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router = pkgstt.Router

Router selects the best STT provider; see pkg/speechkit/stt.Router.

type Strategy

type Strategy = pkgstt.Strategy

Strategy defines the routing strategy; see pkg/speechkit/stt.Strategy.

Jump to

Keyboard shortcuts

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