def remove_sound_descriptions(subs):
    """
    Removes phrases that are enclosed with square brackets in the subtitles, for example [KNOCKING ON DOOR]
    :param subs:
    :return:
    """
    for sub in subs:
        if '[' in sub.text and ']' in sub.text:
            t = sub.text
            sub.text = t[:t.index('[')] + t[t.index(']') + 1:]
            sub.text = sub.text.strip()
        if '(' in sub.text and ')' in sub.text:
            t = sub.text
            sub.text = t[:t.index('(')] + t[t.index(')') + 1:]
            sub.text = sub.text.strip()
    subs = [sub for sub in subs if sub.text]
    return subs