Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Nov 21, 2023
1 parent cd9a7cb commit 05e0071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/dotnet/LeopardTest/MainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private static short[] GetPcmFromFile(string audioFilePath, int expectedSampleRa
private static void ValidateMetadata(
LeopardWord[] words,
LeopardWord[] referenceWords,
bool enableDiariztion)
bool enableDiarization)
{
Assert.AreEqual(words.Length, referenceWords.Length);
for (int i = 0; i < words.Length; i++)
Expand All @@ -193,7 +193,7 @@ private static void ValidateMetadata(
Assert.AreEqual(words[i].StartSec, referenceWords[i].StartSec, 0.1);
Assert.AreEqual(words[i].EndSec, referenceWords[i].EndSec, 0.1);
Assert.AreEqual(words[i].Confidence, referenceWords[i].Confidence, 0.1);
if (enableDiariztion)
if (enableDiarization)
{
Assert.AreEqual(words[i].SpeakerTag, referenceWords[i].SpeakerTag);
}
Expand Down

0 comments on commit 05e0071

Please sign in to comment.