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
Function
test_rocm_gpu_we_can_remap_is_not_a_mismatch
gfx1102 is absent from this build but _configure_rocm_if_needed() remaps it to gfx1100, which this build DOES ship.
tests/test_rocm_arch_gate.py:87
Function
test_rocm_host_cuda_only_engine_falls_back_with_specific_reason
()
tests/test_engine_routing.py:86
Function
test_rocm_host_picks_pytorch_whisper_not_ctranslate2
The #1529 regression: before the fix this returned "whisperx".
tests/test_asr_device_aware_autodetect.py:423
Function
test_rocm_host_routes_to_gpu_not_cpu
End-to-end: the reporter's host must resolve to "cuda", not "cpu".
tests/test_rocm_arch_gate.py:195
Function
test_rocm_host_without_transformers_still_degrades_to_whisperx_on_cpu
pytorch-whisper unavailable → whisperx is still correct, on the CPU.
tests/test_asr_device_aware_autodetect.py:434
Function
test_rocm_is_detected_from_torch_version_hip
The HIP branch reads ``torch.version.hip`` *before* ``cuda.is_available()`` — which is True on ROCm — so pin the ordering, not just the outcome.
tests/test_cudnn8_hard_crash_1371.py:122
Function
test_rocm_off_linux_does_not_invent_a_device_node_reason
/dev/kfd is a Linux path; its absence anywhere else says nothing, and a confident wrong reason is worse than a vague right one.
tests/test_why_no_gpu_1274.py:190
Function
test_rocm_opt_in_requires_explicit_variant
()
tests/test_setup_rocm_variant.py:30
Function
test_rocm_reinstall_pins_match_the_project_constraint
()
tests/test_rocm_torch_pins_match_pyproject.py:66
Function
test_rocm_reinstall_targets_this_venv_with_bootstrap_pins
()
tests/test_setup_rocm_variant.py:41
Function
test_rocm_that_cannot_open_the_device_names_the_group_trap
The reporter's most likely case, and the one a generic message cannot help with: the render/video GIDs differ per host, so a copied `--group-a
tests/test_why_no_gpu_1274.py:140
Function
test_rocm_user_hsa_override_is_trusted_when_the_build_has_the_target
(monkeypatch)
tests/test_rocm_arch_gate.py:118
Function
test_rocm_warning_names_the_rocm_remedy
A genuine ROCm mismatch must not tell the user to install a CUDA wheel.
tests/test_rocm_arch_gate.py:211
Function
test_rocm_wins_over_cuda_when_both_are_set
A ROCm wheel reports a `torch.version.cuda` too; the HIP branch is the correct reading and its advice is completely different.
tests/test_why_no_gpu_1274.py:209
Function
test_rocm_with_everything_reachable_points_at_the_rocm_version
(linux, monkeypatch)
tests/test_why_no_gpu_1274.py:155
Function
test_rocm_without_the_kernel_interface_names_the_docker_flags
(linux, monkeypatch)
tests/test_why_no_gpu_1274.py:69
Function
test_rotation_keeps_only_newest_three
(tmp_path)
tests/test_db_backup.py:76
Function
test_round_trip_token
(isolated_db)
tests/backend/services/test_settings_store.py:54
Function
test_roundtrip_synthesize_returns_audio_tensor
(stub_sidecar, monkeypatch)
backend/tests/test_omnivoice_subprocess.py:290
Function
test_route_count_is_sane
A floor so a broken router-mount (silently dropping routes) is caught even if the snapshot were regenerated against the breakage.
tests/test_api_route_inventory.py:108
Function
test_route_handler_returns_jobs_envelope
()
tests/test_longform_jobs.py:169
Function
test_route_inventory_matches_snapshot
(live_routes)
tests/test_api_route_inventory.py:66
Function
test_route_is_registered_without_a_job_id
()
tests/test_dub_parse_subtitle_text.py:101
Function
test_route_probes_the_persisted_config
POST /api/settings/asr-openai-compat/test — the save-first-then-test contract (same as /llm-providers/{id}/test): the route reads exactly what
tests/test_asr_openai_compat_877.py:409
Function
test_route_shapes
(client)
tests/test_exports_api.py:94
Function
test_route_survives_leaked_module_world_purge
Full-suite flake regression: some suites purge and re-import the whole ``core``/``services`` module tree under a temporary OMNIVOICE_DATA_DIR
tests/test_longform_jobs.py:179
Function
test_router_404s_engines_without_installer
()
tests/test_sidecar_install.py:830
Function
test_router_custom_path_consumes_native_authorization
(mt, monkeypatch, tmp_path)
tests/test_media_tools.py:427
Function
test_router_custom_path_rejects_raw_http_path
(mt)
tests/test_media_tools.py:421
Function
test_router_is_admin_gated
(mt)
tests/test_media_tools.py:466
Function
test_router_status_and_acquire_endpoints
(mt, monkeypatch)
tests/test_media_tools.py:408
Function
test_router_uninstall_maps_refusals_to_http_errors
(monkeypatch)
tests/test_sidecar_install.py:844
Function
test_router_use_system_maps_lookup_to_404
(mt, monkeypatch)
tests/test_media_tools.py:445
Function
test_router_ytdlp_routes_not_shadowed_by_tool_param
/media-tools/ytdlp/restore must hit the overlay-restore handler, not the parametrized {tool}/restore (which would 400 on 'ytdlp').
tests/test_media_tools.py:452
Function
test_routers_use_the_degrading_loader
()
backend/tests/test_asr_request_path_degrades.py:320
Function
test_run_logged_env_none_inherits_parent_environment
(monkeypatch)
tests/test_uv_cross_drive.py:158
Function
test_run_logged_forwards_env_to_the_child
()
tests/test_uv_cross_drive.py:145
Function
test_run_pip_pins_uv_install_to_sys_executable
(monkeypatch)
tests/test_translation_engine_install.py:34
Function
test_run_pip_pins_uv_uninstall_to_sys_executable
(monkeypatch)
tests/test_translation_engine_install.py:42
Function
test_run_sentinel_clear_failure_retains_ownership
(monkeypatch)
tests/test_truthful_degraded_state.py:166
Method
test_run_transcribe_guarded_bounds_the_wedge_and_falls_back
(self)
tests/test_speaker_clone_purity.py:290
Function
test_running_instances_are_killed_regardless_of_data_policy
Killing the live app must not be gated on the wipe (#1333 review). The app registers ``tauri_plugin_single_instance``, and its callback ignores
tests/test_desktop_prod_scripts.py:116
Function
test_running_sibling_is_superseded_on_commit
()
tests/test_worker_lifecycle.py:184
Function
test_runtime_failure_latches_the_session_off
(monkeypatch)
tests/test_flashinfer_optin.py:94
Function
test_rust_shell_agrees_on_the_exit_code
The Rust side reads this code to distinguish a conflict from a crash — a silent divergence would restore the unexplained "exit code 1".
tests/test_port_in_use_exit.py:39
Function
test_rvc_keeps_natural_rate_audio_outside_strict_slot
RVC output obeys the same timing-mode cache invariant as plain TTS.
tests/test_smart_fit_generate.py:558
Function
test_safe_exc_text_container_args_do_not_leak_raw_repr
()
tests/test_generation_audio_guard.py:350
Function
test_safe_exc_text_plain_message_uses_house_style
()
tests/test_generation_audio_guard.py:345
Function
test_safe_extract_members_blocks_tar_slip
The pre-filter= fallback extractor must drop parent-dir escapes, absolute paths, and symlinks — mirroring extractall(filter='data').
tests/test_sidecar_install.py:388
Function
test_safe_file_wrapper_swallows_unicode_encode_errors
()
tests/test_windows_stdio_guards.py:34
Function
test_safe_filename_rejects_posix_and_windows_escapes
(name)
tests/test_filesystem_boundaries.py:40
Function
test_safe_job_dir_rejects_traversal
()
tests/test_dub_pipeline_state.py:28
Function
test_safe_never_returns_empty_for_silent_input
Even pure digital silence comes back unchanged (the hard failure is raised by validate_clone_reference, with guidance — never by trimming).
tests/test_clone_ref_silence_ladder.py:104
Function
test_safe_recovers_quiet_clip_via_gentler_threshold
A quiet-but-real clip that the -50 rung consumes is recovered by the -60 rung — trimmed, non-empty, speech intact. Failed (function absent, ca
tests/test_clone_ref_silence_ladder.py:86
Function
test_safe_replace_falls_back_on_exdev
EXDEV (paths on different devices) must degrade to copy+replace, not surface as the [Errno 18/22] class Windows users reported.
tests/test_recurrence_hardening.py:103
Function
test_safe_replace_propagates_real_errors
(tmp_path, monkeypatch)
tests/test_recurrence_hardening.py:125
Function
test_safe_replace_same_device
(tmp_path)
tests/test_recurrence_hardening.py:94
Function
test_safe_save_explicit_encoding_persists
Default save → on-disk subtype must be PCM_16, not a backend default.
tests/backend/services/test_audio_io.py:165
Function
test_safe_save_float32_pcm_when_bits_per_sample_32
bits_per_sample=32 should produce PCM_F (float WAV) on disk.
tests/backend/services/test_audio_io.py:178
Function
test_safe_save_format_passthrough_flac
format='flac' must produce a FLAC container, not a WAV.
tests/backend/services/test_audio_io.py:191
Function
test_safe_save_handles_1d_tensor
Mono 1D tensor must be auto-unsqueezed to (1, N).
tests/backend/services/test_audio_io.py:236
Function
test_safe_save_in_memory_buffer
io.BytesIO destination must produce a valid WAV the consumer can decode.
tests/backend/services/test_audio_io.py:206
Function
test_safe_save_non_contiguous_via_transpose
The specific #48 reproduction: torch.cat() of slices, then save.
tests/backend/services/test_audio_io.py:144
Function
test_safe_save_out_of_range_clamped
Values outside [-1, 1] must be clamped, not wrapped/silenced.
tests/backend/services/test_audio_io.py:122
Function
test_safe_save_rejects_3d_tensor
3D tensor is a programming error — refuse rather than guess shape.
tests/backend/services/test_audio_io.py:249
Function
test_safe_save_rejects_empty_tensor
Empty input must raise — never silently produce a 0-frame WAV.
tests/backend/services/test_audio_io.py:220
Function
test_safe_save_rejects_non_tensor
numpy array passed by mistake must fail loudly, not write garbage.
tests/backend/services/test_audio_io.py:226
Function
test_safe_save_round_trip
For every (dtype, device, contiguity) combo, the helper must produce a file that ``sf.info`` decodes cleanly with audible samples.
tests/backend/services/test_audio_io.py:70
Function
test_safe_skips_trimming_when_every_rung_fails
Below every threshold rung, trimming is skipped entirely: the input comes back unchanged — an untrimmed real recording beats an empty one.
tests/test_clone_ref_silence_ladder.py:96
Function
test_safe_soundfile_write_2d_stereo
soundfile expects (samples, channels) for 2D — verify we don't transpose.
tests/backend/services/test_audio_io.py:322
Function
test_safe_soundfile_write_accepts_int16
int16 input must round-trip without forced float conversion.
tests/backend/services/test_audio_io.py:312
Function
test_safe_soundfile_write_dub_core_pattern
Mirror the dub_core.py:438 transcribe-chunk pattern. Build a numpy slice of float32 samples (the shape returned by ``sf.read(..., dtype='floa
tests/backend/test_dub_pipeline_wav.py:233
Function
test_safe_soundfile_write_non_contiguous_array
Non-contig numpy slice must still produce a valid WAV.
tests/backend/services/test_audio_io.py:277
Function
test_safe_soundfile_write_out_of_range_clamped
(tmp_path)
tests/backend/services/test_audio_io.py:293
Function
test_safe_soundfile_write_rejects_empty
(tmp_path)
tests/backend/services/test_audio_io.py:303
Function
test_safe_soundfile_write_round_trip
(tmp_path)
tests/backend/services/test_audio_io.py:262
Function
test_safe_trims_normal_clip_like_before
Healthy path unchanged: normal-level audio is trimmed on the first rung (edge padding removed, speech kept) — no behavior regression.
tests/test_clone_ref_silence_ladder.py:77
Function
test_same_class_is_fifo
()
tests/test_worker_scheduler.py:221
Function
test_same_content_different_path_hits_cache
Ad-hoc clone uploads land in a NEW temp file per request — the cache must key on content, not path.
tests/test_transcribe_reference.py:132
Function
test_same_content_transcribed_once
Two calls on the same bytes → ONE backend construction/transcribe. Before #1032 every call rebuilt (and thus reloaded) the ASR backend.
tests/test_transcribe_reference.py:119
Function
test_same_volume_false_across_devices
Simulate two mount points by faking st_dev per path prefix.
tests/test_uv_cross_drive.py:50
Function
test_same_volume_true_for_same_dir_and_on_probe_failure
(tmp_path, monkeypatch)
tests/test_uv_cross_drive.py:38
Function
test_sample_rate_and_languages
()
tests/test_moss_tts_v15.py:136
Function
test_sample_rate_constant_is_confirmed_upstream_rate
(sc)
tests/test_confucius4_sidecar.py:89
Function
test_sample_rate_eq
(tone)
tests/probe/test_probe_judges.py:50
Function
test_sample_rate_is_48k
()
tests/test_dots_tts.py:68
Function
test_sample_rate_is_in_lockstep_with_the_sidecar
The parent sizes buffers from its own constant and the sidecar stamps the frame with its; a drift between them resamples every render.
tests/test_pockettts_sidecar.py:392
Function
test_sample_rate_lockstep_with_backend_default
(sc)
tests/test_confucius4_sidecar.py:95
Function
test_sanitises_against_path_traversal
()
tests/test_dub_seg_path.py:25
Function
test_sanitize_dedupes_by_category
()
tests/test_voice_design_instruct_heal.py:47
Function
test_sanitize_drops_freeform_prose
()
tests/test_voice_design_instruct_heal.py:26
Function
test_sanitize_drops_object_object_sentinel
()
tests/test_voice_design_instruct_heal.py:22
Function
test_sanitize_extracts_only_standalone_tags_from_mixed_input
()
tests/test_voice_design_instruct_heal.py:34
Function
test_sanitize_handles_empty_and_poison
(bad)
tests/test_voice_design_instruct_heal.py:58
Function
test_sanitize_handles_none_and_empty
()
tests/test_analytics_optin.py:224
Function
test_sanitize_keeps_valid_tags_unchanged
()
tests/test_voice_design_instruct_heal.py:41
Function
test_sanitize_leaves_finite_audio_unchanged
()
tests/test_generation_audio_guard.py:43
Function
test_sanitize_long_whitespace_run_is_linear_time
()
tests/test_voice_design_instruct_heal.py:62
Function
test_sanitize_normalises_case_and_blank_items
()
tests/test_voice_design_instruct_heal.py:53
Function
test_sanitize_passes_through_non_tensor
()
tests/test_generation_audio_guard.py:49
← previous
next →
13,401–13,500 of 15,058, ranked by callers