Update asr_diarization/pipeline.py
Browse files
asr_diarization/pipeline.py
CHANGED
|
@@ -185,7 +185,12 @@ class ASR_Diarization:
|
|
| 185 |
for t, _, spk in diarization.itertracks(yield_label=True)
|
| 186 |
]
|
| 187 |
|
| 188 |
-
print(f"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
|
| 190 |
# Step 2: Calculate SNR for adaptive processing
|
| 191 |
snr = self.calculate_snr(audio_path)
|
|
|
|
| 185 |
for t, _, spk in diarization.itertracks(yield_label=True)
|
| 186 |
]
|
| 187 |
|
| 188 |
+
print(f"DEBUG DIARIZATION:")
|
| 189 |
+
print(f" Raw diarization segments: {len(diar_segments)}")
|
| 190 |
+
|
| 191 |
+
# Count unique speakers BEFORE any processing
|
| 192 |
+
raw_speakers = list(set([seg['speaker'] for seg in diar_segments]))
|
| 193 |
+
print(f" Raw unique speakers: {len(raw_speakers)} - {raw_speakers}")
|
| 194 |
|
| 195 |
# Step 2: Calculate SNR for adaptive processing
|
| 196 |
snr = self.calculate_snr(audio_path)
|