pub struct VoiceApp { /* private fields */ }Expand description
The central application struct that owns all subsystem state.
Fields are pub(crate) so that recording and approval submodules can
access them directly without going through getter methods.
Implementations§
Source§impl VoiceApp
impl VoiceApp
Sourcepub fn new(config: AppConfig) -> Result<Self>
pub fn new(config: AppConfig) -> Result<Self>
Creates a new VoiceApp from the given configuration.
Loads the Whisper engine synchronously (blocking) before entering the
async context. If the model is not yet downloaded the engine is set to
None and a warning is printed; the app will still start but
transcription will be unavailable until the model is downloaded.
Auto Trait Implementations§
impl Freeze for VoiceApp
impl !RefUnwindSafe for VoiceApp
impl Send for VoiceApp
impl !Sync for VoiceApp
impl Unpin for VoiceApp
impl UnsafeUnpin for VoiceApp
impl !UnwindSafe for VoiceApp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more