mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 14:45:46 +01:00
Upgrade whisper.cpp (#325)
This commit is contained in:
parent
97c9283b8b
commit
70ad8f9b1d
3 changed files with 5 additions and 2 deletions
3
Makefile
3
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue