Definition
- Namespace:
- Tizen.Uix.VoiceControlManager
- Assembly:
- Tizen.Uix.VoiceControlManager.dll
- API Level:
- 6
Voice Control Manager Class
public static class VoiceControlManagerClient : object
- Inheritance
-
VoiceControlManagerClient
Properties
View Source
AudioType
Sets or Gets the Audio In Type.
The Values of the strings can be "VC_AUDIO_ID_BLUETOOTH" or "VC_AUDIO_ID_MSF"
Declaration
public static string AudioType { get; set; }
Property Value
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
View Source
CurrentLanguage
Gets the current language.
A language is specified as an ISO 3166 alpha-2 two letter country-code
followed by ISO 639-1 for the two-letter language code.
For example, "ko_KR" for Korean, "en_US" for American English.
An empty string is returned in case of some internal error.
Declaration
public static string CurrentLanguage { get; }
Property Value
Type |
Description |
String |
The current language in voice control.
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized or ready.
View Source
RecognitionMode
Sets or Gets the recognition mode.
Declaration
public static RecognitionModeType RecognitionMode { get; set; }
Property Value
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
View Source
RecordingVolume
Gets the microphone volume during recording.
Declaration
public static float RecordingVolume { get; }
Property Value
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The Service State must be Recording.
View Source
ServiceState
Gets the current state of the voice control service.
Declaration
public static ServiceState ServiceState { get; }
Property Value
Type |
Description |
ServiceState |
The current state of the voice control service.
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be ready.
View Source
State
Gets the current state of the voice control client.
Declaration
public static State State { get; }
Property Value
Type |
Description |
State |
The current state of the voice control client.
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized or ready.
Methods
Declaration
public static void Cancel()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Recording or Processing.
Postcondition: The Service State will become Ready.
Declaration
public static void ClearCommands()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
View Source
Deinitialize()
Deinitialize the voice control manager.
Declaration
public static void Deinitialize()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Postcondition: The State will be None.
View Source
DisableCommandType(CommandType)
Disable command type as candidate command.
Declaration
public static void DisableCommandType(CommandType cmdType)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
View Source
DoAction(SendEventType, String)
Request to do action as if utterence is spoken.
Declaration
public static void DoAction(SendEventType type, string sendEvent)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
View Source
EnableCommandType(CommandType)
Enable command type as candidate command.
Declaration
public static void EnableCommandType(CommandType cmdType)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
View Source
GetCurrentCommands()
Retrieves all available commands.
Declaration
public static IEnumerable<VoiceCommand> GetCurrentCommands()
Returns
Type |
Description |
IEnumerable<VoiceCommand> |
The Command List else null in case of no System Commands
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
View Source
GetPrivateData(String)
Gets private data between app and engine.
Declaration
public static string GetPrivateData(string key)
Parameters
Type |
Name |
Description |
String |
key |
Private key
|
Returns
Type |
Description |
String |
Private data
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
View Source
GetSupportedLanguages()
Retrieves all the supported languages.
A language is specified as an ISO 3166 alpha-2 two letter country-code
followed by ISO 639-1 for the two-letter language code.
For example, "ko_KR" for Korean, "en_US" for American English.
Declaration
public static IEnumerable<string> GetSupportedLanguages()
Returns
Type |
Description |
IEnumerable<String> |
List of strings for supported languages.
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be ready or initialized.
View Source
Initialize()
Initialize voice control manager.
Declaration
public static void Initialize()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Postcondition: The State will be Initialized.
View Source
Checks whether the command format is supported.
Declaration
public static bool IsSupportedCommandFormat(CommandFormat format)
Parameters
Returns
Type |
Description |
Boolean |
The result status, true if supported
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
View Source
Prepare()
Connects the voice control service.
Declaration
public static void Prepare()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized.
Postcondition: The state must be ready.
View Source
SendSpecificEngineRequest(String, String, String)
Sends the specific engine request to the vc-service.
Declaration
public static void SendSpecificEngineRequest(string engineAppId, string evt, string request)
Parameters
Type |
Name |
Description |
String |
engineAppId |
A specific engine's app id
|
String |
evt |
A engine service user request event
|
String |
request |
A engine service user request text
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
View Source
SetCommands(VoiceCommandsGroup)
Sets system or exclusive commands.
Declaration
public static void SetCommands(VoiceCommandsGroup commands)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
Declaration
public static void SetCommandsFromFile(string path, CommandType type)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
View Source
SetPrivateData(String, String)
Sets private data between app and engine.
Declaration
public static void SetPrivateData(string key, string data)
Parameters
Type |
Name |
Description |
String |
key |
Private key
|
String |
data |
Private data
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
View Source
SetPrivateDataProviderDelegate(VoiceControlManagerClient.PrivateDataProvider)
Sets the delegate for setting private data.
Declaration
public static void SetPrivateDataProviderDelegate(VoiceControlManagerClient.PrivateDataProvider privateDataDelegate)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
View Source
SetRecognizedCommandsSelectionDelegate(VoiceControlManagerClient.SelectRecognizedCommandsDelegate)
Sets the delegate for setting valid commands.
Declaration
public static void SetRecognizedCommandsSelectionDelegate(VoiceControlManagerClient.SelectRecognizedCommandsDelegate recognizedCommandsDelegate)
Parameters
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Declaration
public static void Start(bool exclusiveCommandOption)
Parameters
Type |
Name |
Description |
Boolean |
exclusiveCommandOption |
Exclusive command option
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Ready.
Postcondition: The Service State will become Recording.
View Source
StartFeedback()
Starts getting TTS feedback streaming data from the buffer.
Declaration
public static void StartFeedback()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
Declaration
public static void Stop()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State must be Recording.
Postcondition: The Service State will become Processing.
View Source
StopFeedback()
Stops getting and removes TTS feedback streaming data from the buffer.
Declaration
public static void StopFeedback()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Ready
View Source
Unprepare()
Disconnects the voice control service.
Declaration
public static void Unprepare()
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be ready.
Postcondition: The state must be initialized.
Events
View Source
AllRecognitionResultReceived
Called when client gets the all recognition results from vc-daemon.
Declaration
public static event EventHandler<AllRecognitionResultEventArgs> AllRecognitionResultReceived
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
ConversationRequested
Event to be called when conversation requests.
Declaration
public static event EventHandler<ConversationRequestedEventArgs> ConversationRequested
Event Type
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
CurrentLanguageChanged
Event to be invoked when the default language changes.
Declaration
public static event EventHandler<CurrentLanguageChangedEventArgs> CurrentLanguageChanged
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized.
View Source
ErrorOccurred
Event to be invoked when an error occurs.
Declaration
public static event EventHandler<ErrorOccurredEventArgs> ErrorOccurred
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized.
View Source
Called when engine sends audio formats necessary for playing TTS feedback.
Declaration
public static event EventHandler<FeedbackAudioFormatEventArgs> FeedbackAudioFormatChanged
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
FeedbackStreaming
Called when engine sends audio streaming for TTS feedback.
Declaration
public static event EventHandler<FeedbackStreamingEventArgs> FeedbackStreaming
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
PreRecognitionResultUpdated
Called when client gets the pre recognition results(partial ASR) from vc-daemon.
Declaration
public static event EventHandler<PreRecognitionResultUpdatedEventArgs> PreRecognitionResultUpdated
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
PrivateDataUpdated
Called when engine sets private data to manager client.
Declaration
public static event EventHandler<PrivateDataUpdatedEventArgs> PrivateDataUpdated
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
RecognitionResultUpdated
Event to be invoked when the recognition is done.
Declaration
public static event EventHandler<RecognitionResultUpdatedEventArgs> RecognitionResultUpdated
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
ServiceStateChanged
Event to be invoked when the VoiceControl service state changes.
Declaration
public static event EventHandler<ServiceStateChangedEventArgs> ServiceStateChanged
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized.
View Source
SpecificEngineResult
Called when client gets the specific engine's result from vc-service.
Declaration
public static event EventHandler<SpecificEngineResultEventArgs> SpecificEngineResult
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
SpeechDetected
Called when user speaking is detected.
Declaration
public static event EventHandler<EventArgs> SpeechDetected
Event Type
Type |
Description |
EventHandler<EventArgs> |
|
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The State should be Initialized
View Source
StateChanged
Event to be invoked when the VoiceControl client state changes.
Declaration
public static event EventHandler<StateChangedEventArgs> StateChanged
Event Type
API Level: 6
Privilege Level: platform
Privilege: http://tizen.org/privilege/voicecontrol.managerhttp://tizen.org/privilege/recorder
Feature: http://tizen.org/feature/speech.control_managerhttp://tizen.org/feature/microphone
Precondition: The state must be initialized.
View Source
VcTtsStreaming
Called when the vc client sends audio streaming for TTS feedback.
Declaration
public static event EventHandler<VcTtsStreamingEventArgs> VcTtsStreaming
Event Type
API Level: 6
Precondition: The State should be Initialized