Skip to content

Commit

Permalink
cmake: add ESPEAK_NG_VERSION
Browse files Browse the repository at this point in the history
this lets to specify a custom espeak-ng version

See also: mudler/LocalAI#1356
  • Loading branch information
mudler committed Nov 28, 2023
1 parent fccd4f3 commit f31175d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ endif()

if(NOT DEFINED ESPEAK_NG_DIR)
set(ESPEAK_NG_DIR "${CMAKE_CURRENT_BINARY_DIR}/ei")

if(NOT DEFINED ESPEAK_NG_VERSION)
set(ESPEAK_NG_VERSION "refs/heads/master")
endif()
include(ExternalProject)
ExternalProject_Add(
espeak_ng_external
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/e"
URL "https://github.com/rhasspy/espeak-ng/archive/refs/heads/master.zip"
URL "https://github.com/rhasspy/espeak-ng/archive/${ESPEAK_NG_VERSION}.zip"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${ESPEAK_NG_DIR}
CMAKE_ARGS -DUSE_ASYNC:BOOL=OFF
CMAKE_ARGS -DBUILD_SHARED_LIBS:BOOL=ON
Expand Down

0 comments on commit f31175d

Please sign in to comment.