Module speech

Module speech 

Source
Expand description

Speech processing integration.

Speech domain types are defined in gestura-core-audio and re-exported here. This module adds the SpeechProcessorCoreExt extension trait which provides methods that depend on core-only types (secure config loading, LLM provider selection).

Structs§

LlmResponse
Result of LLM processing
SpeechConfig
Speech processing configuration
SpeechProcessor
Core speech processor without Tauri dependencies
TranscriptionResult
Result of speech transcription

Traits§

SpeechProcessorCoreExt
Extension trait providing integration methods on SpeechProcessor that depend on core-only types (secure storage, LLM provider selection).

Functions§

get_speech_processor
Get the global speech processor instance
is_speech_recording
Check if speech is currently being recorded
load_audio_samples_16khz_mono
Load audio file and convert to 16kHz mono f32 samples.
resolve_whisper_model_path
Resolve the path to the local Whisper model file.
resolve_whisper_model_path_with_override
Resolve the path to a local Whisper model file, with an optional session-scoped override.
update_speech_config
Update the global speech processor configuration