mirror of
https://github.com/mudler/LocalAI.git
synced 2026-07-30 09:57:57 -04:00
chore: ⬆️ Update CrispStrobe/CrispASR to 5fca47ecf05cd68bb0075f8a00fe04da06f208d0 (#10963)
* ⬆️ Update CrispStrobe/CrispASR Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(crispasr): initialize only declared submodules The latest upstream commit contains an undeclared CrispASR gitlink that makes a blanket recursive submodule update fail. Limit initialization to the two submodules used by the backend build. Assisted-by: Codex:gpt-5 [Codex] * fix(crispasr): resolve vendored WebRTC from project root CrispASR now builds a vendored WebRTC VAD, but its include paths assume CrispASR is the top-level CMake project. Extend the existing embedded-project rewrite to the shared third_party root. Assisted-by: Codex:gpt-5 [Codex] --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com> Co-authored-by: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
864c84f48b
commit
2f7b292143
@@ -8,7 +8,7 @@ JOBS?=$(shell nproc --ignore=1)
|
||||
|
||||
# CrispASR version (release tag)
|
||||
CRISPASR_REPO?=https://github.com/CrispStrobe/CrispASR
|
||||
CRISPASR_VERSION?=1e6f3ad962dc46d86422c3baa4f3c1110d037e4d
|
||||
CRISPASR_VERSION?=5fca47ecf05cd68bb0075f8a00fe04da06f208d0
|
||||
SO_TARGET?=libgocrispasr.so
|
||||
|
||||
CMAKE_ARGS+=-DBUILD_SHARED_LIBS=OFF
|
||||
@@ -60,10 +60,11 @@ sources/CrispASR:
|
||||
git remote add origin $(CRISPASR_REPO) && \
|
||||
git fetch origin && \
|
||||
git checkout $(CRISPASR_VERSION) && \
|
||||
git submodule update --init --recursive --depth 1 --single-branch
|
||||
git submodule update --init --recursive --depth 1 --single-branch -- \
|
||||
ggml third_party/c2pa-audio
|
||||
# CrispASR's src/CMakeLists.txt locates its vendored llama.cpp
|
||||
# (crispasr-llama-core, used by the chat C-ABI) and the c2pa-audio
|
||||
# submodule (crispasr_c2pa_native, the pure-C++ C2PA signer) via
|
||||
# (crispasr-llama-core, used by the chat C-ABI), c2pa-audio submodule
|
||||
# (crispasr_c2pa_native, the pure-C++ C2PA signer), and WebRTC VAD via
|
||||
# ${CMAKE_SOURCE_DIR}, which assumes CrispASR is the top-level CMake
|
||||
# project. We add_subdirectory it, so ${CMAKE_SOURCE_DIR} is THIS backend
|
||||
# dir and those sources aren't found. Rewrite to ${PROJECT_SOURCE_DIR}
|
||||
@@ -72,6 +73,7 @@ sources/CrispASR:
|
||||
sed -i.bak \
|
||||
-e 's#\$${CMAKE_SOURCE_DIR}/examples/talk-llama#\$${PROJECT_SOURCE_DIR}/examples/talk-llama#' \
|
||||
-e 's#\$${CMAKE_SOURCE_DIR}/third_party/c2pa-audio#\$${PROJECT_SOURCE_DIR}/third_party/c2pa-audio#' \
|
||||
-e 's#\$${CMAKE_SOURCE_DIR}/third_party#\$${PROJECT_SOURCE_DIR}/third_party#' \
|
||||
sources/CrispASR/src/CMakeLists.txt && rm -f sources/CrispASR/src/CMakeLists.txt.bak
|
||||
|
||||
# Detect OS
|
||||
|
||||
Reference in New Issue
Block a user