Communityコーディング&開発github.com

steipete/openai-whisper-api

curl 経由で OpenAI Audio Transcriptions API を利用 (gpt-4o-transcribe, mini, diarize, または whisper-1)。

openai-whisper-api とは?

このスキルは、OpenAI の音声文字起こし API に curl で直接アクセスするためのツールです。gpt-4o-transcribe、gpt-4o-mini-transcribe(発話者分離対応)、whisper-1 などのモデルをサポートし、ファイルパスと言語を指定するだけで簡単に文字起こしを実行できます。開発者や AI エージェントが手軽に音声データをテキスト化したい場面、特に Claude Code や Cursor などの CLI ベースの環境で利用するのに適しています。仕組みとしては、OpenAI API キーを環境変数に設定し、curl コマンドでマルチパートフォームデータを送信するだけなので、追加の SDK やライブラリは不要です。レスポンスは JSON 形式で返り、テキスト部分を抽出することで文字起こし結果を取得できます。

対応~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/steipete/clawdis/tree/main/skills/openai-whisper-api

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

openai-whisper-api は何をしますか?

curl 経由で OpenAI Audio Transcriptions API を利用 (gpt-4o-transcribe, mini, diarize, または whisper-1)。

概要

このスキルは、OpenAI の音声文字起こし API を curl コマンドで直接呼び出します。以下のモデルをサポートします:

  • gpt-4o-transcribe
  • gpt-4o-mini-transcribe (発話者分離対応)
  • whisper-1

前提条件

  • OPENAI_API_KEY 環境変数に OpenAI API キーが設定されていること
  • curl がインストールされていること

使い方

基本的な文字起こし

curl https://api.openai.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -F "file=@/path/to/audio.mp3" \
  -F "model=gpt-4o-mini-transcribe" \
  -F "language=ja"

発話者分離 (Diarization) を有効にする

curl https://api.openai.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -F "file=@/path/to/audio.mp3" \
  -F "model=gpt-4o-mini-transcribe" \
  -F "language=ja" \
  -F "diarize=true"

レスポンス例

{
  "text": "これは文字起こしされたテキストです。"
}

注意事項

  • 対応音声形式: flac, m4a, mp3, mp4, mpeg, mpga, oga, ogg, wav, webm
  • ファイルサイズ上限: 25 MB
  • language パラメータには ISO 639-1 言語コードを指定します
  • 発話者分離は gpt-4o-mini-transcribe モデルでのみ利用可能です

参考文献

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

steipete/1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

steipete/apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

steipete/apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

steipete/bear-notes

Create, search, and manage Bear notes via grizzly CLI.

steipete/blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

steipete/blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

steipete/bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

steipete/camsnap

Capture frames or clips from RTSP/ONVIF cameras.

steipete/clawhub

Search, install, update, sync, or publish agent skills with the ClawHub CLI and registry.

steipete/coding-agent

Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.

steipete/discord

Discord message-tool ops: send/read/edit/delete, react, poll, pin, thread, search, presence, media/components.

steipete/eightctl

Control Eight Sleep pods (status, temperature, alarms, schedules).

steipete/gemini

Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing.

steipete/gh-issues

Fetch GitHub issues, select candidates, spawn background fix agents, open PRs, and optionally process PR review comments.

steipete/gifgrep

Search GIF providers with CLI/TUI, download results, and extract stills/sheets.

steipete/github

GitHub CLI for issues, PRs, CI/check logs, comments, reviews, releases, repos, and gh api queries.

steipete/gog

Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

steipete/goplaces

Query Google Places for text search, place details, resolve, reviews, or scriptable JSON via goplaces.

steipete/healthcheck

Audit/harden OpenClaw hosts: SSH, firewall, updates, exposure, backups, disk encryption, gateway security.

steipete/himalaya

Himalaya CLI for IMAP/SMTP mail: list, read, search, compose, reply, forward, copy, move, delete.

関連スキル