blob: 44e8b3f06b574723f578883da1e123745155ea0a (
plain)
1
2
3
4
5
6
7
8
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"])
|