Expand description
Pluggable inference engines, generalised to all task kinds.
The synthetic engine produces real, decodable bytes for every kind
and is the default — it’s what unattended CI exercises end-to-end.
Real high-performance engines (llama.cpp, whisper.cpp, candle SD, Piper, ffmpeg) live behind cargo features so the default build stays small and the CI matrix stays fast. See the feature notes per implementation block below.
Modules§
- multi
- Composite engine that delegates per task kind.
Structs§
- Engine
Capabilities - What a single engine is able to do.
- Gradio
Engine - Synthetic
Engine
Traits§
Functions§
- build
- default_
models_ root - Default cache dir for downloaded model files.
- render_
animated_ webp - Synthetic “video”: an animated WebP made of
framesframes. We always emit WebP (decoders are everywhere); real video generation would use thevideo-ffmpegfeature. - render_
procedural - Deterministic 512×512 image whose colours depend on hash(prompt).
- render_
wav - Real WAV file (16-bit PCM, mono, 22 050 Hz) — sine wave whose frequency depends on hash(text). Duration is 1.0 s.
- synthetic_
llm_ response - Synthetic LLM response — deterministic by prompt hash, mimics the OpenAI chat-completion response shape so consumers can parse it.
- synthetic_
stt_ response - Synthetic STT response — Whisper-style JSON.