Skip to content

nepalprabin/oswrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages