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-keyorOPENAI_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-transcribegpt-4o-mini-transcribegpt-4o-transcribe-diarizewhisper-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
- Create your project on PyPI:
openai-whisper-api-cli. - In PyPI project settings, add a Trusted Publisher:
- Owner: your GitHub org/user
- Repository:
openai-whisper-api-cli - Workflow:
publish.yml - Environment:
pypi
- In GitHub repo settings, ensure environment
pypiexists (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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.