Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 27 fields pub hotkey: String, pub model_size: String, pub asr_backend: AsrBackend, pub asr_quantization: AsrQuantization, pub language: String, pub spoken_punctuation: bool, pub filler_word_removal: bool, pub max_recordings: u32, pub mode: InputMode, pub streaming: bool, pub translate_to_english: bool, pub noise_suppression: bool, pub vocabulary: Vec<String>, pub app_contexts: HashMap<String, AppContextConfig>, pub excluded_apps: Vec<String>, pub dictation_mode: DictationMode, pub app_mode: AppMode, pub wake_word: String, pub stop_phrase: String, pub notes_dir: Option<PathBuf>, pub system_audio_device: Option<String>, pub stealth_mode: bool, pub llm_model: String, pub ollama_url: String, pub sessions_dir: Option<String>, pub auto_summary: bool, pub auto_update: bool,
}

Fields§

§hotkey: String§model_size: String§asr_backend: AsrBackend

ASR backend engine (default: whisper)

§asr_quantization: AsrQuantization

ONNX model quantization level (default: int4, only used for ONNX backends)

§language: String§spoken_punctuation: bool§filler_word_removal: bool§max_recordings: u32§mode: InputMode§streaming: bool§translate_to_english: bool§noise_suppression: bool

Enable noise suppression via nnnoiseless (default: true)

§vocabulary: Vec<String>

Global vocabulary terms to bias Whisper toward

§app_contexts: HashMap<String, AppContextConfig>

Per-application context configurations, keyed by bundle ID or process name

§excluded_apps: Vec<String>

App identifiers to exclude from context capture (password managers, banking apps)

§dictation_mode: DictationMode

Default dictation mode

§app_mode: AppMode

Application mode: dictation (paste at cursor) or notes (overlay + wake word)

§wake_word: String

Phrase that triggers dictation when spoken (default: “murmur start dictation”)

§stop_phrase: String

Phrase that stops dictation when spoken (default: “murmur stop dictation”)

§notes_dir: Option<PathBuf>

Directory for saving dictation notes (default: data_dir/murmur/notes)

§system_audio_device: Option<String>

Input device name for system audio capture (e.g. “BlackHole 2ch”). When set, meeting sessions capture both mic and system audio.

§stealth_mode: bool

Hide the overlay window from screen capture and screen sharing.

§llm_model: String

LLM model name for Ollama (default: “phi3”)

§ollama_url: String

Ollama API base URL

§sessions_dir: Option<String>

Directory for storing meeting sessions

§auto_summary: bool

Auto-generate summary when meeting ends

§auto_update: bool

Automatically check for and apply updates on startup (default: false)

Implementations§

Source§

impl Config

Source

pub fn dir() -> PathBuf

Source

pub fn file_path() -> PathBuf

Source

pub fn is_notes_mode(&self) -> bool

Whether the app is in Notes mode.

Source

pub fn default_model_for_backend(&self) -> &'static str

Default model size for the current ASR backend.

Source

pub fn backend_has_native_formatting(&self) -> bool

Whether the current backend produces pre-formatted output (punctuation, capitalization).

Source

pub fn notes_dir(&self) -> PathBuf

Resolved notes directory, falling back to data_dir/murmur/notes.

Source

pub fn load() -> Self

Source

pub fn load_from(path: &Path) -> Self

Source

pub fn parse(contents: &str, source: &Path) -> Self

Source

pub fn save(&self) -> Result<()>

Source

pub fn save_to(&self, path: &Path) -> Result<()>

Source

pub fn effective_max_recordings(value: u32) -> u32

Source

pub fn load_vocab_file(dir: &Path) -> Vec<String>

Load vocabulary terms from a .murmur-vocab file if it exists in the given directory. The file contains one term per line. Empty lines and lines starting with # are ignored.

Source

pub fn effective_vocabulary( &self, app_id: Option<&str>, project_dir: Option<&Path>, ) -> Vec<String>

Collect all effective vocabulary: global config + app-specific + vocab file.

Source

pub fn is_app_excluded(&self, app_id: &str) -> bool

Check if an app is excluded from context capture.

Source

pub fn effective_dictation_mode(&self, app_id: Option<&str>) -> DictationMode

Get the effective dictation mode for a given app.

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Config

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Config

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> CloneAny for T
where T: Any + Clone,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,