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
↓ 16 callers
Function
askConfirm
(message, title = 'Confirm', opts = {})
frontend/src/utils/dialog.js:10
↓ 16 callers
Function
clamp_concurrency
Bound an advertised concurrency value to the server's safe range.
backend/worker/capacity.py:70
↓ 16 callers
Function
parse_srt
Parse SRT text and return cleaned, non-overlapping segments. - Skips cues with non-positive duration or unparseable timestamps. - When two cu
backend/services/srt_parser.py:54
↓ 16 callers
Function
polish_text
Normalise one dictation final. Empty/whitespace-only input -> ``""``.
backend/services/text_polish.py:54
↓ 16 callers
Method
record_failure
Record a failure. Returns True if the breaker opened as a result.
backend/worker/breaker.py:152
↓ 16 callers
Function
require_loopback
(*args, **kwargs)
tests/test_loopback_server_mode.py:45
↓ 16 callers
Method
reserve
(self, engine: str, model_id: str)
backend/worker/capacity.py:203
↓ 15 callers
Function
_assignment
(*, lease_seconds: int = LEASE_SECONDS)
tests/test_worker_client_liveness.py:66
↓ 15 callers
Function
_build
(assets, **kw)
tests/test_release_preview_manifest_rebuild.py:67
↓ 15 callers
Function
_client
A client that is never connected; only its outbox is read.
tests/test_worker_client_liveness.py:44
↓ 15 callers
Function
_enroll
(name="desktop", **kw)
tests/test_worker_registry.py:41
↓ 15 callers
Function
_install
Point the route's gateway calls at the fake, with a fixed decision.
tests/test_generation_remote_routing.py:166
↓ 15 callers
Function
_model
(*, reject_tokenization=True)
tests/test_omnivoice_reference_bound.py:25
↓ 15 callers
Function
_probe_with
(modules)
tests/test_device_caps.py:68
↓ 15 callers
Function
_silence
(duration_s: float, sr: int = SR)
tests/test_onset_align.py:31
↓ 15 callers
Function
_stub_agent
Replace the real agent's start/stop/registration with recorded no-ops. `fail` makes `start()` raise (a token that cannot even be redeemed); `
tests/test_worker_join_api.py:79
↓ 15 callers
Function
_tone
(duration_s: float, sr: int = SR, freq: float = 220.0, amp: float = 0.5)
tests/test_onset_align.py:26
↓ 15 callers
Function
_torch_mock
Build a torch-module mock with a controllable accelerator shape.
tests/test_device_caps.py:19
↓ 15 callers
Function
atomic_save_wav
Write a WAV to ``target_path`` atomically. Implementation: write to a sibling temp file in the same directory, then ``os.replace()`` into pla
backend/services/audio_io.py:319
↓ 15 callers
Method
close
(self)
omnivoice/training/checkpoint.py:113
↓ 15 callers
Method
create_enrollment
Mint a join token carrying this control plane's fingerprint.
backend/worker/service.py:327
↓ 15 callers
Method
create_voice_clone_prompt
(self, ref_audio, ref_text=None, preprocess_prompt=True)
tests/test_prompt_disk_cache.py:48
↓ 15 callers
Method
describe
One line for the UI. A breaker the user cannot understand is worse than no breaker at all.
backend/worker/breaker.py:191
↓ 15 callers
Method
empty
(self)
backend/worker/transport/client.py:232
↓ 15 callers
Method
get
(self, task_id: str)
backend/worker/scheduler.py:465
↓ 15 callers
Function
get_effect_chain
Return the effect chain for a preset. Falls back to empty chain.
backend/services/audio_dsp.py:95
↓ 15 callers
Method
handle
(&self)
frontend/src-tauri/tests/backend_lifecycle.rs:418
↓ 15 callers
Method
is_available
(cls)
backend/services/asr_backend.py:309
↓ 15 callers
Function
normalize_for_tts
Gated + hardened entry point: pref/env toggle, never raises. Every TTS pipeline calls this exactly once, at its text→engine choke point, BEFO
backend/services/text_normalization.py:511
↓ 15 callers
Function
onChange
(e)
frontend/src/components/settings/ComputeDevicePanel.jsx:58
↓ 15 callers
Function
origin_allowed
(connection)
backend/core/csrf.py:118
↓ 15 callers
Function
parse_persona_bundle
Validate the ZIP and read manifest/consent WITHOUT touching the DB or writing files. Raises :class:`BundleError` (400|413) for B1-B11. The caller
backend/services/persona_bundle.py:337
↓ 15 callers
Function
run_on_gpu_pool_guarded
Run blocking ``fn`` on the GPU pool, bounding **execution** — not the wait for a free worker. Two clocks (#1190/#1202): * ``queue_timeou
backend/services/model_manager.py:630
↓ 15 callers
Method
sign
(self, payload: bytes, *, trusted: str = "timestamp:0")
tests/test_gallery_previews.py:63
↓ 15 callers
Function
split_text_into_chunks
Split *text* at natural boundaries into chunks of at most *max_chars*. Priority: sentence-end (``.!?`` not after an abbreviation/decimal and not
backend/services/chunked_tts.py:86
↓ 15 callers
Function
toastErrorWithReport
(message, error)
frontend/src/utils/errorToast.jsx:35
↓ 15 callers
Method
wait
Block until ``task_id`` reaches a terminal state, and return it. Raises ``KeyError`` for a task this scheduler does not hold, ``Timeo
backend/worker/scheduler.py:210
↓ 14 callers
Method
Control
Bidirectional control stream. A coroutine (not an async generator) so that reads and writes can run as independent tasks: outbound as
backend/worker/transport/server.py:1518
↓ 14 callers
Method
_emit
(self, event: str, task: Task)
backend/worker/scheduler.py:196
↓ 14 callers
Function
_fake_openai
Stub the OpenAI SDK's models.list for the discovery path.
tests/test_lmstudio_model_discovery.py:62
↓ 14 callers
Method
_handle
Serialize a worker's frames with its durable lifecycle handoff.
backend/worker/transport/server.py:1970
↓ 14 callers
Function
_read
(rel)
tests/test_identity_paths_survive_the_rename.py:42
↓ 14 callers
Function
apply_lexicon
Replace whole-word occurrences of each lexicon key with its respelling. Case-insensitive match; word-boundary aware (a key never matches inside a
backend/services/pronunciation.py:92
↓ 14 callers
Method
connection_secret
(self, endpoint: str)
backend/worker/inbound/keys.py:396
↓ 14 callers
Method
generate
(cls)
backend/worker/identity.py:93
↓ 14 callers
Function
managed_checkout
(spec: SidecarSpec)
backend/services/sidecar_install.py:185
↓ 14 callers
Function
parse_pause_markers
Split ``text`` on inline ``[pause ...]`` markers (issue #276). Returns a list of ``(span_text, pause_ms_after)`` tuples, in order, where ``pa
omnivoice/utils/text.py:253
↓ 14 callers
Function
safe_filename
Return a portable bare filename, rejecting traversal and drive paths.
backend/core/path_security.py:32
↓ 14 callers
Method
sweep
Enforce leases, grace windows, and task deadlines. Called on a timer. Everything time-based happens here rather than being scattered
backend/worker/scheduler.py:1160
↓ 13 callers
Function
_configure_groq
(settings_mod, key="gsk-test-123")
tests/test_llm_providers_router.py:83
↓ 13 callers
Function
_job_dir_or_400
(job_id: str)
backend/api/routers/dub_export.py:48
↓ 13 callers
Function
_lazy_torch
()
backend/services/model_manager.py:22
↓ 13 callers
Method
_on_result
Serialize publication of one attempt across retained generations.
backend/worker/transport/server.py:2214
↓ 13 callers
Method
_save
(self, task: Task, *, now: Optional[float] = None)
backend/worker/scheduler.py:188
↓ 13 callers
Function
_torch
(*, hip=None, cuda=None)
tests/test_why_no_gpu_1274.py:30
↓ 13 callers
Function
active_backend_id
()
backend/services/tts_backend.py:2577
↓ 13 callers
Function
apply_effects_chain
Apply a chain of named effects to an audio tensor. Each item in `chain` is a dict with a `type` key and effect-specific parameters. Unknown t
backend/services/audio_dsp.py:189
↓ 13 callers
Function
authorize_destination
Mint the same one-shot file capability written by the Tauri process.
tests/test_exports_api.py:58
↓ 13 callers
Method
client
(self)
tests/test_gallery_previews.py:184
↓ 13 callers
Method
close
(self)
tests/test_worker_client_liveness.py:111
↓ 13 callers
Function
collapse_repetitive_artifacts
Strip STT-artifact loops. Two passes handle the full space: 1. Word-level: any token repeated ``min_run``+ times consecutively (with surro
backend/services/refinement.py:103
↓ 13 callers
Method
commit_result
Durably commit an attempt's result. Returns ``(committed, attempt)``. ``committed`` is False when another attempt already won — the c
backend/worker/lifecycle.py:429
↓ 13 callers
Method
communicate
(self, input=None)
backend/services/ffmpeg_utils.py:425
↓ 13 callers
Method
consume_ws_ticket
( self, ticket_token: str | None, path: str, api_key: str | None, )
backend/services/admin_sessions.py:331
↓ 13 callers
Method
empty_cache
()
tests/test_mm2_lifecycle.py:422
↓ 13 callers
Function
for_task
Compute the deadlines for one attempt. ``model_resident`` and ``model_downloaded`` matter enormously: a warm model is ~8s away, a cold one mi
backend/worker/deadlines.py:166
↓ 13 callers
Function
get_backend_class
(backend_id: str)
backend/services/tts_backend.py:2494
↓ 13 callers
Method
kill
(self)
tests/test_dub_pipeline_state.py:65
↓ 13 callers
Function
normalize_audio
Peak-normalizes the audio to a standard broadcasting level (-2 dB) to fix F5TTS volume fluctuations. Never amplifies a near-silent signal. A fail
backend/services/audio_dsp.py:128
↓ 13 callers
Method
reset
()
frontend/src/utils/longformPersistence.ts:81
↓ 13 callers
Function
set_backend_kill_intended
(value: bool)
frontend/src-tauri/src/bootstrap.rs:792
↓ 13 callers
Method
submit
Send a batch dict (containing _req_id + _batch) for processing.
omnivoice/scripts/denoise_audio.py:645
↓ 13 callers
Function
t
(_key, options = {})
frontend/src/components/gallery/ImportsZone.test.jsx:32
↓ 13 callers
Function
t
(key, vars)
frontend/src/components/audiobook/GenerationProgress.test.jsx:13
↓ 12 callers
Function
_assert_marked
(wav: torch.Tensor, sr: int, where: str)
tests/test_synthetic_audio_watermark_1169.py:90
↓ 12 callers
Function
_assignment
(*, lease_seconds: int = LEASE_SECONDS)
tests/test_worker_upload_client.py:264
↓ 12 callers
Function
_body
(segments, **extra)
tests/test_smart_fit_generate.py:141
↓ 12 callers
Function
_collect_events
Patch the synth + OUTPUTS_DIR, drive the real generator, return parsed SSE events (list of dicts). Bounded on purpose. One of the failures th
tests/test_longform_e2e.py:63
↓ 12 callers
Function
_connect
(plane, record, *, now=None)
tests/test_worker_routing.py:55
↓ 12 callers
Function
_joined
(torch)
tests/test_why_no_gpu_1274.py:48
↓ 12 callers
Function
_mk_repo_cache
The canonical HF cache layout for ``repo_id``, with one healthy blob, one healthy snapshot link, one healthy regular file — and no breakage yet.
tests/test_hf_cache_repair.py:60
↓ 12 callers
Function
_plan
chapters: (title, body) pairs → AudiobookPlan.
tests/test_longform_e2e.py:54
↓ 12 callers
Function
_settle
(client: WorkerClient, timeout: float = 20.0)
tests/test_worker_upload_client.py:326
↓ 12 callers
Function
_single_seg_plan
One segment [0, slot] covering the whole video — no slack, no tail.
tests/test_fit_planner.py:34
↓ 12 callers
Function
_upload
(content: bytes, filename="x.ovsvoice")
backend/tests/test_personas_api.py:83
↓ 12 callers
Function
build_render_cmd
Pure argv for muxing chapter WAVs + FFMETADATA into a tagged, chapter-marked audio file. Inputs: 0 = concat-demuxer list of chapter WAVs, 1 =
backend/services/longform_render.py:475
↓ 12 callers
Method
download
(self, ref, *, context=None)
tests/test_worker_upload_server.py:182
↓ 12 callers
Function
drain_task
Wait for ``task`` even if the waiter is cancelled again.
backend/worker/async_utils.py:12
↓ 12 callers
Method
evaluate
Evaluation loop.
omnivoice/training/trainer.py:209
↓ 12 callers
Function
get_best_device
Detect the best available compute device. Priority: CUDA/ROCm > Intel XPU > DirectML > MPS > CPU The *family* decision delegates to ``core.d
backend/services/model_manager.py:1425
↓ 12 callers
Method
kill
(self)
backend/services/ffmpeg_utils.py:433
↓ 12 callers
Method
on_failed
( self, task_id: str, attempt_id: str, error: WorkerError, *,
backend/worker/scheduler.py:876
↓ 12 callers
Function
parse_connection
Parse a pasted connection string, or explain what is wrong with it.
backend/worker/inbound/connection_string.py:65
↓ 12 callers
Function
plan_fit
Plan the Smart Fit layout for a dub track. ``segments``: original-timeline segments in chronological order, each a dict with ``id``, ``start`
backend/services/fit_planner.py:135
↓ 12 callers
Method
poll
(self)
backend/core/contained_subprocess.py:182
↓ 12 callers
Method
put_nowait
(self, message: pb.WorkerMessage, *, bulk: bool = False)
backend/worker/transport/client.py:211
↓ 12 callers
Method
remember_connection_secret
Persist a pasted node secret outside the UI-readable settings store.
backend/worker/inbound/keys.py:373
↓ 12 callers
Method
renew_lease
Extend the lease by ``seconds``, never past ``not_after``. The ceiling is what separates "still alive" from "still working": a keepal
backend/worker/lifecycle.py:233
↓ 12 callers
Function
run
(body: dict)
tests/test_smart_fit_generate.py:127
↓ 12 callers
Function
run_transcribe_guarded
Run a blocking transcribe ``fn`` in ``executor`` with a hard wall-clock bound. On timeout, raise :class:`ASRTimeoutError` with guidance instead of
backend/services/asr_backend.py:146
← previous
next →
201–300 of 15,058, ranked by callers