Class VoiceCommand
Definition
- Namespace:
- Tizen.Uix.VoiceControlManager
- Assembly:
- Tizen.Uix.VoiceControlManager.dll
- API Level:
- 6
This class represents a voice command.
C#Copypublic class VoiceCommand : IDisposable
- Inheritance
-
System.ObjectVoiceCommand
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic VoiceCommand()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | This exception can be due to out of memory. |
UnauthorizedAccessException | This exception can be due to permission denied. |
System.NotSupportedException | The required feature is not supported. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/microphonehttp://tizen.org/feature/speech.control
Properties
Command
Gets or sets the command. A get empty string will be returned in case of some internal error.
Declaration
C#Copypublic string Command { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | This exception can be due to an invalid parameter. |
UnauthorizedAccessException | This exception can be due to permission denied. |
System.NotSupportedException | The required feature is not supported. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/microphonehttp://tizen.org/feature/speech.control
Declaration
C#Copypublic CommandType CommandType { get; set; }
Property Value
Type | Description |
---|---|
CommandType |
Remarks
If you do not set the command type, the default value is undefined. You should set the type if the command is valid.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | This exception can be due to an invalid parameter. |
UnauthorizedAccessException | This exception can be due to permission denied. |
System.NotSupportedException | The required feature is not supported. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/microphonehttp://tizen.org/feature/speech.control
Declaration
C#Copypublic CommandFormat Format { get; set; }
Property Value
Type | Description |
---|---|
CommandFormat |
Remarks
The default format is Fixed.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | This exception can be due to an invalid parameter. |
System.NotSupportedException | The required feature is not supported. |
API Level: 6
Feature: http://tizen.org/feature/microphonehttp://tizen.org/feature/speech.control
UnfixedCommand
Gets the unfixed command. This property should be used for commands which have non-fixed format. An empty string will be returned in case of some internal error.
Declaration
C#Copypublic string UnfixedCommand { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 6
Methods
Declaration
C#Copypublic void Dispose()
API Level: 6
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
API Level: 6
Declaration
C#Copyprotected void Finalize()