mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2025-09-15 13:28:35 +08:00
Compare commits
4 Commits
83887ebda9
...
2f4cd3e711
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f4cd3e711 | ||
|
|
bb0e1fc60f | ||
|
|
9bfc535130 | ||
|
|
2e1fb518d1 |
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -241,7 +241,8 @@ jobs:
|
||||
- name: Dependencies
|
||||
run: |
|
||||
brew update
|
||||
brew install sdl2 cmake
|
||||
cmake --version
|
||||
brew install sdl2
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
||||
@ -85,6 +85,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
option(WHISPER_FFMPEG "whisper: support building and linking with ffmpeg libs (avcodec, swresample, ...)" OFF)
|
||||
endif()
|
||||
|
||||
option(GGML_VULKAN "ggml: support for Vulkan" OFF)
|
||||
option(WHISPER_COREML "whisper: enable Core ML framework" OFF)
|
||||
option(WHISPER_COREML_ALLOW_FALLBACK "whisper: allow non-CoreML fallback" OFF)
|
||||
option(WHISPER_OPENVINO "whisper: support for OpenVINO" OFF)
|
||||
|
||||
@ -339,6 +339,11 @@ Now build `whisper.cpp` with Vulkan support:
|
||||
cmake -B build -DGGML_VULKAN=1
|
||||
cmake --build build -j --config Release
|
||||
```
|
||||
with cmake
|
||||
```
|
||||
cmake -B build -DGGML_VULKAN=1
|
||||
cmake --build build -j --config Release
|
||||
```
|
||||
|
||||
## BLAS CPU support via OpenBLAS
|
||||
|
||||
|
||||
@ -93,6 +93,9 @@ set(VAD_TEST test-vad)
|
||||
add_executable(${VAD_TEST} ${VAD_TEST}.cpp)
|
||||
target_include_directories(${VAD_TEST} PRIVATE ../include ../ggml/include ../examples)
|
||||
target_link_libraries(${VAD_TEST} PRIVATE common)
|
||||
target_compile_definitions(${VAD_TEST} PRIVATE
|
||||
VAD_MODEL_PATH="${PROJECT_SOURCE_DIR}/models/for-tests-silero-v5.1.2-ggml.bin"
|
||||
SAMPLE_PATH="${PROJECT_SOURCE_DIR}/samples/jfk.wav")
|
||||
add_test(NAME ${VAD_TEST} COMMAND ${VAD_TEST})
|
||||
set_tests_properties(${VAD_TEST} PROPERTIES LABELS "unit")
|
||||
|
||||
@ -101,5 +104,9 @@ set(VAD_TEST test-vad-full)
|
||||
add_executable(${VAD_TEST} ${VAD_TEST}.cpp)
|
||||
target_include_directories(${VAD_TEST} PRIVATE ../include ../ggml/include ../examples)
|
||||
target_link_libraries(${VAD_TEST} PRIVATE common)
|
||||
target_compile_definitions(${VAD_TEST} PRIVATE
|
||||
WHISPER_MODEL_PATH="${PROJECT_SOURCE_DIR}/models/ggml-base.en.bin"
|
||||
VAD_MODEL_PATH="${PROJECT_SOURCE_DIR}/models/for-tests-silero-v5.1.2-ggml.bin"
|
||||
SAMPLE_PATH="${PROJECT_SOURCE_DIR}/samples/jfk.wav")
|
||||
add_test(NAME ${VAD_TEST} COMMAND ${VAD_TEST})
|
||||
set_tests_properties(${VAD_TARGET} PROPERTIES LABELS "base;en")
|
||||
set_tests_properties(${VAD_TEST} PROPERTIES LABELS "base;en")
|
||||
|
||||
@ -13,9 +13,9 @@
|
||||
#include <cassert>
|
||||
|
||||
int main() {
|
||||
std::string whisper_model_path = "../../models/ggml-base.en.bin";
|
||||
std::string vad_model_path = "../../models/for-tests-silero-v5.1.2-ggml.bin";
|
||||
std::string sample_path = "../../samples/jfk.wav";
|
||||
std::string whisper_model_path = WHISPER_MODEL_PATH;
|
||||
std::string vad_model_path = VAD_MODEL_PATH;
|
||||
std::string sample_path = SAMPLE_PATH;
|
||||
|
||||
// Load the sample audio file
|
||||
std::vector<float> pcmf32;
|
||||
|
||||
@ -48,8 +48,8 @@ struct whisper_vad_segments * test_detect_timestamps(
|
||||
}
|
||||
|
||||
int main() {
|
||||
std::string vad_model_path = "../../models/for-tests-silero-v5.1.2-ggml.bin";
|
||||
std::string sample_path = "../../samples/jfk.wav";
|
||||
std::string vad_model_path = VAD_MODEL_PATH;
|
||||
std::string sample_path = SAMPLE_PATH;
|
||||
|
||||
// Load the sample audio file
|
||||
std::vector<float> pcmf32;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user