VoiceCommandService.InstallCommandSetsFromFileAsync method
Installs the CommandSet elements in a Voice Command Definition (VCD) file.
Syntax
public static IAsyncAction InstallCommandSetsFromFileAsync(
Uri voiceCommandDefinitionUri
)
Public Shared Function InstallCommandSetsFromFileAsync(
voiceCommandDefinitionUri As Uri
) As IAsyncAction
public:
static IAsyncAction^ InstallCommandSetsFromFileAsync(
Uri^ voiceCommandDefinitionUri
)
Parameters
voiceCommandDefinitionUri
Type: System.Uri [.NET] | Windows::Foundation::Uri [C++]The absolute path to the Voice Command Definition (VCD) file.
Return value
Type: IAsyncAction
An asynchronous action.
Remarks
When this method is called, the voice commands in the VCD file are installed on the phone as part of the Speech feature, and are removed only when the app is uninstalled.
For a code example of how to use the InstallCommandSetsFromFileAsync method, see the Initializing the VCD file section in Voice commands for Windows Phone.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.Speech.VoiceCommands Windows::Phone::Speech::VoiceCommands [C++] |
Metadata |
Windows.WinMD |
Capabilities |
ID_CAP_SPEECH_RECOGNITION [Windows Phone] ID_CAP_MICROPHONE [Windows Phone] ID_CAP_NETWORKING [Windows Phone] |
See also
VoiceCommandService