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
↓ 3 callers
Function
_make_req
(texts, seg_ids=None, language_code="und", **kwargs)
tests/test_dub_per_lang_subtitles.py:33
↓ 3 callers
Function
_make_slow_loading_engine
(engine_id, load_seconds)
tests/test_load_budget_split_1033.py:36
↓ 3 callers
Function
_make_snapshot
Build a minimal HF-style snapshots/<rev>/ dir and return its cache root.
tests/test_mm2_lifecycle.py:211
↓ 3 callers
Function
_make_test_audio
Create a test audio tensor with a simple sine wave.
tests/test_mastering_no_hidden_reverb.py:33
↓ 3 callers
Function
_manifest_path
(part: str)
backend/services/segmented_download.py:81
↓ 3 callers
Function
_minimal_segs
()
tests/test_dub_timing_strategy.py:34
↓ 3 callers
Function
_model_curated
True when this model is a curated "best for your system" pick here. Driven by the ``curated_on`` field in models.yaml (``all`` matches every
backend/api/routers/setup/models.py:184
↓ 3 callers
Function
_model_unavailable
Simulate a model-less image: the shared renderer 503s on model load.
tests/test_profile_design_save_decouple.py:46
↓ 3 callers
Function
_native_save
Copy a generated export file to a user-chosen destination and return JSON.
backend/api/routers/dub_export.py:185
↓ 3 callers
Function
_no_voice_model_downloaded
True only on a *positive* "no TTS weights on this machine" answer. Fails open on purpose: the cache probes are best-effort (a user-managed cl
backend/api/routers/archetypes.py:371
↓ 3 callers
Function
_noise_burst
Short broadband burst — the energy shape of a footstep / door thud.
tests/test_onset_align.py:40
↓ 3 callers
Function
_norm_language
Normalize a scope to '*' (global) or a lowercase 2-letter code.
backend/api/routers/pronunciation.py:86
↓ 3 callers
Function
_note_generate_progress
Tell the pool guard this render just finished a unit of work (#1391). Every multi-part render calls this after each part. A job that keeps co
backend/api/routers/generation.py:128
↓ 3 callers
Method
_on_activated
The first ConfigUpdate proves Control published this generation.
backend/worker/agent.py:1141
↓ 3 callers
Function
_op_snapshot
()
backend/services/media_tools.py:122
↓ 3 callers
Method
_open_upload
Authorise the first chunk and open its destination. ``(None, None, None)`` means unauthenticated — the one failure answered with a gR
backend/worker/transport/server.py:2998
↓ 3 callers
Function
_origin_tuple
(value: str | None)
backend/core/csrf.py:57
↓ 3 callers
Function
_os_exec_refusal
User-facing cause for a spawn-time OSError, built from errno/strerror only — ``str(exc)`` commonly embeds ``exc.filename`` (the interpreter's
backend/services/subprocess_backend.py:65
↓ 3 callers
Function
_patch_race_probe
Patch the endpoint race's prober from {endpoint: latency|None}.
tests/test_setup_preflight.py:353
↓ 3 callers
Function
_pcm16_rms
(pcm: bytes)
backend/api/routers/capture_ws.py:618
↓ 3 callers
Function
_pcm16_to_f32
int16 little-endian mono PCM bytes → float32 numpy in [-1, 1].
backend/api/routers/capture_ws.py:607
↓ 3 callers
Function
_pcm16_to_tensor
(data: bytes)
tests/test_synthetic_audio_watermark_1169.py:109
↓ 3 callers
Function
_peer_host
Strip the ephemeral source port used by gRPC from a peer address.
backend/worker/inbound/keys.py:96
↓ 3 callers
Function
_pending_pair_path
(cert_path: str, key_path: str)
backend/worker/tls.py:392
↓ 3 callers
Function
_phase_a_finalize
Register everything Phase A imported. Mutates the app — must run on the event loop in deferred mode (no awaits inside → atomic wrt requests).
backend/main.py:709
↓ 3 callers
Function
_pick_subtitle_text
One line per subtitle cue, unless dual=true and an original exists. Dual layout stacks translated text on top of the (italicised) original, the
backend/api/routers/dub_export.py:1616
↓ 3 callers
Function
_pitch_preserving_stretch
Time-stretch a (1, samples) tensor to `target_samples` while preserving pitch, by piping the audio through `ffmpeg atempo`. Async so it never
backend/services/ffmpeg_utils.py:502
↓ 3 callers
Method
_place
Build a path under the root from wire-supplied strings, safely. `artifact_id` is minted here rather than taken from the wire, and the
backend/worker/inbound/artifacts.py:156
↓ 3 callers
Function
_platform_slug
Return the binary slug for the current host. Matches the filenames committed under ``bin/`` and the matrix keys in the CI build job:
backend/engines/omnivoice_gguf/backend.py:91
↓ 3 callers
Function
_preview_step
()
tests/test_release_preview_manifest_rebuild.py:284
↓ 3 callers
Method
_proves_key_possession
Does this signature verify against the id the NODE thinks it has? Deliberately narrow: the public key must already be the one enrolled
backend/worker/inbound/connector.py:543
↓ 3 callers
Function
_prune_stale_versions
(store: dict, current_version: str)
backend/core/run_sentinel.py:310
↓ 3 callers
Method
_pump_outbound
Move the servicer's per-session outbox onto the dialled stream. Outbound mode writes straight to the gRPC context; here the frames have
backend/worker/inbound/connector.py:592
↓ 3 callers
Function
_quiet
Log a network-shaped failure without surfacing it. Offline is the expected state, not an error: the caller falls back to a local render and t
backend/services/gallery.py:395
↓ 3 callers
Function
_ram
(monkeypatch, gb)
backend/tests/test_make_room_before_generate.py:34
↓ 3 callers
Function
_read_exact
Read exactly n bytes from a BufferedReader, or return None on EOF. BufferedReader.read(n) is allowed to return fewer than n bytes when the un
backend/services/subprocess_backend.py:839
↓ 3 callers
Function
_read_lines
(path: str)
backend/core/user_env.py:20
↓ 3 callers
Function
_read_ytdlp_version
(pkg_dir: str)
backend/services/media_tools.py:399
↓ 3 callers
Function
_record_manual_seed
(monkeypatch)
tests/test_longform_synth_params.py:79
↓ 3 callers
Function
_recover
(pipeline, *, diarized=None, requested=None)
tests/test_dub_phrase_embedding_recovery.py:39
↓ 3 callers
Method
_refuse
(code: str, message: str)
backend/worker/transport/server.py:1439
↓ 3 callers
Function
_register_fake_asr
Register a light in-process ASR stub (CPU-only so a forced-CPU host routes it `cpu_only`, never `unavailable`). Returns (cls, restore_fn).
tests/backend/api/test_engines_route_shape.py:359
↓ 3 callers
Function
_release_audio_tensors
Best-effort VRAM cleanup after a segment is safely on disk. Tensors are freed by the callers' own ``del`` once they fall out
backend/api/routers/dub_generate.py:544
↓ 3 callers
Method
_release_transfer_session
(self, session: _Session)
backend/worker/transport/server.py:2859
↓ 3 callers
Function
_render_key
Render a one-span [voice:Mara] chapter with a stub synth (no models); return the content-addressed chapter cache key (the WAV basename).
tests/test_audiobook_cast.py:140
↓ 3 callers
Method
_renew_upload_lease
Renew the lease from upload progress, under the delivery budget. Routed through the scheduler rather than computed here: it owns the
backend/worker/transport/server.py:3174
↓ 3 callers
Function
_request_presents_admin_credential
Whether the canonical principal carries remote admin capability. API-key and short-lived session principals may unlock server-mode admin. PIN
backend/api/dependencies.py:88
↓ 3 callers
Function
_resolve
A /demo_audio/... URL → the file on disk it is served from.
tests/test_demo_assets_exist.py:44
↓ 3 callers
Function
_resolve
(module_path, cls_name)
tests/test_mlx_gate_390.py:20
↓ 3 callers
Function
_resolve_bind_host
Mirror of the resolution logic in `backend/main.py`'s __main__ block. Kept in lock-step with the production expression on purpose — any code
tests/test_bind_host.py:23
↓ 3 callers
Function
_resolve_model_dir
Return the local directory containing this model's ONNX assets. Tries the HF cache offline first (``local_files_only=True``); on a miss, down
backend/services/sherpa_dictation.py:276
↓ 3 callers
Function
_resolved_token
The destination token: env (baked builds / developer override) wins, the committed publishable default (#1193) is the fallback. Empty only when
backend/core/analytics.py:149
↓ 3 callers
Function
_resolved_versions
(packages, names)
tests/test_dependency_security_floors.py:30
↓ 3 callers
Function
_result_message
The one spelling of a result frame. First delivery and redelivery build it here so they cannot diverge — the size check below is only trustwo
backend/worker/transport/client.py:1340
↓ 3 callers
Method
_retain_transfer_session
(self, session: _Session)
backend/worker/transport/server.py:2852
↓ 3 callers
Method
_retire_key
Drain one panel generation, then remove only its staged bytes.
backend/worker/inbound/listener.py:246
↓ 3 callers
Function
_retry_once_with_fresh_hf_client
Run ``loader()`` — a model constructor that may download from the HF Hub on first use — retrying transient download failures. Two failure sha
backend/services/tts_backend.py:109
↓ 3 callers
Function
_rms
(wav: torch.Tensor)
tests/test_clone_ref_silence_ladder.py:117
↓ 3 callers
Function
_route_decorators
(tree: ast.Module, function_name: str)
tests/test_admin_route_policy.py:37
↓ 3 callers
Function
_row
(term, replacement, type="respelling", language="*", enabled=1, id="x")
tests/test_pronunciation.py:147
↓ 3 callers
Function
_row_to_dict
(r)
backend/api/routers/glossary.py:62
↓ 3 callers
Function
_row_to_dict
(r)
backend/api/routers/pronunciation.py:96
↓ 3 callers
Function
_run
()
tests/test_dub_dialect.py:143
↓ 3 callers
Function
_run_backend_inference
Engine-aware twin of :func:`_run_inference` (issue #312). Runs the request through a pluggable ``TTSBackend`` adapter instead of the VoiceStu
backend/api/routers/generation.py:812
↓ 3 callers
Function
_run_logged
Run *argv*, streaming combined stdout+stderr lines into the job log. Returns the exit code; -1 on timeout (process tree killed) or spawn fail
backend/services/sidecar_install.py:1007
↓ 3 callers
Function
_run_on
(executor)
backend/tests/test_pool_stopiteration_guard.py:29
↓ 3 callers
Function
_run_transcribe_stream
(job_id, restored=None)
tests/test_tts_placement_self_heal.py:202
↓ 3 callers
Function
_run_with_reference_lease
Hold an ad-hoc reference through one local GPU-pool dispatch.
backend/api/routers/generation.py:89
↓ 3 callers
Function
_run_ws_request
Send one /ws/tts request; drain frames until done/error. Returns the JSON frames (binary PCM chunks are skipped).
tests/test_text_normalization_routes.py:134
↓ 3 callers
Function
_runner
subprocess.run side_effect: serves the status JSON for `status --json` and ok/fail for the serve subcommands based on the --http/--https flag.
tests/test_tailscale_service.py:26
↓ 3 callers
Function
_safe_name
`Speaker 1` → `speaker_1`. Keeps filenames portable across OSes.
backend/services/speaker_clone.py:403
↓ 3 callers
Function
_safe_output_path
(name)
backend/api/routers/generation.py:2334
↓ 3 callers
Function
_sample_report
()
tests/probe/test_report.py:9
↓ 3 callers
Function
_save_wav
Save a torch tensor (C, T) or (T,) to a 16-bit PCM WAV.
scripts/render_demos_omnivoice.py:161
↓ 3 callers
Function
_saved_wav_bytes
(filename)
tests/test_generate_streaming.py:159
↓ 3 callers
Function
_scenario
()
backend/tests/test_pool_stopiteration_guard.py:30
↓ 3 callers
Function
_secret_key_name
(name: str)
backend/services/settings_store.py:125
↓ 3 callers
Function
_seed_canonical_decision
(er)
tests/test_endpoint_race.py:325
↓ 3 callers
Function
_seed_retime_job
(dc, tmp_path: Path, video: Path, track_dur: float)
tests/test_smart_fit_export.py:512
↓ 3 callers
Function
_send
(stream, obj: dict)
backend/engines/supertonic3/sidecar.py:92
↓ 3 callers
Function
_send
(stream, obj: dict)
backend/engines/confucius4/main.py:46
↓ 3 callers
Function
_send
(stream, obj: dict)
backend/engines/moss_tts_v15/main.py:95
↓ 3 callers
Function
_send
(stream, obj: dict)
backend/engines/dots_tts/main.py:59
↓ 3 callers
Method
_session_from_metadata
( self, context, *, allow_active_expired: bool = False )
backend/worker/transport/server.py:1741
↓ 3 callers
Function
_settled_task
(state)
tests/test_worker_service_api.py:625
↓ 3 callers
Function
_skill_llm
The skill-resolved backend (OffBackend when disabled/unconfigured).
backend/services/refinement.py:313
↓ 3 callers
Method
_src
(self)
backend/tests/test_capture_ws.py:56
↓ 3 callers
Function
_state_response
Return the same shape the React panel renders. Never includes raw token.
backend/api/routers/settings.py:38
↓ 3 callers
Function
_step_states
(job)
tests/test_sidecar_install.py:110
↓ 3 callers
Method
_stop_keepalive
(self, key: str)
backend/worker/transport/client.py:1254
↓ 3 callers
Function
_stored_endpoint
()
backend/worker/agent.py:110
↓ 3 callers
Function
_table_sql
()
tests/test_onboarding_demo.py:96
↓ 3 callers
Function
_tarball_bytes
(root_name: str, with_pyproject: bool = True)
tests/test_sidecar_install.py:216
↓ 3 callers
Function
_tauri_log_candidates
Likely paths for Tauri-side logs, most useful first. Two distinct producers, both per-platform: - `tauri-plugin-log` writes `tauri.log` to t
backend/api/routers/system.py:281
↓ 3 callers
Function
_tb
The *live* services.tts_backend. Several suites purge ``sys.modules["services.*"]`` for DB isolation (test_model_load_timeout, test_model_man
tests/test_clone_prompt_wiring.py:28
↓ 3 callers
Function
_tiny_wav
()
backend/tests/test_asr_request_path_degrades.py:62
↓ 3 callers
Function
_token_hash
(token_text: str)
backend/worker/agent.py:600
↓ 3 callers
Function
_touch_capture
Mark the capture backend as used now (resets its idle clock).
backend/services/asr_backend.py:2815
↓ 3 callers
Function
_track_sample
One sample (as float in [-1, 1]) of the final dubbed_{lang}.wav.
tests/test_redub_incremental.py:332
↓ 3 callers
Function
_tts_mod
()
tests/test_openai_speech_engine_cache.py:29
← previous
next →
1,401–1,500 of 15,058, ranked by callers