Samarth Agarwal
Samarth Agarwal

Reputation: 2134

Error 0x80045561 in VoiceCommandDefinition Initializing

I am getting the following error on the line on code that says,

await VoiceCommandService.InstallCommandSetsFromFileAsync(new Uri(@"ms-appx:///VoiceCommandDefinition1.xml"));

Error is

An exception of type 'System.Exception' occurred in mscorlib.ni.dll but was not handled in user code Additional information: Exception from HRESULT: 0x80045561

The Error only occurs on Windows Phone 8. When I try on Emulator running on Windows Phone 8.1, its all fine.

I checked on MSDN and it says that this error code means that The CommandSet element contains content other than Command or PhraseList elements. **

Note: My VCD file contains PhraseTopics and not PhraseLists. Is it something related to that?

**

Upvotes: 0

Views: 64

Answers (1)

robwirving
robwirving

Reputation: 1798

The concept of PhraseTopics was only introduced in Windows Phone 8.1. If you want to use Voice Commands in Windows Phone 8.0 you'll need to have a seperate VCD file using PhraseLists.

Upvotes: 1

Related Questions