MCPcopy Create free account

hub / github.com/debpalash/VoiceStudio / functions

Functions15,058 in github.com/debpalash/VoiceStudio

↓ 1 callersFunction_durable_replace
Publish a complete file only after its bytes and rename are durable.
backend/worker/inbound/artifacts.py:1144
↓ 1 callersFunction_echoes_critique
True when the "adaptation" is really the REFLECT critique leaking through. Deterministic on purpose (no fuzzy matching): exact match after ca
backend/services/translator.py:129
↓ 1 callersFunction_edit_distance
Levenshtein distance between two token lists (iterative, O(len(a)*len(b)) time, O(len(b)) space).
backend/services/dub_qc.py:36
↓ 1 callersFunction_eligible
(m: dict, *, sherpa: bool)
backend/services/asr_backend.py:3219
↓ 1 callersFunction_emit
(payload: dict)
backend/api/routers/audiobook.py:894
↓ 1 callersFunction_encode_audio
Encode a torch tensor to the requested audio format. Returns (bytes, mime_type, file_ext).
backend/api/routers/openai_compat.py:205
↓ 1 callersFunction_encode_metadata
(metadata: dict[str, Any])
omnivoice/scripts/denoise_audio.py:390
↓ 1 callersFunction_encode_metadata
(metadata: dict[str, Any])
omnivoice/scripts/extract_audio_tokens_add_noise.py:471
↓ 1 callersFunction_encode_metadata
(metadata: dict[str, Any])
omnivoice/scripts/extract_audio_tokens.py:281
↓ 1 callersFunction_encode_mp3
(wav_path: Path, mp3_path: Path)
scripts/render_gallery.py:66
↓ 1 callersFunction_encode_pending_pair
(credentials: ServerCredentials)
backend/worker/tls.py:399
↓ 1 callersFunction_encode_token
(raw: bytes)
backend/services/admin_sessions.py:51
↓ 1 callersFunction_endpoint_rules
Trailing-silence endpoint rules (seconds) for streaming recognizers. Wispr-Flow-speed defaults (dictation v2): rule2 commits ~0.6s after speech
backend/services/sherpa_dictation.py:62
↓ 1 callersFunction_engine_bootstrap_files
()
tests/test_uv_cross_drive.py:212
↓ 1 callersFunction_engine_runs_out_of_process
Duck-typed on purpose: `isinstance(SubprocessBackend)` misses engines that spawn a binary per generate (omnivoice-gguf inherits TTSBackend dir
scripts/bench_pipeline.py:150
↓ 1 callersFunction_engines_child_name
Basename of ``engines_dir`` when it is a direct child of ``data_dir`` — so the data category can skip it and not double-count what the engine-venv
backend/services/storage_report.py:65
↓ 1 callersFunction_ensure_backend_on_path
The sidecar is launched as ``<python> main.py``, so sys.path[0] is this script's directory, not ``backend/``. Add ``backend/`` so ``services`` is
backend/engines/omnivoice_subprocess/main.py:103
↓ 1 callersFunction_ensure_browser_playable_mp4
Guarantee `video_path` is an mp4 with h264 video + aac audio. Three classes of fix the in-app `<video>` element needs: 1. `.webm`/`.mkv` co
backend/services/dub_pipeline.py:679
↓ 1 callersFunction_ensure_browser_playable_mp4_for_job
Normalize an upload through the job's cancellable process registry.
backend/services/dub_pipeline.py:745
↓ 1 callersFunction_ensure_clone_on_sys_path
Make ``import confuciustts`` resolve from the user's clone. Upstream Confucius4-TTS is **not pip-installable** (no pyproject.toml / setup.py
backend/engines/confucius4/main.py:92
↓ 1 callersMethod_ensure_list
( self, x: Union[Any, List[Any]], batch_size: int, auto_repeat: bool = True )
omnivoice/models/omnivoice.py:1247
↓ 1 callersMethod_ensure_loaded
(self)
backend/services/tts_backend.py:1240
↓ 1 callersMethod_ensure_loaded
(self)
backend/services/tts_backend.py:1630
↓ 1 callersMethod_ensure_loaded
(self)
backend/services/tts_backend.py:1810
↓ 1 callersMethod_ensure_loaded
(self)
backend/services/tts_backend.py:2097
↓ 1 callersFunction_ensure_mcp
Import `mcp` SDK lazily so the rest of the backend doesn't pay for the import unless the MCP server is actually started. Raises ImportError (
backend/mcp_server.py:75
↓ 1 callersMethod_ensure_model
(self)
backend/services/asr_backend.py:1385
↓ 1 callersFunction_ensure_queue
Lazy-init the asyncio queue + worker on first use.
backend/api/routers/batch.py:50
↓ 1 callersFunction_ensure_reaper_running
Start the daemon reaper thread once, lazily, on first sidecar spawn.
backend/services/subprocess_backend.py:251
↓ 1 callersFunction_ensure_rocm_torch
()
scripts/setup.py:80
↓ 1 callersFunction_ensure_short_hf_cache_on_windows
Redirect HuggingFace cache to a short path on Windows. The default ``~/.cache/huggingface/hub/models--org--name/snapshots/<hash>/…`` path reg
backend/core/config.py:18
↓ 1 callersFunction_ensure_vcredist_windows
Check for and install the VC++ 2015-2022 Redistributable on Windows. PyTorch's native libraries (c10.dll, torch_cpu.dll, etc.) are built with
scripts/setup.py:98
↓ 1 callersFunction_entry_num_samples
(entry)
backend/api/routers/dub_generate.py:587
↓ 1 callersFunction_env_flag
(name: str)
backend/services/hf_cache_repair.py:49
↓ 1 callersFunction_env_secret_values
Values of secret-named env vars, longest first so overlapping values (e.g. a token and its prefix) redact cleanly.
backend/core/scrub.py:80
↓ 1 callersFunction_env_summary
()
backend/core/failure.py:693
↓ 1 callersFunction_escape_meta
Escape an FFMETADATA value (``=``, ``;``, ``#``, ``\\``, newline).
backend/services/longform_render.py:67
↓ 1 callersFunction_evict_instance_cache
Unload + drop every cached engine instance except ``keep_cls``. Operates on the per-request instance cache the generate path shares with the
backend/services/engine_memory.py:36
↓ 1 callersMethod_evict_sessions_locked
(self)
backend/services/admin_sessions.py:227
↓ 1 callersMethod_evict_tickets_locked
(self)
backend/services/admin_sessions.py:231
↓ 1 callersFunction_executable_source
Strip comments and string literals so a guard pattern only matches *real* code, not the rationale block that describes what we removed (which
backend/tests/test_asr_pickle_safety.py:39
↓ 1 callersMethod_executor_kwargs
Per-task progress callbacks for the executor. Bound to this assignment's ref rather than installed on the executor once, because a wo
backend/worker/transport/client.py:1298
↓ 1 callersFunction_exercise_lifecycle
()
tests/test_network_share_lifecycle.py:44
↓ 1 callersFunction_existing_archetype_profile
(conn, a: dict)
backend/api/routers/archetypes.py:161
↓ 1 callersFunction_existing_community_profile
(conn, item: dict, personality: str)
backend/api/routers/community.py:762
↓ 1 callersFunction_existing_gallery_profile
(conn, voice: dict, source: Path)
backend/api/routers/gallery.py:432
↓ 1 callersFunction_expand_abbreviations
(text: str, lang: str)
backend/services/text_normalization.py:357
↓ 1 callersFunction_expected_bundle
(url, sha256, size) for this platform. Raises on unsupported platform.
backend/services/media_tools.py:185
↓ 1 callersMethod_expire
A live attempt stopped reporting — or never stopped and never finished. Silence is the usual failure signal, but a keepalive-driven lease can
backend/worker/scheduler.py:1222
↓ 1 callersMethod_expire_unopened_session
(self, session: _Session)
backend/worker/transport/server.py:1319
↓ 1 callersFunction_expire_withdrawn
Drop withdrawal markers that are too old to still matter. Caller must hold ``_dub_jobs_lock``. Age first — that is the policy — then a size c
backend/services/dub_pipeline.py:300
↓ 1 callersFunction_expiring_soon
( credentials: ServerCredentials, *, now: Optional[_dt.datetime] = None )
backend/worker/tls.py:325
↓ 1 callersFunction_extension
The source extension when it is a plain one, else nothing. Kept for the worker's benefit — soundfile sniffs content, but an engine that shell
backend/worker/task_store.py:218
↓ 1 callersFunction_extract_featured
Unpack the featured tarball member-by-member, verifying each file. Nothing is handed to ``TarFile.extract``: member names are matched against
backend/services/gallery.py:603
↓ 1 callersFunction_extract_validated_blocks
Return a list of (start_line_no_1_indexed, body, skip_flag) tuples for every `<!-- validate -->` block found in the markdown.
scripts/validate-install-docs.py:83
↓ 1 callersFunction_f
(env: str, default: float)
backend/services/sherpa_dictation.py:70
↓ 1 callersMethod_fail
(self, ref: pb.TaskRef, error: WorkerError)
backend/worker/transport/client.py:1056
↓ 1 callersFunction_fail_port_in_use
(exc: "OSError | None")
backend/main.py:1889
↓ 1 callersFunction_fake_backend_cls
(calls)
tests/test_audiobook_expressive.py:256
↓ 1 callersMethod_far_window
Most recent ``length`` far-end samples, oldest first / newest last.
backend/services/aec.py:222
↓ 1 callersFunction_fast_download_status
Report the download-acceleration state for the Settings UI (FDL-03). Reports the *runtime* truth, not just whether hf_xet is importable. The app
backend/api/routers/system.py:111
↓ 1 callersMethod_fence_session_egress
Stop a superseded generation sending while preserving its reads.
backend/worker/transport/server.py:1296
↓ 1 callersFunction_fetch
(seg: tuple[int, int])
backend/services/segmented_download.py:147
↓ 1 callersFunction_fetch_manifest
Return a fresh manifest, with a throttled stale-cache offline fallback.
backend/api/routers/community.py:337
↓ 1 callersMethod_fetch_one_owned
Validate, fetch, and safely publish one content address.
backend/worker/executor.py:457
↓ 1 callersFunction_fetch_pypi_ytdlp
(version, wheel_url, sha256) of the latest yt-dlp wheel on PyPI.
backend/services/media_tools.py:547
↓ 1 callersFunction_fetch_remote_manifest
Fetch one bounded manifest, validating every redirect before request.
backend/api/routers/community.py:284
↓ 1 callersMethod_fetch_result_for_key
(self, request, context, key_id: str)
backend/worker/inbound/listener.py:661
↓ 1 callersFunction_fetch_tarball
Download + extract the GitHub source tarball (no git required). Extraction is member-validated (no absolute paths / parent escapes) and never
backend/services/sidecar_install.py:719
↓ 1 callersFunction_ffmpeg_filter_escape
Escape a path for use inside an ffmpeg filter value (subtitles=...). ffmpeg's filter parser treats `:` as an option separator and `\\`, `'` speci
backend/api/routers/dub_export.py:406
↓ 1 callersFunction_fill_and_smooth
Forward/back-fill gaps (words with no coverage inherit a neighbor) and smooth single-word flips, so one mis-attributed word inside a speaker's run
backend/services/segmentation.py:654
↓ 1 callersFunction_filter_top_k
(logits: torch.Tensor, ratio: float = 0.1)
omnivoice/models/omnivoice.py:1696
↓ 1 callersFunction_filtered
(models: list[dict], engine: Optional[str])
backend/services/gpu_gateway.py:850
↓ 1 callersMethod_finalize
Normalize model output to a (1, n) float tensor and apply the trailing-silence guard. The guard is a SILENCE trim only: generations o
backend/services/tts_backend.py:1123
↓ 1 callersFunction_finalize_duration_plan
Stamp plan verdicts on the FINAL row texts, then (opt-in) condense.
backend/api/routers/dub_translate.py:859
↓ 1 callersFunction_find_compat_dir
Return the cudnn8_compat target directory, auto-detecting venv layout.
scripts/setup.py:169
↓ 1 callersFunction_find_free_port
(base: int, tries: int = 20)
backend/services/network_share.py:94
↓ 1 callersFunction_find_last_clause_boundary
(text: str)
backend/services/chunked_tts.py:246
↓ 1 callersFunction_find_last_sentence_end
Index of the last sentence-ending punctuation, or -1. Skips periods after common abbreviations and decimals, anything inside a bracket tag, a
backend/services/chunked_tts.py:216
↓ 1 callersFunction_find_repo_root
()
backend/core/links.py:34
↓ 1 callersFunction_fingerprint
(error_class: str, exc: BaseException)
backend/core/error_journal.py:136
↓ 1 callersFunction_finish
(category_id: str, cat: dict, complete: bool, err_path: str | None)
backend/services/storage_report.py:202
↓ 1 callersFunction_finish_cleanup
Run rollback to completion even if its HTTP task was cancelled.
backend/api/routers/workers.py:195
↓ 1 callersFunction_finish_input_cache_mutation
(path: str)
backend/worker/executor.py:953
↓ 1 callersFunction_first_param_device
Device the weights of ``obj`` actually live on, or None if undeterminable. The TTS runtime is a wrapper object, not necessarily an ``nn.Module``,
backend/services/model_manager.py:3256
↓ 1 callersFunction_fit_one
Resolve one segment's need ratio into (audio_rate, video_ratio, status).
backend/services/fit_planner.py:111
↓ 1 callersFunction_fits
(left: str, right: str)
backend/services/subtitle_segmenter.py:199
↓ 1 callersFunction_fix_imports
Make protoc's flat sibling import work inside a package.
scripts/gen_worker_protocol.py:58
↓ 1 callersFunction_flatten
(obj: dict, prefix: str = "")
tests/probe/judges/i18n.py:20
↓ 1 callersFunction_float_env
(name: str, default: float)
backend/services/tts_backend.py:181
↓ 1 callersFunction_force_compile_requested
()
backend/services/engine_env.py:55
↓ 1 callersFunction_force_copy_mode
Best-effort: make huggingface_hub materialize snapshot entries as real file COPIES instead of symlinks for the rest of this process. Why: hub
backend/services/hf_cache_repair.py:124
↓ 1 callersMethod_force_kill
Internal: kill a sidecar that never reached the ready state.
backend/services/subprocess_backend.py:580
↓ 1 callersMethod_forget_partial_upload
(self, upload: _Upload)
backend/worker/transport/server.py:2783
↓ 1 callersFunction_format
(mem: dict, headroom_gb: float)
backend/services/memory_budget.py:68
↓ 1 callersFunction_format_endpoint
(host: str, port: int)
backend/worker/service.py:67
↓ 1 callersFunction_format_ts_srt
Format seconds as SRT timestamp: HH:MM:SS,mmm
backend/api/routers/openai_compat.py:723
↓ 1 callersFunction_format_ts_vtt
Format seconds as VTT timestamp: HH:MM:SS.mmm
backend/api/routers/openai_compat.py:732
↓ 1 callersFunction_free_port
()
tests/test_worker_transport.py:61
↓ 1 callersFunction_free_port
()
tests/test_worker_inbound_transport.py:72
← previousnext →3,201–3,300 of 15,058, ranked by callers