diff --git a/notescriber/transcriber.py b/notescriber/transcriber.py index fb071be..ec3529a 100644 --- a/notescriber/transcriber.py +++ b/notescriber/transcriber.py @@ -1,6 +1,13 @@ +import whisper + class Transcriber: + + model = None + def __init__(self): - pass + self.model = whisper.load_model("base") def execute(self, audio_file): - print("Transcribing audio file: " + audio_file) \ No newline at end of file + print("Transcribing audio file: " + audio_file) + result = self.model.transcribe(audio_file) + return result['text']