Designing an Effective Metric Learning Pipeline for Speaker Diarization