WO2014101378A1 - Page control method and browser - Google Patents

Page control method and browser Download PDF

Info

Publication number
WO2014101378A1
WO2014101378A1 PCT/CN2013/077469 CN2013077469W WO2014101378A1 WO 2014101378 A1 WO2014101378 A1 WO 2014101378A1 CN 2013077469 W CN2013077469 W CN 2013077469W WO 2014101378 A1 WO2014101378 A1 WO 2014101378A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
browser
android system
web page
webpage
Prior art date
Application number
PCT/CN2013/077469
Other languages
French (fr)
Chinese (zh)
Inventor
杨笑晨
王晓晖
方旭阳
施驰
Original Assignee
深圳创维数字技术股份有限公司
深圳市创维软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术股份有限公司, 深圳市创维软件有限公司 filed Critical 深圳创维数字技术股份有限公司
Publication of WO2014101378A1 publication Critical patent/WO2014101378A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a webpage control method and a browser. Background technique
  • Android system has been widely used in mobile phones, tablets and digital TV terminals by virtue of its own advantages.
  • Android system has a fully open platform, equipped with Android operating system devices, users can install and uninstall software, games and other third-party service providers to provide programs, through such programs to continuously expand the TV's functions, and can Internet surfing and other functions are realized through network cables and wireless networks.
  • Android system has more than 4 third-party open source libraries, including voice engine
  • the voice engine is developed by Java native applications, which need to be installed or preset in the system. Android does not support browsers developed through web pages. However, in order to meet the needs of users, especially for users who cannot browse the web through visual browsing (such as blind people), the webpage usually carries a voice file in the webpage, so that when the webpage is opened, the webpage text voice can be played, and the webpage voice play In the Android system, the voice engine cannot be used to implement voice playback, which causes the user to fail to implement the function of playing the voice of the webpage, which brings inconvenience to the user. Summary of the invention
  • the technical problem to be solved by the embodiments of the present invention is a method for controlling a webpage and a browser.
  • the webpage voice playback can be implemented on the Android system, so that the user can browse the webpage content by listening on the Android system, perfect the browser function on the Android system, and improve the intelligent type of the device.
  • an embodiment of the present invention provides a control method for a webpage. Law, including:
  • the present invention also provides a browser, including:
  • a first obtaining unit configured to read webpage content from a webpage of a browser of the Android system
  • a calling unit configured to search, according to the webpage content, the voice data corresponding to the webpage content from the preset voice library
  • a playing unit configured to play the voice data.
  • the embodiment of the present invention obtains the voice script data and the webpage content carried by the webpage from the webpage of the browser of the Android system, and searches for the voice data corresponding to the webpage content from the preset voicebook according to the webpage content, and Play voice content.
  • the webpage can also realize the webpage voice play on the Android system, and the browser function of the Android system is perfected, so that the user can also browse the webpage content by listening on the Android system, thereby alleviating the user's visual fatigue, and satisfying those who cannot browse the webpage through visual browsing.
  • the browsing requirements of users improve the intelligence of the device.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for controlling a webpage according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for controlling a webpage according to the present invention
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for controlling a webpage according to the present invention.
  • FIG. 4 is a schematic structural view of a first embodiment of a browser according to the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a browser according to the present invention.
  • Figure 6 is a block diagram showing the structure of a third embodiment of a browser of the present invention. detailed description
  • FIG. 1 is a flowchart of a first embodiment of a method for controlling a web page according to the present invention.
  • the executor of the present invention may be a browser or other browser-enabled client application software that can read web pages.
  • the method for controlling a webpage according to this embodiment includes the following steps:
  • the Android system is a Linux-based free and open source operating system, mainly used in portable devices such as smart phones and tablets.
  • the Android system due to the open source nature of the Android system and the improvement of its system, more and more other devices use the Android system. For example, a set top box. Developers can develop a variety of user-facing applications on the Android system to improve user experience.
  • the browser may be a browser or other client application software with browser function that can read a webpage.
  • client applications such as meager, QQ and games.
  • the webpage content includes, but is not limited to, a web title or a webpage text
  • the webpage format may be an HTML (Hypertext Markup Language).
  • the voice data corresponding to the webpage content in the preset voice library is searched by executing the voice script data carried by the webpage.
  • a script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by the application.
  • Various scripts have been widely used in web design because scripts can not only reduce the size of web pages and speed up web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the mailbox software such as Outlook Express or Foxmail, which is realized by the script function.
  • the voice library can store voice data of various languages, that is, voice data, according to the settings of the manufacturer.
  • the voice script data is executed according to the obtained webpage content, so as to find the voice data corresponding to the webpage content in the voice library, which is convenient for the user to listen to. For example: opening a webpage containing text, the browser obtains the voice script data carried by the webpage and the text of the webpage, and the browser invokes the voice data corresponding to the text in the voice library by executing the voice script data, and outputs the text data, such as the webpage "browser", The browser executes the voice script data to call the voice data corresponding to the text "browser” in the voice library, and then plays the voice of the text "browser” in the form of sound.
  • the voice data can be played in a sound form through a built-in speaker or an external speaker.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for controlling a webpage according to the present invention.
  • the method for controlling a webpage according to this embodiment includes the following steps:
  • the startup information when the browser receives the startup information, includes the user launching the startup information of the browser by using a mouse or other control terminal of the output instruction.
  • setting the voice library includes: detecting whether the Android system stores a voice engine supporting the Android system.
  • the voice engine is a library for supporting Java-encapsulated voice data of the Android system, and the voice engine can store voice data of various languages according to the needs of the manufacturer and is called by other local applications using voice. Other applications can access their internal voice data through the API (Application Programming Interface) of the speech engine to implement voice output.
  • a local application for the SMS voice broadcast is installed in the mobile phone.
  • the voice broadcast application invokes the voice data corresponding to the short text in the voice engine according to the text of the voice engine according to the text of the voice message.
  • the voice data is played to realize short message voice output.
  • the voice engine supporting the Android system is not stored locally, the voice playback operation is ended.
  • Setting the speech library further includes: obtaining a speech engine of the Android system and converting the speech engine of the Android system into a compatible speech library.
  • the voice script data developed through the web form is mostly embedded in the Html webpage by the JavaScript script, when running the voice script.
  • JavaScript script the voice script needs to read the speech engine carried by the Android system, but due to the difference of the writing language, the Android system does not support direct access to the internal voice data of the local Java speech engine through JavaScript script, so a voice needs to be created.
  • the library is compatible with JavaScript scripts for JavaScript scripts to call voice data directly.
  • a voice library for use by converting the local speech engine into a voice library compatible with the voice script data, that is, translate the local speech engine into a language or signal that the JavaScript script can be compatible with or recognize.
  • the local speech engine is converted to a speech library compatible with the speech script data by extending the Java speech object into the browser.
  • the voice library is initialized after the voice library is created.
  • step S201 the step S202, and the step S203, refer to the step S100, the step S101, and the step S102 in the embodiment shown in FIG.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for controlling a webpage according to the present invention.
  • the method for controlling a webpage according to this embodiment includes the following steps:
  • the voice data corresponding to the webpage content in the voice library is searched by executing the voice script data.
  • the voice script data includes instructions that invoke a local voice engine.
  • the script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by an application, such as a browser. .
  • Various types of scripts have been widely used in web design, because scripts can not only reduce the speed of web pages and improve the speed of web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the mailbox software such as Outlook Express or Foxmail, which is realized by the script function.
  • step S301, the step S302, and the step S303 refer to the step S100, the step S101, and the step S102 in the embodiment shown in FIG.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a browser according to the present invention.
  • a browser according to this embodiment includes: a first obtaining unit 100, a calling unit 200, and a playing unit 300.
  • the first obtaining unit 100 is configured to read webpage content from a webpage of a browser of the Android system.
  • the Android system is a Linux-based free and open source operating system, mainly used in portable devices such as smart phones and tablets.
  • the Android system due to the open source nature of the Android system and the improvement of its system, more and more other devices use the Android system. For example, a set top box. Developers can develop a variety of user-facing applications on the Android system to improve user experience.
  • the browser may be a browser or other client application software with browser function that can read a webpage.
  • client applications such as meager, QQ and games.
  • the webpage content includes a web title or a webpage text
  • the webpage format may be an HTML (Hypertext Markup Language).
  • the calling unit 200 is configured to search for voice data corresponding to the webpage content from the preset voice library according to the webpage content.
  • the voice data corresponding to the webpage content in the preset voice library is searched by executing the voice script data carried by the webpage.
  • the script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by the application.
  • Various scripts have been widely used in web design because scripts can not only reduce the size of web pages and speed up web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the email software such as Outlook Express or Foxmail, which is implemented by the script function.
  • the voice library can store voice data of various languages, that is, voice data, according to the settings of the manufacturer. Performing voice script data according to the obtained webpage content, thereby finding the webpage in the voice library
  • the voice data corresponding to the content is convenient for the user to listen to. For example: Open a webpage with text, the browser obtains the voice script data carried by the webpage and the text of the webpage, and the browser invokes the voice data corresponding to the text in the voice library by executing the voice script data, and outputs the text, such as the webpage text browser. ", the browser executes the voice script data to call the voice data corresponding to the text "browser" in the voice library, and then plays the text "browser” voice in the form of sound.
  • the playing unit 300 is configured to play the voice data.
  • the voice data can be played in a sound form through a built-in speaker or an external speaker.
  • FIG. 5 is a schematic structural diagram of a first embodiment of a browser according to the present invention.
  • a browser according to this embodiment includes:
  • the first obtaining unit 100, the calling unit 200, and the playing unit 300 are identical to each other.
  • the browser also includes:
  • the creating unit 400 is configured to detect whether the startup information is received.
  • the startup information includes a user outputting startup information for launching a browser through a mouse or other control terminal.
  • the startup information when the browser receives the startup information, includes the user launching the startup information of the browser by using a mouse or other control terminal of the output instruction.
  • setting the voice library includes: detecting whether the Android system stores a voice engine supporting the Android system.
  • the voice engine is a library for supporting Java-encapsulated voice data of the Android system, and the voice engine can store voice data of various languages according to the needs of the manufacturer and is called by other local applications using voice. Other applications can access their internal voice data through the API (Application Programming Interface) of the speech engine to achieve voice output.
  • a local application for the SMS voice broadcast is installed in the mobile phone.
  • the voice broadcast application invokes the voice data corresponding to the short text in the voice engine according to the text of the voice engine according to the text of the voice message.
  • the voice data is played to realize short message voice output. If the voice engine supporting the Android system is not stored locally, the operation ends.
  • Setting up the voice library also includes: obtaining the speech engine of the Android system and the Android system
  • the unified speech engine is converted to a compatible speech library.
  • the Android system due to the limitation of writing language, only the Java application is supported on the Android system, and the voice script data developed through the web form is mostly embedded in the Html webpage by the JavaScript script.
  • the voice script needs to read the voice engine carried by the Android system, but due to the difference of the writing language, the Android system does not directly access the internal voice data of the local Java voice engine through the JavaScript script, so it is necessary to create a voice library to be compatible.
  • a voice library for use by converting the local speech engine into a voice library compatible with the voice script data, that is, translate the local speech engine into a language or signal that the JavaScript script can be compatible with or recognize.
  • the local speech engine is converted to a speech library compatible with the speech script data by extending the Java speech object into the browser.
  • the voice library is initialized after the voice library is created.
  • the creating unit 400 further includes a second detecting unit 10, a second acquiring unit 20, and a converting unit 30.
  • the second detecting unit 10 is configured to detect whether the Android system stores a voice engine supporting the Android system.
  • the second detecting unit when the second detecting unit detects that the Android system stores the voice engine supporting the Android system, the second acquiring unit is notified to acquire the voice engine of the Android system.
  • the voice engine is a library for supporting Java-encapsulated voice data of the Android system, and the voice engine can store voice data of various languages according to the needs of the manufacturer and is called by other local applications using voice. Other applications can access their internal voice data through the speech engine's API (Application Programming Interface) to achieve voice output.
  • a local application for the SMS voice broadcast is installed in the mobile phone.
  • the voice broadcast application invokes the voice data corresponding to the short text in the voice engine according to the text of the voice engine according to the text of the voice message.
  • the voice data is played to realize short message voice output.
  • the voice engine supporting the Android system is not stored locally, the operation of the voice play is ended.
  • the second obtaining unit 20 is configured to acquire a voice engine of the Android system.
  • the speech engine of the Android system is obtained to provide a browser to create a speech library.
  • the converting unit 30 is configured to convert the voice engine of the Android system into a compatible voice library.
  • the local speech engine is converted to a speech library that is compatible with the speech script data, i.e., the local speech engine is translated into a language or signal that is compatible or recognizable by the JavaScript script.
  • FIG. 6 is a schematic structural diagram of a third embodiment of a browser according to the present invention.
  • a browser according to this embodiment includes: a first obtaining unit 100, a calling unit 200, and a playing unit 300.
  • the browser also includes:
  • the first detecting unit 500 The first detecting unit 500.
  • the detecting unit 500 is configured to detect whether the webpage carries voice script data.
  • the voice data corresponding to the webpage content in the voice library is searched by executing the voice script data.
  • the voice script data includes instructions that invoke a local voice engine.
  • the script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by an application, such as a browser. .
  • Various types of scripts have been widely used in web design, because scripts can not only reduce the speed of web pages and improve the speed of web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the mailbox software such as Outlook Express or Foxmail, which is realized by the script function.
  • the present invention has the following advantages:
  • the embodiment of the present invention obtains the voice script data and the webpage content carried by the webpage from the webpage of the browser of the Android system, and searches for the voice data corresponding to the webpage content from the preset voicebook according to the webpage content, and Play voice content.
  • the webpage can also realize the webpage voice play on the Android system, and the browser function of the Android system is perfected, so that the user can also browse the webpage content by listening on the Android system, thereby alleviating the user's visual fatigue, and satisfying those who cannot browse the webpage through visual browsing.
  • the browsing requirements of users improve the intelligence of the device.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed is a page control method, comprising: reading page content from the page of the browser of the Android system; searching, according to the page content, a pre-configured voice library for voice data corresponding to the page content; and playing the voice data. Also disclosed is a browser. With the present invention, audio playback can be implemented on the page of the browser of the Android system, and the user can browse the page content on the Android system by hearing, thereby perfecting the browser functions of the Android system and improving the intelligence of the device.

