Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CLI tool #321

Closed
wants to merge 2 commits into from
Closed

Implement CLI tool #321

wants to merge 2 commits into from

Conversation

ttimasdf
Copy link

@ttimasdf ttimasdf commented Jan 8, 2023

Currently, only transcribe sub-command is implemented.

# poetry run python cli.py --help
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  transcribe
  translate
# poetry run python cli.py transcribe --help
Usage: cli.py transcribe [OPTIONS]

Options:
  -t, --model_type [Whisper|Whisper.cpp|Hugging Face]
  -s, --model_size [tiny|base|small|medium|large]
  -I, --model_id TEXT
  -d, --device [cpu|cuda]
  -l, --language TEXT
  -w, --word_level_timing
  -i, --file_path PATH
  -F, --output_format [txt|srt|vtt]
  -J, --write_json
  --help                          Show this message and exit.

Command line example:

python cli.py transcribe -w -i ../test.mp3 -t whisper -s large

Resolve #265

TODO:

@chidiwilliams
Copy link
Owner

This looks great, thanks. I'll test this out today.

@codecov
Copy link

codecov bot commented Jan 9, 2023

Codecov Report

Merging #321 (138665e) into main (70ad8f9) will decrease coverage by 0.18%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #321      +/-   ##
==========================================
- Coverage   78.11%   77.93%   -0.19%     
==========================================
  Files           8        8              
  Lines        1595     1600       +5     
==========================================
+ Hits         1246     1247       +1     
- Misses        349      353       +4     
Flag Coverage Δ
Windows ?
macOS 77.93% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
buzz/transcriber.py 75.60% <100.00%> (+0.27%) ⬆️
buzz/gui.py 78.82% <0.00%> (-0.43%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ain-soph ain-soph mentioned this pull request Mar 3, 2023
@stale
Copy link

stale bot commented Apr 1, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 1, 2023
@stale stale bot closed this Apr 8, 2023
@chidiwilliams chidiwilliams mentioned this pull request Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

need cli tool
2 participants