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 details)

Uploaded Source

Built Distribution

oswrite-0.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file oswrite-0.0.2.tar.gz.

File metadata

  • Download URL: oswrite-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for oswrite-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0d003a3b49ca40768002adc1296127d5d0bf18be1aa69f18ee3ae92a9854511f
MD5 fea0ff096928ff18f65f488d66369c55
BLAKE2b-256 a2bba556b9c99d95479811464b06928b57676a2e71eb34113380f1f7c6532fc4

See more details on using hashes here.

File details

Details for the file oswrite-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: oswrite-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for oswrite-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee1958e5c7c802730b20cc407614cec348ee0e91f64a4160e991c60d8fb025f4
MD5 aa8ae6d315334eb8c979a32a59b346bf
BLAKE2b-256 a7bb61c9aabc5aacfb68837c5b38f6eea6ce906bdb67328413b21af3c0ec7eb0

See more details on using hashes here.

Supported by

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