diff --git a/audb/core/api.py b/audb/core/api.py index 3afc04db..eeca4fb9 100644 --- a/audb/core/api.py +++ b/audb/core/api.py @@ -332,7 +332,7 @@ def exists( format: file format, one of ``'flac'``, ``'wav'`` mixdown: apply mono mix-down sampling_rate: sampling rate in Hz, one of - ``8000``, ``16000``, ``22500``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22500``, ``24000``, ``44100``, ``48000`` cache_root: cache folder where databases are stored. If not set :meth:`audb.default_cache_root` is used @@ -416,7 +416,7 @@ def flavor_path( format: file format, one of ``'flac'``, ``'wav'`` mixdown: apply mono mix-down sampling_rate: sampling rate in Hz, one of - ``8000``, ``16000``, ``22500``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22500``, ``24000``, ``44100``, ``48000`` Returns: flavor path relative to cache folder diff --git a/audb/core/define.py b/audb/core/define.py index eae91ed1..64a98a19 100644 --- a/audb/core/define.py +++ b/audb/core/define.py @@ -91,7 +91,7 @@ class Format: FORMATS = [Format.WAV, Format.FLAC] BIT_DEPTHS = [16, 24, 32] -SAMPLING_RATES = [8000, 16000, 22500, 44100, 48000] +SAMPLING_RATES = [8000, 16000, 22500, 24000, 44100, 48000] # Progress bar MAXIMUM_REFRESH_TIME = 1 # force progress bar to update every second diff --git a/audb/core/flavor.py b/audb/core/flavor.py index 51ddad00..0add8a0a 100644 --- a/audb/core/flavor.py +++ b/audb/core/flavor.py @@ -41,7 +41,7 @@ class Flavor(audobject.Object): format: file format, one of ``'flac'``, ``'wav'`` mixdown: apply mono mix-down on selection sampling_rate: sampling rate in Hz, one of - ``8000``, ``16000``, ``22500``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22500``, ``24000``, ``44100``, ``48000`` Raises: ValueError: if a non-supported ``bit_depth``, diff --git a/audb/core/load.py b/audb/core/load.py index 5ca44835..74ad3dc7 100644 --- a/audb/core/load.py +++ b/audb/core/load.py @@ -1057,7 +1057,7 @@ def load( format: file format, one of ``'flac'``, ``'wav'`` mixdown: apply mono mix-down sampling_rate: sampling rate in Hz, one of - ``8000``, ``16000``, ``22500``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22500``, ``24000``, ``44100``, ``48000`` attachments: load only attachment files for the attachments matching the regular expression @@ -1521,7 +1521,7 @@ def load_media( format: file format, one of ``'flac'``, ``'wav'`` mixdown: apply mono mix-down sampling_rate: sampling rate in Hz, one of - ``8000``, ``16000``, ``22500``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22500``, ``24000``, ``44100``, ``48000`` cache_root: cache folder where databases are stored. If not set :meth:`audb.default_cache_root` is used num_workers: number of parallel jobs or 1 for sequential diff --git a/audb/core/stream.py b/audb/core/stream.py index 759fa95c..1a59f12b 100644 --- a/audb/core/stream.py +++ b/audb/core/stream.py @@ -481,7 +481,7 @@ def stream( format: file format, one of ``'flac'``, ``'wav'`` mixdown: apply mono mix-down sampling_rate: sampling rate in Hz, one of - ``8000``, ``16000``, ``22500``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22500``, ``24000``, ``44100``, ``48000`` full_path: replace relative with absolute file paths cache_root: cache folder where databases are stored. If not set :meth:`audb.default_cache_root` is used diff --git a/docs/load.rst b/docs/load.rst index 020fa028..d0fa4b53 100644 --- a/docs/load.rst +++ b/docs/load.rst @@ -140,6 +140,7 @@ The following properties can be changed. - 8000 - 16000 - 22500 + - 24000 - 44100 - 48000 diff --git a/tests/test_convert.py b/tests/test_convert.py index ea4ca94e..d1128d94 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -226,7 +226,7 @@ def test_mixdown(db_root, mixdown): @pytest.mark.parametrize( "sampling_rate", - [None, 16000], + [None, 16000, 24000], ) def test_sampling_rate(db_root, sampling_rate): db = audb.load( diff --git a/tests/test_flavor.py b/tests/test_flavor.py index b16a1323..fbe7b5e6 100644 --- a/tests/test_flavor.py +++ b/tests/test_flavor.py @@ -31,7 +31,7 @@ None, audb.core.define.Format.WAV, True, - 16000, + 24000, ), pytest.param( 0,