def speed_change(sound, speed=0.0):
    """ Change speed of audio

    Parameters
    ----------
    sound : AudioSegment object
    speed : int
        new speed

    Returns
    -------
    AudioSegment object with altered frame rate
    """
    # Manually override the frame_rate. This tells the computer how many
    # samples to play per second
    speed = 1.0 + speed / 10  # Tune speed value easier to use
    sound_with_altered_frame_rate = \
        sound._spawn(sound.raw_data,
                     overrides={"frame_rate": int(sound.frame_rate * speed)})
    # convert the sound with altered frame rate to a standard frame rate
    # so that regular playback programs will work right. They often only
    # know how to play audio at standard frame rate (like 44.1k)
    return sound_with_altered_frame_rate.set_frame_rate(sound.frame_rate)