def read_label_list(path):
    """
    Reads labels from an Audacity label file
    and returns them wrapped in a :py:class:`audiomate.annotations.LabelList`.

    Args:
        path (str): Path to the Audacity label file

    Returns:
        audiomate.annotations.LabelList: Label list containing the labels
    """
    ll = annotations.LabelList()

    for record in read_label_file(path):
        ll.add(annotations.Label(record[2], start=record[0], end=record[1]))

    return ll
def read_label_list ( path ) : ll = annotations . LabelList ( ) for record in read_label_file ( path ) : ll . add ( annotations . Label ( record [ 2 ] , start = record [ 0 ] , end = record [ 1 ] ) ) return ll
Reads labels from an Audacity label file
    and returns them wrapped in a :py:class:`audiomate.annotations.LabelList`.

    Args:
        path (str): Path to the Audacity label file

    Returns:
        audiomate.annotations.LabelList: Label list containing the labels