diff --git a/.github/workflows/test-python-online-websocket-server.yaml b/.github/workflows/test-python-online-websocket-server.yaml index 15f81778e..428440edc 100644 --- a/.github/workflows/test-python-online-websocket-server.yaml +++ b/.github/workflows/test-python-online-websocket-server.yaml @@ -18,7 +18,7 @@ permissions: jobs: python_online_websocket_server: runs-on: ${{ matrix.os }} - name: ${{ matrix.os }} ${{ matrix.python-version }} + name: ${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.model_type }} strategy: fail-fast: false matrix: diff --git a/mfc-examples/NonStreamingSpeechRecognition/sherpa-onnx-deps.props b/mfc-examples/NonStreamingSpeechRecognition/sherpa-onnx-deps.props index f0e609d3c..4c144708a 100644 --- a/mfc-examples/NonStreamingSpeechRecognition/sherpa-onnx-deps.props +++ b/mfc-examples/NonStreamingSpeechRecognition/sherpa-onnx-deps.props @@ -9,6 +9,9 @@ sherpa-onnx-portaudio_static.lib; sherpa-onnx-c-api.lib; sherpa-onnx-core.lib; + kaldi-decoder-core.lib; + sherpa-onnx-kaldifst-core.lib; + sherpa-onnx-fst.lib; kaldi-native-fbank-core.lib; absl_base.lib; absl_city.lib; diff --git a/mfc-examples/StreamingSpeechRecognition/sherpa-onnx-deps.props b/mfc-examples/StreamingSpeechRecognition/sherpa-onnx-deps.props index f0e609d3c..4c144708a 100644 --- a/mfc-examples/StreamingSpeechRecognition/sherpa-onnx-deps.props +++ b/mfc-examples/StreamingSpeechRecognition/sherpa-onnx-deps.props @@ -9,6 +9,9 @@ sherpa-onnx-portaudio_static.lib; sherpa-onnx-c-api.lib; sherpa-onnx-core.lib; + kaldi-decoder-core.lib; + sherpa-onnx-kaldifst-core.lib; + sherpa-onnx-fst.lib; kaldi-native-fbank-core.lib; absl_base.lib; absl_city.lib; diff --git a/sherpa-onnx/csrc/offline-ctc-fst-decoder.cc b/sherpa-onnx/csrc/offline-ctc-fst-decoder.cc index 7370797ef..efee65a72 100644 --- a/sherpa-onnx/csrc/offline-ctc-fst-decoder.cc +++ b/sherpa-onnx/csrc/offline-ctc-fst-decoder.cc @@ -22,7 +22,7 @@ namespace sherpa_onnx { // avoid memory leak. static fst::Fst *ReadGraph(const std::string &filename) { // read decoding network FST - std::ifstream is(filename); + std::ifstream is(filename, std::ios::binary); if (!is.good()) { SHERPA_ONNX_LOGE("Could not open decoding-graph FST %s", filename.c_str()); }