diff options
| author | Gus Power <gus@infinitesidequests.com> | 2025-05-25 09:15:54 +0100 |
|---|---|---|
| committer | Gus Power <gus@infinitesidequests.com> | 2025-05-25 09:15:54 +0100 |
| commit | 60e78e2057e2197bb2b13d162c7cab26b0374dcb (patch) | |
| tree | 908cf0558bd239b9d6a5d5c3f7ecb47243b56e0f /0001_whisper_transcribe.py | |
a few snippets
Diffstat (limited to '0001_whisper_transcribe.py')
| -rw-r--r-- | 0001_whisper_transcribe.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/0001_whisper_transcribe.py b/0001_whisper_transcribe.py new file mode 100644 index 0000000..44e8b3f --- /dev/null +++ b/0001_whisper_transcribe.py @@ -0,0 +1,9 @@ +import whisper +import sys + +input_file = sys.argv[1] +model = whisper.load_model("small") # You can also try "base", "small", "medium" +result = model.transcribe(input_file, verbose=True) +print(input_file) +print(result["text"]) + |
