tags:

views:

589

answers:

1

How do I use Android TTS API's from the web page?

A: 

You can't in the Android Browser, but you can in a WebView packaged in your app (as fiXedd alluded to).

Look into WebView#addJavascriptInterface for details on how you can expose a shim between a WebView and a Java class (which could expose TTS functions).

Roman Nurik