locked
How to use SAPI in metro

    Question

  • I tried to use Speech API in metro but I just don't know how to do that.

    First I tried building win32 DLL using SAPI and use it in Metro but failed - LoadPackagedLibrary returned error code 127 and I couldn't find detail information about it on the web.

    Then I tried building static library but I couldn't include header file in Metro. It just returned bunch of errors for interfaces in sapi.h, for example CComPtr<ISpObjectToken>.

    Finally, I tried create Windows Runtime Library, but I can't replace CComPtr to WRL::ComPtr.

    Can anyone help me to use SAPI in Metro? Basically, I want to use speech recognition in Metro, not using Bing or web access.

    Saturday, March 8, 2014 12:04 AM

Answers

  • SAPI is not supported in Windows Store apps. Sorry!

    For speech recognition you'll have to use a web service (such as Bing's) or find a 3rd party solution (I'm not aware of any).

    --Rob

    • Marked as answer by brianbscho Tuesday, March 11, 2014 5:18 PM
    Saturday, March 8, 2014 12:13 AM
    Owner

All replies

  • SAPI is not supported in Windows Store apps. Sorry!

    For speech recognition you'll have to use a web service (such as Bing's) or find a 3rd party solution (I'm not aware of any).

    --Rob

    • Marked as answer by brianbscho Tuesday, March 11, 2014 5:18 PM
    Saturday, March 8, 2014 12:13 AM
    Owner
  • I heard that there are some ways to use Win32 APIs in Metro. Is there a specific reason that SAPI is not supported in Windows Store app? I'm just curious.
    Monday, March 10, 2014 9:47 PM