def parse_speaker_segments(results):
    """
    From the Amazon Transcribe results JSON response, this function parses a list of all segments, their timeframe
    and associated speaker label. The individual 'items' key of each segment are not parsed
    Helper function for ``chunk_up_transcript()``

    :param results: Amazon Transcribe results JSON
    :return: List of segments with their time-frames and speaker labels
    """
    labelled_speaker_segments = results['speaker_labels']['segments']
    speaker_segments = []
    for label in labelled_speaker_segments:
        segment = dict()
        segment["start_time"] = float(label["start_time"])
        segment["end_time"] = float(label["end_time"])
        segment["speaker"] = label["speaker_label"]
        speaker_segments.append(segment)
    return speaker_segments