简体   繁体   English

将解析器添加到充当Web浏览器的Java小程序中

[英]adding a parser to a java applet that works as a web browser

I am trying to make a web browser that works entirely on voice commands (ie speech-to-text and vice versa using sphinx.) 我正在尝试使网络浏览器完全可以处理语音命令(即使用狮身人面像的语音转文本,反之亦然)。

I have a Java applet, but I don't know how to add a parser to it so that different parts of different websites go to a particular segment in my browser. 我有一个Java applet,但是我不知道如何向其中添加解析器,以便不同网站的不同部分进入浏览器中的特定段。

What are the necessary steps to add a parser to a web browser applet? 将解析器添加到Web浏览器小程序的必要步骤是什么?

You don't need java applet, it creates too many issues. 您不需要Java applet,它会产生太多问题。 You need something like pocketsphinx.js: 您需要类似pocketsphinx.js的内容:

https://github.com/syl22-00/pocketsphinx.js https://github.com/syl22-00/pocketsphinx.js

This technology can give you access to content of the browser with javascript, a way easier way to manage things. 这项技术可以让您使用javascript(一种更轻松的方式来管理事物)访问浏览器的内容。

Now i am able to make a fully speech based web browser. 现在,我能够制作一个完全基于语音的Web浏览器。 I used Jsoup for extracting various elements of any web page. 我使用Jsoup提取任何网页的各种元素。 Then with the help of sphinx and freetts i allowed users to interact with browser by using speech commands only. 然后,在sphinxfreetts的帮助下,我允许用户仅使用语音命令与浏览器进行交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM