Documentation of dependencies, setup and usage in the README
This commit is contained in:
parent
601608791c
commit
a480fdcd34
1 changed files with 52 additions and 1 deletions
53
README.md
53
README.md
|
@ -1,2 +1,53 @@
|
||||||
# audio-summarize
|
# audio-summarize
|
||||||
An audio summarizer (ffmpeg, whisper.cpp and BART glued together)
|
|
||||||
|
An audio summarizer that glues together ffmpeg, whisper.cpp and BART.
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- Python 3 (tested: 3.12)
|
||||||
|
- ffmpeg
|
||||||
|
- git
|
||||||
|
- make & c/c++ compiler
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Create a virtual environment for python and activate it:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
```
|
||||||
|
|
||||||
|
Run setup.sh
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./setup.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
|
||||||
|
1. You need a whisper.cpp compatible model file (-> https://huggingface.co/ggerganov/whisper.cpp)
|
||||||
|
2. In your terminal, make shure you have your python venv activated
|
||||||
|
3. Run audio-summarize.py
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
audio-summarize.py -m filepath -i filepath -o filepath
|
||||||
|
[--summin n] [--summax n] [--segmax n]
|
||||||
|
|
||||||
|
options:
|
||||||
|
-h, --help show this help message and exit
|
||||||
|
--summin n The minimum lenght of a segment summary [10]
|
||||||
|
--summax n The maximum lenght of a segment summary [90]
|
||||||
|
--segmax n The maximum number of tokens per segment [375, max: 500]
|
||||||
|
-m filepath The path to a whisper.cpp-compatible model file
|
||||||
|
-i filepath The path to the media file
|
||||||
|
-o filepath Where to save the output text to
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./audio-summarize.py -m ./tmp/whisper_ggml-small.en-q5_1.bin -i ./tmp/test.webm -o ./tmp/output.txt
|
||||||
|
```
|
||||||
|
|
Reference in a new issue