From 6c0f0028253bd97ee8297a0d40b900d2b5e6e8d8 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 10 Aug 2023 20:35:51 +0800 Subject: [PATCH] Typo fixes for .Net examples (#258) --- dotnet-examples/online-decode-files/Program.cs | 2 +- dotnet-examples/speech-recognition-from-microphone/Program.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dotnet-examples/online-decode-files/Program.cs b/dotnet-examples/online-decode-files/Program.cs index 8fa41920..b5bb6fc5 100644 --- a/dotnet-examples/online-decode-files/Program.cs +++ b/dotnet-examples/online-decode-files/Program.cs @@ -96,7 +96,7 @@ dotnet run \ --num-threads=2 \ --decoding-method=modified_beam_search \ --debug=false \ - ./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/test_wavs/0.wav \ + --files ./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/test_wavs/0.wav \ ./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/test_wavs/1.wav Please refer to diff --git a/dotnet-examples/speech-recognition-from-microphone/Program.cs b/dotnet-examples/speech-recognition-from-microphone/Program.cs index e8be9977..b399ea8d 100644 --- a/dotnet-examples/speech-recognition-from-microphone/Program.cs +++ b/dotnet-examples/speech-recognition-from-microphone/Program.cs @@ -16,7 +16,7 @@ using System.Runtime.InteropServices; using System; -class OnlineDecodeFiles +class SpeechRecognitionFromMicrophone { class Options { @@ -192,6 +192,7 @@ to download pre-trained streaming models. ); Console.WriteLine(param); + Console.WriteLine("Started! Please speak"); stream.Start();