Description

一种网页的控制方法及浏览器  Webpage control method and browser
本申请要求于 2012 年 12 月 28 日提交中国专利局、 申请号为 201210579315.7, 发明名称为 "一种网页的控制方法及浏览器" 的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  This application claims priority to Chinese Patent Application No. 201210579315.7, entitled "Control Method and Browser of Web Pages" on December 28, 2012, the entire contents of which are incorporated herein by reference. In the application. Technical field
本发明涉及通信技术领域, 尤其涉及一种网页的控制方法及浏览器。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a webpage control method and a browser. Background technique
目前, Android系统凭借自身优势已广泛使用于手机、平板电脑和数字电 视终端中。 Android系统具有全开放式平台, 搭载了 Android操作系统的设备, 可以由用户自行安装和卸载软件、 游戏等第三方服务商提供的程序,通过此类 程序来不断对电视的功能进行扩充, 并可以通过网线、无线网络来实现上网冲 浪等功能。  At present, the Android system has been widely used in mobile phones, tablets and digital TV terminals by virtue of its own advantages. Android system has a fully open platform, equipped with Android operating system devices, users can install and uninstall software, games and other third-party service providers to provide programs, through such programs to continuously expand the TV's functions, and can Internet surfing and other functions are realized through network cables and wireless networks.
Android 系统拥有 4艮多第三方开源库的支持, 其中包括语音引擎 Android system has more than 4 third-party open source libraries, including voice engine
( TextToSpeech, TTS )。 如同众多 Android应用一样, 使用语音引擎开发的都 是 Java本地应用, 需要安装或预置在系统中, Android系统并不支持通过网页 形式开发的浏览器。但目前网页为了满足用户需求,特别是不能通过视觉浏览 网页的用户 (如盲人)的浏览要求, 通常都会在网页中携带语音文件, 以使打 开网页时能够进行播放网页文字语音, 而网页语音播放在 Android系统中无法 利用语音引擎实现语音播放, 导致用户不能实现网页语音播放的功能,给用户 带来了不便。 发明内容 (TextToSpeech, TTS). Like many Android applications, the voice engine is developed by Java native applications, which need to be installed or preset in the system. Android does not support browsers developed through web pages. However, in order to meet the needs of users, especially for users who cannot browse the web through visual browsing (such as blind people), the webpage usually carries a voice file in the webpage, so that when the webpage is opened, the webpage text voice can be played, and the webpage voice play In the Android system, the voice engine cannot be used to implement voice playback, which causes the user to fail to implement the function of playing the voice of the webpage, which brings inconvenience to the user. Summary of the invention
本发明实施例所要解决的技术问题在于,一种网页的控制方法及一种浏览 器。 可在 Android系统上实现网页语音播放, 使得用户可以在 Android系统上 通过听觉浏览网页内容, 完善了 Android系统上的浏览器功能, 提高设备的智 能型。  The technical problem to be solved by the embodiments of the present invention is a method for controlling a webpage and a browser. The webpage voice playback can be implemented on the Android system, so that the user can browse the webpage content by listening on the Android system, perfect the browser function on the Android system, and improve the intelligent type of the device.
为了解决上述技术问题,一方面,本发明实施例提供了一种网页的控制方 法, 包括: In order to solve the above technical problem, in one aspect, an embodiment of the present invention provides a control method for a webpage. Law, including:
从 Android系统的浏览器的网页中读取网页内容;  Reading webpage content from a webpage of a browser of the Android system;
根据所述网页内容,从预置语音库中查找与所述网页内容相对应的语音数 据;  Searching, according to the content of the webpage, voice data corresponding to the content of the webpage from a preset voice library;
播放所述语音数据。  Playing the voice data.
另一方面, 本发明还提供了一种浏览器, 包括:  In another aspect, the present invention also provides a browser, including:
第一获取单元, 用于从 Android系统的浏览器的网页中读取网页内容; 调用单元, 用于根据所述网页内容,从预置语音库中查找与所述网页内容 相对应的语音数据;  a first obtaining unit, configured to read webpage content from a webpage of a browser of the Android system; and a calling unit, configured to search, according to the webpage content, the voice data corresponding to the webpage content from the preset voice library;
播放单元, 用于播放所述语音数据。  a playing unit, configured to play the voice data.
实施本发明实施例, 具有如下有益效果:  Embodiments of the present invention have the following beneficial effects:
本发明实施例通过从 Android系统的浏览器的网页中获得网页携带的语音 脚本数据和网页内容,根据所述网页内容,从预置语音库中查找与所述网页内 容相对应的语音数据, 并播放语音内容。 使得网页也可在 Android系统上实现 网页语音播放, 完善 Android系统的浏览器功能, 使得用户也可以在 Android 系统上通过听觉浏览网页内容,緩解用户的视觉疲劳, 同时满足那些不能通过 视觉浏览网页的用户 (如盲人) 的浏览要求, 提高设备的智能性。 附图说明  The embodiment of the present invention obtains the voice script data and the webpage content carried by the webpage from the webpage of the browser of the Android system, and searches for the voice data corresponding to the webpage content from the preset voicebook according to the webpage content, and Play voice content. The webpage can also realize the webpage voice play on the Android system, and the browser function of the Android system is perfected, so that the user can also browse the webpage content by listening on the Android system, thereby alleviating the user's visual fatigue, and satisfying those who cannot browse the webpage through visual browsing. The browsing requirements of users (such as blind people) improve the intelligence of the device. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1是本发明一种网页的控制方法的第一实施例流程示意图;  1 is a schematic flow chart of a first embodiment of a method for controlling a webpage according to the present invention;
图 2是本发明一种网页的控制方法的第二实施例流程示意图;  2 is a schematic flow chart of a second embodiment of a method for controlling a webpage according to the present invention;
图 3是本发明一种网页的控制方法的第三实施例流程示意图;  3 is a schematic flow chart of a third embodiment of a method for controlling a webpage according to the present invention;
图 4是本发明一种浏览器的第一实施例结构示意图;  4 is a schematic structural view of a first embodiment of a browser according to the present invention;
图 5是本发明一种浏览器的第二实施例结构示意图;  FIG. 5 is a schematic structural diagram of a second embodiment of a browser according to the present invention; FIG.
图 6是本发明一种浏览器的第三实施例结构示意图。 具体实施方式 Figure 6 is a block diagram showing the structure of a third embodiment of a browser of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
请参照图 1 , 为本发明一种网页的控制方法的第一实施例流程图。 本发明 的执行主体可以是浏览器或其他可以读取网页的具有浏览器功能的客户端应 用软件。 如图 1所述, 本实施例所述的一种网页的控制方法包括步骤:  Please refer to FIG. 1 , which is a flowchart of a first embodiment of a method for controlling a web page according to the present invention. The executor of the present invention may be a browser or other browser-enabled client application software that can read web pages. As shown in FIG. 1, the method for controlling a webpage according to this embodiment includes the following steps:
5100, 从 Android系统的浏览器的网页中读取网页内容。  5100, reading web content from the webpage of the browser of the Android system.
具体实施例中, 所述 Android系统是一种基于 Linux的自由及开放源代码 的操作系统, 主要使用于便携设备, 如智能手机和平板电脑。 但由于 Android 系统的开源特性和随着其系统的完善,越来越多的其他设备使用 Android系统。 例如机顶盒。 开发人员可以在 Android系统开发各种服务于用户的应用软件, 提高用户体验度。  In a specific embodiment, the Android system is a Linux-based free and open source operating system, mainly used in portable devices such as smart phones and tablets. However, due to the open source nature of the Android system and the improvement of its system, more and more other devices use the Android system. For example, a set top box. Developers can develop a variety of user-facing applications on the Android system to improve user experience.
进一步的,所述浏览器可以是浏览器或其他可以读取网页的具有浏览器功 能的客户端应用软件。 例如: 微薄、 QQ和游戏等客户端应用软件。  Further, the browser may be a browser or other client application software with browser function that can read a webpage. For example: client applications such as meager, QQ and games.
进一步的, 所述网页内容包括但不限于网络标题或网页正文, 网页格式可 以为 HTML ( Hypertext Markup Language, 超文本标 i己语言)。  Further, the webpage content includes, but is not limited to, a web title or a webpage text, and the webpage format may be an HTML (Hypertext Markup Language).
5101 ,根据所述网页内容,从预置语音库中查找与所述网页内容相对应的 语音数据。  5101. Search for voice data corresponding to the webpage content from the preset voice library according to the webpage content.
具体实施例中,通过执行网页携带的语音脚本数据来查找预置语音库中所 述网页内容相对应的语音数据。 其中, 脚本是使用一种特定的描述性语言, 依 据一定的格式编写的可执行文件。 脚本通常可以由应用程序临时调用并执行。 各类脚本已被广泛地应用于网页设计中,因为脚本不仅可以减小网页的规模和 提高网页浏览速度, 而且可以丰富网页的表现, 如动画、 声音等。 例如: 当点 击网页上的 Email地址时能自动调用 Outlook Express或 Foxmail这类邮箱软 件, 就是通过脚本功能来实现的。 进一步的,语音库可以根据生厂商的设置存储各国语言的语音数据, 即声 音数据。根据获得的网页内容执行语音脚本数据,从而查找语音库中所述网页 内容对应的语音数据, 方便用户听取。 例如: 打开含有文本的网页, 浏览器获 得网页携带的语音脚本数据和网页的文本, 浏览器通过执行语音脚本数据,在 语音库调用文本对应的语音数据并输出, 如网页文本 "浏览器", 浏览器执行 语音脚本数据调用语音库中文本 "浏览器"对应的语音数据, 然后以声音的形 式播放文本 "浏览器" 的语音。 In a specific embodiment, the voice data corresponding to the webpage content in the preset voice library is searched by executing the voice script data carried by the webpage. Among them, a script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by the application. Various scripts have been widely used in web design because scripts can not only reduce the size of web pages and speed up web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the mailbox software such as Outlook Express or Foxmail, which is realized by the script function. Further, the voice library can store voice data of various languages, that is, voice data, according to the settings of the manufacturer. The voice script data is executed according to the obtained webpage content, so as to find the voice data corresponding to the webpage content in the voice library, which is convenient for the user to listen to. For example: opening a webpage containing text, the browser obtains the voice script data carried by the webpage and the text of the webpage, and the browser invokes the voice data corresponding to the text in the voice library by executing the voice script data, and outputs the text data, such as the webpage "browser", The browser executes the voice script data to call the voice data corresponding to the text "browser" in the voice library, and then plays the voice of the text "browser" in the form of sound.
S103 , 播放所述语音数据。  S103. Play the voice data.
具体实施例中,可以通过内置喇叭或外置音箱以声音形式播放所述语音数 据。  In a specific embodiment, the voice data can be played in a sound form through a built-in speaker or an external speaker.
请参照图 2, 为本发明一种网页的控制方法第二实施例流程示意图。 本实 施例所述的一种网页的控制方法包括步骤:  2 is a schematic flowchart of a second embodiment of a method for controlling a webpage according to the present invention. The method for controlling a webpage according to this embodiment includes the following steps:
S200, 检测所述浏览器启动时, 设置语音库。  S200. When detecting that the browser is started, set a voice library.
具体实施例中, 当浏览器接收到启动信息时启动, 所述启动信息包括用户 通过鼠标或其他输出指令的控制端来输出启动浏览器的启动信息。  In a specific embodiment, when the browser receives the startup information, the startup information includes the user launching the startup information of the browser by using a mouse or other control terminal of the output instruction.
具体实施例中, 设置语音库包括: 检测 Android 系统是否存储有支持 Android系统的语音引擎。 其中, 所述语音引擎为支持 Android系统的 Java封 装语音数据的库,所述语音引擎可以根据生厂商的需要存储各种语言的语音数 据并供其他使用语音的本地应用调用。其他应用可以通过所述语音引擎的 API ( Application Programming Interface,应用程序编程接口)访问其内部语音数据, 从而实现语音的输出。 例如: 在手机中安装短信语音播报的本地应用程序, 当 用户运行此语音播报应用程序,所述语音播报应用程序根据短信文本通过语音 引擎的 API 内容调用语音引擎中的短信文本对应的语音数据并播放所述语音 数据, 从而实现短信语音输出。 其中, 若本地没有存储支持 Android系统的语 音引擎, 则结束语音播放操作。  In a specific embodiment, setting the voice library includes: detecting whether the Android system stores a voice engine supporting the Android system. The voice engine is a library for supporting Java-encapsulated voice data of the Android system, and the voice engine can store voice data of various languages according to the needs of the manufacturer and is called by other local applications using voice. Other applications can access their internal voice data through the API (Application Programming Interface) of the speech engine to implement voice output. For example, a local application for the SMS voice broadcast is installed in the mobile phone. When the user runs the voice broadcast application, the voice broadcast application invokes the voice data corresponding to the short text in the voice engine according to the text of the voice engine according to the text of the voice message. The voice data is played to realize short message voice output. Wherein, if the voice engine supporting the Android system is not stored locally, the voice playback operation is ended.
设置语音库还还包括: 获取 Android系统的语音引擎和将所述 Android系 统的语音引擎转换为可兼容的语音库。 其中, 在 Android系统上, 由于编写语 言的限制 Android系统上只支持 Java应用程序,而通过网页形式开发的语音脚 本数据多是 JavaScript 脚本内嵌在 Html 网页中, 当运行关于语音脚本的 JavaScript脚本, 所述语音脚本需要读取 Android系统携带的语音引擎, 但由 于编写语言的差异性, Android系统并不支持通过 JavaScript脚本直接访问本 地的 Java 语音引擎的内部语音数据, 所以需要创建一个语音库能够兼容 JavaScript脚本以供 JavaScript脚本直接调用语音数据。 Setting the speech library further includes: obtaining a speech engine of the Android system and converting the speech engine of the Android system into a compatible speech library. Among them, on the Android system, due to the limitation of writing language, only the Java application is supported on the Android system, and the voice script data developed through the web form is mostly embedded in the Html webpage by the JavaScript script, when running the voice script. JavaScript script, the voice script needs to read the speech engine carried by the Android system, but due to the difference of the writing language, the Android system does not support direct access to the internal voice data of the local Java speech engine through JavaScript script, so a voice needs to be created. The library is compatible with JavaScript scripts for JavaScript scripts to call voice data directly.
其中,我们可以通过将本地语音引擎转化为与所述语音脚本数据兼容的语 音库的方法创建一个语音库以供使用, 即将本地语音引擎翻译成 JavaScript脚 本可兼容或识别的语言或信号。  Among them, we can create a voice library for use by converting the local speech engine into a voice library compatible with the voice script data, that is, translate the local speech engine into a language or signal that the JavaScript script can be compatible with or recognize.
进一步的, 通过将 Java语音对象扩展进浏览器中从而将本地语音引擎转 化为与所述语音脚本数据兼容的语音库。  Further, the local speech engine is converted to a speech library compatible with the speech script data by extending the Java speech object into the browser.
其中, 语音库创建结束后对语音库进行初始化。  The voice library is initialized after the voice library is created.
5201 , 从 Android系统的浏览器的网页中读取网页内容。  5201, reading the webpage content from the webpage of the browser of the Android system.
5202,根据所述网页内容,从预置语音库中查找与所述网页内容相对应的 语音数据。  5202. Search for voice data corresponding to the webpage content from the preset voice library according to the webpage content.
5203 , 播放所述语音数据。  5203. Play the voice data.
其中, 步骤 S201、 步骤 S202和步骤 S203 , 可以参见图 1所示实施例的 步骤 S100、 步骤 S101和步骤 S102, 在此不赘述。  For the step S201, the step S202, and the step S203, refer to the step S100, the step S101, and the step S102 in the embodiment shown in FIG.
请参照图 3 , 为本发明一种网页的控制方法第三实施例流程示意图。 本实 施例所述的一种网页的控制方法包括步骤:  Please refer to FIG. 3 , which is a schematic flowchart diagram of a third embodiment of a method for controlling a webpage according to the present invention. The method for controlling a webpage according to this embodiment includes the following steps:
5300, 检测所述网页是否携带语音脚本数据, 若是, 执行 S301步骤。 具体实施例中,通过执行所述语音脚本数据来查找语音库中所述网页内容 对应的语音数据。 所述语音脚本数据包括调用本地语音引擎的指令。 其中, 脚 本是使用一种特定的描述性语言,依据一定的格式编写的可执行文件。脚本通 常可以由应用程序临时调用并执行, 如浏览器。。 各类脚本已被广泛地应用于 网页设计中, 因为脚本不仅可以减小网页的 莫和提高网页浏览速度, 而且可 以丰富网页的表现, 如动画、 声音等。 例如: 当点击网页上的 Email地址时能 自动调用 Outlook Express或 Foxmail这类邮箱软件,就是通过脚本功能来实现 的。  5300. Detect whether the webpage carries voice script data, and if yes, perform step S301. In a specific embodiment, the voice data corresponding to the webpage content in the voice library is searched by executing the voice script data. The voice script data includes instructions that invoke a local voice engine. Among them, the script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by an application, such as a browser. . Various types of scripts have been widely used in web design, because scripts can not only reduce the speed of web pages and improve the speed of web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the mailbox software such as Outlook Express or Foxmail, which is realized by the script function.
5301 , 从 Android系统的浏览器的网页中读取网页内容。 .  5301, reading the webpage content from the webpage of the browser of the Android system. .
5302,根据所述网页内容,从预置语音库中查找与所述网页内容相对应的 语音数据。 5302. Search, according to the content of the webpage, a preset corresponding to the content of the webpage from the preset voice library. Voice data.
S303 , 播放所述语音数据。  S303. Play the voice data.
其中, 步骤 S301、 步骤 S302和步骤 S303 , 可以参见图 1所示实施例的 步骤 S100、 步骤 S101和步骤 S102, 在此不赘述。  For the step S301, the step S302, and the step S303, refer to the step S100, the step S101, and the step S102 in the embodiment shown in FIG.
下面阐述本发明实施例提供的一种浏览器的具体实现。  A specific implementation of a browser provided by an embodiment of the present invention is described below.
请参照图 4, 为本发明一种浏览器的第一实施例结构示意图。 本实施例所 述的一种浏览器包括: 第一获取单元 100、 调用单元 200和播放单元 300。  Please refer to FIG. 4 , which is a schematic structural diagram of a first embodiment of a browser according to the present invention. A browser according to this embodiment includes: a first obtaining unit 100, a calling unit 200, and a playing unit 300.
第一获取单元 100,用于从 Android系统的浏览器的网页中读取网页内容。 具体实施例中, 所述 Android系统是一种基于 Linux的自由及开放源代码 的操作系统, 主要使用于便携设备, 如智能手机和平板电脑。 但由于 Android 系统的开源特性和随着其系统的完善,越来越多的其他设备使用 Android系统。 例如机顶盒。 开发人员可以在 Android系统开发各种服务于用户的应用软件, 提高用户体验度。  The first obtaining unit 100 is configured to read webpage content from a webpage of a browser of the Android system. In a specific embodiment, the Android system is a Linux-based free and open source operating system, mainly used in portable devices such as smart phones and tablets. However, due to the open source nature of the Android system and the improvement of its system, more and more other devices use the Android system. For example, a set top box. Developers can develop a variety of user-facing applications on the Android system to improve user experience.
进一步的,所述浏览器可以是浏览器或其他可以读取网页的具有浏览器功 能的客户端应用软件。 例如: 微薄、 QQ和游戏等客户端应用软件。  Further, the browser may be a browser or other client application software with browser function that can read a webpage. For example: client applications such as meager, QQ and games.
进一步的, 所述网页内容包括网络标题或网页正文, 网页格式可以为 HTML ( Hypertext Markup Language, 超文本标己语言 )。  Further, the webpage content includes a web title or a webpage text, and the webpage format may be an HTML (Hypertext Markup Language).
调用单元 200, 用于根据所述网页内容, 从预置语音库中查找与所述网页 内容相对应的语音数据。  The calling unit 200 is configured to search for voice data corresponding to the webpage content from the preset voice library according to the webpage content.
具体实施例中,通过执行网页携带的语音脚本数据来查找预置语音库中所 述网页内容相对应的语音数据。 其中, 脚本是使用一种特定的描述性语言, 依 据一定的格式编写的可执行文件。 脚本通常可以由应用程序临时调用并执行。 各类脚本已被广泛地应用于网页设计中,因为脚本不仅可以减小网页的规模和 提高网页浏览速度, 而且可以丰富网页的表现, 如动画、 声音等。 例如: 当点 击网页上的 Email地址时能自动调用 Outlook Express或 Foxmail这类邮箱软 件, 就是通过脚本功能来实现的。  In a specific embodiment, the voice data corresponding to the webpage content in the preset voice library is searched by executing the voice script data carried by the webpage. Among them, the script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by the application. Various scripts have been widely used in web design because scripts can not only reduce the size of web pages and speed up web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the email software such as Outlook Express or Foxmail, which is implemented by the script function.
进一步的,语音库可以根据生厂商的设置存储各国语言的语音数据, 即声 音数据。根据获得的网页内容执行语音脚本数据,从而查找语音库中所述网页 内容对应的语音数据, 方便用户听取。 例如: 打开一页含有文本的网页, 浏览 器获得网页携带的语音脚本数据和网页的文本, 浏览器通过执行语音脚本数 据, 在语音库调用文本对应的语音数据并输出, 如网页文本 "浏览器", 浏览 器执行语音脚本数据调用语音库中文本 "浏览器"对应的语音数据, 然后以声 音的形式播放文本 "浏览器" 的语音。 Further, the voice library can store voice data of various languages, that is, voice data, according to the settings of the manufacturer. Performing voice script data according to the obtained webpage content, thereby finding the webpage in the voice library The voice data corresponding to the content is convenient for the user to listen to. For example: Open a webpage with text, the browser obtains the voice script data carried by the webpage and the text of the webpage, and the browser invokes the voice data corresponding to the text in the voice library by executing the voice script data, and outputs the text, such as the webpage text browser. ", the browser executes the voice script data to call the voice data corresponding to the text "browser" in the voice library, and then plays the text "browser" voice in the form of sound.
播放单元 300, 用于播放所述语音数据。  The playing unit 300 is configured to play the voice data.
具体实施例中,可以通过内置喇叭或外置音箱以声音形式播放所述语音数 据。  In a specific embodiment, the voice data can be played in a sound form through a built-in speaker or an external speaker.
请参照图 5 , 为本发明一种浏览器的第一实施例结构示意图。 本实施例所 述的一种浏览器包括:  Please refer to FIG. 5 , which is a schematic structural diagram of a first embodiment of a browser according to the present invention. A browser according to this embodiment includes:
第一获取单元 100、 调用单元 200和播放单元 300。  The first obtaining unit 100, the calling unit 200, and the playing unit 300.
其中, 本浏览器还包括:  Among them, the browser also includes:
创建单元 400。  Create unit 400.
创建单元 400, 用于检测是否接收到启动信息。  The creating unit 400 is configured to detect whether the startup information is received.
具体实施例中,所述启动信息包括用户通过鼠标或其他输出指令的控制端 来输出启动浏览器的启动信息。  In a specific embodiment, the startup information includes a user outputting startup information for launching a browser through a mouse or other control terminal.
具体实施例中, 当浏览器接收到启动信息时启动, 所述启动信息包括用户 通过鼠标或其他输出指令的控制端来输出启动浏览器的启动信息。  In a specific embodiment, when the browser receives the startup information, the startup information includes the user launching the startup information of the browser by using a mouse or other control terminal of the output instruction.
具体实施例中, 设置语音库包括: 检测 Android 系统是否存储有支持 Android系统的语音引擎。 其中, 所述语音引擎为支持 Android系统的 Java封 装语音数据的库,所述语音引擎可以根据生厂商的需要存储各种语言的语音数 据并供其他使用语音的本地应用调用。其他应用可以通过所述语音引擎的 API ( Application Programming Interface,应用程序编程接口)访问其内部语音数据 , 从而实现语音的输出。 例如: 在手机中安装短信语音播报的本地应用程序, 当 用户运行此语音播报应用程序,所述语音播报应用程序根据短信文本通过语音 引擎的 API 内容调用语音引擎中的短信文本对应的语音数据并播放所述语音 数据, 从而实现短信语音输出。 其中, 若本地没有存储支持 Android系统的语 音引擎, 则结束操作。  In a specific embodiment, setting the voice library includes: detecting whether the Android system stores a voice engine supporting the Android system. The voice engine is a library for supporting Java-encapsulated voice data of the Android system, and the voice engine can store voice data of various languages according to the needs of the manufacturer and is called by other local applications using voice. Other applications can access their internal voice data through the API (Application Programming Interface) of the speech engine to achieve voice output. For example, a local application for the SMS voice broadcast is installed in the mobile phone. When the user runs the voice broadcast application, the voice broadcast application invokes the voice data corresponding to the short text in the voice engine according to the text of the voice engine according to the text of the voice message. The voice data is played to realize short message voice output. If the voice engine supporting the Android system is not stored locally, the operation ends.
设置语音库还还包括: 获取 Android系统的语音引擎和将所述 Android系 统的语音引擎转换为可兼容的语音库。 其中, 在 Android系统上, 由于编写语 言的限制 Android系统上只支持 Java应用程序,而通过网页形式开发的语音脚 本数据多是 JavaScript脚本内嵌在 Html 网页中, 当运行关于语音脚本的 JavaScript脚本, 所述语音脚本需要读取 Android系统携带的语音引擎, 但由 于编写语言的差异性, Android系统并不支持通过 JavaScript脚本直接访问本 地的 Java 语音引擎的内部语音数据, 所以需要创建一个语音库能够兼容 JavaScript脚本以供 JavaScript脚本直接调用语音数据。 Setting up the voice library also includes: obtaining the speech engine of the Android system and the Android system The unified speech engine is converted to a compatible speech library. Among them, on the Android system, due to the limitation of writing language, only the Java application is supported on the Android system, and the voice script data developed through the web form is mostly embedded in the Html webpage by the JavaScript script. When running the JavaScript script about the voice script, The voice script needs to read the voice engine carried by the Android system, but due to the difference of the writing language, the Android system does not directly access the internal voice data of the local Java voice engine through the JavaScript script, so it is necessary to create a voice library to be compatible. JavaScript scripts for JavaScript scripts to call voice data directly.
其中,我们可以通过将本地语音引擎转化为与所述语音脚本数据兼容的语 音库的方法创建一个语音库以供使用, 即将本地语音引擎翻译成 JavaScript脚 本可兼容或识别的语言或信号。  Among them, we can create a voice library for use by converting the local speech engine into a voice library compatible with the voice script data, that is, translate the local speech engine into a language or signal that the JavaScript script can be compatible with or recognize.
进一步的, 通过将 Java语音对象扩展进浏览器中从而将本地语音引擎转 化为与所述语音脚本数据兼容的语音库。  Further, the local speech engine is converted to a speech library compatible with the speech script data by extending the Java speech object into the browser.
其中, 语音库创建结束后对语音库进行初始化。  The voice library is initialized after the voice library is created.
其中, 所述创建单元 400还包括第二检测单元 10、 第二获取单元 20和转 换单元 30。  The creating unit 400 further includes a second detecting unit 10, a second acquiring unit 20, and a converting unit 30.
第二检测单元 10,用于检测 Android系统是否存储有支持 Android系统的 语音引擎。  The second detecting unit 10 is configured to detect whether the Android system stores a voice engine supporting the Android system.
具体实施例中, 当第二检测单元检测到 Android系统存储有支持 Android 系统的语音引擎时, 通知第二获取单元获取 Android系统的语音引擎。  In a specific embodiment, when the second detecting unit detects that the Android system stores the voice engine supporting the Android system, the second acquiring unit is notified to acquire the voice engine of the Android system.
其中,所述语音引擎为支持 Android系统的 Java封装语音数据的库,所述 语音引擎可以根据生厂商的需要存储各种语言的语音数据并供其他使用语音 的本地应用调用。 其他应用可以通过所述语音引擎的 API ( Application Programming Interface,应用程序编程接口)访问其内部语音数据, 从而实现语 音的输出。 例如: 在手机中安装短信语音播报的本地应用程序, 当用户运行此 语音播报应用程序,所述语音播报应用程序根据短信文本通过语音引擎的 API 内容调用语音引擎中的短信文本对应的语音数据并播放所述语音数据,从而实 现短信语音输出。 其中, 若本地没有存储支持 Android系统的语音引擎, 则结 束语音播放的操作。  The voice engine is a library for supporting Java-encapsulated voice data of the Android system, and the voice engine can store voice data of various languages according to the needs of the manufacturer and is called by other local applications using voice. Other applications can access their internal voice data through the speech engine's API (Application Programming Interface) to achieve voice output. For example, a local application for the SMS voice broadcast is installed in the mobile phone. When the user runs the voice broadcast application, the voice broadcast application invokes the voice data corresponding to the short text in the voice engine according to the text of the voice engine according to the text of the voice message. The voice data is played to realize short message voice output. Wherein, if the voice engine supporting the Android system is not stored locally, the operation of the voice play is ended.
第二获取单元 20 , 用于获取 Android系统的语音引擎。 具体实施例中,获取 Android系统的语音引擎以提供给浏览器创建语音库。 转换单元 30, 用于将所述 Android系统的语音引擎转换为可兼容的语音 库。 The second obtaining unit 20 is configured to acquire a voice engine of the Android system. In a specific embodiment, the speech engine of the Android system is obtained to provide a browser to create a speech library. The converting unit 30 is configured to convert the voice engine of the Android system into a compatible voice library.
具体实施例中, 将本地语音引擎转化为与所述语音脚本数据兼容的语音 库, 即将本地语音引擎翻译成 JavaScript脚本可兼容或识别的语言或信号。  In a particular embodiment, the local speech engine is converted to a speech library that is compatible with the speech script data, i.e., the local speech engine is translated into a language or signal that is compatible or recognizable by the JavaScript script.
请参照图 6, 为本发明一种浏览器的第三实施例结构示意图。 本实施例所 述的一种浏览器包括: 第一获取单元 100、 调用单元 200和播放单元 300。  Please refer to FIG. 6, which is a schematic structural diagram of a third embodiment of a browser according to the present invention. A browser according to this embodiment includes: a first obtaining unit 100, a calling unit 200, and a playing unit 300.
所述浏览器还包括:  The browser also includes:
第一检测单元 500。  The first detecting unit 500.
第以检测单元 500, 用于检测所述网页是否携带语音脚本数据。  The detecting unit 500 is configured to detect whether the webpage carries voice script data.
具体实施例中,通过执行所述语音脚本数据来查找语音库中所述网页内容 对应的语音数据。 所述语音脚本数据包括调用本地语音引擎的指令。 其中, 脚 本是使用一种特定的描述性语言,依据一定的格式编写的可执行文件。脚本通 常可以由应用程序临时调用并执行, 如浏览器。。 各类脚本已被广泛地应用于 网页设计中, 因为脚本不仅可以减小网页的 莫和提高网页浏览速度, 而且可 以丰富网页的表现, 如动画、 声音等。 例如: 当点击网页上的 Email地址时能 自动调用 Outlook Express或 Foxmail这类邮箱软件,就是通过脚本功能来实现 的。  In a specific embodiment, the voice data corresponding to the webpage content in the voice library is searched by executing the voice script data. The voice script data includes instructions that invoke a local voice engine. Among them, the script is an executable file written in a specific descriptive language according to a certain format. Scripts can usually be called and executed temporarily by an application, such as a browser. . Various types of scripts have been widely used in web design, because scripts can not only reduce the speed of web pages and improve the speed of web browsing, but also enrich the performance of web pages, such as animations, sounds, and so on. For example: When you click on the email address on the web page, you can automatically call the mailbox software such as Outlook Express or Foxmail, which is realized by the script function.
通过上述实施例的描述, 本发明具有以下优点:  Through the description of the above embodiments, the present invention has the following advantages:
本发明实施例通过从 Android系统的浏览器的网页中获得网页携带的语音 脚本数据和网页内容,根据所述网页内容,从预置语音库中查找与所述网页内 容相对应的语音数据, 并播放语音内容。 使得网页也可在 Android系统上实现 网页语音播放, 完善 Android系统的浏览器功能, 使得用户也可以在 Android 系统上通过听觉浏览网页内容,緩解用户的视觉疲劳, 同时满足那些不能通过 视觉浏览网页的用户 (如盲人) 的浏览要求, 提高设备的智能性。  The embodiment of the present invention obtains the voice script data and the webpage content carried by the webpage from the webpage of the browser of the Android system, and searches for the voice data corresponding to the webpage content from the preset voicebook according to the webpage content, and Play voice content. The webpage can also realize the webpage voice play on the Android system, and the browser function of the Android system is perfected, so that the user can also browse the webpage content by listening on the Android system, thereby alleviating the user's visual fatigue, and satisfying those who cannot browse the webpage through visual browsing. The browsing requirements of users (such as blind people) improve the intelligence of the device.
领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是 可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机 可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。 A person of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之 权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。  The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the claims of the present invention are still within the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种网页的控制方法, 其特征在于, 所述方法包括: 1. A web page control method, characterized in that the method includes:
从 Android系统的浏览器的网页中读取网页内容; Read web page content from the web page of the Android system browser;
根据所述网页内容,从预置语音库中查找与所述网页内容相对应的语音数 据; According to the web page content, search for voice data corresponding to the web page content from a preset voice library;
播放所述语音数据。 Play the voice data.
2、 如权利要求 1所述的方法, 其特征在于, 所述从 Android系统的浏览 器的网页中读取网页内容步骤之前包括: 2. The method of claim 1, wherein the step of reading web page content from the web page of the browser of the Android system includes:
检测所述浏览器启动时, 设置语音库。 When detecting that the browser is started, the voice library is set.
3、 如权利要求 2所述的方法, 其特征在于, 所述设置语音库包括: 获取 Android系统的语音引擎; 3. The method of claim 2, wherein setting the voice library includes: obtaining the voice engine of the Android system;
将所述 Android系统的语音引擎转换为可兼容的语音库。 Convert the voice engine of the Android system into a compatible voice library.
4、 如权利要求 3所述的方法, 其特征在于, 所述在安卓 Android系统上 获取网页内容之前包括: 4. The method according to claim 3, characterized in that, before obtaining the web page content on the Android system, the method includes:
检测所述网页是否携带语音脚本数据; Detect whether the web page carries voice script data;
若是, 执行从 Android系统的浏览器的网页中读取网页内容步骤。 If so, perform the step of reading web page content from the web page of the Android system browser.
5、 如权利要求 3所述的方法, 其特征在于, 所述获取 Android系统的语 音引擎步骤之前包括: 5. The method of claim 3, wherein the step of obtaining the voice engine of the Android system includes:
检测 Android系统是否存储有支持 Android系统的语音引擎; Detect whether the Android system stores a voice engine that supports the Android system;
若有, 执行获取 Android系统的语音引擎步骤。 If yes, perform the steps to obtain the voice engine of the Android system.
6、 一种浏览器, 其特征在于, 所述浏览器包括: 6. A browser, characterized in that the browser includes:
第一获取单元, 用于从 Android系统的浏览器的网页中读取网页内容; 调用单元, 用于根据所述网页内容,从预置语音库中查找与所述网页内容 相对应的语音数据; The first acquisition unit is used to read the web page content from the web page of the browser of the Android system; the calling unit is used to search for the web page content from the preset voice library according to the web page content. Corresponding voice data;
播放单元, 用于播放所述语音数据。 A playback unit, used for playing the voice data.
7、 如权利要求 1所述的浏览器, 其特征在于, 所述浏览器还包括: 创建单元, 用于当检测所述浏览器启动时, 设置语音库。 7. The browser of claim 1, wherein the browser further includes: a creation unit configured to set a voice library when detecting that the browser is started.
8、 如权利要求 7所述的浏览器, 其特征在于, 所述创建单元包括: 第二获取单元, 用于获取 Android系统的语音引擎; 8. The browser according to claim 7, wherein the creation unit includes: a second acquisition unit, used to acquire the voice engine of the Android system;
转换单元, 用于将所述 Android系统的语音引擎转换为可兼容的语音库。 A conversion unit used to convert the voice engine of the Android system into a compatible voice library.
9、 如权利要求 8所述的浏览器, 其特征在于, 所述浏览器包括: 第一检测单元, 用于检测所述网页是否携带语音脚本数据; 9. The browser of claim 8, wherein the browser includes: a first detection unit configured to detect whether the web page carries voice script data;
当第一检测单元检测到所述网页携带有语音脚本数据,通知第一获取单元 从 Android系统的浏览器的网页中读取网页内容。 When the first detection unit detects that the webpage carries voice script data, it notifies the first acquisition unit to read the webpage content from the webpage of the browser of the Android system.
10、 如权利要求 3所述的浏览器, 其特征在于, 所述创建单元还包括: 第二检测单元, 用于检测 Android系统是否存储有支持 Android系统的语 音引擎; 10. The browser according to claim 3, wherein the creation unit further includes: a second detection unit, used to detect whether the Android system stores a voice engine that supports the Android system;
当第二检测单元检测到 Android系统存储有支持 Android系统的语音引擎 时, 通知第二获取单元获取 Android系统的语音引擎。 When the second detection unit detects that the Android system stores a voice engine that supports the Android system, it notifies the second acquisition unit to obtain the voice engine of the Android system.
PCT/CN2013/077469 2012-12-28 2013-06-19 Page control method and browser WO2014101378A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012105793157A CN103020278A (en) 2012-12-28 2012-12-28 Webpage control method and browser
CN201210579315.7 2012-12-28

