ConfigurationΒΆ

audmodel can be configured with a ~/.config/audmodel.yaml file. The configuration file is read during import and will override the default settings. The default settings are:

cache_root: ~/audmodel
repositories:
  - name: audmodel-public
    host: s3.dualstack.eu-north-1.amazonaws.com
    backend: s3

After loading audmodel they can be accessed or changed using audmodel.config.

>>> audmodel.config.CACHE_ROOT
'~/audmodel'
>>> audmodel.config.REPOSITORIES
[Repository('audmodel-public', 's3.dualstack.eu-north-1.amazonaws.com', 's3')]
>>> audmodel.config.CACHE_ROOT = "/user/cache"
>>> audmodel.config.CACHE_ROOT
'/user/cache'

The cache folder can also be overridden with the AUDMODEL_CACHE_ROOT environment variable.