Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
update func CompileHotwordEmbedding
雾聪f0c18d641b67
diff --git a/runtime/onnxruntime/src/paraformer-torch.cpp b/runtime/onnxruntime/src/paraformer-torch.cppindex 1f15ec7e8..80c4e3037 100644--- a/runtime/onnxruntime/src/paraformer-torch.cpp+++ b/runtime/onnxruntime/src/paraformer-torch.cpp@@ -324,7 +324,7 @@ string ParaformerTorch::Forward(float* din, int len, bool input_finished, const}std::vector<std::vector<float>> ParaformerTorch::CompileHotwordEmbedding(std::string &hotwords) {- std::vector<std::vector<float>> result;+ std::vector<std::vector<float>> result(1, std::vector<float>(10, 0.0f));return result;}diff --git a/runtime/websocket/bin/CMakeLists.txt b/runtime/websocket/bin/CMakeLists.txtindex 6ad940d99..8df8ce01c 100644--- a/runtime/websocket/bin/CMakeLists.txt+++ b/runtime/websocket/bin/CMakeLists.txt@@ -16,6 +16,9 @@ add_executable(funasr-wss-server-2pass "funasr-wss-server-2pass.cpp" "websocket-add_executable(funasr-wss-client "funasr-wss-client.cpp" ${RELATION_SOURCE})add_executable(funasr-wss-client-2pass "funasr-wss-client-2pass.cpp" "microphone.cpp" ${RELATION_SOURCE})+target_link_options(funasr-wss-server PRIVATE "-Wl,--no-as-needed")+target_link_options(funasr-wss-server-2pass PRIVATE "-Wl,--no-as-needed")+target_link_libraries(funasr-wss-client PUBLIC funasr ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY})target_link_libraries(funasr-wss-client-2pass PUBLIC funasr ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY} portaudio)target_link_libraries(funasr-wss-server PUBLIC funasr ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY})