Reputation: 17527
When using speech recognition in a Windows Phone app you have to remember to add the speech recognition capability ID_CAP_SPEECH_RECOGNITION
to the app's application manifest, as advised in this answer or the documentation here and here
In Windows Phone 8 these settings would, I believe, have been available through the Capabilities page of Manifest Designer, as we can see from this screenshot taken from the 'How to modify the app manifest file for Windows Phone 8' documentation:
But in Windows Phone 8.1 under Visual Studio 2013 the Capabilities page of the Manifest Designer does not look like that. It looks like this:
There is no entry for speech recognition there. So I assume I need to edit the Package.appxmanifest
file in the project directory. The relevant section looks like this:
<Capabilities>
<Capability Name="internetClientServer" />
<DeviceCapability Name="microphone" />
</Capabilities>
How would I add ID_CAP_SPEECH_RECOGNITION
to that?
Upvotes: 1
Views: 469
Reputation: 17527
ID_CAP_SPEECH_RECOGNITION
is a red herring for getting speech recognition and synthesis working using Windows.Media.SpeechRecognition
and Windows.Media.SpeechSynthesis
on Windows Phone 8.1. As Kunal Chowdhury points out in his blog post Windows Phone 8.1 Text-To-Speech - What’s changed for #WPDev we just need to enable the Microphone capability which, as we can see in the screenshot in the question, is available in the Capabilities page of the Manifest Designer under Visual Studio 2013.
Upvotes: 1