界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

whisper-diarization

whisper-diarization

【效率与协作】Whisper Diarization. Transcribe audio with speaker identification and diarization. Triggers: transcription, speech to text, speaker diarization, multi-speaker, whisper

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: whisper-diarization description: "Whisper Diarization. Transcribe audio with speaker identification and diarization. Triggers: transcription, speech to text, speaker diarization, multi-speaker, whisper" allowed-tools: Bash(curl *), WebFetch

Whisper Diarization

Transcribe audio files with speaker diarization, identifying and labeling different speakers in the audio. Supports speaker grouping, translation, and vocabulary prompts for improved accuracy.

Quick Start

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
    }
  }'

Parameters

ParameterTypeDefaultDescription
filestring-An audio file (direct upload).
file_stringstring-Base64 encoded audio file.
file_urlstring-A direct audio file URL.
group_segmentsbooleantrueGroup segments of same speaker shorter apart than 2 seconds.
languagestringenLanguage of the spoken words as a language code. Leave empty to auto detect.
num_speakersinteger2Number of speakers. Leave empty to autodetect.
promptstring-Vocabulary: provide names, acronyms and loanwords in a list. Use punctuation for clarity.
translatebooleanfalseTranslate the speech into English.

Examples

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
    }
  }'

Related Models

Documentation

我的收藏