def addTranscript(self,tname,speakerlist):
        # splits file at ":" (so last word of each block is a speaker); pairs each line with last word before preceding colon

        path = 'texts/transcripts/%s' % tname
        f = open(path,"r")
        lines = f.read().lower().split(':')
        labeled_lines = []
        # associate each line with a speaker
        for i in range(1,len(lines)):
            labeled_lines.append((lines[i-1].split()[-1],lines[i].split()[0:-1]))

        # consolidate all lines by a given speaker into one line
        speakers = {}
        for line in labeled_lines:
            name = line[0]
            if name in speakerlist:
                if name in speakers:
                    speakers[name]+=line[1]
                else:
                    speakers[name] = line[1]
            else:
                # if the speakerlist has 'other' in it, then it consolidates all unclaimed lines into one
                if 'other' in speakerlist:
                    if 'other' in speakers:
                        speakers['other']+=line[1]
                    else:
                        speakers['other']=line[1]

        for name in speakers:
            # save file
            filename = 'transcripts/%s' % name
            path = 'texts/%s' % filename
            outfile = open(path,'w')
            toWrite = " ".join(speakers[name])
            outfile.write(toWrite)
            self.addVoiceFromFile(filename,filename[12:])

    # passed a string, makes a dictionary from a string. passed an empty string and a file, makes it from a file
dataset/ETHPy150Open jbrew/pt-voicebox/vbox.py/Voicebox.addTranscript/original