def compress(speakers, talks):
    """Reduce consecutive dialogue by the same person into single records"""
    i = 0

    current_text = ""
    current_speaker = ""

    compressed_speakers = []
    compressed_talks = []

    for speaker, text in zip(speakers, talks):
        if speaker == current_speaker:
            current_text = current_text + " " + text
        else:
            compressed_speakers.append(current_speaker)
            compressed_talks.append(current_text.replace('"', ''))

            current_speaker = speaker
            current_text = text
            
    compressed_speakers.append(current_speaker)
    compressed_talks.append(current_text.replace('"', ''))
    
    return compressed_speakers, compressed_talks