Agent Skillsopenai/skills › transcribe

transcribe

GitHub

提供音频转录技能,支持使用 OpenAI CLI 将音频转换为文本,可选说话人分离和已知说话人提示。适用于提取录音文本或标注会议采访中的说话人,包含环境配置、依赖安装及 CLI 使用示例。

skills/.curated/transcribe/SKILL.md openai/skills

Trigger Scenarios

用户请求转录音频文件内容 需要从语音记录中提取文本 要求对访谈或会议音频进行说话人分离标注

Install

npx skills add openai/skills --skill transcribe -g -y
More Options

Non-standard path

npx skills add https://github.com/openai/skills/tree/main/skills/.curated/transcribe -g -y

Use without installing

npx skills use openai/skills@transcribe

指定 Agent (Claude Code)

npx skills add openai/skills --skill transcribe -a claude-code -g -y

安装 repo 全部 skill

npx skills add openai/skills --all -g -y

预览 repo 内 skill

npx skills add openai/skills --list

SKILL.md

Frontmatter
{
    "name": "transcribe",
    "description": "Transcribe audio files to text with optional diarization and known-speaker hints. Use when a user asks to transcribe speech from audio\/video, extract text from recordings, or label speakers in interviews or meetings."
}

Audio Transcribe

Transcribe audio using OpenAI, with optional speaker diarization when requested. Prefer the bundled CLI for deterministic, repeatable runs.

Workflow

  1. Collect inputs: audio file path(s), desired response format (text/json/diarized_json), optional language hint, and any known speaker references.
  2. Verify OPENAI_API_KEY is set. If missing, ask the user to set it locally (do not ask them to paste the key).
  3. Run the bundled transcribe_diarize.py CLI with sensible defaults (fast text transcription).
  4. Validate the output: transcription quality, speaker labels, and segment boundaries; iterate with a single targeted change if needed.
  5. Save outputs under output/transcribe/ when working in this repo.

Decision rules

  • Default to gpt-4o-mini-transcribe with --response-format text for fast transcription.
  • If the user wants speaker labels or diarization, use --model gpt-4o-transcribe-diarize --response-format diarized_json.
  • If audio is longer than ~30 seconds, keep --chunking-strategy auto.
  • Prompting is not supported for gpt-4o-transcribe-diarize.

Output conventions

  • Use output/transcribe/<job-id>/ for evaluation runs.
  • Use --out-dir for multiple files to avoid overwriting.

Dependencies (install if missing)

Prefer uv for dependency management.

uv pip install openai

If uv is unavailable:

python3 -m pip install openai

Environment

  • OPENAI_API_KEY must be set for live API calls.
  • If the key is missing, instruct the user to create one in the OpenAI platform UI and export it in their shell.
  • Never ask the user to paste the full key in chat.

Skill path (set once)

export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export TRANSCRIBE_CLI="$CODEX_HOME/skills/transcribe/scripts/transcribe_diarize.py"

User-scoped skills install under $CODEX_HOME/skills (default: ~/.codex/skills).

CLI quick start

Single file (fast text default):

python3 "$TRANSCRIBE_CLI" \
  path/to/audio.wav \
  --out transcript.txt

Diarization with known speakers (up to 4):

python3 "$TRANSCRIBE_CLI" \
  meeting.m4a \
  --model gpt-4o-transcribe-diarize \
  --known-speaker "Alice=refs/alice.wav" \
  --known-speaker "Bob=refs/bob.wav" \
  --response-format diarized_json \
  --out-dir output/transcribe/meeting

Plain text output (explicit):

python3 "$TRANSCRIBE_CLI" \
  interview.mp3 \
  --response-format text \
  --out interview.txt

Reference map

  • references/api.md: supported formats, limits, response formats, and known-speaker notes.

Version History

  • 49f948f Current 2026-07-25 07:39

Same Skill Collection

skills/.curated/aspnet-core/SKILL.md
skills/.curated/chatgpt-apps/SKILL.md
skills/.curated/cli-creator/SKILL.md
skills/.curated/cloudflare-deploy/SKILL.md
skills/.curated/define-goal/SKILL.md
skills/.curated/figma-code-connect-components/SKILL.md
skills/.curated/figma-create-design-system-rules/SKILL.md
skills/.curated/figma-create-new-file/SKILL.md
skills/.curated/figma-generate-library/SKILL.md
skills/.curated/figma-implement-design/SKILL.md
skills/.curated/figma/SKILL.md
skills/.curated/gh-address-comments/SKILL.md
skills/.curated/gh-fix-ci/SKILL.md
skills/.curated/jupyter-notebook/SKILL.md
skills/.curated/linear/SKILL.md
skills/.curated/migrate-to-codex/SKILL.md
skills/.curated/netlify-deploy/SKILL.md
skills/.curated/notion-knowledge-capture/SKILL.md
skills/.curated/notion-meeting-intelligence/SKILL.md
skills/.curated/notion-research-documentation/SKILL.md
skills/.curated/notion-spec-to-implementation/SKILL.md
skills/.curated/openai-docs/SKILL.md
skills/.curated/pdf/SKILL.md
skills/.curated/playwright-interactive/SKILL.md
skills/.curated/playwright/SKILL.md
skills/.curated/render-deploy/SKILL.md
skills/.curated/screenshot/SKILL.md
skills/.curated/security-best-practices/SKILL.md
skills/.curated/security-threat-model/SKILL.md
skills/.curated/sentry/SKILL.md
skills/.curated/speech/SKILL.md
skills/.curated/vercel-deploy/SKILL.md
skills/.curated/yeet/SKILL.md
skills/.system/openai-docs/SKILL.md
skills/.system/plugin-creator/SKILL.md
skills/.system/skill-creator/SKILL.md
skills/.system/skill-installer/SKILL.md
skills/.curated/figma-generate-design/SKILL.md
skills/.curated/figma-use/SKILL.md
skills/.curated/hatch-pet/SKILL.md
skills/.curated/security-ownership-map/SKILL.md
skills/.curated/winui-app/SKILL.md
skills/.system/imagegen/SKILL.md

Metadata

Files
0
Version
49f948f
Hash
f530021d
Indexed
2026-07-25 07:39

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 21:31
浙ICP备14020137号-1 $Гость$