Trigger actual transcription
This commit is contained in:
parent
1483812c3b
commit
57803c0586
|
@ -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)
|
||||
result = self.model.transcribe(audio_file)
|
||||
return result['text']
|
||||
|
|
Loading…
Reference in New Issue