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
_admin_credential_configured
Whether an API key or share PIN is configured. The PIN cannot authorize admin access, but its presence means the operator opted out of bare-s
backend/api/dependencies.py:76
↓ 2 callers
Function
_admin_gate_403
Raise the admin-gate 403 with a detail that states what would ACTUALLY satisfy the gate. The bundled UI routes any 403 whose detail mentions "
backend/api/dependencies.py:169
↓ 2 callers
Method
_admit_input_bytes_locked
(self, key_id: str, size_bytes: int)
backend/worker/inbound/artifacts.py:379
↓ 2 callers
Method
_allow_vad_pickle_globals
Register the pickle classes that pyannote's VAD checkpoint contains. Without this, PyTorch 2.6's secure unpickler refuses to load the file
backend/services/asr_backend.py:720
↓ 2 callers
Function
_allowed_quant_filenames
Return the set of valid quant filenames listed in ``quant_map.json``. Used by ``services.settings_store.set_quant_override`` to allow-list th
backend/engines/omnivoice_gguf/backend.py:228
↓ 2 callers
Function
_amp_for
The deterministic amplitude _FakeModel renders for `text`.
tests/test_redub_incremental.py:326
↓ 2 callers
Function
_api_base
()
backend/mcp_server.py:138
↓ 2 callers
Method
_artifact_bytes_spent
How much of this task's artifact budget is already committed.
backend/worker/transport/server.py:3193
↓ 2 callers
Function
_assert_done
(parsed)
tests/test_perf_operation_budgets.py:273
↓ 2 callers
Function
_assert_iter_survives_concurrent_insert
(reg)
tests/backend/services/test_lazy_registry_concurrency.py:19
↓ 2 callers
Function
_atomic_write
Fsync and atomically replace one mode-restricted credential file.
backend/worker/tls.py:370
↓ 2 callers
Function
_attached_principal
(connection)
backend/core/auth.py:307
↓ 2 callers
Function
_auto_detect
Pick the best available ASR engine **for this hardware**. The order used to be whisperx-first, unconditionally — and that quietly cost Apple
backend/services/asr_backend.py:2512
↓ 2 callers
Method
_await_connection
(self, timeout=10.0)
tests/test_worker_transport.py:712
↓ 2 callers
Function
_binary_repair_hint
One actionable sentence for a broken/placeholder GGUF binary (#1172). Appended to every InvalidBinaryError this engine raises so the user alw
backend/engines/omnivoice_gguf/backend.py:168
↓ 2 callers
Method
_bind
(self, task: Task, worker: ConnectedWorker, *, now: float)
backend/worker/scheduler.py:641
↓ 2 callers
Function
_block_import
(monkeypatch, name, exc)
tests/backend/services/test_mlx_import_guard.py:12
↓ 2 callers
Function
_block_network
(monkeypatch)
tests/test_dub_download_os_error.py:32
↓ 2 callers
Function
_body
(segments, **extra)
tests/test_dub_duration_plan_api.py:287
↓ 2 callers
Function
_bogus_lazy_module
()
backend/tests/test_asr_speechbrain_lazy_guard.py:35
↓ 2 callers
Function
_broadcast
Push event to all listener queues. Drop if full (slow consumer).
backend/core/event_bus.py:93
↓ 2 callers
Function
_bucket
Bucket VRAM into the compute class used by ``quant_map.json``. Thresholds (mebibytes): ≥ 12_000 → "high-vram" (~12 GB) ≥ 4_000
backend/engines/omnivoice_gguf/hardware_probe.py:54
↓ 2 callers
Function
_build_gpu_pool
()
backend/services/model_manager.py:210
↓ 2 callers
Function
_build_subprocess_env
Reproduce the env-injection logic that lives in backend/services/sonitranslate.py:start(). We extract it here so the test exercises the canoni
tests/backend/test_engine_spawn_token.py:185
↓ 2 callers
Function
_bundle_metadata
Common .omnivoice metadata for export + publish. Captures ``kind`` and ``vd_states`` so a *designed* persona survives the bundle round-trip a
backend/api/routers/marketplace.py:84
↓ 2 callers
Function
_can_connect
True if a TCP connection to host:port is accepted.
tests/test_network_share_lifecycle.py:19
↓ 2 callers
Function
_cancel_and_await_tasks
Cancel each background task and give it a bounded chance to actually finish before shutdown proceeds — ``None`` entries are skipped (a task th
backend/main.py:489
↓ 2 callers
Function
_canon_value
Normalise one generation-input value so that the server-side view (pydantic-parsed `DubSegment`, defaults filled in) and the client-side view
backend/services/incremental.py:32
↓ 2 callers
Function
_canonical_archetype
The built-in archetype represented exactly by a marketplace preset.
backend/api/routers/community.py:444
↓ 2 callers
Function
_capture_prefers_parakeet
Whether the capture picker should auto-prefer parakeet-mlx right now. Three gates, cheapest first: the backend is available (Apple Silicon +
backend/services/asr_backend.py:2966
↓ 2 callers
Method
_channel
(self, certificate_pem: bytes)
backend/worker/inbound/connector.py:178
↓ 2 callers
Function
_chat
One-shot chat completion on the caller's client. Raises on failure.
backend/services/translation_quality.py:73
↓ 2 callers
Function
_clamp_num_speakers
Clamp the user's speaker-count hint to a sane 1–20 range. Shared by the SSE and legacy transcribe endpoints so the two can't drift. None / no
backend/api/routers/dub_core.py:707
↓ 2 callers
Function
_classify
``_NotDispatched`` while nothing ran; ``RemoteJobFailed`` once it did.
backend/services/gpu_gateway.py:725
↓ 2 callers
Function
_classify_diarization_error
Map a pyannote/HF-hub exception to one of the diarization error sentinels above. The 401/403 path is the canonical "user hasn't accepted the
backend/services/model_manager.py:3372
↓ 2 callers
Function
_classify_llm_error
Map a provider-call failure to an actionable kind the UI can localize. Kinds: auth (bad/missing key), not_found (model or endpoint path), rat
backend/api/routers/settings.py:456
↓ 2 callers
Function
_classify_origin
sidecar | bundled | system | custom — where the resolved binary lives.
backend/services/media_tools.py:350
↓ 2 callers
Method
_clear_credentials_locked
(self)
backend/services/admin_sessions.py:186
↓ 2 callers
Function
_client_429_then_ok
chat.completions.create raises one 429, then succeeds.
tests/test_translator.py:290
↓ 2 callers
Function
_client_id
(request: Request)
backend/api/routers/auth.py:133
↓ 2 callers
Method
_close
(self)
backend/worker/breaker.py:184
↓ 2 callers
Method
_close_candidate
(self, endpoint: str, candidate, candidate_task)
backend/worker/inbound/service.py:589
↓ 2 callers
Function
_coarse_stage
Reduce a route to its fixed HEAD segment ("/api/dub/start?x=1" → "dub"). This is what the opt-in analytics event carries as `stage`: route heads
backend/core/error_journal.py:100
↓ 2 callers
Function
_columns
(db, table)
tests/test_profile_unification.py:227
↓ 2 callers
Function
_columns
(db, table)
tests/test_profile_consent.py:231
↓ 2 callers
Function
_commit_preview
Write *body* to *path* iff it is exactly the bytes the manifest signed.
backend/services/gallery.py:526
↓ 2 callers
Function
_community_personality
(item: dict)
backend/api/routers/community.py:718
↓ 2 callers
Function
_compute_device_state
Everything the Performance panel needs to render the device control: the resolved pick (env > prefs > auto), what this process actually applied
backend/api/routers/settings.py:143
↓ 2 callers
Function
_compute_type_candidates
Per-device compute_type fallback chain. int8 is supported by every CTranslate2 CUDA+CPU build; float16/int8_float16 only on GPUs with efficient
backend/services/asr_backend.py:192
↓ 2 callers
Function
_connect
(path)
tests/test_generation_takes.py:158
↓ 2 callers
Method
_connect_activation_worker
( self, session: _Session, registration: dict, fresh_worker, previous_
backend/worker/transport/server.py:1179
↓ 2 callers
Method
_connection_for
(self, endpoint: str)
backend/worker/inbound/service.py:831
↓ 2 callers
Function
_constraint_pins
``{name: version}`` from ``[tool.uv.constraint-dependencies]``.
tests/test_rocm_torch_pins_match_pyproject.py:32
↓ 2 callers
Function
_cookieTransportAllowed
(apiBase: string)
frontend/src/api/dub.ts:41
↓ 2 callers
Function
_cors_headers_for
Allowed-origin headers for a hand-built error response. CORSMiddleware doesn't always get a shot at `exception_handler`-created responses, wh
backend/main.py:1242
↓ 2 callers
Function
_count_synth_calls
(tmp_path, opts)
tests/test_audiobook_expressive.py:329
↓ 2 callers
Function
_credential_candidate
(connection)
backend/core/auth.py:176
↓ 2 callers
Function
_credentials_from_pem
Parse a credential pair only when the private key belongs to the cert.
backend/worker/tls.py:288
↓ 2 callers
Function
_ctranslate2_cuda_ok
Whether CTranslate2 (whisperx / faster-whisper) may use ``"cuda"``. CTranslate2 has NO HIP backend. On a ROCm host torch says cuda is availab
backend/services/asr_backend.py:2483
↓ 2 callers
Function
_cuda_reported_available
``torch.cuda.is_available()`` verbatim — True on real CUDA *and* HIP.
backend/services/asr_backend.py:2457
↓ 2 callers
Function
_cudagraph_assertion
A bare AssertionError raised from torch/_inductor/cudagraph_trees.py. Compiles a snippet under that filename so the traceback frame carries the
tests/test_compile_fallback.py:63
↓ 2 callers
Function
_dead_pid
A real pid that is guaranteed dead: a subprocess that already exited.
backend/tests/test_run_sentinel.py:51
↓ 2 callers
Method
_decode_offline
(self, samples, sr)
backend/services/asr_backend.py:1800
↓ 2 callers
Function
_demux_aec_frame
Split a prefixed AEC binary frame into ``(kind, pcm)``. ``kind`` is ``"near"`` (mic) or ``"far"`` (playback reference). An empty or prefix-on
backend/api/routers/capture_ws.py:159
↓ 2 callers
Function
_dense_char_count
Number of CJK / kana / Hangul characters in *text* (dense scripts).
backend/services/chunked_tts.py:48
↓ 2 callers
Function
_design_profile_values
Canonical instruct + complete picker state for a designed archetype.
backend/api/routers/archetypes.py:75
↓ 2 callers
Function
_dictation_whisper_missing
Deterministic dictation selection: no sherpa pref, MLX unavailable, faster-whisper package available, model NOT cached.
tests/test_asr_model_missing.py:54
↓ 2 callers
Function
_digest
(sha256, size) read in chunks — a source video is not a bytes object.
backend/worker/task_store.py:229
↓ 2 callers
Function
_dir_size
du-style size of ``path``: ``(bytes, complete, first_unreadable_path)``. Never follows symlinks (lstat + walk default), never raises. Stops early
backend/services/storage_report.py:107
↓ 2 callers
Function
_disarm_startup_watchdog
()
backend/main.py:783
↓ 2 callers
Method
_disconnect_session_async
Fence scheduling now, then persist grace windows off-loop.
backend/worker/transport/server.py:1446
↓ 2 callers
Function
_discover_job_artifact
Return an existing artifact by walking the validated job directory. Persisted paths select names but never reach a filesystem sink. Each retu
backend/api/routers/dub_export.py:108
↓ 2 callers
Function
_disk_free_gb
Free GB on the volume containing *path* (thin GB wrapper over the shared ``models.disk_free_bytes``, which walks up to the nearest existing ancest
backend/api/routers/setup/wizard.py:31
↓ 2 callers
Function
_download
Stream *url* to *dest_path*, hashing on the fly; raise on mismatch. Progress is reported into ``_ops[op]["progress"]``. urllib honors the HTT
backend/services/media_tools.py:196
↓ 2 callers
Function
_download_preview
Fetch one preview and commit it only if it matches the signed digest.
backend/services/gallery.py:507
↓ 2 callers
Function
_drain_failing_task
Run a failing task and return all SSE events the worker emits. Race-free: the listener is registered BEFORE the worker is started, so no even
tests/test_dub_error_transparency.py:52
↓ 2 callers
Function
_drain_leaked_dtype
Warn (with the captured setter stack, if any) and reset to float32.
tests/conftest.py:143
↓ 2 callers
Function
_drive
()
tests/test_gpu_pool_queue_accounting_1190.py:70
↓ 2 callers
Function
_dub_body
(segments, **extra)
tests/test_perf_operation_budgets.py:261
↓ 2 callers
Function
_dump_error
(error: Optional[WorkerError])
backend/worker/task_store.py:41
↓ 2 callers
Function
_durable_existing_file
Re-establish durability before adopting a crash-surviving final.
backend/worker/inbound/artifacts.py:1152
↓ 2 callers
Function
_durable_makedirs
Create a directory hierarchy and persist each parent entry.
backend/worker/task_store.py:179
↓ 2 callers
Function
_durable_makedirs
Persist every newly-created credential-directory entry.
backend/worker/tls.py:469
↓ 2 callers
Function
_durable_makedirs
Create every missing level and persist each new parent entry. Fsyncing the final file's directory persists that file, but not the task direct
backend/worker/transport/server.py:177
↓ 2 callers
Function
_duration_factor
Map VoiceStudio's absolute duration to IndexTTS 2.5's relative scale.
backend/engines/indextts/__init__.py:79
↓ 2 callers
Function
_dynamo_exc
An exception whose type lives in the torch._dynamo namespace.
tests/test_compile_fallback.py:45
↓ 2 callers
Function
_eager_audioseal
Run the AudioSeal model eagerly, restoring the switch on the way out. Upstream's own ``no_compile()`` saves and restores ``_compile_disabled``
backend/services/watermark.py:116
↓ 2 callers
Function
_effective_backend_class
Resolve host-specific containment without changing the configured id.
backend/services/tts_backend.py:2475
↓ 2 callers
Function
_effective_max_chars
Scale *max_chars* down for dense-script text (#505). Long-form (5+ min) generation degrades — repeated / skipped / mispronounced words — when
backend/services/chunked_tts.py:67
↓ 2 callers
Function
_emit
(on_state, payload: dict)
backend/services/gpu_gateway.py:661
↓ 2 callers
Method
_emit_progress
Emit current state as a progress event.
backend/utils/hf_progress.py:212
↓ 2 callers
Function
_encode_multipart
( *, filename: str, audio: bytes, fields: dict[str, str], boundary: str | None = None, )
backend/speech_client/__main__.py:94
↓ 2 callers
Function
_endpoint_host
Extract the hostname from the gRPC ``host:port`` enrollment target.
backend/worker/service.py:41
↓ 2 callers
Method
_ensure_loaded
(self)
backend/services/tts_backend.py:707
↓ 2 callers
Method
_ensure_loaded
(self)
backend/services/tts_backend.py:1338
↓ 2 callers
Method
_ensure_loaded
(self)
tests/test_load_budget_split_1033.py:57
↓ 2 callers
Method
_ensure_model
(self)
backend/services/asr_backend.py:967
↓ 2 callers
Method
_ensure_model
(self)
backend/services/asr_backend.py:1507
↓ 2 callers
Method
_ensure_model
(self)
backend/services/asr_backend.py:1933
↓ 2 callers
Method
_ensure_quant_map
(self)
backend/engines/omnivoice_gguf/backend.py:471
← previous
next →
1,801–1,900 of 15,058, ranked by callers