Skip to main content

Crate ftts_core

Crate ftts_core 

Source
Expand description

Safe, blocking public engine primitives.

TtsEngine owns the one async runtime used below the synchronous public facade. Model work is intentionally absent in Phase 0, but the admission, cancellation, budget, observer, and bounded-streaming contracts are real so later model stages cannot introduce a second orchestration path.

Modules§

admission
Resource admission: decide before allocating, and report truncation instead of hiding it.
audio
The audio output tail: decoded PCM to a playable file.
health
Runtime health: catch a run going wrong while it is still running.

Structs§

BoundedReceiver
A bounded queue consumer.
BoundedSender
A bounded queue producer that cooperates with cancellation while stalled.
CancellationToken
A caller-owned cancellation signal for one request.
CodeFrame
One generated codec frame: the talker’s primary code plus the 15 residual codes.
EngineConfig
Fixed limits for one engine instance.
EnrollmentRequest
A synchronous enrollment request.
EnrollmentResult
A completed empty-pipeline enrollment result.
GenerationError
A model-side failure while generating codec frames.
LanguageSpan
A byte range in normalized text with a caller-supplied language identifier.
NormalizationChange
One observable normalization change.
NormalizationOptions
Caller-supplied behavior layered over the pinned verbatim path.
NormalizationTrace
A deterministic record of what the normalizer did and why.
NormalizationTraceSummary
The privacy-safe normalization information allowed on an observer event.
PcmPacket
A PCM packet emitted by the codec path.
PreparedText
Token ids and a caller-owned trace returned by a model-specific text preparer.
PronunciationEntry
An explicit pronunciation expansion.
StreamQueues
A streaming endpoint pair with independent bounded PCM and event queues.
SynthesisRequest
A synchronous synthesis request.
SynthesisResult
A completed synthesis result.
TextPreparationError
Named failure from a model-specific text preparer.
TtsEngine
Blocking public engine facade.

Enums§

EngineError
Errors produced by the synchronous engine facade.
EngineStage
A stage named in observer events and budget errors.
HealthEvent
A health signal emitted through the caller-owned observer.
NormalizationMode
The caller-visible text-normalization policy.
StreamKind
The kind of a bounded stream queue.
SynthesisEvent
Lifecycle information delivered to a caller-owned observer.

Constants§

SCAFFOLD_REVISION
Identifies this crate’s scaffold revision.

Traits§

FrameGenerator
Model-specific autoregressive frame generation behind the blocking engine facade.
SynthesisObserver
Caller-owned telemetry for synthesis and enrollment.
TextPreparer
Model-specific text preparation used by the blocking engine facade.

Functions§

process_engine_config
Process-wide engine defaults read once from FTTS_STAGE_BUDGET_*_MS.