Commit bfc48ce1 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

small fix in metadata concatenation

parent 908cb849
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -619,7 +619,7 @@ def fromtype(fmt: str) -> Audio:
def fromarray(fmt: str, x: np.ndarray, fs: int) -> Audio:
    """Wrap the given array into an audio format"""
    if x is None or not fs:
        return ValueError("Both array and sampling rate must be specified!")
        raise ValueError("Both array and sampling rate must be specified!")

    output = _get_audio_class(fmt)(fmt)

+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ def concat_meta_from_file(
    frame_length = int(IVAS_FRAME_LEN_MS * audio_objects[0].fs // 1000)

    # pad and concatenate
    concat_meta_all_obj = [None] * audio_objects[0].num_channels
    concat_meta_all_obj = [None] * len(meta_files[0])

    for audio_item in audio_objects:
        # check if audio is multiple of frame length