Publications (1)

Publication Number Publication Date
WO2014101378A1 true WO2014101378A1 (en) 2014-07-03

Family

ID=47968881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077469 WO2014101378A1 (en) 2012-12-28 2013-06-19 Page control method and browser

Country Status (2)

Country Link
CN (1) CN103020278A (en)
WO (1) WO2014101378A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020278A (en) * 2012-12-28 2013-04-03 深圳创维数字技术股份有限公司 Webpage control method and browser
CN104683398B (en) * 2013-11-28 2019-08-30 深圳力维智联技术有限公司 The voice alarming realizing method and system of browser-cross
CN106055721A (en) * 2016-07-15 2016-10-26 深圳市联谛信息无障碍有限责任公司 Accessible webpage processing method and relevant equipment
CN107943405A (en) * 2016-10-13 2018-04-20 广州市动景计算机科技有限公司 Sound broadcasting device, method, browser and user terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020178007A1 (en) * 2001-02-26 2002-11-28 Benjamin Slotznick Method of displaying web pages to enable user access to text information that the user has difficulty reading
US20060074683A1 (en) * 2004-09-17 2006-04-06 Bellsouth Intellectual Property Corporation Methods, systems, and computer-readable media for associating dynamic sound content with a web page in a browser
CN102254550A (en) * 2010-05-21 2011-11-23 腾讯科技(深圳)有限公司 Method and system for reading characters on webpage
CN101763434B (en) * 2010-01-12 2012-09-26 深圳市同洲电子股份有限公司 Method for wet-page script indication execution control of embedded browser, terminal and system
CN103020278A (en) * 2012-12-28 2013-04-03 深圳创维数字技术股份有限公司 Webpage control method and browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7137126B1 (en) * 1998-10-02 2006-11-14 International Business Machines Corporation Conversational computing via conversational virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020178007A1 (en) * 2001-02-26 2002-11-28 Benjamin Slotznick Method of displaying web pages to enable user access to text information that the user has difficulty reading
US20060074683A1 (en) * 2004-09-17 2006-04-06 Bellsouth Intellectual Property Corporation Methods, systems, and computer-readable media for associating dynamic sound content with a web page in a browser
CN101763434B (en) * 2010-01-12 2012-09-26 深圳市同洲电子股份有限公司 Method for wet-page script indication execution control of embedded browser, terminal and system
CN102254550A (en) * 2010-05-21 2011-11-23 腾讯科技(深圳)有限公司 Method and system for reading characters on webpage
CN103020278A (en) * 2012-12-28 2013-04-03 深圳创维数字技术股份有限公司 Webpage control method and browser

