如何从网页上阅读文字 [英] How do I read text from webpages

查看:403
本文介绍了如何从网页上阅读文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我正在尝试创建一个旁白应用程序,我在网页或word文档上突出显示一些文本,当我按下按钮时它会读出来。



这就是我的方式希望它能起作用。

如果我在维基百科上突出显示一些文字,那么我按下叙述按钮。我希望它能说出所有突出显示的文字。



有没有人对我如何做到这一点有任何想法?

解决方案





此类应用程序的一个很好的起点是 SpeechSynthesizer Class [ ^ ],这提供了对语音引擎的访问。



上面链接的底部有一个小样本,可以帮助你入门。



...希望它有所帮助。

Hello. I am trying to create a narration app whereby I highlight some text on a webpage or word document and it reads it out when i press a button.

This is how i would like it to work.
If I highlight some text on Wikipedia then I press the narrate button. I want it to speak all the highlighted text.

Does anyone have any ideas on how i can do this?

解决方案

Hi,

A good starting point for this type of application is SpeechSynthesizer Class[^], this provides access to speech engines.

There is a small sample at the bottom of the above link, that should get you started.

... hope it helps.


这篇关于如何从网页上阅读文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