def writeScp(filename, uttids, pointers):
    """
    Takes a list of utterance IDs and a list of strings in the format "filename:offset",
      and writes them to a Kaldi script file.
    """
    with open(filename, 'w') as f:
        for uttid, pointer in zip(uttids, pointers):
            f.write('%s %s\n' % (uttid, pointer))