Also Published As

Publication number Publication date
CN103020278A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
US11915696B2 (en) Digital assistant voice input integration
JP7083270B2 (en) Management layer for multiple intelligent personal assistant services
US10019999B2 (en) Data processing method and system
US10785522B2 (en) Method and system for controlling network-enabled devices with voice commands
JP6666920B2 (en) Complete headless tasks in your digital personal assistant
JP7166900B2 (en) Apparatus and method for privacy-preserving voice interaction
US9003310B2 (en) Modifying running of plug-in on hidden tab of browser
TWI511125B (en) Voice control method, mobile terminal apparatus and voice controlsystem
US8407584B1 (en) Stable and secure use of content scripts in browser extensions
US11373645B1 (en) Updating personalized data on a speech interface device
WO2011088759A1 (en) Method and device for realizing embedded browser, and digital television receiving terminal
US20140325323A1 (en) Online video playing method and apparatus and computer readable medium
WO2020063031A1 (en) Method and apparatus for processing structured data, and storage medium and electronic device
WO2019007327A1 (en) Video playback method and apparatus, computing device, and storage medium
WO2014101378A1 (en) Page control method and browser
WO2014176906A1 (en) Online video playing method and apparatus and computer readable medium
WO2022100309A1 (en) Method for displaying metadata of desktop, access method, and related apparatus
WO2015078253A1 (en) Media file playing method and device, medium and browser
US20220292141A1 (en) Quick Application Startup Method and Related Apparatus
WO2016173075A1 (en) System switching method and device
US11042587B2 (en) Performing behavior analysis on audio track data to obtain a name of an application
WO2014138685A2 (en) Method and system for voice recognition input on network-enabled devices
WO2016169426A1 (en) Video playing method and device
WO2015078255A1 (en) Video title display method and system, and browser
CN108831475B (en) Text message extraction method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13868926

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 09/11/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13868926

Country of ref document: EP

Kind code of ref document: A1