Commit 50ef8834 authored by Vinit Veera's avatar Vinit Veera
Browse files

Attempt 1 to fix the broken pipeline #16138

parent 33c84ad6
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -525,11 +525,12 @@ def multiple_of_frame_size(
        # read the audio file
        if "fs" in cfg.input:
            sampling_rate = cfg.input["fs"]
        elif item.suffix == ".wav":
            sampling_rate = None
            x, fs = read(item, nchannels=num_channels, fs=sampling_rate)
        elif item.suffix == ".pcm" or item.suffix == ".raw":
            raise ValueError("Sampling rate must be specified for headerless files!")
        x, fs = read(item, nchannels=num_channels, fs=sampling_rate)
        elif item.suffix == ".wav":
            x, fs = read(item)
            sampling_rate = fs
        n_samples_x, n_chan_x = x.shape
        if fs != sampling_rate:
            raise ValueError(