def METHOD_NAME(transcripts_path, manifest_path, data_dir, mount_dir, wav_path):
    # create manifest with reference to this directory. This is useful when mounting the dataset.
    mount_dir = mount_dir if mount_dir else data_dir
    with open(transcripts_path, 'r') as fin:
        with open(manifest_path, 'w') as fout:
            for line in fin:
                # Lines look like this:
                # <s> transcript </s> (fileID)
                transcript = line[: line.find('(') - 1].lower()
                transcript = transcript.replace('<s>', '').replace('</s>', '')
                transcript = transcript.strip()
                file_id = line[line.find('(') + 1 : -2]  # e.g. "cen4-fash-b"
                audio_path = os.path.join(
                    data_dir, wav_path, file_id[file_id.find('-') + 1 : file_id.rfind('-')], file_id + '.wav'
                )
                mounted_audio_path = os.path.join(
                    mount_dir, wav_path, file_id[file_id.find('-') + 1 : file_id.rfind('-')], file_id + '.wav'
                )
                # import sox here to not require sox to be available for importing all utils.
                import sox
                duration = sox.file_info.duration(audio_path)
                # Write the metadata to the manifest
                metadata = {"audio_filepath": mounted_audio_path, "duration": duration, "text": transcript}
                json.dump(metadata, fout)
                fout.write('\n')