Upgrade whisper.cpp (#325)

This commit is contained in:
Chidi Williams 2023-01-08 16:49:33 +00:00 committed by GitHub
commit 70ad8f9b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -54,6 +54,9 @@ ifeq ($(UNAME_S),Darwin)
ifeq (,$(findstring AVX1.0,$(AVX1_M)))
CMAKE_FLAGS += -DWHISPER_NO_AVX=ON
endif
ifeq (,$(findstring FMA,$(AVX1_M)))
CMAKE_FLAGS += -DWHISPER_NO_FMA=ON
endif
AVX2_M := $(shell sysctl machdep.cpu.leaf7_features)
ifeq (,$(findstring AVX2,$(AVX2_M)))
CMAKE_FLAGS += -DWHISPER_NO_AVX2=ON

View file

@ -536,7 +536,7 @@ def whisper_cpp_params(
class WhisperCpp:
def __init__(self, model: str) -> None:
self.ctx = whisper_cpp.whisper_init(model.encode('utf-8'))
self.ctx = whisper_cpp.whisper_init_from_file(model.encode('utf-8'))
def transcribe(self, audio: Union[np.ndarray, str], params: Any):
if isinstance(audio, str):

@ -1 +1 @@
Subproject commit 331c0bbddc112231b6e896166519e64831f42f9d
Subproject commit ff3e3793bcbbbfe1c451c9bc169925e44667a241