import whisper import numpy as np from scipy.io.wavfile import read import torch import whisper def transcibe(audio): model = whisper.load_model("base") result = model.transcribe(audio) print(result["text"]) return result["text"]