Skip to content

Commit 381735c

Browse files
committed
add silerovad with onnxruntime
1 parent 79d7796 commit 381735c

File tree

8 files changed

+684
-44
lines changed

8 files changed

+684
-44
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ build-*/
2121

2222
/main
2323
/stream
24+
/stream2
2425
/command
2526
/talk
2627
/talk-llama

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ ifdef WHISPER_SERVER_SSL
283283
MK_LDFLAGS += -lssl -lcrypto
284284
endif
285285

286-
MK_LDFLAGS += -lrdkafka -lrdkafka++ -Llibfvad/src/.libs -lfvad
286+
MK_LDFLAGS += -lrdkafka -lrdkafka++ -lonnxruntime
287287

288288
ifdef WHISPER_DISABLE_LOGS
289289
MK_CPPFLAGS += -DLOG_DISABLE_LOGS
@@ -1065,13 +1065,13 @@ command: examples/command/command.cpp \
10651065

10661066
stream: examples/stream/stream.cpp \
10671067
$(OBJ_GGML) $(OBJ_WHISPER) $(OBJ_COMMON) $(OBJ_SDL)
1068-
$(CXX) -Iexamples/stream/modern-cpp-kafka/include -Ilibfvad/include $(CXXFLAGS) $(CFLAGS_SDL) -c $< -o $(call GET_OBJ_FILE, $<)
1069-
$(CXX) -Iexamples/stream/modern-cpp-kafka/include -Ilibfvad/include $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LDFLAGS_SDL)
1068+
$(CXX) $(CXXFLAGS) $(CFLAGS_SDL) -c $< -o $(call GET_OBJ_FILE, $<)
1069+
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LDFLAGS_SDL)
10701070

10711071
stream2: examples/stream/stream2.cpp \
10721072
$(OBJ_GGML) $(OBJ_WHISPER) $(OBJ_COMMON) $(OBJ_SDL)
1073-
$(CXX) -Iexamples/stream/modern-cpp-kafka/include $(CXXFLAGS) $(CFLAGS_SDL) -c $< -o $(call GET_OBJ_FILE, $<)
1074-
$(CXX) -Iexamples/stream/modern-cpp-kafka/include $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LDFLAGS_SDL)
1073+
$(CXX) $(CXXFLAGS) $(CFLAGS_SDL) -c $< -o $(call GET_OBJ_FILE, $<)
1074+
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) $(LDFLAGS_SDL)
10751075

10761076

10771077
lsp: examples/lsp/lsp.cpp \

examples/stream/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ This tool can also run in the browser: [examples/stream.wasm](/examples/stream.w
6565
## Example
6666

6767
```bash
68-
./stream -m models/ggml-base.bin --step 0 --length 3000 -t 16 --language fr --capture 3 -vth 1.2 --remote
68+
./stream -m models/ggml-base.bin --step 0 --length 4000 -c 0 -t 16 --language fr --capture 2 -vth 0.3 --remote
6969
./stream2 -C -t records-topic -b aci.crolard.fr:9092 -o beginning -p 0
7070
```

0 commit comments

Comments
 (0)