-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add basic README file with install and usage instructions
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# WhisperSubs | ||
|
||
[![License](https://img.shields.io/github/license/andreabak/whispersubs)](https://github.com/andreabak/whispersubs/blob/main/LICENSE) | ||
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/andreabak/whispersubs/pre-commit?branch=main | ||
)](https://github.com/andreabak/whispersubs/actions) | ||
[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/) | ||
|
||
Generate subtitles for your video or audio files using the power of AI. | ||
|
||
## Installation | ||
|
||
Prerequisites: | ||
- git for cloning this repo | ||
- Python 3.8 or higher, with pip | ||
|
||
For faster results, it is recommended to use a GPU with CUDA support. | ||
|
||
```shell | ||
# Clone the repo and cd into it | ||
git clone https://github.com/andreabak/whispersubs.git | ||
cd whispersubs | ||
|
||
# Install the dependencies | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Usage | ||
WhisperSubs can be used from the command line. The basic usage requires an input file, which will be the source for the transcription. The output will be a subtitle file in the SRT format in the same directory as the input file. The language will be automatically detected. | ||
```shell | ||
python -m whispersubs <input_file> | ||
``` | ||
|
||
For a full list of options, run: | ||
```shell | ||
python -m whispersubs --help | ||
``` |