开发者

Can we use Android TTS from web pages?

开发者 https://www.devze.com 2022-12-18 13:38 出处:网络
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).

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

精彩评论

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