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
SetConsoleOutputCP for win
雾聪0627b354c5cd
diff --git a/runtime/websocket/bin/funasr-wss-client-2pass.cpp b/runtime/websocket/bin/funasr-wss-client-2pass.cppindex ec3da352b..2db66ff36 100644--- a/runtime/websocket/bin/funasr-wss-client-2pass.cpp+++ b/runtime/websocket/bin/funasr-wss-client-2pass.cpp@@ -475,7 +475,8 @@ class WebsocketClient {int main(int argc, char* argv[]) {#ifdef _WIN32- SetConsoleOutputCP(65001);+ #include <windows.h>+ SetConsoleOutputCP(65001);#endifgoogle::InitGoogleLogging(argv[0]);FLAGS_logtostderr = true;diff --git a/runtime/websocket/bin/funasr-wss-client.cpp b/runtime/websocket/bin/funasr-wss-client.cppindex f61799895..dddab8e63 100644--- a/runtime/websocket/bin/funasr-wss-client.cpp+++ b/runtime/websocket/bin/funasr-wss-client.cpp@@ -342,6 +342,7 @@ class WebsocketClient {int main(int argc, char* argv[]) {#ifdef _WIN32+ #include <windows.h>SetConsoleOutputCP(65001);#endifgoogle::InitGoogleLogging(argv[0]);diff --git a/runtime/websocket/bin/funasr-wss-server-2pass.cpp b/runtime/websocket/bin/funasr-wss-server-2pass.cppindex 40f8f0771..965f2a8c9 100644--- a/runtime/websocket/bin/funasr-wss-server-2pass.cpp+++ b/runtime/websocket/bin/funasr-wss-server-2pass.cpp@@ -25,6 +25,10 @@ void GetValue(TCLAP::ValueArg<std::string>& value_arg, string key,}int main(int argc, char* argv[]) {+#ifdef _WIN32+ #include <windows.h>+ SetConsoleOutputCP(65001);+#endiftry {google::InitGoogleLogging(argv[0]);FLAGS_logtostderr = true;diff --git a/runtime/websocket/bin/funasr-wss-server.cpp b/runtime/websocket/bin/funasr-wss-server.cppindex 67e3309c7..8f2a7ab68 100644--- a/runtime/websocket/bin/funasr-wss-server.cpp+++ b/runtime/websocket/bin/funasr-wss-server.cpp@@ -26,6 +26,10 @@ void GetValue(TCLAP::ValueArg<std::string>& value_arg, string key,}int main(int argc, char* argv[]) {+#ifdef _WIN32+ #include <windows.h>+ SetConsoleOutputCP(65001);+#endiftry {google::InitGoogleLogging(argv[0]);