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
_refuse_when_env_pinned
OMNIVOICE_WORKER_MODE wins over the setting everywhere else. `worker_mode_enabled()` reads the variable first and `status()` reports the mach
backend/api/routers/workers.py:177
↓ 2 callers
Function
_register_engine
(monkeypatch, engine_id, *, sleep_s=0.0)
tests/test_gpu_pool_queue_accounting_1190.py:350
↓ 2 callers
Method
_registration_response
(self, live: _Session)
backend/worker/transport/server.py:923
↓ 2 callers
Function
_release_idle_tts_memory
Drop capture-ASR, TTS side caches, and allocator caches. Best-effort; never raises (a cleanup failure must not break the load/generate that called
backend/services/model_manager.py:2751
↓ 2 callers
Method
_release_input_reservation_locked
(self, path: str)
backend/worker/inbound/artifacts.py:446
↓ 2 callers
Method
_release_result_reservation_locked
( self, artifact_key: tuple[str, str] )
backend/worker/inbound/artifacts.py:333
↓ 2 callers
Function
_remember_endpoint
(endpoint: str)
backend/worker/agent.py:119
↓ 2 callers
Function
_remove_pending_pair
(cert_path: str, key_path: str)
backend/worker/tls.py:435
↓ 2 callers
Function
_remove_wav_if_unreferenced
Delete a history WAV from OUTPUTS_DIR — but only when no *other* generation_history row still references the same file. History WAVs are uniq
backend/api/routers/generation.py:2347
↓ 2 callers
Function
_render_chapter
(tmp_path, text, language, monkeypatch, env=None)
tests/test_text_normalization.py:391
↓ 2 callers
Function
_render_key
Render a one-span chapter with a stub synth; return the cache WAV path (its basename is the content-addressed chapter key).
tests/test_audiobook_expressive.py:81
↓ 2 callers
Function
_render_on_worker
One whole render on the chosen worker → ``(tensor, sample_rate)``. The audio comes back already effect-chained and provenance-marked: the
backend/api/routers/generation.py:1667
↓ 2 callers
Function
_render_preset_atomic
(item: dict, out_path: Path)
backend/api/routers/community.py:482
↓ 2 callers
Function
_render_wav_atomic
Render and validate a WAV before atomically replacing *out_path*.
backend/api/routers/archetypes.py:193
↓ 2 callers
Function
_repair_failure_detail
One sanitized clause naming why auto-repair failed, or "" (#886). Feeds user-facing messages (the generate 500 detail / model status), so it
backend/services/model_manager.py:1951
↓ 2 callers
Function
_repair_model_cache
Re-fetch a checkpoint's missing files in place and report success. An interrupted download leaves the cache missing only some files; `snapsho
backend/services/model_manager.py:1968
↓ 2 callers
Function
_replace_enrollment_manifest
Durably replace one complete enrollment generation.
backend/worker/agent.py:492
↓ 2 callers
Function
_repo_dir
(repo_id: str, cache_dir: str)
backend/services/hf_revisions.py:66
↓ 2 callers
Function
_repo_dir_name
HF cache dir name for a repo: 'k2-fsa/OmniVoice' → 'models--k2-fsa--OmniVoice'.
backend/api/routers/setup/models.py:279
↓ 2 callers
Function
_repo_installed
``is_cached`` + ``cache_is_complete`` with a positive-only session memo. Installed state comes from the same HF-cache helpers the model store use
backend/services/asr_backend.py:3263
↓ 2 callers
Function
_repo_root
()
tests/test_generation_takes.py:29
↓ 2 callers
Function
_repo_root
()
tests/test_migration_0007_instruct_rebuild.py:32
↓ 2 callers
Method
_report_upload
(self, ref: pb.TaskRef, fraction: float)
backend/worker/transport/client.py:1224
↓ 2 callers
Function
_req
(**kw)
tests/test_glossary_scrub.py:16
↓ 2 callers
Function
_request
(host: str | None)
tests/test_filesystem_boundaries.py:16
↓ 2 callers
Function
_resetBackendContactForTests
()
frontend/src/utils/backendContact.ts:56
↓ 2 callers
Function
_resetDonationSessionForTests
()
frontend/src/utils/donationMoments.js:157
↓ 2 callers
Function
_resolve
(tool: str)
backend/services/media_tools.py:367
↓ 2 callers
Method
_resolve
(self)
tests/evals/judge.py:53
↓ 2 callers
Function
_resolveApiBase
(env: any, win: any)
frontend/src/api/client.ts:48
↓ 2 callers
Function
_resolve_app_bundle_path
Walk up from ``sys.executable`` until we find a ``.app`` directory. When VoiceStudio is launched from an installed .app bundle, Python runs from
backend/core/gatekeeper_detect.py:38
↓ 2 callers
Function
_resolve_dub_artifact
Resolve current or safely rebased pre-relocation dub artifact paths.
backend/api/routers/dub_export.py:69
↓ 2 callers
Method
_resolve_input
Resolve an input reference to a path inside the artifact directory. Containment is enforced rather than assumed: a worker is a remote peer,
backend/worker/transport/server.py:3508
↓ 2 callers
Function
_resolve_pinned_sha
Read the pinned SHA from env (set by the parent) with a constants fallback for ``--selftest`` invocations that don't go through SubprocessBack
backend/engines/supertonic3/sidecar.py:118
↓ 2 callers
Method
_resolve_provider
(self)
backend/services/llm_backend.py:80
↓ 2 callers
Function
_resolve_sidecar_idle_timeout
Idle-reap timeout in seconds (MM2-05): prefs store → env → default, with env winning. ``<= 0`` disables reaping. Resolved lazily so a settings cha
backend/services/subprocess_backend.py:127
↓ 2 callers
Function
_resolve_snapshot_dir
Local snapshot directory for ``checkpoint`` (a local dir or a HF repo id). Cache-first (#959): a COMPLETE local cache is resolved with ``snap
omnivoice/models/omnivoice.py:278
↓ 2 callers
Function
_resolve_stream_backend
Resolve the live-stream engine without bypassing host isolation.
backend/api/routers/tts_stream.py:42
↓ 2 callers
Function
_resolve_voice
Map a voice-profile id to (ref_audio, ref_text, instruct, seed). Compact form of the resolver in generation.py — covers locked, design and cl
backend/api/routers/audiobook.py:235
↓ 2 callers
Function
_resolve_voice_file
Resolve a DB-stored audio filename strictly inside VOICES_DIR, returning an absolute path only if the file actually exists. None on missing/escape
backend/services/persona_bundle.py:169
↓ 2 callers
Function
_resolved_host
()
backend/core/analytics.py:156
↓ 2 callers
Method
_resolved_model_dir
()
backend/services/tts_backend.py:1799
↓ 2 callers
Function
_resplit_core
Split each segment that spans >1 speaker at the word-level boundary. ``turns`` is a normalised list of ``(start, end, speaker_label)``. Single-
backend/services/segmentation.py:678
↓ 2 callers
Function
_response_text
(body: bytes, content_type: str)
backend/speech_client/__main__.py:158
↓ 2 callers
Method
_restore_activation_pool
(self, worker_id: str, previous_worker)
backend/worker/transport/server.py:1204
↓ 2 callers
Function
_restore_agent_transaction
Restore durable enrollment/settings and the exact prior live state.
backend/api/routers/workers.py:210
↓ 2 callers
Method
_result_publication
Own one attempt's final path through publication and cleanup.
backend/worker/transport/server.py:2221
↓ 2 callers
Function
_result_text
Normalize text from every ASR backend result shape. Some backends return a top-level ``text`` value, while WhisperX, Faster Whisper, Moonshin
backend/api/routers/capture_ws.py:1105
↓ 2 callers
Method
_retire_generation
(self)
backend/worker/agent.py:1199
↓ 2 callers
Function
_retry_after_estimate
Seconds a caller should wait before retrying, from live pool state. Queue depth ahead of you, divided by workers, times a recent job's wall t
backend/services/model_manager.py:557
↓ 2 callers
Function
_rms
(x: np.ndarray)
tests/backend/services/test_aec.py:28
↓ 2 callers
Function
_rocm_reinstall_args
The literal package arguments in ``rocm_torch_reinstall_args``.
tests/test_rocm_torch_pins_match_pyproject.py:45
↓ 2 callers
Function
_rocm_torch
True when torch is the ROCm (HIP) build. ROCm torch masquerades as CUDA: ``torch.cuda.is_available()`` answers True and tensors live on ``"cu
backend/services/asr_backend.py:2467
↓ 2 callers
Function
_rows
(path)
tests/test_db_backup.py:30
↓ 2 callers
Function
_run
(args)
backend/services/tailscale.py:53
↓ 2 callers
Function
_run
Drive the real `_run_backend_inference` with a backend that raises.
tests/test_engine_language_rejection.py:85
↓ 2 callers
Function
_run
()
tests/test_audiobook_cancel.py:53
↓ 2 callers
Function
_run
()
tests/test_dub_error_transparency.py:124
↓ 2 callers
Function
_run
()
tests/test_translator.py:236
↓ 2 callers
Method
_run
(self)
tests/test_model_lock_event_loop_1417.py:56
↓ 2 callers
Function
_run_alembic
(direction, db_path, target="head")
tests/test_mcp_bindings.py:125
↓ 2 callers
Function
_run_alembic
(direction: str, db_path: str, target: str = "head")
tests/test_profile_unification.py:210
↓ 2 callers
Function
_run_alembic
(direction: str, db_path: str, target: str = "head")
tests/test_profile_consent.py:214
↓ 2 callers
Function
_run_alembic
Programmatic alembic upgrade/downgrade against a specific DB path.
tests/backend/services/test_settings_store.py:322
↓ 2 callers
Function
_run_capturing
Force the uv branch + capture the spawned argv; return (rc, argv).
tests/test_translation_engine_install.py:20
↓ 2 callers
Function
_run_chapter
Run one chapter through the gateway; local preparation stays lazy.
backend/api/routers/audiobook.py:738
↓ 2 callers
Function
_run_inference
( model, text, language, ref_audio_path, ref_text, instruct, duration, num_step, guidance_scale, speed
backend/api/routers/generation.py:729
↓ 2 callers
Function
_run_local
The local branch: admission, then the guarded pool.
backend/services/gpu_gateway.py:446
↓ 2 callers
Function
_run_local_ingest
(tmp_path, monkeypatch, *, input_type="video")
tests/test_dub_browser_media.py:13
↓ 2 callers
Function
_run_stream
(tmp_path, monkeypatch, *, job_id: str, backend: _RecordingASR)
tests/test_funasr_global_speaker_chunking.py:96
↓ 2 callers
Function
_safe_audio_url
(url: str)
backend/api/routers/community.py:111
↓ 2 callers
Function
_safe_installed
(spec: SidecarSpec)
backend/services/sidecar_install.py:446
↓ 2 callers
Function
_safe_send
Send JSON to the client, returning False if the connection is gone.
backend/api/routers/capture_ws.py:412
↓ 2 callers
Function
_save
(data: dict)
backend/core/prefs.py:47
↓ 2 callers
Function
_save_jpeg
(tmp_path, name: str, image: Image.Image)
tests/test_video_context.py:31
↓ 2 callers
Function
_save_pinned_certificate
Atomically replace the certificate only after enrollment is accepted.
backend/worker/agent.py:638
↓ 2 callers
Function
_save_state
(state: dict)
backend/services/gallery.py:177
↓ 2 callers
Function
_save_with_conn
(conn, task: Task, *, stamp: float)
backend/worker/task_store.py:664
↓ 2 callers
Function
_scan_cache_on_disk
Direct-filesystem equivalent of scan_cache_dir(), for the WinError-448 fallback path. Returns {repo_id: {size_on_disk, last_accessed, nb_files}}.
backend/api/routers/setup/models.py:418
↓ 2 callers
Method
_schedule_partial_expiry
(self, upload: _Upload)
backend/worker/transport/server.py:2824
↓ 2 callers
Function
_script_ratio
Fraction of letters in `text` that fall inside the script block we expect for `code`. Punctuation/digits/whitespace are excluded from the deno
backend/api/routers/dub_translate.py:143
↓ 2 callers
Function
_scripts
()
tests/test_desktop_prod_scripts.py:67
↓ 2 callers
Function
_secure_cookie
(request: Request)
backend/api/routers/auth.py:99
↓ 2 callers
Function
_seed
(path, size, age_s)
tests/test_longform_segment_cache.py:215
↓ 2 callers
Function
_seed
(tmp_path, name, size, age_s)
tests/test_longform_render.py:257
↓ 2 callers
Function
_seed_missing_history
A DB that missed init — only voice_profiles, no generation_history.
tests/test_generation_history_self_heal.py:41
↓ 2 callers
Function
_seg_hashes_by_lang
Per-language segment fingerprints: { langCode: { segId: hash } }. Additive migration (P1.3): jobs written by previous builds carry ONE flat `
backend/api/routers/dub_generate.py:214
↓ 2 callers
Function
_seg_wav_candidates
Per-segment WAV name candidates, language-keyed first (P1.3). Generation writes ``seg_{lang}_{id}.wav`` now; ``lang`` defaults to the job's l
backend/api/routers/dub_export.py:1365
↓ 2 callers
Function
_selector_call_lines
Lines where THIS module's selector is called — resolved, not matched. Three ways to get this wrong, all of them seen in review: * a line reg
backend/tests/test_asr_request_path_degrades.py:217
↓ 2 callers
Function
_sentinel_payload
()
backend/core/run_sentinel.py:183
↓ 2 callers
Method
_session_for
The live session a transfer belongs to, by ref token or by metadata.
backend/worker/transport/server.py:3483
↓ 2 callers
Function
_set_worker_mode
(worker_agent, enabled: bool)
backend/api/routers/workers.py:202
↓ 2 callers
Method
_settle_after_attempt
Decide between retry and terminal failure after an attempt ends.
backend/worker/lifecycle.py:555
↓ 2 callers
Function
_sha256
(data: bytes)
scripts/render_gallery.py:62
↓ 2 callers
Function
_sherpa_load_with_status
Build the recognizer off the event loop, narrating cold-start progress. Sends ``{"type":"status","stage":"downloading"|"loading"}`` before the
backend/api/routers/capture_ws.py:728
↓ 2 callers
Function
_sherpa_session
Shared WS setup for the sherpa handlers. Returns ``(pcm_sr, aec)``: the bounded PCM sample rate for the session and the echo canceller when `
backend/api/routers/capture_ws.py:678
↓ 2 callers
Function
_short_reason
A compact, non-leaky label for a refinement failure (for the UI hint).
backend/services/refinement.py:78
↓ 2 callers
Method
_should_upload
(self, payload: bytes)
backend/worker/transport/client.py:1083
↓ 2 callers
Function
_sniff_audio_ext
Filename extension matching the audio container's magic bytes. The /profiles route stores the reference clip under the uploaded filename's ex
backend/mcp_server.py:49
↓ 2 callers
Function
_source_lang_override
Normalize a user-selected source language; auto/und means detect.
backend/api/routers/dub_core.py:537
← previous
next →
2,101–2,200 of 15,058, ranked by callers