Skip to main content

Run transcriptions using the OpenAI Whisper API

Project description

llm-whisper-api

PyPI Changelog Tests License

Run transcriptions using the OpenAI Whisper API

Installation

Install this plugin in the same environment as LLM.

llm install llm-whisper-api

Usage

The plugin adds a new command, llm whisper-api. Use it like this:

llm whisper-api audio.mp3

The transcribed audio will be output directly to standard output as plain text.

The plugin will use the OpenAI API key you have already configured using:

llm keys set openai
# Paste key here

You can also pass an explicit API key using --key like this:

llm whisper-api audio.mp3 --key $OPENAI_API_KEY

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-whisper-api
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_whisper_api-0.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

llm_whisper_api-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_whisper_api-0.1.1.tar.gz.

File metadata

  • Download URL: llm_whisper_api-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for llm_whisper_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 97c4f915b6b7fd737a5dfe1da2d4167d2f505bc7ac384f650568595bf0754245
MD5 048814828d11870ac93f7cfa3523db91
BLAKE2b-256 241c7ba47206ca4e718ef81c40ef96c67dc7578db3a75893e56505859426e64a

See more details on using hashes here.

File details

Details for the file llm_whisper_api-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_whisper_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b7bae8ec9257e9d4a51e1614b3b31ab2151dd93f7aebb9fbf5dcec28defa437
MD5 67361a4fb9e447d8d90a6cf377a403a6
BLAKE2b-256 bd500135f23d7c839ba67b6356865994136380ee894392aa6fa0d6b486422ff2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page