From 57803c0586da0137a4555fac266990c9c4b9dc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Fr=C4=85tczak?= Date: Tue, 13 Feb 2024 00:25:05 +0100 Subject: [PATCH] Trigger actual transcription --- notescriber/transcriber.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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']