VoiceCommand
VoiceCommand
VoiceCommand
VoiceCommand
Class
Definition
The command given to Cortana, using either speech or text, and routed to a background app.
The command must be declared in a Voice Command Definition (VCD) file registered by the app referred to in the command. See Launch a background app with voice commands in Cortana for more info on creating and registering a Voice Command Definition (VCD) file for your app.
public : sealed class VoiceCommand : IVoiceCommandpublic sealed class VoiceCommand : IVoiceCommandPublic NotInheritable Class VoiceCommand Implements IVoiceCommand// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Access VoiceCommand objects by calling GetVoiceCommandAsync on a VoiceCommandServiceConnection that references the appropriate Windows.ApplicationModel.AppService object.
Properties
CommandName CommandName CommandName CommandName
Gets the value of the Name attribute for the Command element declared in the Voice Command Definition (VCD) file.
public : PlatForm::String CommandName { get; }public string CommandName { get; }Public ReadOnly Property CommandName As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The command name.
- See Also
Properties Properties Properties Properties
Gets a dictionary containing the semantic properties of the recognized phrase in the voice command.
public : IMapView<string, IVectorView<string>> Properties { get; }public IReadOnlyDictionary<string, IReadOnlyList<string>> Properties { get; }Public ReadOnly Property Properties As IReadOnlyDictionary<string, IReadOnlyList<string>>// You can use this property in JavaScript.
- Value
- IMapView<PlatForm::String, IVectorView<PlatForm::String>> IReadOnlyDictionary<string, IReadOnlyList<string>> IReadOnlyDictionary<string, IReadOnlyList<string>> IReadOnlyDictionary<string, IReadOnlyList<string>>
The semantic properties recognized in the voice command.
- See Also
SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult
Gets the SpeechRecognitionResult object representing the results returned by the voice command.
public : SpeechRecognitionResult SpeechRecognitionResult { get; }public SpeechRecognitionResult SpeechRecognitionResult { get; }Public ReadOnly Property SpeechRecognitionResult As SpeechRecognitionResult// You can use this property in JavaScript.
- Value
- SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult SpeechRecognitionResult
The result of a speech recognition session.
- See Also