From 6372fe15204df08df34b882deec895c4a6756f53 Mon Sep 17 00:00:00 2001 From: Pierre Guillot Date: Tue, 27 Aug 2024 09:31:56 +0200 Subject: [PATCH] Rename library ircamwhisper instead of whisper --- CMakeLists.txt | 10 +++++----- resource/ircamwhisper.cat | 1 + resource/whisper.cat | 1 - source/wvp.cpp | 2 +- test/whisper.ptldoc | 16 ++++++++-------- 5 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 resource/ircamwhisper.cat delete mode 100644 resource/whisper.cat diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d4d8c8..77b3bbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,8 +114,8 @@ ive_prepare_plugin_target(wvp) target_link_libraries(wvp PRIVATE whisper) target_compile_definitions(wvp PRIVATE WVP_PLUGIN_VERSION=${PROJECT_VERSION_MAJOR}) -add_custom_command(TARGET wvp POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/resource/whisper.cat "$,${CMAKE_CURRENT_BINARY_DIR}/Debug/whisper.cat,${CMAKE_CURRENT_BINARY_DIR}/Release/whisper.cat>") -set_target_properties(wvp PROPERTIES LIBRARY_OUTPUT_NAME whisper) +add_custom_command(TARGET wvp POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/resource/ircamwhisper.cat "$,${CMAKE_CURRENT_BINARY_DIR}/Debug/ircamwhisper.cat,${CMAKE_CURRENT_BINARY_DIR}/Release/ircamwhisper.cat>") +set_target_properties(wvp PROPERTIES LIBRARY_OUTPUT_NAME ircamwhisper) vpp_add_plugin(wvp) find_program(PARTIELS_EXE "Partiels" HINTS ${PARTIELS_EXE_HINT_PATH} NO_CACHE) @@ -160,13 +160,13 @@ endif() ### Install ### if(APPLE) install(TARGETS wvp RUNTIME LIBRARY DESTINATION "~/Library/Audio/Plug-Ins/Vamp/") - install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resource/whisper.cat DESTINATION "~/Library/Audio/Plug-Ins/Vamp/") + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resource/ircamwhisper.cat DESTINATION "~/Library/Audio/Plug-Ins/Vamp/") elseif(UNIX) install(TARGETS wvp RUNTIME LIBRARY DESTINATION "~/vamp/") - install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resource/whisper.cat DESTINATION "~/vamp/") + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resource/ircamwhisper.cat DESTINATION "~/vamp/") elseif(WIN32) install(TARGETS wvp RUNTIME DESTINATION "$ENV{PROGRAMFILES}/Vamp Plugins/" PERMISSIONS OWNER_WRITE) - install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resource/whisper.cat DESTINATION "$ENV{PROGRAMFILES}/Vamp Plugins/") + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resource/ircamwhisper.cat DESTINATION "$ENV{PROGRAMFILES}/Vamp Plugins/") endif() ### Testing ### diff --git a/resource/ircamwhisper.cat b/resource/ircamwhisper.cat new file mode 100644 index 0000000..3264d58 --- /dev/null +++ b/resource/ircamwhisper.cat @@ -0,0 +1 @@ +vamp:ircamwhisper:whisper::Speech To Text diff --git a/resource/whisper.cat b/resource/whisper.cat deleted file mode 100644 index 548bcd2..0000000 --- a/resource/whisper.cat +++ /dev/null @@ -1 +0,0 @@ -vamp:whisper:ircamwhisper::Speech To Text diff --git a/source/wvp.cpp b/source/wvp.cpp index acc7f23..545554c 100644 --- a/source/wvp.cpp +++ b/source/wvp.cpp @@ -213,7 +213,7 @@ bool Wvp::Plugin::initialise(size_t channels, size_t stepSize, size_t blockSize) std::string Wvp::Plugin::getIdentifier() const { - return "ircamwhisper"; + return "whisper"; } std::string Wvp::Plugin::getName() const diff --git a/test/whisper.ptldoc b/test/whisper.ptldoc index 7057a1b..b2d541c 100644 --- a/test/whisper.ptldoc +++ b/test/whisper.ptldoc @@ -1,6 +1,6 @@ - - + name="Group 1" height="595" colour="0" expanded="1" referenceid=""> + name="Group 2" height="170" colour="ff3c0066" expanded="0" referenceid=""> @@ -37,12 +37,12 @@ - @@ -73,7 +73,7 @@ minValue="0.0" maxValue="0.0" isQuantized="0" quantizeStep="0.0" sampleType="2" sampleRate="0.0" hasDuration="0"/> - + @@ -93,7 +93,7 @@