Skip to content

Commit

Permalink
Enhance transcription instructions and CLI parsing
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
johnnyhuy committed May 19, 2024
1 parent 2723d67 commit 1c91b64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ This has been tested with macOS, your mileage may vary on other operating system
transcribe-me archive
```

5. (Optional) You can also transcribe only the audio files that have not been transcribed yet:

```bash
transcribe-me only
```

### Docker

You can also run the application using Docker:
Expand Down
6 changes: 5 additions & 1 deletion transcribe_me/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def parse_arguments():
parser.add_argument(
"command",
nargs="?",
choices=["install", "archive"],
choices=["install", "archive", "only"],
help="Install the configuration file or archive files.",
)
parser.add_argument(
Expand Down Expand Up @@ -40,6 +40,10 @@ def main():
config_manager.archive_files(args.input, args.output)
return

if args.command == "only":
transcription.process_audio_files(input_folder, output_folder, config)
return

config = config_manager.load_config()

input_folder = args.input
Expand Down

0 comments on commit 1c91b64

Please sign in to comment.