def WriteSegmentsForUtterance(text_output_handle, segments_output_handle, old_utterance_name, segments):
    for n in range(len(segments)):
        segment = segments[n]
        new_utterance_name = ((old_utterance_name + '-') + str((n + 1)))
        print(new_utterance_name, segment.Text(), file=text_output_handle)
        print(new_utterance_name, old_utterance_name, TimeToString(segment.StartTime(), args.frame_length), TimeToString(segment.EndTime(), args.frame_length), file=segments_output_handle)
def WriteSegmentsForUtterance(text_output_handle, segments_output_handle, old_utterance_name, segments):
    for n in range(len(segments)):
        segment = segments[n]
        new_utterance_name = ((old_utterance_name + '-') + str((n + 1)))
        print(new_utterance_name, segment.Text(), file=text_output_handle)
        print(new_utterance_name, old_utterance_name, TimeToString(segment.StartTime(), args.frame_length), TimeToString(segment.EndTime(), args.frame_length), file=segments_output_handle)