Skip to main content

A command-line interface for transcribing and translating audio using OpenAI's Whisper API

Project description

Whisper CLI

Whisper CLI is a command-line interface for transcribing and translating audio using OpenAI's Whisper API. It also allows you to manage multiple OpenAI API keys as separate environments.

To install Whisper CLI, simply run:

pip install whisper-cli

Setup

To get started with Whisper CLI, you'll need to set your OpenAI API key. You can do this using the following command:

whisper key set <openai_api_key>

This will set the API key for the default environment. If you want to use a different API key, you can set up an alternative environment by running:

whisper key set <openai_api_key> --env <env_name>

To activate an alternative environment, run:

whisper env activate <env_name>

Usage

Whisper CLI supports two main functionalities: translation and transcription.

Translation

To translate an audio file, simply run:

whisper translate <file_name>

Transcription

To transcribe an audio file, run:

whisper transcribe <file_name>

Development

If you'd like to contribute to Whisper CLI, you'll need to set up a development environment with Python 3.10.9.

python=3.10.9

Happy transcribing and translating with Whisper CLI.

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

whisper_cli-0.0.5.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

whisper_cli-0.0.5-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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