Skip to main content

openai-whisper-api-cli

Simple Python CLI wrapper for OpenAI Speech-to-Text.

Features

  • Transcribe local audio/video files with OpenAI Speech-to-Text
  • API key from --api-key or OPENAI_API_KEY
  • Print result to stdout (default)
  • Optionally write result to a file
  • Supports multiple response formats

Install (Recommended)

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install openai-whisper-api-cli

Verify:

owhisper --version

Upgrade:

pipx upgrade openai-whisper-api-cli

Install From Source

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Authentication

Set env var:

export OPENAI_API_KEY="sk-..."

Or pass key directly:

owhisper transcribe ./audio.mp3 --api-key "sk-..."

--api-key takes precedence over OPENAI_API_KEY.

Usage

Print transcription to stdout:

owhisper transcribe ./audio.mp3

Write transcription to file:

owhisper transcribe ./audio.mp3 --output-file ./transcript.txt

Use custom model and response format:

owhisper transcribe ./audio.mp3 \
  --model gpt-4o-transcribe \
  --response-format json \
  --language en

Supported models

  • gpt-4o-transcribe
  • gpt-4o-mini-transcribe
  • gpt-4o-transcribe-diarize
  • whisper-1

Model list source:

CI and Publishing

GitHub Actions workflows:

  • .github/workflows/ci.yml: runs tests on push/PR
  • .github/workflows/publish.yml: builds and publishes to PyPI on tag push (v*)

PyPI trusted publishing setup

  1. Create your project on PyPI: openai-whisper-api-cli.
  2. In PyPI project settings, add a Trusted Publisher:
    • Owner: your GitHub org/user
    • Repository: openai-whisper-api-cli
    • Workflow: publish.yml
    • Environment: pypi
  3. In GitHub repo settings, ensure environment pypi exists (optional protection rules).

Release

python -m pytest
python -m build
python -m twine check dist/*
git tag v0.1.0
git push origin v0.1.0

Pushing the tag triggers automated publish.

Local manual publish (optional)

python -m build
python -m twine upload dist/*

License

MIT (see LICENSE).

Metadata

Release files for openai-whisper-api-cli 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openai-whisper-api-cli 0.1.1
File Size Uploaded Provenance Actions
openai_whisper_api_cli-0.1.1.tar.gz 5.5 kB With provenance Details for openai_whisper_api_cli-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openai-whisper-api-cli 0.1.1
File Interpreter ABI Platform Actions
openai_whisper_api_cli-0.1.1-py3-none-any.whl Python 3 none any Details for openai_whisper_api_cli-0.1.1-py3-none-any.whl

Total release size: 10.7 kB

Release files / openai_whisper_api_cli-0.1.1.tar.gz

Download URL openai_whisper_api_cli-0.1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2def269dfcdf87dd7fcd26090d938c97071abfc3f194e2b4ee4d4d22f686a575
BLAKE2b-256 checksum
How to use checksums
0efc687bc0d04a54ce72dea64ecbcc038e33917174416c3d0b0beef7f79fcdb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.

Transparency log

Release files / openai_whisper_api_cli-0.1.1-py3-none-any.whl

Download URL openai_whisper_api_cli-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d460667a79adcf9574d5c43cc1d9d07b9ccc1b48132a1ceb89af09d0c29411ff
BLAKE2b-256 checksum
How to use checksums
31ead26684bc27c6b4ebfeef3696336f58992a7375bae10d6500ed7dd291122b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.

Transparency log

Security for openai-whisper-api-cli 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openai_whisper_api_cli-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page