./models/download-ggml-model.sh tiny.en
cmake -B build
cmake --build build --config Release
- ./build/bin/quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
+ ./build/bin/whisper-quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0
release:
if: ${{ github.event.inputs.create_release == 'true' || github.event.inputs.pre_release_tag != '' || startsWith(github.ref, 'refs/tags/v') }}
if (WHISPER_SDL2)
# stream
- set(TARGET lsp)
+ set(TARGET whisper-lsp)
add_executable(${TARGET} lsp.cpp)
include(DefaultTargetOptions)
target_link_libraries(${TARGET} PRIVATE common json_cpp common-sdl whisper ${CMAKE_THREAD_LIBS_INIT})
+ install(TARGETS ${TARGET} RUNTIME)
endif ()
-set(TARGET quantize)
+set(TARGET whisper-quantize)
add_executable(${TARGET} quantize.cpp)
include(DefaultTargetOptions)
target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT})
+install(TARGETS ${TARGET} RUNTIME)
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+ install(TARGETS ${TARGET} RUNTIME)
if(WIN32)
# It requires Windows 8.1 or later for PrefetchVirtualMemory
-set(TARGET vad-speech-segments)
+set(TARGET whisper-vad-speech-segments)
add_executable(${TARGET} speech.cpp)
include(DefaultTargetOptions)
)
set_target_properties(${TARGET} PROPERTIES FOLDER "libs")
+ install(TARGETS ${TARGET} LIBRARY)
endif()
if (WHISPER_OPENVINO)