Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit c01a6df

Browse files
committed
refactor: remove audio
1 parent 95ec19a commit c01a6df

File tree

9 files changed

+2
-1359
lines changed

9 files changed

+2
-1359
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "cortex-cpp/whisper.cpp"]
2-
path = cortex-cpp/whisper.cpp
3-
url = https://github.com/ggerganov/whisper.cpp.git

cortex-cpp/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ endif()
5656

5757
add_compile_definitions(NITRO_VERSION="${NITRO_VERSION}")
5858

59-
add_subdirectory(whisper.cpp)
6059
add_subdirectory(test)
6160

6261
add_executable(${PROJECT_NAME} main.cc)
@@ -69,7 +68,7 @@ add_executable(${PROJECT_NAME} main.cc)
6968
# and comment out the following lines
7069

7170
find_package(Drogon CONFIG REQUIRED)
72-
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon whisper
71+
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon
7372
${CMAKE_THREAD_LIBS_INIT})
7473

7574
# ##############################################################################
@@ -87,7 +86,6 @@ endif()
8786

8887
aux_source_directory(controllers CTL_SRC)
8988
aux_source_directory(common COMMON_SRC)
90-
aux_source_directory(context CONTEXT_SRC)
9189
aux_source_directory(models MODEL_SRC)
9290
aux_source_directory(cortex-common CORTEX_COMMON)
9391
# aux_source_directory(filters FILTER_SRC) aux_source_directory(plugins
@@ -100,7 +98,7 @@ aux_source_directory(cortex-common CORTEX_COMMON)
10098

10199
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
102100
# ${CMAKE_CURRENT_SOURCE_DIR}/models)
103-
target_sources(${PROJECT_NAME} PRIVATE ${CTL_SRC} ${COMMON_SRC} ${CONTEXT_SRC})
101+
target_sources(${PROJECT_NAME} PRIVATE ${CTL_SRC} ${COMMON_SRC})
104102
# ${FILTER_SRC} ${PLUGIN_SRC} ${MODEL_SRC})
105103
# ##############################################################################
106104
# uncomment the following line for dynamically loading views set_property(TARGET

cortex-cpp/common/base.cc

Whitespace-only changes.

cortex-cpp/common/base.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,5 @@ class BaseEmbedding {
3737
const HttpRequestPtr& req,
3838
std::function<void(const HttpResponsePtr&)>&& callback) = 0;
3939

40-
// The derived class can also override other methods if needed
41-
};
42-
43-
class BaseAudio {
44-
public:
45-
virtual ~BaseAudio() {}
46-
// Transcribes audio into the input language.
47-
virtual void CreateTranscription(
48-
const HttpRequestPtr& req,
49-
std::function<void(const HttpResponsePtr&)>&& callback) = 0;
50-
51-
// Translates audio into the input language.
52-
virtual void CreateTranslation(
53-
const HttpRequestPtr& req,
54-
std::function<void(const HttpResponsePtr&)>&& callback) = 0;
55-
5640
// The derived class can also override other methods if needed
5741
};

0 commit comments

Comments
 (0)