# Openai Whisper API

> Openai Whisper API is an Agent Skill for documents published in the Bitterbot-AI/bitterbot-desktop repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Transcribe audio via OpenAI Audio Transcriptions API (Whisper).

- Skill name: `openai-whisper-api`
- Category: [Documents](https://www.openparable.com/skill/documents/1)
- Source: https://github.com/Bitterbot-AI/bitterbot-desktop/blob/HEAD/skills/openai-whisper-api/SKILL.md
- Repository: Bitterbot-AI/bitterbot-desktop (2,424 GitHub stars when collected)

## SKILL.md

# OpenAI Whisper API (curl)

Transcribe an audio file via OpenAI’s `/v1/audio/transcriptions` endpoint.

## Quick start

```bash
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
```

Defaults:

- Model: `whisper-1`
- Output: `<input>.txt`

## Useful flags

```bash
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1 --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "Speaker names: Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
```

## API key

Set `OPENAI_API_KEY`, or configure it in `~/.bitterbot/bitterbot.json`:

```json5
{
  skills: {
    "openai-whisper-api": {
      apiKey: "OPENAI_KEY_HERE",
    },
  },
}
```

---

Source: https://www.openparable.com/skill/documents/openai-whisper-api (OpenParable). Cite the canonical URL above.
