generated from obsproject/obs-plugintemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add filter-replace-utils for serializing and deserializing (#…
…170) - Add filter-replace-utils for serializing and deserializing in the src/ui directory. - Update CMakeLists.txt to include the new files in the target_sources. - Update FindLibAvObs.cmake to read buildspec.json from the CMAKE_SOURCE_DIR. - Update model-infos.cpp to include two new Whisper models. - Add a new CMakeLists.txt file in the src/tests directory. - Add localvocal-offline-test.cpp in the src/tests directory. - Add clear_current_caption function in localvocal-offline-test.cpp.
- Loading branch information
Showing
5 changed files
with
61 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
set(TEST_EXEC_NAME ${CMAKE_PROJECT_NAME}-tests) | ||
|
||
add_executable(${TEST_EXEC_NAME}) | ||
|
||
target_sources( | ||
${TEST_EXEC_NAME} | ||
PRIVATE ${CMAKE_SOURCE_DIR}/src/tests/localvocal-offline-test.cpp | ||
${CMAKE_SOURCE_DIR}/src/tests/audio-file-utils.cpp | ||
${CMAKE_SOURCE_DIR}/src/transcription-utils.cpp | ||
${CMAKE_SOURCE_DIR}/src/model-utils/model-infos.cpp | ||
${CMAKE_SOURCE_DIR}/src/model-utils/model-find-utils.cpp | ||
${CMAKE_SOURCE_DIR}/src/whisper-utils/whisper-processing.cpp | ||
${CMAKE_SOURCE_DIR}/src/whisper-utils/whisper-utils.cpp | ||
${CMAKE_SOURCE_DIR}/src/whisper-utils/silero-vad-onnx.cpp | ||
${CMAKE_SOURCE_DIR}/src/whisper-utils/token-buffer-thread.cpp | ||
${CMAKE_SOURCE_DIR}/src/whisper-utils/vad-processing.cpp | ||
${CMAKE_SOURCE_DIR}/src/translation/language_codes.cpp | ||
${CMAKE_SOURCE_DIR}/src/translation/translation.cpp | ||
${CMAKE_SOURCE_DIR}/src/ui/filter-replace-utils.cpp | ||
${CMAKE_SOURCE_DIR}/src/translation/translation-language-utils.cpp) | ||
|
||
include(${CMAKE_SOURCE_DIR}/cmake/FindLibAvObs.cmake) | ||
find_libav(${TEST_EXEC_NAME}) | ||
|
||
target_link_libraries(${TEST_EXEC_NAME} PRIVATE ct2 sentencepiece Whispercpp Ort OBS::libobs ICU) | ||
target_include_directories(${TEST_EXEC_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/src) | ||
|
||
# install the tests to the release/test directory | ||
install(TARGETS ${TEST_EXEC_NAME} DESTINATION test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters