vox_serve.utils

vox_serve.utils#

Functions

download_audio_from_url(url[, cache_dir, ...])

Download an audio file from a URL (excluding HuggingFace and GitHub), caching it locally.

download_github_file(owner, repo, path[, ...])

Download a file from a GitHub repo, caching it locally.

get_global_log_level()

Get the current global log level.

get_logger(name[, level])

Get or create a logger with the given name using the global log level by default.

load_hf_safetensor_state_dict(repo_id[, ...])

Downloads a safetensors HF repo and returns a merged state_dict (dict[str, Tensor]).

set_global_log_level(level)

Set the global log level for the entire application.

setup_logger(name[, level])

Set up a centralized logger with consistent formatting.