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.