Update whispercpp.pyx
This commit is contained in:
parent
64008a7d64
commit
86fca83bcf
|
@ -100,7 +100,9 @@ cdef class Whisper:
|
|||
whisper_free(self.ctx)
|
||||
|
||||
def transcribe(self, filename=TEST_FILE):
|
||||
print("Loading data..")
|
||||
cdef audio_data data = load_audio(<bytes>filename)
|
||||
print("Transcribing..")
|
||||
return whisper_full(self.ctx, self.params, data.frames, data.n_frames)
|
||||
|
||||
def extract_text(self, int res):
|
||||
|
|
Loading…
Reference in New Issue
Block a user