Skip to main content

CLI tool for processing audio files

Project description

oswrite

CLI tool for running audio through the OpenAI whisper API

See oswrite: a CLI tool for running audio through the OpenAI whisper API.

PS: It is inspired by Simon Willamson's osread

Installation

Install this tool using pip:

pip install oswrite

Usage

oswrite --audio_file "test.mp3"

You will need an OpenAI API key. You can set that as an environment variable:

export OPENAI_API_KEY="..."

Or you can pass it using --token:

oswrite --token "..." --audio_file "test.mp3"

Saving transcribed result

If you want to save transcribed result to a file, additionally you can add output parameter with a filename.

For text file:

oswrite --token "..." --audio_file "test.mp3 --output "test.txt"

For docx file:

oswrite --token "..." --audio_file "test.mp3 --output "test.docx"

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

oswrite-0.0.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

oswrite-0.0.2-py3-none-any.whl (3.0 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