Tomcatom/speaker-diarization-api
0
Speaker Diarization API
Simple REST API for speaker diarization using pyannote.audio 3.1.
API Usage
curl -X POST "https://tomcatom-speaker-diarization-api.hf.space/diarize" \
-F "file=@audio.wav" \
-F "max_speakers=6" \
-F "min_speakers=1"Response Format
{
"num_speakers": 3,
"speakers": ["SPEAKER_00", "SPEAKER_01", "SPEAKER_02"],
"segments": [
{"speaker": "SPEAKER_00", "start": 0.0, "end": 5.2, "duration": 5.2},
{"speaker": "SPEAKER_01", "start": 5.5, "end": 12.1, "duration": 6.6}
],
"total_segments": 45
}Endpoints
GET /- Web interfacePOST /diarize- Diarize audio fileGET /health- Health check
