X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Tizen.Uix.VoiceControl%2FTizen.Uix.VoiceControl%2FVoiceControlClient.cs;h=4b8638d6ff5b8fae2167fc9eb422a72cc4a24a97;hb=39a75a40b0b74c93176677884d69a889ff71f226;hp=200f2d9eb602006a27f7977f2accb331360d6df3;hpb=0bb61120ffd6d82be029f1f218c63c1250aa399e;p=platform%2Fcore%2Fcsapi%2Fuix-voice-control.git diff --git a/Tizen.Uix.VoiceControl/Tizen.Uix.VoiceControl/VoiceControlClient.cs b/Tizen.Uix.VoiceControl/Tizen.Uix.VoiceControl/VoiceControlClient.cs index 200f2d9..4b8638d 100755 --- a/Tizen.Uix.VoiceControl/Tizen.Uix.VoiceControl/VoiceControlClient.cs +++ b/Tizen.Uix.VoiceControl/Tizen.Uix.VoiceControl/VoiceControlClient.cs @@ -25,6 +25,7 @@ namespace Tizen.Uix.VoiceControl /// /// Enum for Error values that can occur /// + /// 3 public enum Error { /// @@ -108,6 +109,7 @@ namespace Tizen.Uix.VoiceControl /// /// Enumeration for the client state. /// + /// 3 public enum State { /// @@ -131,6 +133,7 @@ namespace Tizen.Uix.VoiceControl /// /// Enumerations of service state. /// + /// 3 public enum ServiceState { /// @@ -158,6 +161,7 @@ namespace Tizen.Uix.VoiceControl /// /// Enumerations of result event. /// + /// 3 public enum ResultEvent { /// @@ -173,6 +177,7 @@ namespace Tizen.Uix.VoiceControl /// /// Enumerations of command type. /// + /// 3 public enum CommandType { /// @@ -193,11 +198,13 @@ namespace Tizen.Uix.VoiceControl /// A main function of Voice Control API register command and gets notification for recognition result. /// Applications can add their own commands and be provided result when their command is recognized by user voice input. /// + /// 3 public static class VoiceControlClient { /// /// Called when client gets the recognition result. /// + /// 3 /// /// If the duplicated commands are recognized, the event(e.g. Result.Rejected) of command may be rejected /// for selecting command as priority.If you set similar or same commands or the recognized results are multi-results, cmdList has the multi commands. @@ -228,15 +235,16 @@ namespace Tizen.Uix.VoiceControl /// For example, "ko_KR" for Korean, "en_US" for American English. /// Empty string is returned incase of some internal error /// + /// 3 /// /// Current language in voice control. /// /// /// http://tizen.org/privilege/recorder /// - /// + ///
         /// The State must be Initialized or Ready.
