llm-whisper-api


Namellm-whisper-api JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryRun transcriptions using the OpenAI Whisper API
upload_time2024-10-27 15:52:21
maintainerNone
docs_urlNone
authorSimon Willison
requires_python>=3.9
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # llm-whisper-api

[![PyPI](https://img.shields.io/pypi/v/llm-whisper-api.svg)](https://pypi.org/project/llm-whisper-api/)
[![Changelog](https://img.shields.io/github/v/release/simonw/llm-whisper-api?include_prereleases&label=changelog)](https://github.com/simonw/llm-whisper-api/releases)
[![Tests](https://github.com/simonw/llm-whisper-api/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-whisper-api/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-whisper-api/blob/main/LICENSE)

Run transcriptions using the OpenAI Whisper API

## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-whisper-api
```
## Usage

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

```bash
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:
```bash
llm keys set openai
# Paste key here
```
You can also pass an explicit API key using `--key` like this:

```bash
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:
```bash
cd llm-whisper-api
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
llm install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llm-whisper-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Simon Willison",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/24/1c/7ba47206ca4e718ef81c40ef96c67dc7578db3a75893e56505859426e64a/llm_whisper_api-0.1.1.tar.gz",
    "platform": null,
    "description": "# llm-whisper-api\n\n[![PyPI](https://img.shields.io/pypi/v/llm-whisper-api.svg)](https://pypi.org/project/llm-whisper-api/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/llm-whisper-api?include_prereleases&label=changelog)](https://github.com/simonw/llm-whisper-api/releases)\n[![Tests](https://github.com/simonw/llm-whisper-api/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/llm-whisper-api/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm-whisper-api/blob/main/LICENSE)\n\nRun transcriptions using the OpenAI Whisper API\n\n## Installation\n\nInstall this plugin in the same environment as [LLM](https://llm.datasette.io/).\n```bash\nllm install llm-whisper-api\n```\n## Usage\n\nThe plugin adds a new command, `llm whisper-api`. Use it like this:\n\n```bash\nllm whisper-api audio.mp3\n```\nThe transcribed audio will be output directly to standard output as plain text.\n\nThe plugin will use the OpenAI API key you have already configured using:\n```bash\nllm keys set openai\n# Paste key here\n```\nYou can also pass an explicit API key using `--key` like this:\n\n```bash\nllm whisper-api audio.mp3 --key $OPENAI_API_KEY\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd llm-whisper-api\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\nllm install -e '.[test]'\n```\nTo run the tests:\n```bash\npython -m pytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Run transcriptions using the OpenAI Whisper API",
    "version": "0.1.1",
    "project_urls": {
        "CI": "https://github.com/simonw/llm-whisper-api/actions",
        "Changelog": "https://github.com/simonw/llm-whisper-api/releases",
        "Homepage": "https://github.com/simonw/llm-whisper-api",
        "Issues": "https://github.com/simonw/llm-whisper-api/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd500135f23d7c839ba67b6356865994136380ee894392aa6fa0d6b486422ff2",
                "md5": "67361a4fb9e447d8d90a6cf377a403a6",
                "sha256": "3b7bae8ec9257e9d4a51e1614b3b31ab2151dd93f7aebb9fbf5dcec28defa437"
            },
            "downloads": -1,
            "filename": "llm_whisper_api-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "67361a4fb9e447d8d90a6cf377a403a6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7219,
            "upload_time": "2024-10-27T15:52:20",
            "upload_time_iso_8601": "2024-10-27T15:52:20.485769Z",
            "url": "https://files.pythonhosted.org/packages/bd/50/0135f23d7c839ba67b6356865994136380ee894392aa6fa0d6b486422ff2/llm_whisper_api-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "241c7ba47206ca4e718ef81c40ef96c67dc7578db3a75893e56505859426e64a",
                "md5": "048814828d11870ac93f7cfa3523db91",
                "sha256": "97c4f915b6b7fd737a5dfe1da2d4167d2f505bc7ac384f650568595bf0754245"
            },
            "downloads": -1,
            "filename": "llm_whisper_api-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "048814828d11870ac93f7cfa3523db91",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7080,
            "upload_time": "2024-10-27T15:52:21",
            "upload_time_iso_8601": "2024-10-27T15:52:21.605422Z",
            "url": "https://files.pythonhosted.org/packages/24/1c/7ba47206ca4e718ef81c40ef96c67dc7578db3a75893e56505859426e64a/llm_whisper_api-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-27 15:52:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonw",
    "github_project": "llm-whisper-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "llm-whisper-api"
}
        
Elapsed time: 0.33124s