计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
whisper-diarization【效率与协作】Whisper Diarization. Transcribe audio with speaker identification and diarization. Triggers: transcription, speech to text, speaker diarization, multi-speaker, whisper
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Transcribe audio files with speaker diarization, identifying and labeling different speakers in the audio. Supports speaker grouping, translation, and vocabulary prompts for improved accuracy.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "whisper-diarization",
"version": "0.0.1",
"input": {
"file_url": "https://example.com/interview.mp3",
"num_speakers": 2,
"language": "en",
"group_segments": true
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| file | string | - | An audio file (direct upload). |
| file_string | string | - | Base64 encoded audio file. |
| file_url | string | - | A direct audio file URL. |
| group_segments | boolean | true | Group segments of same speaker shorter apart than 2 seconds. |
| language | string | en | Language of the spoken words as a language code. Leave empty to auto detect. |
| num_speakers | integer | 2 | Number of speakers. Leave empty to autodetect. |
| prompt | string | - | Vocabulary: provide names, acronyms and loanwords in a list. Use punctuation for clarity. |
| translate | boolean | false | Translate the speech into English. |
Basic diarization:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "whisper-diarization",
"version": "0.0.1",
"input": {
"file_url": "https://example.com/podcast-episode.mp3"
}
}'
Multi-speaker meeting with vocabulary hints:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "whisper-diarization",
"version": "0.0.1",
"input": {
"file_url": "https://example.com/board-meeting.mp3",
"num_speakers": 5,
"language": "en",
"prompt": "Acme Corp, Q4 earnings, EBITDA, revenue forecast",
"group_segments": true
}
}'
Foreign language with translation:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "whisper-diarization",
"version": "0.0.1",
"input": {
"file_url": "https://example.com/spanish-debate.mp3",
"language": "es",
"num_speakers": 3,
"translate": true
}
}'