Expand description
Shared types used across the crate.
Structs§
- Engine
Descriptor - Describes a registered engine for introspection.
- Language
Code - A language code entry with BCP-47, ISO 639-3, and display name.
- Sherpa
Language - A language entry within a Sherpa-ONNX model.
- Sherpa
Model Info - Metadata for a Sherpa-ONNX model from the registry.
- Speak
Options - Options for speak/synth calls, matching Swift’s
SpeakOptions. - TtsError
- Error type for TTS operations.
- Voice
- A single voice offered by an engine, unified across all providers.
Mirrors Swift’s
UnifiedVoice. - Word
Boundary - A word boundary event with timing information.
Mirrors Swift’s
WordBoundary. - tts_
engine_ info - C-compatible engine descriptor returned by
tts_get_engines. - tts_
voice - C-compatible voice descriptor returned by
tts_get_voices.
Enums§
- Audio
Format - Audio output format, matching Swift’s
AudioFormat. - Gender
- Voice gender, matching Swift’s
UnifiedVoice.Gender. - Speech
Pitch - Named speech pitch presets, matching Swift’s
SpeechPitch. - Speech
Rate - Named speech rate presets, matching Swift’s
SpeechRate.
Functions§
- normalize_
gender - Normalize a raw gender string to a typed
Gender.