File size: 500 Bytes
a361db3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import soundfile as sf

# Check original files
files = ['data/mixture.wav', 'data/example_mixture.wav']

for fname in files:
    try:
        audio, sr = sf.read(fname)
        print(f"\n{fname}:")
        print(f"  Shape: {audio.shape}")
        print(f"  Channels: {audio.shape[1] if audio.ndim > 1 else 1}")
        print(f"  Sample rate: {sr} Hz")
        print(f"  Duration: {len(audio) if audio.ndim == 1 else audio.shape[0]} samples")
    except Exception as e:
        print(f"  Error: {e}")