def get_snr_from_mix_path(mix_path):
    """ Retrieves mixing SNR from mixture filename.

    Args:
        mix_path (str): Path to the mixture. Something like :
        book_11346_chp_0012_reader_08537_8_kFu2mH7D77k-5YOmLILWHyg-\
        gWMWteRIgiw_snr6_tl-35_fileid_3614.wav

    Returns:
        int or None: the SNR value if we could parse it.
    """
    snr_str = mix_path.split("snr")[-1].split("_")[0]
    try:
        snr = int(snr_str)
    except ValueError:
        snr = None
    return snr