From c86d4b9aba2e4531146e8819e37c0a5bbc03f9af Mon Sep 17 00:00:00 2001 From: Lyrcaxis Date: Mon, 8 Apr 2024 00:10:56 +0300 Subject: [PATCH] spaces vs tabs --- LLama.Examples/Examples/SpeechChat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LLama.Examples/Examples/SpeechChat.cs b/LLama.Examples/Examples/SpeechChat.cs index 267763c5..57920a81 100644 --- a/LLama.Examples/Examples/SpeechChat.cs +++ b/LLama.Examples/Examples/SpeechChat.cs @@ -44,8 +44,8 @@ namespace LLama.Examples.Examples (audioServer = server).ServiceUsers.Add(this); } - // Whisper is struggling with single words and very short phrases without context, so it's actually better to say something like "Ok, Stop!" to have it work better. - bool IAudioServiceUser.IsOfInterest(string AudioTranscription) => !isModelResponding || AudioTranscription.Contains("stop", StringComparison.CurrentCultureIgnoreCase); + // Whisper is struggling with single words and very short phrases without context, so it's actually better to say something like "Ok, Stop!" to have it work better. + bool IAudioServiceUser.IsOfInterest(string AudioTranscription) => !isModelResponding || AudioTranscription.Contains("stop", StringComparison.CurrentCultureIgnoreCase); void IAudioServiceUser.ProcessText(string AudioTranscription) { if (isModelResponding && AudioTranscription.Contains("stop", StringComparison.CurrentCultureIgnoreCase)) { canceled = true; }