VideoDubber / transcribe.py
Suparnpreet's picture
Upload 7 files
2c1eba3 verified
raw
history blame
256 Bytes
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"]