import audioop


def convert_stereo_to_mono(fragment, width):
    """
    Convert stereo fragment to mono.

    Parameters
    ----------
    fragment : bytes object
        Specifies the original fragment.
    width : int
        Specifies the fragment's original sampwidth.

    Returns
    -------
    bytes
        Converted audio in mono type.

    """
    new_fragment = audioop.tomono(fragment, width, 0.5, 0.5)
    return new_fragment