| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | import os
|
| |
|
| | train_file = "/workspace/trainTTS/data/data_train/train.txt"
|
| | root_path = "/workspace/trainTTS/data/wavs_new"
|
| |
|
| |
|
| | print(f"📁 Root path exists: {os.path.exists(root_path)}")
|
| | print(f"📄 Train file exists: {os.path.exists(train_file)}")
|
| |
|
| |
|
| | if os.path.exists(root_path):
|
| | actual_files = [f for f in os.listdir(root_path) if f.endswith('.wav')]
|
| | print(f"🎵 Actual .wav files in folder: {len(actual_files)}")
|
| | print(f" First 5: {actual_files[:5]}")
|
| | else:
|
| | print("❌ Root path does NOT exist!")
|
| | exit()
|
| |
|
| |
|
| | with open(train_file, 'r', encoding='utf-8') as f:
|
| | lines = f.readlines()
|
| |
|
| | print(f"\n📋 Train.txt has {len(lines)} lines")
|
| | print(f" First 3 lines:")
|
| | for i, line in enumerate(lines[:3]):
|
| | print(f" {i+1}. {line.strip()[:100]}...")
|
| |
|
| |
|
| | first_line = lines[0].strip()
|
| | parts = first_line.split('|')
|
| | expected_filename = parts[0]
|
| |
|
| | print(f"\n🔍 Expected filename from train.txt: {expected_filename}")
|
| | print(f" Full path would be: {os.path.join(root_path, expected_filename)}")
|
| | print(f" File exists: {os.path.exists(os.path.join(root_path, expected_filename))}")
|
| |
|
| |
|
| | print(f"\n🔎 Searching for similar filenames...")
|
| | for actual in actual_files[:10]:
|
| | if expected_filename in actual or actual in expected_filename:
|
| | print(f" Match candidate: {actual}") |