From 9a8ec0882b793295c4700f0920eb3bc7caa46504 Mon Sep 17 00:00:00 2001 From: Ian Lavery Date: Tue, 17 Oct 2023 13:40:18 -0700 Subject: [PATCH] dotnet format --- sdk/dotnet/Picovoice/Picovoice.cs | 3 ++- sdk/dotnet/PicovoiceTest/MainTest.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk/dotnet/Picovoice/Picovoice.cs b/sdk/dotnet/Picovoice/Picovoice.cs index c2d4cd4d8..df8567442 100644 --- a/sdk/dotnet/Picovoice/Picovoice.cs +++ b/sdk/dotnet/Picovoice/Picovoice.cs @@ -239,7 +239,8 @@ public void Reset() throw new PicovoiceInvalidStateException("Cannot process frame - resources have been released."); } - try { + try + { _isWakeWordDetected = false; _rhino.Reset(); } diff --git a/sdk/dotnet/PicovoiceTest/MainTest.cs b/sdk/dotnet/PicovoiceTest/MainTest.cs index 567eeeadb..7065cae7d 100644 --- a/sdk/dotnet/PicovoiceTest/MainTest.cs +++ b/sdk/dotnet/PicovoiceTest/MainTest.cs @@ -182,7 +182,7 @@ public void RunTestCase(string audioFileName, string expectedIntent, Dictionary< [TestMethod] public void TestReset() - { + { _picovoice = Picovoice.Create( _accessKey, GetKeywordPath("en", "picovoice"), @@ -192,7 +192,7 @@ public void TestReset() _inference = null; ProcessFileHelper("picovoice-coffee.wav"); - + Assert.IsNull(_inference); }