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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d003a3b49ca40768002adc1296127d5d0bf18be1aa69f18ee3ae92a9854511f
|
|
| MD5 |
fea0ff096928ff18f65f488d66369c55
|
|
| BLAKE2b-256 |
a2bba556b9c99d95479811464b06928b57676a2e71eb34113380f1f7c6532fc4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee1958e5c7c802730b20cc407614cec348ee0e91f64a4160e991c60d8fb025f4
|
|
| MD5 |
aa8ae6d315334eb8c979a32a59b346bf
|
|
| BLAKE2b-256 |
a7bb61c9aabc5aacfb68837c5b38f6eea6ce906bdb67328413b21af3c0ec7eb0
|