Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/debpalash/VoiceStudio
/ functions
Functions
15,058 in github.com/debpalash/VoiceStudio
⨍
Functions
15,058
◇
Types & classes
1,240
↳
Endpoints
303
↓ 2 callers
Function
_load_model_sync
()
backend/services/model_manager.py:2229
↓ 2 callers
Function
_load_model_with_timeout
Run the blocking model load on the GPU pool, bounded by a deadline. Raises RuntimeError on timeout (and resets the poisoned pool) so callers
backend/services/model_manager.py:2628
↓ 2 callers
Function
_load_quant_map
Read and validate ``quant_map.json``. Raises ``RuntimeError`` if the file is missing or malformed (the SPIKE-01 ADR requires real 40-char hex
backend/engines/omnivoice_gguf/backend.py:183
↓ 2 callers
Function
_load_setup
()
tests/test_setup_rocm_variant.py:23
↓ 2 callers
Function
_log_bg_failure
Retrieve a fire-and-forget future's exception so it isn't swallowed.
backend/api/routers/dub_core.py:875
↓ 2 callers
Function
_main_window
()
tests/test_window_launch_state.py:22
↓ 2 callers
Function
_make_0003_db
A DB as it exists after 0003 (no kind/vd_states) with one legacy row.
tests/test_profile_unification.py:232
↓ 2 callers
Function
_make_backend_class
Construct the OmniVoiceGGUFBackend class on first access.
backend/engines/omnivoice_gguf/backend.py:333
↓ 2 callers
Function
_make_bundle
(metadata: dict)
tests/test_persona_kind.py:67
↓ 2 callers
Function
_make_fake_engine
(engine_id: str)
tests/test_synthetic_audio_watermark_1169.py:131
↓ 2 callers
Method
_make_minimal_subclass
Build a concrete TTSBackend that implements only the abstract bits, leaving unload() inherited from the ABC.
backend/tests/test_tts_backend_lifecycle.py:111
↓ 2 callers
Function
_make_occ_counter
Per-closure occurrence counter for the cache opt-out (#1208). When ``vary_repeats`` is on, every synth call gets a monotonically rising nonce
backend/api/routers/audiobook.py:399
↓ 2 callers
Function
_make_room_before_tts_load
Evict-then-load: free what we already own before a tight TTS load. The audit's top gap: on a 16 GB unified-memory box a plain TTS load could
backend/services/model_manager.py:2722
↓ 2 callers
Function
_make_source_root
(tmp_path)
tests/test_omnivoice_path.py:23
↓ 2 callers
Function
_manual_cache_delete_hint
Names the exact on-disk folder to delete when every auto-repair rung failed — "delete the model" is only actionable if the user can find it. E
backend/services/model_manager.py:1928
↓ 2 callers
Function
_map_span_voice
Translate a span's voice token to the profile id to synthesize with (#1217). A span's ``voice_id`` is whatever the longform parser captured from
backend/api/routers/audiobook.py:293
↓ 2 callers
Function
_mark
Provenance-mark synthetic audio before it is encoded (EU AI Act 50(2)). The decision is the CONTROL PLANE user's, carried on the assignment: the
backend/worker/executor.py:1187
↓ 2 callers
Function
_marks
(monkeypatch)
tests/test_worker_executor_residency.py:401
↓ 2 callers
Function
_maybe_emit
(agg: DownloadAggregator)
backend/utils/download_aggregator.py:226
↓ 2 callers
Function
_maybe_send_installed
Fire `app_installed` exactly once per installation — the first time this install is BOTH consented and configured. Returns True when sent.
backend/core/analytics.py:351
↓ 2 callers
Function
_mcp_start_timeout_s
Seconds to wait for the MCP session manager to start before giving up and serving without it (#632). Overridable via OMNIVOICE_MCP_START_TIMEOUT_S
backend/main.py:433
↓ 2 callers
Function
_merge_segment_extra
Preserve editor metadata when cleanup folds ``incoming`` into ``target``.
backend/services/segmentation.py:103
↓ 2 callers
Function
_minimal_body
(**over)
tests/test_dub_voice_match.py:151
↓ 2 callers
Function
_missing_media_process_error
Capture a real process-launch ENOENT so traceback origin is preserved.
tests/test_generation_audio_guard.py:25
↓ 2 callers
Function
_model_load_timeout
Overall ceiling (seconds) for a single model load/download attempt. Backstop for any hang the HF per-read socket timeouts don't catch (a wedg
backend/services/model_manager.py:2602
↓ 2 callers
Function
_moss_model_class
The first known MOSS model class on ``module``, or None.
backend/services/tts_backend.py:1154
↓ 2 callers
Function
_mount_paths
(app)
tests/test_mcp_mount.py:40
↓ 2 callers
Function
_mps_available
()
backend/services/asr_backend.py:2448
↓ 2 callers
Function
_mps_torch
(available)
tests/test_mlx_supported.py:15
↓ 2 callers
Method
_new_token_locked
(self, prefix: str, existing: object)
backend/services/admin_sessions.py:175
↓ 2 callers
Function
_new_worker
( *, name: str, public_key: bytes, endpoint: str, host: Optional[dict], capabilities:
backend/worker/registry.py:194
↓ 2 callers
Function
_newest
``(name, run_number)`` for the highest-numbered match, else ``(None, -1)``. Versioned artifacts accumulate on the rolling release, so "current" m
scripts/build_preview_manifest.py:66
↓ 2 callers
Function
_normalise_host
Canonicalise a SAN identity for comparison, not for DNS resolution.
backend/worker/tls.py:136
↓ 2 callers
Function
_normalise_line
Strip prompt prefixes + trailing whitespace + CRs. Returns '' for blank and comment-only lines (the caller treats '' as 'skip').
scripts/validate-install-docs.py:51
↓ 2 callers
Function
_normalize_arch
``"gfx90a:xnack+"`` → ``"gfx90a"``. Feature flags dropped, lowercased.
backend/core/device_caps.py:94
↓ 2 callers
Function
_normalize_indextts25_language
Map VoiceStudio locale labels to IndexTTS 2.5's required token.
backend/engines/indextts/__init__.py:61
↓ 2 callers
Method
_normalize_master
(api_key: str | None)
backend/services/admin_sessions.py:143
↓ 2 callers
Function
_note_refine_status
(*, ok: bool, reason: str | None = None)
backend/services/refinement.py:66
↓ 2 callers
Function
_num2words_lang
Resolve a request language (display name or ISO-ish code) to a num2words locale, or ``None`` when digits should be left alone. Both lookup pa
backend/services/text_normalization.py:156
↓ 2 callers
Function
_offenders
(paths, root)
backend/tests/test_asr_request_path_degrades.py:273
↓ 2 callers
Function
_omnivoice_sampling_kwargs
VoiceStudio-model generate kwargs for the sampling knobs. UNSET reproduces today exactly: num_step 32, guidance 2.0, and NO temperature/postproces
backend/api/routers/audiobook.py:418
↓ 2 callers
Method
_on_prewarm
Load/download a catalog model, then report the resulting capability.
backend/worker/transport/client.py:824
↓ 2 callers
Method
_open
(self, now: float)
backend/worker/breaker.py:175
↓ 2 callers
Function
_operation_env
()
backend/core/contained_subprocess.py:356
↓ 2 callers
Method
_outbound
(self)
backend/worker/transport/client.py:645
↓ 2 callers
Method
_outbound
(self)
backend/worker/inbound/connector.py:563
↓ 2 callers
Method
_parse
(resp: str | None)
tests/probe/web.py:120
↓ 2 callers
Function
_parseDeepLinkCredentials
(href: string)
frontend/src/api/client.ts:116
↓ 2 callers
Function
_parse_rate
Parse an ffprobe frame-rate string ('30000/1001' or '25') to fps.
backend/services/video_retime.py:195
↓ 2 callers
Function
_part_files
()
backend/tests/test_gallery_profiles.py:168
↓ 2 callers
Function
_patch_generic_engine
(monkeypatch, calls)
tests/test_longform_synth_params.py:72
↓ 2 callers
Function
_patch_generic_engine
(monkeypatch, calls)
tests/test_audiobook_expressive.py:283
↓ 2 callers
Function
_patch_router_db
Redirect the generation router's DB access to ``dbf``. Patched through ``gen.ensure_schema.__globals__`` — the module dict of the ``core.db``
tests/test_generation_takes.py:164
↓ 2 callers
Method
_path
(self, span, nonce: int = 0)
backend/services/longform_render.py:232
↓ 2 callers
Function
_pcm16_b64
Mono 16-bit little-endian PCM, base64-encoded — the streaming-preview wire format (same conversion as /ws/tts). N-D tensors take channel 0.
backend/api/routers/generation.py:1102
↓ 2 callers
Function
_pcm16_to_wav
Write raw int16 mono PCM to a temp WAV via stdlib ``wave`` (no ffmpeg). Used on the AEC path, where frames are already decoded PCM — the cleaned
backend/api/routers/capture_ws.py:173
↓ 2 callers
Function
_peer_of
A loggable source address. gRPC formats these as ipv4:1.2.3.4:5678.
backend/worker/inbound/listener.py:63
↓ 2 callers
Function
_persist
Point the engine at the managed checkout: process env for immediate use, prefs.json ``env.*`` for the next launch, and invalidate the engine's
backend/services/sidecar_install.py:490
↓ 2 callers
Function
_phase_a_build
Everything heavy that used to run at module scope, same relative order per step. Idempotent. Imports are literal statements so PyInstaller's t
backend/main.py:549
↓ 2 callers
Function
_phase_b
The old lifespan startup body: DB init + background services. Handles land on app.state so the shutdown block (which may run after a startup t
backend/main.py:833
↓ 2 callers
Method
_phase_ceiling
The absolute time a keepalive may not renew past. Bounds the keepalive by the budget of the phase it is keeping alive. Without this t
backend/worker/scheduler.py:784
↓ 2 callers
Method
_ping_loop
Time a round trip periodically so the UI can show real latency.
backend/worker/transport/server.py:1789
↓ 2 callers
Function
_pins
`{name: version}` for every `name==version` line, comments stripped.
tests/test_torch_constraints_are_applied.py:43
↓ 2 callers
Function
_plan
(*chapters)
tests/test_audiobook_cancel.py:38
↓ 2 callers
Function
_platform
()
backend/core/analytics.py:299
↓ 2 callers
Method
_platform_error
(cls)
backend/engines/pockettts/__init__.py:67
↓ 2 callers
Method
_predict_tokens_with_scoring
(self, c_logits, u_logits, gen_config)
omnivoice/models/omnivoice.py:1497
↓ 2 callers
Function
_prefs_llm_backend
()
tests/test_llm_state_isolation.py:48
↓ 2 callers
Method
_prepare_embed_inputs
Prepares embeddings from input_ids of shape (batch_size, layers, seq_length). Embedding shape is (batch_size, seq_length, hidden_size
omnivoice/models/omnivoice.py:506
↓ 2 callers
Method
_prepare_inference_inputs
Prepare input_ids and audio masks for inference. Args: text: Target text to generate. num_target_tokens: Number of aud
omnivoice/models/omnivoice.py:1262
↓ 2 callers
Method
_prepare_inputs
(self, text: str, voice: str, speed: float)
tests/test_kitten_input_shape_1173.py:56
↓ 2 callers
Function
_preset_preview_path
(item: dict)
backend/api/routers/community.py:460
↓ 2 callers
Function
_previews_dir
()
backend/services/gallery.py:125
↓ 2 callers
Function
_probe
(entry: dict)
backend/services/translation_engines.py:114
↓ 2 callers
Method
_probe_capabilities
(self)
backend/worker/transport/client.py:484
↓ 2 callers
Function
_probe_network
Tiny TCP connect test.
backend/api/routers/setup/wizard.py:177
↓ 2 callers
Function
_prompt
()
tests/test_prompt_disk_cache.py:36
↓ 2 callers
Function
_prompt_disk_dir
Return the prompt-cache directory (created on first use), or None when the layer is disabled or the directory can't be created.
backend/services/tts_backend.py:466
↓ 2 callers
Function
_prompt_disk_path
(cache_dir: str, key: tuple)
backend/services/tts_backend.py:482
↓ 2 callers
Method
_prune_empty_chain_locked
Durably remove empty artifact/kind directories, retrying failures.
backend/worker/inbound/artifacts.py:225
↓ 2 callers
Function
_publish_bundled_on_path
Make a newly validated bundle visible to bare-name subprocess calls.
backend/services/media_tools.py:157
↓ 2 callers
Function
_pure_tone
(hz: float = 220.0)
backend/tests/test_archetype_preview_quality.py:32
↓ 2 callers
Function
_purge_result_directories
Delete result directories before their owning rows become unreachable.
backend/worker/task_store.py:477
↓ 2 callers
Method
_push_inbound_inputs
Upload every declared input, replacing each ref with what landed.
backend/worker/transport/server.py:2674
↓ 2 callers
Function
_py_files
()
tests/test_watermark_route_coverage.py:120
↓ 2 callers
Function
_py_files
()
tests/test_no_orphan_service_modules.py:29
↓ 2 callers
Method
_queued_order
Interactive before batch, then FIFO inside each class.
backend/worker/scheduler.py:492
↓ 2 callers
Function
_queued_task
()
tests/test_worker_service_api.py:619
↓ 2 callers
Function
_raise_agent_transaction_failure
( worker_agent, operation: BaseException, rollback: BaseException | None )
backend/api/routers/workers.py:234
↓ 2 callers
Function
_read_audio
(path: str, stdin_filename: str)
backend/speech_client/__main__.py:146
↓ 2 callers
Function
_read_json
(path: str)
backend/core/run_sentinel.py:91
↓ 2 callers
Function
_read_prefs
()
backend/api/routers/dictation.py:44
↓ 2 callers
Method
_rebuild
(self)
tests/test_gallery_previews.py:118
↓ 2 callers
Method
_record_artifact_bytes
(self, attempt: Attempt, count: int)
backend/worker/transport/server.py:3294
↓ 2 callers
Function
_recover_silent_sherpa
Retry a token-silent Sherpa session through an installed local ASR.
backend/api/routers/capture_ws.py:625
↓ 2 callers
Function
_recv_pcm_frame
Receive one frame; return (kind, pcm_bytes). kind ∈ {"near","eof","skip"}. Demuxes AEC-tagged frames when ``aec`` is on and feeds the playbac
backend/api/routers/capture_ws.py:697
↓ 2 callers
Function
_reference_pattern
Match any plausible reference to services.<mod>. Covers `from services.<mod> import ...`, `import services.<mod>`, attribute/string reference
tests/test_no_orphan_service_modules.py:38
↓ 2 callers
Function
_refine_timeout_s
The refinement LLM budget in seconds (OMNIVOICE_REFINE_TIMEOUT_S). Falls back to :data:`_DEFAULT_REFINE_TIMEOUT_S` on an unset/invalid/non- p
backend/services/refinement.py:44
↓ 2 callers
Function
_refinement_state
()
backend/api/routers/settings.py:263
↓ 2 callers
Method
_refresh_registration_timeout
(self, session: _Session)
backend/worker/transport/server.py:908
← previous
next →
2,001–2,100 of 15,058, ranked by callers