Loading tests/conftest.py +2 −1 Original line number Diff line number Diff line Loading @@ -1262,7 +1262,8 @@ def get_split_idx(input_file: str, sampling_rate_khz: int) -> Optional[np.ndarra If no list of indices is available for the given input file, an empty array is returned. """ idx = SPLIT_IDX.get(input_file.lower(), np.empty(0)) format = input_file.replace(".wav", "").split("_")[-1].lower() idx = SPLIT_IDX.get(format, np.empty(0)) if len(idx) > 0 and sampling_rate_khz != 16: idx *= sampling_rate_khz // 16 Loading tests/constants.py +1 −1 Original line number Diff line number Diff line Loading @@ -101,4 +101,4 @@ SPLIT_IDX_LTV_STEREO_16KHZ = np.asarray( ] ) SPLIT_IDX = {"ltv16_stereo": SPLIT_IDX_LTV_STEREO_16KHZ} SPLIT_IDX = {"stereo": SPLIT_IDX_LTV_STEREO_16KHZ} Loading
tests/conftest.py +2 −1 Original line number Diff line number Diff line Loading @@ -1262,7 +1262,8 @@ def get_split_idx(input_file: str, sampling_rate_khz: int) -> Optional[np.ndarra If no list of indices is available for the given input file, an empty array is returned. """ idx = SPLIT_IDX.get(input_file.lower(), np.empty(0)) format = input_file.replace(".wav", "").split("_")[-1].lower() idx = SPLIT_IDX.get(format, np.empty(0)) if len(idx) > 0 and sampling_rate_khz != 16: idx *= sampling_rate_khz // 16 Loading
tests/constants.py +1 −1 Original line number Diff line number Diff line Loading @@ -101,4 +101,4 @@ SPLIT_IDX_LTV_STEREO_16KHZ = np.asarray( ] ) SPLIT_IDX = {"ltv16_stereo": SPLIT_IDX_LTV_STEREO_16KHZ} SPLIT_IDX = {"stereo": SPLIT_IDX_LTV_STEREO_16KHZ}