Structs§
- Availability
Response - Response for availability check
- Listen
Config - Configuration for starting speech recognition
- Permission
Response - Response for permission check
- Recognition
Result - A speech recognition result
- Recognition
Status - Current status of speech recognition
- SttError
- Structured error event for frontend consumption
- Supported
Language - Supported language information
- Supported
Languages Response - Response for supported languages
Enums§
- Error
- Permission
Status - Permission status
- Recognition
State - Recognition state
- SttError
Code - Unified error codes for cross-platform consistency
Traits§
- SttExt
- Extensions to
tauri::App,tauri::AppHandleandtauri::Windowto access the stt APIs.
Functions§
- get_
model_ path - Gets a specific model’s directory.
- get_
models_ dir - Gets the models directory for Vosk speech recognition models.
- init
- Initializes the plugin.
- list_
available_ models - Lists available models in the models directory.
- model_
exists - Checks if a model exists in the models directory.
- validate_
path - Validates that a path doesn’t contain path traversal attacks.
Type Aliases§
- Language
Code - Language code for speech recognition (e.g., “en-US”, “pt-BR”, “ja-JP”)
- Result