My android activity layout has a textview
, button
and a webview
. The webview
receive an html string to render. I want to add Text to Speech for the content of my webview
.
How to enable Text to Speech on webview
on click of the button?
I am passing some text like this in my webview:
<p>Praesent iaculis mauris in ipsum viverra, vitae aliquet lorem maximus. Curabitur ac laoreet orci. Vivamus lectus ex, dapibus ac convallis suscipit, sodales eget magna. Aliquam egestas vehicula tortor in sagittis. Aliquam sit amet condimentum ante, non malesuada libero. Duis a enim bibendum, faucibus augue at, lobortis purus. Vestibulum interdum condimentum nulla vitae bibendum. Aenean nisi risus, pretium sed massa et, lacinia feugiat augue.</p>
<br/>
<blockquote>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.</blockquote>
I want TTS to ignore HTML tags.
Comments
Post a Comment