-        /// 
+        /// 
public static string CurrentLanguage { get @@ -257,15 +265,16 @@ namespace Tizen.Uix.VoiceControl /// /// Gets current state of voice control client. /// + /// 3 /// /// Current state of voice control client. /// /// /// http://tizen.org/privilege/recorder /// - /// + ///
         /// The State must be Initialized or Ready.
-        /// 
+        /// 
public static State State { get @@ -286,15 +295,16 @@ namespace Tizen.Uix.VoiceControl /// /// Gets current state of voice control service. /// + /// 3 /// /// Current state of voice control service. /// /// /// http://tizen.org/privilege/recorder /// - /// + ///
         /// The State must be Ready.
-        /// 
+        /// 
public static ServiceState ServiceState { get @@ -315,6 +325,7 @@ namespace Tizen.Uix.VoiceControl /// /// Sets the invocation name. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -338,9 +349,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Invalid Parameter. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State must be Ready.
-        /// 
+        /// 
public static void SetInvocationName(string name) { ErrorCode error = VcSetInvocationName(name); @@ -354,6 +365,7 @@ namespace Tizen.Uix.VoiceControl /// /// Initializes voice control. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -368,9 +380,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Out Of Memory. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + /// /// The State will be Initialized. - /// + /// public static void Initialize() { ErrorCode error = VcInitialize(); @@ -384,6 +396,7 @@ namespace Tizen.Uix.VoiceControl /// /// Deinitializes voice control. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -411,6 +424,7 @@ namespace Tizen.Uix.VoiceControl /// /// Connects the voice control service. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -425,12 +439,12 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Operation Failed. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Initialized
-        /// 
-        /// 
+        /// 
+ /// /// The State will be Ready - /// + /// public static void Prepare() { ErrorCode error = VcPrepare(); @@ -444,6 +458,7 @@ namespace Tizen.Uix.VoiceControl /// /// Disconnects the voice control service. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -457,12 +472,12 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Invalid State. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Ready
-        /// 
-        /// 
+        /// 
+ /// /// The State should be Initialized - /// + /// public static void Unprepare() { ErrorCode error = VcUnprepare(); @@ -479,6 +494,7 @@ namespace Tizen.Uix.VoiceControl /// followed by ISO 639-1 for the two-letter language code. /// For example, "ko_KR" for Korean, "en_US" for American English. ///
+ /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -493,9 +509,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Operation Failed. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Ready or Initialized
-        /// 
+        /// 
public static IEnumerable GetSupportedLanguages() { s_supportedLanguages = new List(); @@ -518,6 +534,7 @@ namespace Tizen.Uix.VoiceControl /// /// Gets the system command list. /// + /// 3 /// /// The Command List else null in case of no System Commands /// @@ -539,9 +556,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Operation Failed. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Ready
-        /// 
+        /// 
public static VoiceCommandList GetSystemCommandList() { IntPtr handle = IntPtr.Zero; @@ -570,6 +587,7 @@ namespace Tizen.Uix.VoiceControl /// Also, the developer can set whether the dialogue starts automatically or not, using autoStart. /// If the developer sets autoStart as true, the framework will start to record next speech and continue the dialogue. ///
+ /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -590,9 +608,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Invalid Parameter. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Ready
-        /// 
+        /// 
public static void RequestDialog(string dispText, string uttText, bool autoStart) { ErrorCode error = VcRequestDialog(dispText, uttText, autoStart); @@ -606,6 +624,7 @@ namespace Tizen.Uix.VoiceControl /// /// Sets command list. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -626,9 +645,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Invalid Parameter. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Ready
-        /// 
+        /// 
public static void SetCommandList(VoiceCommandList list, CommandType type) { if ((type == CommandType.Foreground) || (type == CommandType.Background)) @@ -650,6 +669,7 @@ namespace Tizen.Uix.VoiceControl /// /// Unsets command list. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -665,9 +685,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Invalid Parameter. /// This Exception can be due to Not Supported. /// This Exception can be due to Permission Denied. - /// + ///
         /// The State should be Ready
-        /// 
+        /// 
public static void UnsetCommandList(CommandType type) { if ((type == CommandType.Foreground) || (type == CommandType.Background)) @@ -692,6 +712,7 @@ namespace Tizen.Uix.VoiceControl /// /// Gets the recognition result. /// + /// 3 /// /// http://tizen.org/privilege/recorder /// @@ -706,9 +727,9 @@ namespace Tizen.Uix.VoiceControl /// This Exception can be due to Invalid Parameter. /// This Exception can be due to Not Supported. /// The Recognition Result if possible else a null object - /// + ///
         /// The State should be Ready
-        /// 
+        /// 
public static RecognitionResult GetResult() { s_recognitionResult = null; @@ -729,9 +750,10 @@ namespace Tizen.Uix.VoiceControl /// /// Event to be invoked when the recognition is done. /// - /// + /// 3 + ///
         /// The State should be Initialized
-        /// 
+        /// 
public static event EventHandler RecognitionResult { add @@ -775,9 +797,10 @@ namespace Tizen.Uix.VoiceControl /// /// Event to be invoked when VoiceControl service state changes. /// - /// + /// 3 + ///
         /// The State should be Initialized
-        /// 
+        /// 
public static event EventHandler ServiceStateChanged { add @@ -813,9 +836,10 @@ namespace Tizen.Uix.VoiceControl /// /// Event to be invoked when VoiceControl client state changes. /// - /// + /// 3 + ///
         /// The State should be Initialized
-        /// 
+        /// 
public static event EventHandler StateChanged { add @@ -851,9 +875,10 @@ namespace Tizen.Uix.VoiceControl /// /// Event to be invoked when an error occurs. /// - /// + /// 3 + ///
         /// The State should be Initialized
-        /// 
+        /// 
public static event EventHandler ErrorOccured { add @@ -891,9 +916,10 @@ namespace Tizen.Uix.VoiceControl /// /// Event to be invoked when default laungage change. /// - /// + /// 3 + ///
         /// The State should be Initialized
-        /// 
+        /// 
public static event EventHandler CurrentLanguageChanged { add