Hi,
As far as I know there’s no built-in feature for text to speech in Metro. But on a desktop application, you can use the native (C++) SAPI:
http://msdn.microsoft.com/en-us/library/ee125077(v=vs.85). You can give it a try and see whether it works fine in your application: Build a custom C++ WinRT component, which is able to talk
to native Windows components in Metro. Then in the JavaScript code, invoke your own C++ component.
You can also use a cloud based solution. If you don’t familiar with C++, this approach is much easier, as all it is needed to do is make a web request. This requires a network connection, Microsoft Translator API can be used to convert text to speech:
http://msdn.microsoft.com/en-us/library/ff512405.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact
msdnmg@microsoft.com.
Microsoft One Code Framework