Skip to content

Commit 1c91b64

Browse files
committed
Enhance transcription instructions and CLI parsing
- Add instructions for transcribing only audio files that have not been transcribed in README.md - Update Docker instructions for the application in README.md - Add `"only"` as a choice in the argument parser in cli.py - Add conditional to process audio files if the command is "only" in cli.py
1 parent 2723d67 commit 1c91b64

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ This has been tested with macOS, your mileage may vary on other operating system
8787
transcribe-me archive
8888
```
8989

90+
5. (Optional) You can also transcribe only the audio files that have not been transcribed yet:
91+
92+
```bash
93+
transcribe-me only
94+
```
95+
9096
### Docker
9197

9298
You can also run the application using Docker:

transcribe_me/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def parse_arguments():
1111
parser.add_argument(
1212
"command",
1313
nargs="?",
14-
choices=["install", "archive"],
14+
choices=["install", "archive", "only"],
1515
help="Install the configuration file or archive files.",
1616
)
1717
parser.add_argument(
@@ -40,6 +40,10 @@ def main():
4040
config_manager.archive_files(args.input, args.output)
4141
return
4242

43+
if args.command == "only":
44+
transcription.process_audio_files(input_folder, output_folder, config)
45+
return
46+
4347
config = config_manager.load_config()
4448

4549
input_folder = args.input

0 commit comments

Comments
 (0)