Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZhangHanDong/vox
/ functions
Functions
122 in github.com/ZhangHanDong/vox
⨍
Functions
122
◇
Types & classes
24
↓ 10 callers
Method
refresh_menu
(&mut self)
app/src/main.rs:320
↓ 4 callers
Method
fail_streaming_asr
(&mut self, cx: &mut Cx, msg: &str)
app/src/main.rs:561
↓ 4 callers
Method
inject_text
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:620
↓ 4 callers
Method
save_meeting
(&mut self, cx: &mut Cx, summary: Option<&str>)
app/src/main.rs:818
↓ 4 callers
Function
set_status_bar_icon
(handle: &StatusBarHandle, title: &str)
macos-sys/src/status_bar.rs:198
↓ 4 callers
Function
str_to_nsstring
(s: &str)
macos-sys/src/status_bar.rs:32
↓ 3 callers
Function
default_api_url
()
app/src/config.rs:120
↓ 3 callers
Function
encode_wav
Encode PCM samples as 16-bit WAV (mono, 16kHz).
app/src/audio.rs:185
↓ 3 callers
Method
handle_error
(&mut self, cx: &mut Cx, msg: &str)
app/src/main.rs:630
↓ 3 callers
Method
handle_meeting_chunk_response
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:754
↓ 3 callers
Function
send_meeting_chunk_request
Send a meeting chunk transcription request (same format as OminiX, different request ID).
app/src/transcribe.rs:55
↓ 3 callers
Method
show_capsule
(&mut self, cx: &mut Cx)
app/src/main.rs:459
↓ 3 callers
Function
str_to_nsstring
(s: &str)
macos-sys/src/clipboard.rs:7
↓ 3 callers
Method
update_meeting_display
(&mut self, cx: &mut Cx)
app/src/main.rs:845
↓ 2 callers
Function
base64_encode
(data: &[u8])
app/src/transcribe.rs:257
↓ 2 callers
Method
build_full_menu
(&self)
app/src/main.rs:285
↓ 2 callers
Function
build_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 callers
Method
clear_asr_stream_state
(&mut self)
app/src/main.rs:555
↓ 2 callers
Function
config_path
()
app/src/config.rs:211
↓ 2 callers
Function
current_input_source_id
()
macos-sys/src/input_source.rs:49
↓ 2 callers
Function
default_llm_model
()
app/src/config.rs:122
↓ 2 callers
Method
drain_chunk
Drain accumulated PCM samples without stopping recording. Used by meeting mode to chunk audio while continuing capture.
app/src/audio.rs:114
↓ 2 callers
Method
elapsed_display
(&self)
app/src/meeting.rs:59
↓ 2 callers
Method
ensure_callback
Install the audio input callback. Only call once.
app/src/audio.rs:49
↓ 2 callers
Function
format_timestamp
(secs: f64)
app/src/meeting.rs:143
↓ 2 callers
Method
handle_transcribe_result
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:566
↓ 2 callers
Method
hide_capsule
(&mut self, cx: &mut Cx)
app/src/main.rs:471
↓ 2 callers
Function
is_leap
(y: u64)
app/src/meeting.rs:211
↓ 2 callers
Function
parse_refine_response
Parse the LLM refine response. Expected OpenAI-compatible format: {"choices":[{"message":{"content":"..."}}]}
app/src/llm_refine.rs:67
↓ 2 callers
Function
parse_stream_start_response
Parse `{"session_id":"..."}` from `/api/start`.
app/src/transcribe.rs:134
↓ 2 callers
Function
parse_streaming_asr_text
Extract transcript text from streaming chunk/finish payloads (Python `_extract_text`).
app/src/transcribe.rs:151
↓ 2 callers
Function
parse_transcribe_response
Parse the OminiX transcription response (`{"text": "..."}`). Parse the OminiX transcription response (`{"text": "..."}`).
app/src/transcribe.rs:204
↓ 2 callers
Function
resample
Simple linear interpolation resampler.
app/src/audio.rs:165
↓ 2 callers
Function
send_streaming_chunk
`POST {base}/api/chunk?session_id=...` — raw mono float32 little-endian PCM at 16 kHz.
app/src/transcribe.rs:104
↓ 2 callers
Function
send_streaming_finish
`POST {base}/api/finish?session_id=...`
app/src/transcribe.rs:123
↓ 2 callers
Function
send_streaming_start
`POST {base}/api/start` — JSON `sample_rate`, `language`, `task`.
app/src/transcribe.rs:87
↓ 2 callers
Method
setup_status_bar
(&mut self)
app/src/main.rs:273
↓ 2 callers
Method
start
Start recording.
app/src/audio.rs:96
↓ 2 callers
Method
stop
Stop recording and return PCM samples resampled to 16kHz mono.
app/src/audio.rs:134
↓ 2 callers
Function
str_to_nsstring
(s: &str)
macos-sys/src/input_source.rs:19
↓ 2 callers
Method
try_finalize_meeting
(&mut self, cx: &mut Cx)
app/src/main.rs:779
↓ 2 callers
Function
write_clipboard
Write text to the clipboard.
macos-sys/src/clipboard.rs:55
↓ 1 callers
Method
add_chunk_result
Add a chunk result and immediately append to transcript.md.
app/src/meeting.rs:67
↓ 1 callers
Function
cfstring_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 callers
Function
chrono_now
()
app/src/meeting.rs:162
↓ 1 callers
Method
configure_startup
(&mut self, cx: &mut Cx)
app/src/main.rs:250
↓ 1 callers
Function
create_status_bar
( _icon_png_data: &[u8], menu_items: Vec<MenuItem>, )
macos-sys/src/status_bar.rs:106
↓ 1 callers
Function
days_to_ymd
(days: u64)
app/src/meeting.rs:183
↓ 1 callers
Function
default_asr_model
()
app/src/config.rs:121
↓ 1 callers
Function
default_chunk_duration
()
app/src/config.rs:88
↓ 1 callers
Function
default_hotkey_key
()
app/src/config.rs:118
↓ 1 callers
Function
default_hotkey_trigger
()
app/src/config.rs:119
↓ 1 callers
Function
default_language
()
app/src/config.rs:117
↓ 1 callers
Function
default_meeting_output_dir
()
app/src/config.rs:90
↓ 1 callers
Function
default_summary_prompt
()
app/src/config.rs:94
↓ 1 callers
Function
default_system_prompt
()
app/src/config.rs:123
↓ 1 callers
Function
dirs_or_home
()
app/src/config.rs:215
↓ 1 callers
Method
elapsed_secs
(&self)
app/src/meeting.rs:55
↓ 1 callers
Function
ensure_menu_target_class
ObjC class registered once, stored as usize for Send+Sync safety.
macos-sys/src/status_bar.rs:48
↓ 1 callers
Function
extract_streaming_text
(body_str: &str)
app/src/transcribe.rs:161
↓ 1 callers
Method
finalize_transcript
Finalize transcript.md with duration and chunk count.
app/src/meeting.rs:109
↓ 1 callers
Method
full_transcript
Get the full transcript text (for LLM summary).
app/src/meeting.rs:89
↓ 1 callers
Function
get_main_screen_size
Get main screen size via NSScreen (macOS).
app/src/main.rs:868
↓ 1 callers
Function
global_menu_target
Global singleton menu target instance, retained forever. Stored as usize for Send+Sync.
macos-sys/src/status_bar.rs:82
↓ 1 callers
Method
handle_chunk_tick
(&mut self, cx: &mut Cx)
app/src/main.rs:726
↓ 1 callers
Method
handle_menu_action
(&mut self, cx: &mut Cx, action_id: u64)
app/src/main.rs:339
↓ 1 callers
Method
handle_refine_result
(&mut self, cx: &mut Cx, text: &str)
app/src/main.rs:610
↓ 1 callers
Method
inject
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 callers
Function
is_cjk_input_source
()
macos-sys/src/input_source.rs:62
↓ 1 callers
Method
latest_text
Get the latest chunk text (for capsule display).
app/src/meeting.rs:101
↓ 1 callers
Function
load_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 callers
Function
nsstring_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 callers
Method
output_path
Get the session output directory path.
app/src/meeting.rs:138
↓ 1 callers
Function
pcm_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 callers
Method
populate_settings
(&self, cx: &mut Cx)
app/src/main.rs:368
↓ 1 callers
Function
read_clipboard
Read the current clipboard text content.
macos-sys/src/clipboard.rs:40
↓ 1 callers
Method
read_rms
Read current smoothed RMS (call from UI thread).
app/src/audio.rs:159
↓ 1 callers
Method
restore
Restore original clipboard and input source. Call after a delay (50ms) to ensure paste has completed.
app/src/text_inject.rs:54
↓ 1 callers
Function
save_config
Save config to disk.
app/src/config.rs:268
↓ 1 callers
Method
save_settings
(&mut self, cx: &mut Cx)
app/src/main.rs:394
↓ 1 callers
Method
save_summary
Save summary.md with LLM-generated content.
app/src/meeting.rs:125
↓ 1 callers
Function
select_ascii_input_source
()
macos-sys/src/input_source.rs:72
↓ 1 callers
Function
select_input_source
(id: &str)
macos-sys/src/input_source.rs:90
↓ 1 callers
Function
send_refine_request
Send an LLM refine request to correct transcription errors.
app/src/llm_refine.rs:7
↓ 1 callers
Function
send_summary_request
Send a meeting summary request to LLM.
app/src/llm_refine.rs:40
↓ 1 callers
Function
send_transcribe_request
Send a transcription request to ominix-api (JSON + base64 WAV).
app/src/transcribe.rs:19
↓ 1 callers
Method
setup_hotkey_monitor
(&mut self)
app/src/main.rs:327
↓ 1 callers
Method
show_settings
(&mut self, cx: &mut Cx)
app/src/main.rs:476
↓ 1 callers
Function
simulate_cmd_v
Simulate Cmd+V paste keystroke.
macos-sys/src/key_inject.rs:25
↓ 1 callers
Function
start_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 callers
Method
start_meeting
(&mut self, cx: &mut Cx)
app/src/main.rs:645
↓ 1 callers
Method
start_recording
(&mut self, cx: &mut Cx)
app/src/main.rs:489
↓ 1 callers
Method
stop_meeting
(&mut self, cx: &mut Cx)
app/src/main.rs:684
↓ 1 callers
Method
stop_recording
(&mut self, cx: &mut Cx)
app/src/main.rs:509
↓ 1 callers
Function
streaming_language_code
Map app language to ISO code for `/api/start` (matches typical `ASR_LANGUAGE` env usage).
app/src/transcribe.rs:75
↓ 1 callers
Method
test_connection
(&mut self, cx: &mut Cx)
app/src/main.rs:426
↓ 1 callers
Function
test_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 callers
Function
update_menu
(handle: &StatusBarHandle, menu_items: Vec<MenuItem>)
macos-sys/src/status_bar.rs:190
Method
default
()
macos-sys/src/event_tap.rs:27
Method
default
()
app/src/config.rs:78
next →
1–100 of 122, ranked by callers