default_cache_root()

audmodel.default_cache_root()[source]

Default path under which models are stored.

It first looks for the environment variable AUDMODEL_CACHE_ROOT, which can be set in bash:

export AUDMODEL_CACHE_ROOT=/path/to/your/cache

If it the environment variable is not set, config.CACHE_ROOT is returned.

Return type

str

Returns

path to model cache

Examples

>>> import audeer
>>> cache_root = default_cache_root()
>>> audeer.list_dir_names(cache_root, basenames=True)
['d4e9c65b']