MCPcopy Create free account

hub / github.com/ZhangHanDong/vox / functions

Functions122 in github.com/ZhangHanDong/vox

↓ 10 callersMethodrefresh_menu
(&mut self)
app/src/main.rs:320
↓ 4 callersMethodfail_streaming_asr
(&mut self, cx: &mut Cx, msg: &str)
app/src/main.rs:561
↓ 4 callersMethodinject_text
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:620
↓ 4 callersMethodsave_meeting
(&mut self, cx: &mut Cx, summary: Option<&str>)
app/src/main.rs:818
↓ 4 callersFunctionset_status_bar_icon
(handle: &StatusBarHandle, title: &str)
macos-sys/src/status_bar.rs:198
↓ 4 callersFunctionstr_to_nsstring
(s: &str)
macos-sys/src/status_bar.rs:32
↓ 3 callersFunctiondefault_api_url
()
app/src/config.rs:120
↓ 3 callersFunctionencode_wav
Encode PCM samples as 16-bit WAV (mono, 16kHz).
app/src/audio.rs:185
↓ 3 callersMethodhandle_error
(&mut self, cx: &mut Cx, msg: &str)
app/src/main.rs:630
↓ 3 callersMethodhandle_meeting_chunk_response
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:754
↓ 3 callersFunctionsend_meeting_chunk_request
Send a meeting chunk transcription request (same format as OminiX, different request ID).
app/src/transcribe.rs:55
↓ 3 callersMethodshow_capsule
(&mut self, cx: &mut Cx)
app/src/main.rs:459
↓ 3 callersFunctionstr_to_nsstring
(s: &str)
macos-sys/src/clipboard.rs:7
↓ 3 callersMethodupdate_meeting_display
(&mut self, cx: &mut Cx)
app/src/main.rs:845
↓ 2 callersFunctionbase64_encode
(data: &[u8])
app/src/transcribe.rs:257
↓ 2 callersMethodbuild_full_menu
(&self)
app/src/main.rs:285
↓ 2 callersFunctionbuild_ns_menu
SAFETY: Caller must ensure this runs on the main thread (AppKit requirement). All NSMenu/NSMenuItem allocations are autoreleased. The global_menu_targ
macos-sys/src/status_bar.rs:145
↓ 2 callersMethodclear_asr_stream_state
(&mut self)
app/src/main.rs:555
↓ 2 callersFunctionconfig_path
()
app/src/config.rs:211
↓ 2 callersFunctioncurrent_input_source_id
()
macos-sys/src/input_source.rs:49
↓ 2 callersFunctiondefault_llm_model
()
app/src/config.rs:122
↓ 2 callersMethoddrain_chunk
Drain accumulated PCM samples without stopping recording. Used by meeting mode to chunk audio while continuing capture.
app/src/audio.rs:114
↓ 2 callersMethodelapsed_display
(&self)
app/src/meeting.rs:59
↓ 2 callersMethodensure_callback
Install the audio input callback. Only call once.
app/src/audio.rs:49
↓ 2 callersFunctionformat_timestamp
(secs: f64)
app/src/meeting.rs:143
↓ 2 callersMethodhandle_transcribe_result
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:566
↓ 2 callersMethodhide_capsule
(&mut self, cx: &mut Cx)
app/src/main.rs:471
↓ 2 callersFunctionis_leap
(y: u64)
app/src/meeting.rs:211
↓ 2 callersFunctionparse_refine_response
Parse the LLM refine response. Expected OpenAI-compatible format: {"choices":[{"message":{"content":"..."}}]}
app/src/llm_refine.rs:67
↓ 2 callersFunctionparse_stream_start_response
Parse `{"session_id":"..."}` from `/api/start`.
app/src/transcribe.rs:134
↓ 2 callersFunctionparse_streaming_asr_text
Extract transcript text from streaming chunk/finish payloads (Python `_extract_text`).
app/src/transcribe.rs:151
↓ 2 callersFunctionparse_transcribe_response
Parse the OminiX transcription response (`{"text": "..."}`). Parse the OminiX transcription response (`{"text": "..."}`).
app/src/transcribe.rs:204
↓ 2 callersFunctionresample
Simple linear interpolation resampler.
app/src/audio.rs:165
↓ 2 callersFunctionsend_streaming_chunk
`POST {base}/api/chunk?session_id=...` — raw mono float32 little-endian PCM at 16 kHz.
app/src/transcribe.rs:104
↓ 2 callersFunctionsend_streaming_finish
`POST {base}/api/finish?session_id=...`
app/src/transcribe.rs:123
↓ 2 callersFunctionsend_streaming_start
`POST {base}/api/start` — JSON `sample_rate`, `language`, `task`.
app/src/transcribe.rs:87
↓ 2 callersMethodsetup_status_bar
(&mut self)
app/src/main.rs:273
↓ 2 callersMethodstart
Start recording.
app/src/audio.rs:96
↓ 2 callersMethodstop
Stop recording and return PCM samples resampled to 16kHz mono.
app/src/audio.rs:134
↓ 2 callersFunctionstr_to_nsstring
(s: &str)
macos-sys/src/input_source.rs:19
↓ 2 callersMethodtry_finalize_meeting
(&mut self, cx: &mut Cx)
app/src/main.rs:779
↓ 2 callersFunctionwrite_clipboard
Write text to the clipboard.
macos-sys/src/clipboard.rs:55
↓ 1 callersMethodadd_chunk_result
Add a chunk result and immediately append to transcript.md.
app/src/meeting.rs:67
↓ 1 callersFunctioncfstring_to_rust
SAFETY: cf_str must be a valid CFStringRef (toll-free bridged to NSString) or null. Null is handled. UTF8String buffer is copied immediately into Rust
macos-sys/src/input_source.rs:36
↓ 1 callersFunctionchrono_now
()
app/src/meeting.rs:162
↓ 1 callersMethodconfigure_startup
(&mut self, cx: &mut Cx)
app/src/main.rs:250
↓ 1 callersFunctioncreate_status_bar
( _icon_png_data: &[u8], menu_items: Vec<MenuItem>, )
macos-sys/src/status_bar.rs:106
↓ 1 callersFunctiondays_to_ymd
(days: u64)
app/src/meeting.rs:183
↓ 1 callersFunctiondefault_asr_model
()
app/src/config.rs:121
↓ 1 callersFunctiondefault_chunk_duration
()
app/src/config.rs:88
↓ 1 callersFunctiondefault_hotkey_key
()
app/src/config.rs:118
↓ 1 callersFunctiondefault_hotkey_trigger
()
app/src/config.rs:119
↓ 1 callersFunctiondefault_language
()
app/src/config.rs:117
↓ 1 callersFunctiondefault_meeting_output_dir
()
app/src/config.rs:90
↓ 1 callersFunctiondefault_summary_prompt
()
app/src/config.rs:94
↓ 1 callersFunctiondefault_system_prompt
()
app/src/config.rs:123
↓ 1 callersFunctiondirs_or_home
()
app/src/config.rs:215
↓ 1 callersMethodelapsed_secs
(&self)
app/src/meeting.rs:55
↓ 1 callersFunctionensure_menu_target_class
ObjC class registered once, stored as usize for Send+Sync safety.
macos-sys/src/status_bar.rs:48
↓ 1 callersFunctionextract_streaming_text
(body_str: &str)
app/src/transcribe.rs:161
↓ 1 callersMethodfinalize_transcript
Finalize transcript.md with duration and chunk count.
app/src/meeting.rs:109
↓ 1 callersMethodfull_transcript
Get the full transcript text (for LLM summary).
app/src/meeting.rs:89
↓ 1 callersFunctionget_main_screen_size
Get main screen size via NSScreen (macOS).
app/src/main.rs:868
↓ 1 callersFunctionglobal_menu_target
Global singleton menu target instance, retained forever. Stored as usize for Send+Sync.
macos-sys/src/status_bar.rs:82
↓ 1 callersMethodhandle_chunk_tick
(&mut self, cx: &mut Cx)
app/src/main.rs:726
↓ 1 callersMethodhandle_menu_action
(&mut self, cx: &mut Cx, action_id: u64)
app/src/main.rs:339
↓ 1 callersMethodhandle_refine_result
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:610
↓ 1 callersMethodinject
Begin text injection via clipboard + Cmd+V simulation. WARNING: Temporarily clobbers the user's clipboard for ~80ms. The original content is saved an
app/src/text_inject.rs:31
↓ 1 callersFunctionis_cjk_input_source
()
macos-sys/src/input_source.rs:62
↓ 1 callersMethodlatest_text
Get the latest chunk text (for capsule display).
app/src/meeting.rs:101
↓ 1 callersFunctionload_config
Load config from disk, then override with environment variables. Supported env vars: - `VOICE_INPUT_LLM_API_KEY` — LLM API key (e.g. Kimi/OpenAI key)
app/src/config.rs:231
↓ 1 callersFunctionnsstring_to_rust
SAFETY: Caller must pass a valid NSString pointer (or null, which is handled). UTF8String returns an internal buffer valid for the NSString's lifetime
macos-sys/src/clipboard.rs:27
↓ 1 callersMethodoutput_path
Get the session output directory path.
app/src/meeting.rs:138
↓ 1 callersFunctionpcm_f32_le_from_f32
Raw mono float32 little-endian PCM at 16 kHz (no header). Qwen3-ASR / vLLM streaming servers decode `application/octet-stream` chunks as `float32` (se
app/src/audio.rs:226
↓ 1 callersMethodpopulate_settings
(&self, cx: &mut Cx)
app/src/main.rs:368
↓ 1 callersFunctionread_clipboard
Read the current clipboard text content.
macos-sys/src/clipboard.rs:40
↓ 1 callersMethodread_rms
Read current smoothed RMS (call from UI thread).
app/src/audio.rs:159
↓ 1 callersMethodrestore
Restore original clipboard and input source. Call after a delay (50ms) to ensure paste has completed.
app/src/text_inject.rs:54
↓ 1 callersFunctionsave_config
Save config to disk.
app/src/config.rs:268
↓ 1 callersMethodsave_settings
(&mut self, cx: &mut Cx)
app/src/main.rs:394
↓ 1 callersMethodsave_summary
Save summary.md with LLM-generated content.
app/src/meeting.rs:125
↓ 1 callersFunctionselect_ascii_input_source
()
macos-sys/src/input_source.rs:72
↓ 1 callersFunctionselect_input_source
(id: &str)
macos-sys/src/input_source.rs:90
↓ 1 callersFunctionsend_refine_request
Send an LLM refine request to correct transcription errors.
app/src/llm_refine.rs:7
↓ 1 callersFunctionsend_summary_request
Send a meeting summary request to LLM.
app/src/llm_refine.rs:40
↓ 1 callersFunctionsend_transcribe_request
Send a transcription request to ominix-api (JSON + base64 WAV).
app/src/transcribe.rs:19
↓ 1 callersMethodsetup_hotkey_monitor
(&mut self)
app/src/main.rs:327
↓ 1 callersMethodshow_settings
(&mut self, cx: &mut Cx)
app/src/main.rs:476
↓ 1 callersFunctionsimulate_cmd_v
Simulate Cmd+V paste keystroke.
macos-sys/src/key_inject.rs:25
↓ 1 callersFunctionstart_hotkey_monitor
Start global hotkey monitoring via CGEvent tap. Requires Accessibility permission (System Preferences → Privacy → Accessibility). The callback is inv
macos-sys/src/event_tap.rs:172
↓ 1 callersMethodstart_meeting
(&mut self, cx: &mut Cx)
app/src/main.rs:645
↓ 1 callersMethodstart_recording
(&mut self, cx: &mut Cx)
app/src/main.rs:489
↓ 1 callersMethodstop_meeting
(&mut self, cx: &mut Cx)
app/src/main.rs:684
↓ 1 callersMethodstop_recording
(&mut self, cx: &mut Cx)
app/src/main.rs:509
↓ 1 callersFunctionstreaming_language_code
Map app language to ISO code for `/api/start` (matches typical `ASR_LANGUAGE` env usage).
app/src/transcribe.rs:75
↓ 1 callersMethodtest_connection
(&mut self, cx: &mut Cx)
app/src/main.rs:426
↓ 1 callersFunctiontest_stream_silence_pcm
Minimal float32 silence for connectivity test (~0.2 s at 16 kHz mono; f32le = 4 bytes/sample).
app/src/transcribe.rs:253
↓ 1 callersFunctionupdate_menu
(handle: &StatusBarHandle, menu_items: Vec<MenuItem>)
macos-sys/src/status_bar.rs:190
Methoddefault
()
macos-sys/src/event_tap.rs:27
Methoddefault
()
app/src/config.rs:78
next →1–100 of 122, ranked by callers