Created
September 21, 2025 17:08
-
-
Save thewh1teagle/44568a97718ca31927d5e0baceffd212 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| uv run prepare_ljspeech.py --input_path saspeech_automatic/metadata.csv --output_path saspeech_automatic/metadata1.csv | |
| """ | |
| import argparse | |
| import pandas as pd | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--input_path", type=str, required=True) | |
| parser.add_argument("--output_path", type=str, required=True) | |
| args = parser.parse_args() | |
| df = pd.read_csv(args.input_path, sep='\t', names=['file_id', 'text', 'phonemes']) | |
| df[['file_id', 'phonemes']].to_csv(args.output_path, sep='|', header=False, index=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment