MCPcopy Create free account

hub / github.com/Priler/jarvis / functions

Functions372 in github.com/Priler/jarvis

↓ 171 callersMethodset
write a setting by key. returns Err for unknown keys or invalid values.
crates/jarvis-core/src/db/structs.rs:68
↓ 131 callersMethodget
read a setting by key. returns None for unknown keys.
crates/jarvis-core/src/db/structs.rs:47
↓ 88 callersMethodclone
(&self)
crates/jarvis-core/src/commands/structs.rs:76
↓ 43 callersMethodlock
direct read access to the full Settings struct (for init code that needs to read multiple fields at once without key-based access)
crates/jarvis-core/src/db/manager.rs:64
↓ 41 callersFunctionsend
Send event to all connected clients
crates/jarvis-core/src/ipc/server.rs:34
↓ 35 callersMethodlen
Get frame count
crates/jarvis-core/src/audio_buffer.rs:34
↓ 28 callersMethodpush
Push a frame, dropping oldest if full
crates/jarvis-core/src/audio_buffer.rs:21
↓ 26 callersMethodread
read a setting by key
crates/jarvis-core/src/db/manager.rs:28
↓ 24 callersFunctioninit
init settings and return a SettingsManager ready to use
crates/jarvis-core/src/db.rs:44
↓ 22 callersMethodget
(&self)
crates/jarvis-gui/src/events.rs:20
↓ 16 callersMethodinsert
insert a model directly (for models not in the catalog, or loaded through non-standard means like async init)
crates/jarvis-core/src/models/registry.rs:87
↓ 15 callersFunctionget_language
Get current language
crates/jarvis-core/src/i18n.rs:90
↓ 12 callersMethodwrite
write a setting by key, auto-saves to disk
crates/jarvis-core/src/db/manager.rs:33
↓ 11 callersFunctiont
Translate a key
crates/jarvis-core/src/i18n.rs:97
↓ 10 callersFunctionresolve_path
Resolve path relative to command folder, with sandbox checks
crates/jarvis-core/src/lua/api/fs.rs:186
↓ 8 callersFunctionplay
(reaction: structs::Reaction)
crates/jarvis-core/src/voices.rs:171
↓ 8 callersFunctionread_microphone
(frame_buffer: &mut [i16])
crates/jarvis-core/src/recorder.rs:76
↓ 7 callersMethodclear
(&mut self)
crates/jarvis-core/src/audio_buffer.rs:38
↓ 7 callersFunctionrecognize
(data: &[i16], include_partial: bool)
crates/jarvis-core/src/stt.rs:35
↓ 7 callersFunctionregister
( lua: &Lua, jarvis: &Table, command_path: &PathBuf, sandbox: SandboxLevel, )
crates/jarvis-core/src/lua/api/fs.rs:9
↓ 7 callersFunctionreset
()
crates/jarvis-core/src/audio_processing.rs:100
↓ 7 callersFunctionreset_speech_recognizer
()
crates/jarvis-core/src/stt/vosk.rs:94
↓ 6 callersFunctionexecute
Execute a Lua command script
crates/jarvis-core/src/lua.rs:20
↓ 6 callersFunctionprocess
(input: &[i16])
crates/jarvis-core/src/audio_processing.rs:89
↓ 6 callersFunctionregistry
()
crates/jarvis-core/src/models.rs:57
↓ 5 callersFunctionclose
(code: i32)
crates/jarvis-app/src/app.rs:413
↓ 5 callersFunctioncreate_test_context
(cmd_path: PathBuf)
crates/jarvis-core/src/lua/tests.rs:10
↓ 5 callersFunctionload_state
(path: &PathBuf)
crates/jarvis-core/src/lua/api/state.rs:93
↓ 5 callersFunctionplay_goodbye
()
crates/jarvis-core/src/voices.rs:276
↓ 5 callersFunctionplay_reply
app startup
crates/jarvis-core/src/voices.rs:271
↓ 5 callersMethodprocess
(&mut self, input: &[i16])
crates/jarvis-core/src/models/loaders/nnnoiseless.rs:22
↓ 5 callersFunctionreset_wake_recognizer
()
crates/jarvis-core/src/stt/vosk.rs:100
↓ 4 callersMethodallows_fs_write
Can write files
crates/jarvis-core/src/lua/sandbox.rs:41
↓ 4 callersFunctionclassify
(text: &str)
crates/jarvis-core/src/intent.rs:43
↓ 4 callersFunctionfetch_command
( phrase: &str, commands: &'a [JCommandsList], )
crates/jarvis-core/src/commands.rs:89
↓ 4 callersMethodget_phrases
get phrases for current language
crates/jarvis-core/src/commands/structs.rs:107
↓ 4 callersFunctionload
load a vosk model by path through the registry. vosk models aren't in the catalog (they use their own directory structure), so we pass the path direct
crates/jarvis-core/src/models/loaders/vosk.rs:19
↓ 4 callersFunctionshould_stop
()
crates/jarvis-app/src/main.rs:171
↓ 3 callersMethodarc
get the underlying Arc
crates/jarvis-core/src/db/manager.rs:74
↓ 3 callersFunctioncommands_hash
(commands: &[JCommandsList])
crates/jarvis-core/src/commands.rs:63
↓ 3 callersFunctioncreate_bundle
(lang: &str, source: &str)
crates/jarvis-core/src/i18n.rs:69
↓ 3 callersFunctiondata_callback
(frame_buffer: &[i16])
crates/jarvis-core/src/listener.rs:40
↓ 3 callersFunctionexecute_command
(cmd_path: &PathBuf, cmd_config: &JCommand, phrase: Option<&str>, slots: Option<&HashMap<String, SlotValue>>)
crates/jarvis-core/src/commands.rs:195
↓ 3 callersFunctionfind_jarvis_app_pid
Find jarvis-app process and return its PID
crates/jarvis-gui/src/tauri_commands/sys.rs:26
↓ 3 callersFunctionget_command_by_intent
unified command lookup by intent ID - works for all backends
crates/jarvis-core/src/intent.rs:81
↓ 3 callersFunctionget_current_language
()
crates/jarvis-core/src/voices.rs:122
↓ 3 callersFunctionget_current_voice
()
crates/jarvis-core/src/voices.rs:111
↓ 3 callersFunctionget_wake_word_engine
()
crates/jarvis-gui/src/tauri_commands/_listener.rs:58
↓ 3 callersFunctionhandle_menu_event
(event: &MenuEvent, settings: &SettingsManager, tray_state: &menu::TrayState)
crates/jarvis-app/src/tray.rs:84
↓ 3 callersFunctioninit
()
crates/jarvis-core/src/audio_processing.rs:72
↓ 3 callersFunctioninit_dirs
()
crates/jarvis-core/src/config.rs:24
↓ 3 callersFunctionis_listening
()
crates/jarvis-gui/src/tauri_commands/_listener.rs:43
↓ 3 callersMethodkeys
all valid setting keys (for enumeration, debugging, etc.)
crates/jarvis-core/src/db/structs.rs:129
↓ 3 callersFunctionkeyword_callback
(_keyword_index: i32)
crates/jarvis-gui/src/tauri_commands/_listener.rs:105
↓ 3 callersFunctionlist_audio_devices
()
crates/jarvis-core/src/recorder/pvrecorder.rs:105
↓ 3 callersFunctionparse_commands
()
crates/jarvis-core/src/commands.rs:17
↓ 3 callersFunctionplay_error
()
crates/jarvis-core/src/voices.rs:275
↓ 3 callersFunctionplay_greet
shortcuts
crates/jarvis-core/src/voices.rs:270
↓ 3 callersFunctionplay_not_found
command executed
crates/jarvis-core/src/voices.rs:273
↓ 3 callersMethodreset
(&mut self)
crates/jarvis-core/src/audio_processing/gain_normalizer/simple.rs:32
↓ 3 callersFunctionsave_state
(path: &PathBuf, data: &HashMap<String, serde_json::Value>)
crates/jarvis-core/src/lua/api/state.rs:104
↓ 3 callersFunctionsendAction
(action: string, payload: Record<string, any> = {})
frontend/src/lib/ipc.ts:141
↓ 3 callersFunctionstart_recording
()
crates/jarvis-gui/src/tauri_commands/_listener.rs:245
↓ 3 callersFunctionstop_recording
()
crates/jarvis-gui/src/tauri_commands/_listener.rs:312
↓ 3 callersFunctiont_with_args
Translate a key with arguments
crates/jarvis-core/src/i18n.rs:102
↓ 2 callersMethodallows_expanded_paths
Can access paths outside command folder
crates/jarvis-core/src/lua/sandbox.rs:56
↓ 2 callersFunctionbuild
(settings: &SettingsManager)
crates/jarvis-app/src/tray/menu.rs:38
↓ 2 callersFunctionclassify_text
(text: &str)
crates/jarvis-cli/src/main.rs:50
↓ 2 callersFunctioncode_backends
Code backends per task
crates/jarvis-core/src/models/catalog.rs:65
↓ 2 callersFunctionconnectIpc
(port: number = 9712)
frontend/src/lib/ipc.ts:35
↓ 2 callersFunctioncreate_stream
(device_index: i32, frame_length: u32)
crates/jarvis-core/src/recorder/portaudio.rs:87
↓ 2 callersFunctioncreate_stream
(device: Device, frame_length: u32)
crates/jarvis-core/src/recorder/cpal.rs:82
↓ 2 callersFunctiondata_callback
(frame_buffer: &[i16])
crates/jarvis-gui/src/tauri_commands/_listener.rs:193
↓ 2 callersFunctiondetect_system_language
detect the OS language and map it to a supported language. falls back to DEFAULT_LANGUAGE if not supported.
crates/jarvis-core/src/i18n.rs:18
↓ 2 callersMethoddrain_all
Drain all buffered frames into a single vec
crates/jarvis-core/src/audio_buffer.rs:29
↓ 2 callersFunctionexecute_command
shared command execution logic (manual & voice)
crates/jarvis-app/src/_app.rs:265
↓ 2 callersFunctionexecute_command
Execute command, returns true if chaining should continue
crates/jarvis-app/src/app.rs:344
↓ 2 callersFunctionfiles_differ
check if two files differ by size or content
post_build.py:49
↓ 2 callersFunctionfind_sound_file
(voice_path: &Path, lang: &str, sound_name: &str)
crates/jarvis-core/src/voices.rs:130
↓ 2 callersMethodget
get a loaded model, downcasted to the expected type
crates/jarvis-core/src/models/registry.rs:37
↓ 2 callersFunctionget_all_translations
Get all translations for current language (for frontend)
crates/jarvis-core/src/i18n.rs:150
↓ 2 callersFunctionget_audio_devices
()
crates/jarvis-core/src/recorder.rs:141
↓ 2 callersFunctionget_db_file_path
()
crates/jarvis-core/src/db.rs:13
↓ 2 callersFunctionget_device
(device_index: usize)
crates/jarvis-core/src/recorder/cpal.rs:143
↓ 2 callersFunctionget_gui_executable_name
()
crates/jarvis-app/src/tray.rs:219
↓ 2 callersFunctionget_phrases_to_remove
(lang: &str)
crates/jarvis-core/src/config.rs:222
↓ 2 callersFunctionget_selected_microphone_index
()
crates/jarvis-core/src/recorder.rs:125
↓ 2 callersFunctionget_voice
(voice_id: &str)
crates/jarvis-core/src/voices.rs:107
↓ 2 callersFunctionget_wake_phrases
(lang: &str)
crates/jarvis-core/src/config.rs:213
↓ 2 callersFunctionhttp_request
( lua: &Lua, method: &str, url: &str, body: Option<String>, headers: Option<Table>, )
crates/jarvis-core/src/lua/api/http.rs:71
↓ 2 callersFunctionhttp_request_with_headers
( lua: &Lua, method: &str, url: &str, body: Option<String>, headers: HashMap<String, Strin
crates/jarvis-core/src/lua/api/http.rs:89
↓ 2 callersFunctioninit_microphone
(device_index: i32, frame_length: u32)
crates/jarvis-core/src/recorder/cpal.rs:23
↓ 2 callersFunctioninit_vosk
()
crates/jarvis-core/src/stt/vosk.rs:15
↓ 2 callersFunctioninit_with_model
(model: Arc<GlinerModel>)
crates/jarvis-core/src/slots/gliner.rs:21
↓ 2 callersFunctionjson_to_lua_value
(lua: &Lua, json: serde_json::Value)
crates/jarvis-core/src/lua/api/state.rs:153
↓ 2 callersFunctionlua_to_json
Convert Lua Value to serde_json::Value
crates/jarvis-core/src/lua/api/http.rs:176
↓ 2 callersFunctionplay
(phrase: &str, app_handle: &tauri::AppHandle)
crates/jarvis-gui/src/events.rs:32
↓ 2 callersFunctionplay_ok
wake word detected
crates/jarvis-core/src/voices.rs:272
↓ 2 callersFunctionplay_random_from_list
(voice_path: &Path, lang: &str, sounds: &[String])
crates/jarvis-core/src/voices.rs:153
↓ 2 callersFunctionplay_sound
(filename: &PathBuf)
crates/jarvis-core/src/audio.rs:58
next →1–100 of 372, ranked by callers