开发者

Can we use Android TTS from web pages?

How do I use A开发者_JS百科ndroid TTS API's from the web page?


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