Browse Source

spaces vs tabs

pull/656/head
Lyrcaxis 1 year ago
parent
commit
c86d4b9aba
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      LLama.Examples/Examples/SpeechChat.cs

+ 2
- 2
LLama.Examples/Examples/SpeechChat.cs View File

@@ -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; }


Loading…
Cancel
Save