Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VoiceCommandService.InstallCommandSetsFromFileAsync method

Applies to Windows Phone only

Installs the CommandSet elements in a Voice Command Definition (VCD) file.

Syntax


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

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

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

 

 

Community Additions

Show:
© 2014 Microsoft