title: Accessing Windows.Media.SpeechRecognition in a Windows Phine Silverlight 8.1 app
body: <p>I have an older Windows Phone app that has been migrated along from Windows Phone 7 and is currently targeting Windows Phone Silverlight 8.1.</p>
  
  <p>I'd like to add Cortana Voice Command integration. I started following the steps in <a href="https://msdn.microsoft.com/en-us/library/dn630430.aspx" rel="nofollow noreferrer">Quickstart: Voice commands with Cortana (XAML)</a> and got to C# that referenced the Windows.Media.SpeechRecognition namespace.</p>
  
  <p>The namespace can't be resolved. There are references in the project to:</p>
  
  <ul>
  <li>.NET for Windows Phone<br>
  C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1\</li>
  <li>Windows Phone<br>
  C:\Program Files (x86)\Windows Phone Silverlight Kits\8.1\Windows Metadata\</li>
  </ul>
  
  <p>I can use Windows.Phone.Speech.VoiceCommands, but I suspect it won't give the required Cortana integration. The question <a href="https://stackoverflow.com/questions/25950394/speech-recognition-vs-voice-commands-in-windows-phone">Speech Recognition vs. Voice Commands in Windows phone</a> seems to confirm this.</p>
  
  <p>Creating a new Windows Phone 8.1 app from scratch gives a different set of references:</p>
  
  <ul>
  <li>.NET for Windows Store apps<br>
  C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1\</li>
  <li>Windows Phone 8.1<br>
  C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral\</li>
  </ul>
  
  <p><strong>How can I access the Cortana API's from a Windows Phone 8.1 Silverlight App?</strong></p>