def METHOD_NAME(manifest_file, names, lengths, rates, texts):
    assert len(names) == len(lengths) == len(rates) == len(texts)
    data = []
    for idx in range(len(names)):
        entry_i = {}
        entry_i['audio_filepath'] = names[idx]
        entry_i['duration'] = lengths[idx] * (1.0 / rates[idx])
        entry_i["text"] = texts[idx]
        data.append(entry_i)
    with open(manifest_file, 'w') as f:
        for entry in data:
            json.dump(entry, f)
            f.write('\n')