Run transcriptions using the OpenAI Whisper API
Project description
llm-whisper-api
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c4f915b6b7fd737a5dfe1da2d4167d2f505bc7ac384f650568595bf0754245 |
|
MD5 | 048814828d11870ac93f7cfa3523db91 |
|
BLAKE2b-256 | 241c7ba47206ca4e718ef81c40ef96c67dc7578db3a75893e56505859426e64a |
File details
Details for the file llm_whisper_api-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: llm_whisper_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7bae8ec9257e9d4a51e1614b3b31ab2151dd93f7aebb9fbf5dcec28defa437 |
|
MD5 | 67361a4fb9e447d8d90a6cf377a403a6 |
|
BLAKE2b-256 | bd500135f23d7c839ba67b6356865994136380ee894392aa6fa0d6b486422ff2 |