Skip to main content

Module engine

Module engine 

Source
Expand description

The engine: one owner for the queue, the synthesizer and the sink.

Nothing else in the process may touch that state. Commands come in, immutable snapshots go out, so the tray, MPRIS and any settings window cannot disagree about what is playing.

tick does one unit of work and returns. The binary calls it in a loop between commands; tests call it directly, which is what makes the whole state machine assertable without threads or timing.

Structs§

Engine
SayOpts
Snapshot

Enums§

Command
State

Constants§

SECONDS_PER_WORD
Measured: 181.55 s of audio for 498 words in kokoro-eval’s passage bench.