From 75296b4560e6106846017590116d409c029ed11a Mon Sep 17 00:00:00 2001 From: ChristianGeng Date: Fri, 22 Nov 2024 09:26:02 +0100 Subject: [PATCH] Change sr from 22500 to 22050 in all files. --- audb/core/api.py | 4 ++-- audb/core/define.py | 2 +- audb/core/flavor.py | 2 +- audb/core/load.py | 4 ++-- audb/core/stream.py | 2 +- docs/load.rst | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/audb/core/api.py b/audb/core/api.py index e9624769..dc6fd966 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``, ``24000``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22050``, ``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``, ``24000``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22050``, ``24000``, ``44100``, ``48000`` Returns: flavor path relative to cache folder diff --git a/audb/core/define.py b/audb/core/define.py index 64a98a19..0aa54c42 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, 24000, 44100, 48000] +SAMPLING_RATES = [8000, 16000, 22050, 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 0add8a0a..d81064bb 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``, ``24000``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22050``, ``24000``, ``44100``, ``48000`` Raises: ValueError: if a non-supported ``bit_depth``, diff --git a/audb/core/load.py b/audb/core/load.py index 1e91ace2..f74db4ce 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``, ``24000``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22050``, ``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``, ``24000``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22050``, ``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 1a59f12b..dc860950 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``, ``24000``, ``44100``, ``48000`` + ``8000``, ``16000``, ``22050``, ``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 34bf4315..e48189a5 100644 --- a/docs/load.rst +++ b/docs/load.rst @@ -143,7 +143,7 @@ The following properties can be changed. sampling_rate: - 8000 - 16000 - - 22500 + - 22050 - 24000 - 44100 - 48000