This file contains hidden or 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
| #!/bin/zsh | |
| # Description: This script automates the process of transcribing the audio to text, and optionally | |
| # generating a YouTube description from the transcription. Transcription is done using Whisper.cpp. | |
| # It takes a video file as input and processes it to output a transcription text file. If a second optional | |
| # argument is provided (a filename containing a prompt), it further processes the transcription to generate | |
| # a YouTube description based on the provided prompt. | |
| # | |
| # Usage: | |
| # ./scribe.sh <video_file_name> [prompt_file_name] |