Structs§
- GetVoices
Request - GetVoices
Response - IsInitialized
Response - IsSpeaking
Response - Pause
Resume Response - Preview
Voice Options - Preview
Voice Request - SetBackground
Behavior Request - SetBackground
Behavior Response - Speak
Options - Speak
Request - Speak
Response - Stop
Response - TtsEvent
Payload - On desktop, emitted directly via
app.emit("tts://<event_type>", payload). On mobile, native plugins send this through a TauriChannel; the Rust relay deserializes it and re-emits viaapp.emit()so JSlisten("tts://...")works uniformly on every platform. - Validated
Speak Request - Voice
Enums§
Constants§
- MAX_
LANGUAGE_ LENGTH - Maximum language code length
- MAX_
TEXT_ LENGTH - Maximum text length in bytes (10KB)
- MAX_
VOICE_ ID_ LENGTH - Maximum voice ID length
Traits§
- TtsExt
- Extensions to
tauri::App,tauri::AppHandleandtauri::Windowto access the tts APIs.