From b9f74f7e987e1a271175fbf8794a5ad6f118babc Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Mon, 10 Jul 2017 18:35:35 +0900 Subject: [PATCH] Fix errata Change-Id: If93f5279dec1feebfb50c09f4e3963e7908e5115 Signed-off-by: sooyeon.kim --- Tizen.Uix.Stt/Tizen.Uix.Stt.csproj | 2 +- .../Tizen.Uix.Stt/EngineChangedEventArgs.cs | 2 +- ...curedEventArgs.cs => ErrorOccurredEventArgs.cs} | 6 +-- Tizen.Uix.Stt/Tizen.Uix.Stt/ExceptionFactory.cs | 2 +- Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs | 44 +++++++++++----------- 5 files changed, 28 insertions(+), 28 deletions(-) rename Tizen.Uix.Stt/Tizen.Uix.Stt/{ErrorOccuredEventArgs.cs => ErrorOccurredEventArgs.cs} (97%) diff --git a/Tizen.Uix.Stt/Tizen.Uix.Stt.csproj b/Tizen.Uix.Stt/Tizen.Uix.Stt.csproj index ae98eb8..8ce6d50 100644 --- a/Tizen.Uix.Stt/Tizen.Uix.Stt.csproj +++ b/Tizen.Uix.Stt/Tizen.Uix.Stt.csproj @@ -1,7 +1,7 @@  - 1.0.2 + 1.0.3 Samsung Electronics © Samsung Electronics Co., Ltd All Rights Reserved STT Uix API for Tizen .NET diff --git a/Tizen.Uix.Stt/Tizen.Uix.Stt/EngineChangedEventArgs.cs b/Tizen.Uix.Stt/Tizen.Uix.Stt/EngineChangedEventArgs.cs index 3694bbd..c6b5eee 100755 --- a/Tizen.Uix.Stt/Tizen.Uix.Stt/EngineChangedEventArgs.cs +++ b/Tizen.Uix.Stt/Tizen.Uix.Stt/EngineChangedEventArgs.cs @@ -42,7 +42,7 @@ namespace Tizen.Uix.Stt } /// - /// Default Lanaguage + /// Default Language /// /// 3 public string Language diff --git a/Tizen.Uix.Stt/Tizen.Uix.Stt/ErrorOccuredEventArgs.cs b/Tizen.Uix.Stt/Tizen.Uix.Stt/ErrorOccurredEventArgs.cs similarity index 97% rename from Tizen.Uix.Stt/Tizen.Uix.Stt/ErrorOccuredEventArgs.cs rename to Tizen.Uix.Stt/Tizen.Uix.Stt/ErrorOccurredEventArgs.cs index c860cdd..f479c2e 100755 --- a/Tizen.Uix.Stt/Tizen.Uix.Stt/ErrorOccuredEventArgs.cs +++ b/Tizen.Uix.Stt/Tizen.Uix.Stt/ErrorOccurredEventArgs.cs @@ -21,14 +21,14 @@ using static Interop.Stt; namespace Tizen.Uix.Stt { /// - /// This class holds information related to the STT ErrorOccured Event + /// This class holds information related to the STT ErrorOccurred Event /// /// 3 - public class ErrorOccuredEventArgs + public class ErrorOccurredEventArgs { private IntPtr _handle; - internal ErrorOccuredEventArgs(IntPtr handle, Interop.Stt.SttError error) + internal ErrorOccurredEventArgs(IntPtr handle, Interop.Stt.SttError error) { this._handle = handle; switch (error) diff --git a/Tizen.Uix.Stt/Tizen.Uix.Stt/ExceptionFactory.cs b/Tizen.Uix.Stt/Tizen.Uix.Stt/ExceptionFactory.cs index 5b59574..6636ec3 100755 --- a/Tizen.Uix.Stt/Tizen.Uix.Stt/ExceptionFactory.cs +++ b/Tizen.Uix.Stt/Tizen.Uix.Stt/ExceptionFactory.cs @@ -36,7 +36,7 @@ namespace Tizen.Uix.Stt case SttError.IoError: { - exp = new InvalidOperationException("I/O Error Occured"); + exp = new InvalidOperationException("I/O Error Occurred"); break; } diff --git a/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs b/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs index 4e52840..c08f390 100644 --- a/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs +++ b/Tizen.Uix.Stt/Tizen.Uix.Stt/SttClient.cs @@ -323,7 +323,7 @@ namespace Tizen.Uix.Stt private Object thisLock = new Object(); private event EventHandler _recognitionResult; private event EventHandler _stateChanged; - private event EventHandler _errorOccured; + private event EventHandler _errorOccurred; private event EventHandler _defaultLanguageChanged; private event EventHandler _engineChanged; private bool disposedValue = false; @@ -462,7 +462,7 @@ namespace Tizen.Uix.Stt /// Event to be invoked when an error occurs. /// /// 3 - public event EventHandler ErrorOccured + public event EventHandler ErrorOccurred { add { @@ -470,18 +470,18 @@ namespace Tizen.Uix.Stt { _errorDelegate = (IntPtr handle, SttError reason, IntPtr userData) => { - ErrorOccuredEventArgs args = new ErrorOccuredEventArgs(handle, reason); - _errorOccured?.Invoke(this, args); + ErrorOccurredEventArgs args = new ErrorOccurredEventArgs(handle, reason); + _errorOccurred?.Invoke(this, args); }; SttError error = SttSetErrorCB(_handle, _errorDelegate, IntPtr.Zero); if (error != SttError.None) { - Log.Error(LogTag, "Add ErrorOccured Failed with error " + error); + Log.Error(LogTag, "Add ErrorOccurred Failed with error " + error); } else { - _errorOccured += value; + _errorOccurred += value; } } @@ -494,16 +494,16 @@ namespace Tizen.Uix.Stt SttError error = SttUnsetErrorCB(_handle); if (error != SttError.None) { - Log.Error(LogTag, "Remove ErrorOccured Failed with error " + error); + Log.Error(LogTag, "Remove ErrorOccurred Failed with error " + error); } - _errorOccured -= value; + _errorOccurred -= value; } } } /// - /// Event to be invoked when default laungage change. + /// Event to be invoked when default language change. /// /// 3 public event EventHandler DefaultLanguageChanged @@ -606,7 +606,7 @@ namespace Tizen.Uix.Stt /// http://tizen.org/privilege/recorder /// /// - /// Default Lanaguage string value. + /// Default Language string value. /// public string DefaultLanguage { @@ -618,7 +618,7 @@ namespace Tizen.Uix.Stt SttError error = SttGetDefaultLanguage(_handle, out language); if (error != SttError.None) { - Log.Error(LogTag, "DefaultLanaguage Failed with error " + error); + Log.Error(LogTag, "DefaultLanguage Failed with error " + error); return ""; } } @@ -705,7 +705,7 @@ namespace Tizen.Uix.Stt /// http://tizen.org/privilege/recorder /// /// - /// This Exception can occur while setting due to the following reaons + /// This Exception can occur while setting due to the following reasons /// 1. Operation Failed /// 2. Invalid State /// @@ -765,7 +765,7 @@ namespace Tizen.Uix.Stt /// /// This function should only be called in RecognitionResult Event /// - /// This Exception can be due to Opearation Failed. + /// This Exception can be due to Operation Failed. /// This Exception can be due to STT Not Supported. /// This Exception can be due to Permission Denied. public IEnumerable GetDetailedResult() @@ -868,7 +868,7 @@ namespace Tizen.Uix.Stt /// /// 3 /// - /// IEnumerable list of supported engines + /// IEnumerable<SupportedEngine> list of supported engines /// /// /// http://tizen.org/privilege/recorder @@ -920,7 +920,7 @@ namespace Tizen.Uix.Stt /// http://tizen.org/feature/microphone /// /// - /// This Exception can be due to the following reaons + /// This Exception can be due to the following reasons /// 1. Operation Failed /// 2. Invalid State /// @@ -963,7 +963,7 @@ namespace Tizen.Uix.Stt /// /// /// If this function is successful, the STT state will be Ready - /// If this function is unsuccessful, ErrorOccured event will be invoked + /// If this function is unsuccessful, ErrorOccurred event will be invoked /// public void Prepare() { @@ -1034,7 +1034,7 @@ namespace Tizen.Uix.Stt /// /// This Exception can be due to STT Not Supported. /// This Exception can be due to Permission Denied. - public IEnumerable GetSupportedLangauages() + public IEnumerable GetSupportedLanguages() { List languageList = new List(); lock (thisLock) @@ -1049,7 +1049,7 @@ namespace Tizen.Uix.Stt SttError error = SttForeachSupportedLanguages(_handle, supportedLanguageDelegate, IntPtr.Zero); if (error != SttError.None) { - Log.Error(LogTag, "GetSupportedLangauages Failed with error " + error); + Log.Error(LogTag, "GetSupportedLanguages Failed with error " + error); throw ExceptionFactory.CreateException(error); } } @@ -1352,7 +1352,7 @@ namespace Tizen.Uix.Stt /// The state should be Ready. /// /// - /// It will invoke StateChanged Event if registerd. + /// It will invoke StateChanged Event if registered. /// If this function succeeds, the STT state will be Recording. /// If you call this function again before state changes, you will receive ErrorINProgressToRecording. /// @@ -1429,7 +1429,7 @@ namespace Tizen.Uix.Stt /// The state should be Recording. /// /// - /// It will invoke StateChanged Event if registerd. + /// It will invoke StateChanged Event if registered. /// If this function succeeds, the STT state will be Processing. /// If you call this function again before state changes, you will receive ErrorINProgressToProcessing. /// After processing of engine, RecognitionResult event is invoked @@ -1450,7 +1450,7 @@ namespace Tizen.Uix.Stt /// /// Cancels processing recognition and recording asynchronously. /// This function cancels recording and engine cancels recognition processing. - /// After successful cancel, StateChanged event is invoked otherwise if error is occurred, ErrorOccured event is invoked. + /// After successful cancel, StateChanged event is invoked otherwise if error is occurred, ErrorOccurred event is invoked. /// /// 3 /// @@ -1474,7 +1474,7 @@ namespace Tizen.Uix.Stt /// The state should be Recording or Processing. /// /// - /// It will invoke StateChanged Event if registerd. + /// It will invoke StateChanged Event if registered. /// If this function succeeds, the STT state will be Ready. /// If you call this function again before state changes, you will receive ErrorINProgressToReady. /// -- 2.7.4