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
↓ 9 callers
Function
_safe_lang_or_400
(lang: str | None)
backend/api/routers/dub_export.py:168
↓ 9 callers
Function
_settle
Wait for the running task to leave the client's book.
tests/test_worker_client_liveness.py:116
↓ 9 callers
Function
_speech_after_silence
`lead_s` of silence, then `speech_s` of loud tone.
tests/test_onset_align.py:35
↓ 9 callers
Function
_stub
(monkeypatch, *, rc=0, err=b"", raises=None, spy=None)
tests/test_loudness.py:28
↓ 9 callers
Function
_symlink_or_skip
Create a symlink, skipping the test where the OS forbids it (Windows without Developer Mode). CI's full pytest run is Linux, so coverage holds.
tests/test_hf_cache_repair.py:33
↓ 9 callers
Function
_wire_skill_client
(monkeypatch, client, *, model="test-model", timeout=9.0)
tests/test_dub_translation_quality.py:57
↓ 9 callers
Function
apiUrl
(path?: string)
frontend/src/api/client.ts:246
↓ 9 callers
Function
assign_speakers_from_diarization
Replace speaker_id based on a pyannote diarization result (overlap-weighted).
backend/services/segmentation.py:515
↓ 9 callers
Function
chunks
()
tests/test_worker_inbound_transport.py:1381
↓ 9 callers
Method
close
()
frontend/src/test/VoicePanel.test.jsx:77
↓ 9 callers
Method
commit_input
Durably publish one verified input without replacing prior bytes.
backend/worker/inbound/artifacts.py:848
↓ 9 callers
Function
cookie_csrf_allowed
(connection, *, side_effectful_get: bool = False)
backend/core/csrf.py:127
↓ 9 callers
Function
detect_speech_onsets
Return the times (s) of every speech-like onset across the whole track. Powers the timeline editor's snap-to-onset ticks (issue #280, item 3):
backend/services/onset_align.py:160
↓ 9 callers
Function
extract_segment_refs
Per-segment clone references (Wave 3.2 / Spec 4). Cut each segment's own slice from the isolated vocals at THAT segment's timestamps, so the
backend/services/speaker_clone.py:158
↓ 9 callers
Function
flushPendingWrites
()
frontend/src/utils/coalescedJsonStorage.ts:402
↓ 9 callers
Function
gpu_host
A dedicated-VRAM host (CUDA) with a loaded TTS model.
tests/test_tts_placement_self_heal.py:84
↓ 9 callers
Function
header_safe_reason
A routing reason made safe for an HTTP header value: scrubbed, then ASCII-sanitized (headers are latin-1; a non-ASCII device name would 500 the
backend/services/engine_routing.py:168
↓ 9 callers
Function
inTauri
()
frontend/src/components/CaptureWidget.jsx:25
↓ 9 callers
Function
inTauri
()
frontend/src/utils/permissions.js:22
↓ 9 callers
Method
issue
(self, api_key: str)
backend/services/admin_sessions.py:235
↓ 9 callers
Function
kind_err
Error-kind builder the dictation widget switches on. Kinds are a plain string prefix ("a11y:" | "clipboard:" | "paste:" | "preflight:") so the JS side
frontend/src-tauri/src/commands.rs:510
↓ 9 callers
Method
log
(self)
backend/worker/inbound/service.py:244
↓ 9 callers
Function
mark_synthetic
THE provenance chokepoint for synthetic audio (#1169). Every path that produces synthetic speech routes its output through this call at the t
backend/services/watermark.py:323
↓ 9 callers
Method
observe
()
frontend/src/components/WorkspaceHistory.test.jsx:15
↓ 9 callers
Method
on_disconnected
(self, worker_id)
tests/test_worker_service_api.py:1087
↓ 9 callers
Method
on_progress
Renew an attempt's lease from a progress frame. The single entry point for the lease, ceiling included — the transport passes the fla
backend/worker/scheduler.py:729
↓ 9 callers
Method
on_result
Commit a result. Returns ``(committed, task)``. The caller must acknowledge the worker in BOTH cases — a duplicate still needs its ac
backend/worker/scheduler.py:813
↓ 9 callers
Method
play
()
frontend/src/test/playBlobAudioFallback.test.js:44
↓ 9 callers
Function
recordValueMoment
(kind, { now = Date.now(), random = Math.random } = {})
frontend/src/utils/donationMoments.js:111
↓ 9 callers
Function
resplit_segments_by_turns
Speaker-aware re-split using inline ASR speaker turns (FunASR cam++). ``speaker`` is used verbatim (FunASR already labels ``"Speaker N"``), match
backend/services/segmentation.py:750
↓ 9 callers
Function
restore
()
tests/backend/api/test_engines_route_shape.py:379
↓ 9 callers
Method
resume
()
frontend/src/utils/audioUnlock.test.js:22
↓ 9 callers
Method
slot_for
(self, engine: str, model_id: str)
backend/worker/capacity.py:181
↓ 9 callers
Method
snapshot
(self)
tests/test_worker_security_boundaries.py:80
↓ 9 callers
Function
stopActivePlayback
()
frontend/src/utils/playback.js:133
↓ 9 callers
Function
temp_venv_dir
Unique scratch dir under the OS temp dir for the #314 venv-validity tests. Caller removes it at the end of the test.
frontend/src-tauri/src/bootstrap.rs:2997
↓ 9 callers
Method
unload
Release the model from memory.
backend/services/asr_backend.py:335
↓ 9 callers
Function
venv_python_path
(venv: &Path)
frontend/src-tauri/src/bootstrap.rs:1360
↓ 9 callers
Method
wait_until_registered
Block until the control plane has activated this worker. `start()` returns as soon as the connection is scheduled, so a join that the
backend/worker/agent.py:1155
↓ 8 callers
Method
PushInput
(self, chunks, metadata=())
tests/test_worker_inbound_transport.py:2008
↓ 8 callers
Function
_add_job
(db, job_id, job_data: dict)
tests/test_deleting_a_dub_keeps_dirs_others_use.py:57
↓ 8 callers
Function
_app_with_pin
(pin="123456")
tests/test_network_middleware.py:6
↓ 8 callers
Function
_backend
()
tests/test_asr_vram_preflight.py:18
↓ 8 callers
Function
_backend_cls
Resolve app code at test runtime; sys.modules-isolating tests may reload it.
tests/test_pockettts_deferred.py:11
↓ 8 callers
Function
_binary_runs
(path: str)
backend/services/ffmpeg_utils.py:171
↓ 8 callers
Function
_call
(module, job_id)
tests/test_dub_onsets_route.py:45
↓ 8 callers
Function
_chunks
Build a whisper-style result from (text, start, end) tuples.
tests/test_segmentation.py:29
↓ 8 callers
Function
_collect
()
tests/test_dub_transcribe.py:147
↓ 8 callers
Function
_dub_artifact
Resolve a persisted job artifact inside the global dub-data boundary.
backend/api/routers/dub_export.py:145
↓ 8 callers
Function
_ee
()
tests/test_flashinfer_optin.py:16
↓ 8 callers
Function
_empty
()
tests/test_dropped_chunk_is_not_silent.py:52
↓ 8 callers
Function
_fake_ffmpeg_factory
Return an async callable that mimics the ffmpeg invocation.
tests/test_dub_export_unique.py:85
↓ 8 callers
Function
_flat
(cmd)
tests/test_dub_audio_export.py:12
↓ 8 callers
Function
_function
(path: str, name: str)
tests/test_ghas_false_positive_invariants.py:21
↓ 8 callers
Function
_go
()
backend/tests/test_asr_transcribe_timeout.py:51
↓ 8 callers
Function
_gpu
(vram_gb: float, name: str = "NVIDIA GeForce GTX 1650 Ti", notes=())
tests/test_low_vram_advisory.py:27
↓ 8 callers
Function
_issue_bearer
(client)
tests/test_auth_session_api.py:51
↓ 8 callers
Function
_job_step
(job: dict, step_id: str)
backend/services/sidecar_install.py:400
↓ 8 callers
Function
_language_rejection_or
``e`` rewritten with engine context when it's a language rejection. Returns ``e`` unchanged otherwise, so this is safe to wrap any failure in.
backend/api/routers/generation.py:945
↓ 8 callers
Function
_make_db
(path, rows=3)
tests/test_db_backup.py:17
↓ 8 callers
Function
_mnfe
(msg: str, name: str | None = None)
tests/test_broken_dependency_diagnosis_1415.py:40
↓ 8 callers
Function
_models
()
tests/test_models_catalog.py:30
↓ 8 callers
Function
_names
(sent)
tests/test_analytics_lifecycle.py:77
↓ 8 callers
Function
_ovsvoice
(*, manifest_over=None, ref=b"R" * 200, locked=None, preview=b"P" * 200, consent_audio=None, con
backend/tests/test_personas_api.py:46
↓ 8 callers
Function
_reraise
Run the shared classifier and return the RuntimeError it produces.
tests/test_generation_timeout_is_named.py:119
↓ 8 callers
Function
_run
(model, text, ref, **over)
tests/test_clone_prompt_wiring.py:90
↓ 8 callers
Function
_run
(coro)
tests/evals/test_evals_harness.py:33
↓ 8 callers
Function
_safe_soundfile_write
Sibling helper for the one in-tree ``sf.write`` site. ``soundfile`` is a different library than ``torchaudio`` — numpy arrays instead of tens
backend/services/audio_io.py:257
↓ 8 callers
Function
_seg
(start, end, text, sid="Speaker 1", _id="seg1")
tests/test_resplit_speaker.py:29
↓ 8 callers
Function
_seg
(start, end, speaker="Speaker 1", text="hello there")
tests/test_speaker_clone_purity.py:46
↓ 8 callers
Method
_spawn
Launch the sidecar if not already running. Blocks on the ready handshake. Caller must hold self._lock.
backend/services/subprocess_backend.py:450
↓ 8 callers
Function
_stage
Stand in for the input-staging step: a file inside the artifact store.
tests/test_worker_upload_server.py:1474
↓ 8 callers
Function
_tb
The *live* services.tts_backend (same rationale as test_clone_prompt_wiring._tb: other suites purge services.* modules).
tests/test_prompt_disk_cache.py:22
↓ 8 callers
Function
_tts_mod
Run-time resolve (see test_generate_engine.py for the rationale).
tests/test_generate_streaming.py:81
↓ 8 callers
Function
_tts_mod
Resolve services.tts_backend at RUN time, not import time. Pytest imports every test module during collection, but tests/backend/** (which ru
tests/test_generate_engine.py:32
↓ 8 callers
Function
_video_retime_plan_for
Resolve the video retime plan for ``lang_code`` across both keyspaces. Returns ``(kind, entry)`` where kind is ``"stretch_video"`` (legacy Mo
backend/api/routers/dub_export.py:464
↓ 8 callers
Function
_voices_path
Resolve a DB-stored audio filename strictly inside VOICES_DIR. Rejects anything that isn't a bare filename or that escapes the voices directo
backend/api/routers/profiles.py:439
↓ 8 callers
Function
_w
(start, end, text)
tests/test_resplit_speaker.py:25
↓ 8 callers
Function
asr_model_missing_detail
Human-readable (English) fallback message for the typed payload — what legacy clients / logs see; the frontend renders its own i18n copy.
backend/services/asr_backend.py:3376
↓ 8 callers
Function
attribute
Decide whether a failure is chargeable. Neutral by construction: capacity rejections, capability mismatches, protocol/auth problems, user can
backend/worker/breaker.py:78
↓ 8 callers
Function
backend_port
()
frontend/src-tauri/src/lib.rs:45
↓ 8 callers
Function
build_manifest
Build the ``manifest.json`` object for a profile row. Mirrors the legacy ``_bundle_metadata`` persona fields, adds the format discriminator, licen
backend/services/persona_bundle.py:81
↓ 8 callers
Function
clamp
(value)
frontend/src/components/dub/DubResizableColumns.jsx:8
↓ 8 callers
Function
clearAdminSession
({ storage = defaultSessionStorage(), }: { storage?: StorageLike | null } = {})
frontend/src/api/authSession.ts:115
↓ 8 callers
Function
derive_concurrency
How many jobs of this model may run at once on this worker. Returns 0 when the model cannot run here at all — a capability mismatch, which th
backend/worker/capacity.py:91
↓ 8 callers
Function
ensure_schema
Idempotently ensure the base tables + additive columns exist. A runtime self-heal for a DB that somehow missed init — e.g. a write hitting ``
backend/core/db.py:376
↓ 8 callers
Function
env_root
Root that holds the managed Python project (`<root>/project/.venv`). Single source of truth for bootstrap + clean-retry + backend spawn.
frontend/src-tauri/src/setup.rs:378
↓ 8 callers
Method
execute
(self, *_args)
tests/backend/services/test_settings_store.py:65
↓ 8 callers
Function
expand_retime_chunks
Expand a per-segment plan into contiguous (start, end, ratio) chunks. Gaps between plan entries — and the pre-roll / tail — are emitted at 1.
backend/services/video_retime.py:100
↓ 8 callers
Method
expired
(self, *, now: Optional[float] = None)
backend/worker/identity.py:263
↓ 8 callers
Function
format_connection
(*, host: str, port: int, secret: str, fingerprint: str)
backend/worker/inbound/connection_string.py:57
↓ 8 callers
Function
free_vram
Release cached GPU memory on any accelerator (CUDA, MPS, XPU).
backend/services/model_manager.py:3099
↓ 8 callers
Method
generate
Synthesize `text`. Returns a tensor of shape (1, n_samples). When `description` is provided and `ref_audio` is None, engines that sup
backend/services/tts_backend.py:321
↓ 8 callers
Function
generate_timeout_s
THE wall-clock execution budget for one synthesis job, scaled to input. Single source of truth for every TTS dispatch (#1190/#1202). The leng
backend/services/model_manager.py:510
↓ 8 callers
Method
goto
(self, url: str)
tests/probe/web.py:195
↓ 8 callers
Function
heal_design_instruct
Best-effort validator-safe instruct for a stored profile. Prefers the sanitized stored value (so any hand-typed valid tags survive); falls ba
omnivoice/utils/voice_design.py:143
↓ 8 callers
Method
health_check
Send ping, expect pong. Spawns the sidecar if needed. Returns (True, "pong") on success, (False, "<exc>") on any failure. Never raise
backend/services/subprocess_backend.py:602
↓ 8 callers
Method
is_available
(cls)
tests/backend/services/test_subprocess_asr.py:28
↓ 8 callers
Method
is_available
(cls)
tests/backend/api/test_engines_route_shape.py:747
↓ 8 callers
Function
is_loopback
(host: str | None)
backend/core/auth.py:105
← previous
next →
401–500 of 15,058, ranked by callers