WO2017092312A1 - 一种浏览器的网页浏览方法和装置 - Google Patents

一种浏览器的网页浏览方法和装置 Download PDF

Info

Publication number
WO2017092312A1
WO2017092312A1 PCT/CN2016/088888 CN2016088888W WO2017092312A1 WO 2017092312 A1 WO2017092312 A1 WO 2017092312A1 CN 2016088888 W CN2016088888 W CN 2016088888W WO 2017092312 A1 WO2017092312 A1 WO 2017092312A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
browsing
instruction
voice reading
browser
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2016/088888
Other languages
English (en)
French (fr)
Inventor
任开
余绍鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
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 Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/247,644 priority Critical patent/US20170153867A1/en
Publication of WO2017092312A1 publication Critical patent/WO2017092312A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the present invention relates to the field of browser technologies, and in particular, to a webpage browsing method and apparatus for a browser.
  • voice input method voice input mode
  • specific product form such as voice search, voice input text, etc.
  • voice command mode the voice control forward, backward and other browser actions.
  • the second mode is to use a voice-converted text to execute commands, that is, a new way of interaction, and the operations performed during interaction are controlled by voice.
  • This is a new user interface (UI).
  • UI user interface
  • the use of the second mode in existing browser products is limited: because this mode is a general control that is independent of the content of the web page, it must be universal, that is, control the operations that can be performed on each web page. For example, control page turning, forward, backward, open web pages, and the like. In other words, the second mode is for the function of the browser itself, and has nothing to do with the specific content of the web page.
  • the browser can only perform general control irrelevant to the content of the webpage through the voice, and cannot control the specific content of the webpage, and the user experience is poor.
  • the embodiment of the invention provides a webpage browsing method and device for a browser, which is used to solve the problem that the prior art cannot control the specific content of the webpage, and the user experience is poor, and the browser can read the webpage according to the browsing instruction issued by the user.
  • the embodiment of the present invention discloses a webpage browsing method for a browser, which includes the following steps: receiving a browsing request; acquiring webpage data corresponding to the browsing request from a server; and acquiring a webpage text from the webpage data; Receiving a browsing instruction; controlling the browser to read the text of the webpage according to the browsing instruction.
  • the embodiment of the present invention further discloses a webpage browsing device of a browser, comprising: a request receiving module, configured to receive a browsing request; and a webpage data obtaining module, configured to acquire a webpage corresponding to the browsing request from a server
  • the webpage text acquisition module is configured to obtain the webpage text from the webpage data
  • the instruction receiving module is configured to receive the browsing instruction
  • the control module is configured to control the browser to read the webpage text according to the browsing instruction.
  • a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform web browsing of the browser method.
  • a computer readable medium wherein the computer program is stored.
  • the webpage browsing method and device of the browser obtained by the embodiment of the present invention obtains the webpage data corresponding to the browsing request from the server after receiving the browsing request, and further obtains the webpage text from the webpage data, and after receiving the browsing instruction, controls The browser reads the body of the webpage according to the browsing instructions.
  • the embodiment of the invention not only facilitates the user to know the related content in the webpage, but also makes the user do not need to drag the webpage text up and down, and is also suitable for the webpage of the poorly-visible crowd to browse the webpage, which greatly improves the user experience.
  • FIG. 1 is a flow chart showing the steps of a webpage browsing method of a browser according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing the steps of a webpage browsing method of another browser according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a webpage browsing apparatus of a browser according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a webpage browsing apparatus of another browser according to an embodiment of the present invention.
  • Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 a flow chart of steps of a webpage browsing method of a browser according to an embodiment of the present invention is shown.
  • the user may send a browsing request by using text input, voice input, or clicking a tab on the webpage currently opened by the browser, and the browsing request in step S1 may be opening a certain web address.
  • the browser in the embodiment of the present invention may be a browser in a smart device such as a television, a computer, or a mobile phone.
  • the user can be a user with normal vision or a user with poor vision, such as an elderly person, a nearsighted person, a farsighted person, and the like.
  • the webpage in step S2 may include an article page, a news page, and the like.
  • the webpage data may be an article, a link, or the like in the current page.
  • the webpage data may be an article, a link, or a picture in the current page. Wait.
  • step S3 the webpage text may be text-intensive content in the webpage data.
  • the browsing instruction may be starting a voice reading instruction, suspending a voice reading instruction, continuing a voice reading instruction, or stopping a voice reading instruction.
  • Step S5 can control the browser to start the voice reading text, pause the voice reading text, continue the voice reading text or stop the voice reading text on the webpage text. It should be noted that when the browser starts the voice reading text and continues the voice reading text operation on the body of the webpage, the browser reads the corresponding webpage text, thereby facilitating the user to know the related content in the webpage, and the user does not need to perform the text of the webpage. Dragging operations such as up and down effectively improves the user experience.
  • step S1 acquires the browsing request from the server.
  • the webpage data includes a picture during the state visit and a report related to each picture
  • step S3 obtains the main body of the webpage from the webpage data, that is, the report related to each image
  • the steps are S5 controls the browser to start the voice reading text operation on the webpage text, and the browser reads the corresponding webpage text, so that the old person can conveniently know the webpage content.
  • the webpage data corresponding to the browsing request such as an article, a link, and the like
  • the text of the webpage such as the text-intensive content of the webpage data
  • the browser controls the browser to read the text of the webpage according to the browsing instruction, for example, controlling the browser to start the voice reading text operation on the webpage text, and the browser reads the corresponding webpage text.
  • the embodiment of the invention not only facilitates the user to know the related content in the webpage, but also makes the user do not need to drag the webpage text up and down, and is also suitable for people with poor eyesight such as the elderly to browse the webpage, which greatly improves the browsing. user experience.
  • the web browsing method of the browser may include the following steps:
  • the user can issue a browsing request by using text input, voice input, or clicking a tab on the webpage currently opened by the browser, etc., wherein the browsing request in step S21 can be to open a certain web address.
  • the browser in the embodiment of the present invention may be a browser in a smart device such as a television, a computer, or a mobile phone.
  • the user can be a user with normal vision or a user with poor vision, such as an elderly person. Myopia, farsighted.
  • the webpage in step S22 may include an article page, a news page, and the like.
  • the webpage data may be an article, a link, or the like in the current page.
  • the webpage data may be an article, a link, or a picture in the current page. Wait.
  • each node information includes a corresponding node attribute and a node content.
  • the node content of the continuous node whose length of the node content is greater than or equal to the preset length is text-intensive content in the webpage data.
  • the continuous node may be 3 nodes or more than 3 nodes
  • the preset length may be 160 characters, that is, the length of each of the 3 nodes or more than 3 nodes is greater than or Equal to 160 characters, the node content of the 3 nodes or more than 3 nodes as the body of the web page.
  • the web page body is cached in a string manner.
  • the browsing instruction may be starting a voice reading instruction, suspending a voice reading instruction, continuing a voice reading instruction, or stopping a voice reading instruction.
  • the browsing instruction in step S25 may be a voice browsing instruction sent by the user.
  • step S25 may identify the voice browsing instruction by using a voice recognition chip or the like.
  • the browsing instruction is a voice browsing instruction issued by the user, step S25 may include the following steps:
  • the voice browsing instruction is received.
  • the voice browsing instruction sent by the user may be received by using a microphone or a headset, and the receiving language of step S25 may be a language such as Chinese or English.
  • the user may preset or use the language according to the user's own language to step S25. Receive language to set.
  • the preset time may be preset according to actual conditions or set by the user according to personal habits.
  • the browsing instruction in step S25 may be a browsing instruction generated by triggering any of the selection buttons in the browsing mode selection list.
  • the browse mode selection list can be set at the front end of the current web interface to facilitate user selection.
  • the browse mode selection list may include starting a voice reading selection button, pausing a voice reading selection button, continuing a voice reading selection button, or stopping a voice reading selection button.
  • step S25 receives the start voice reading instruction; when the user triggers the pause voice reading selection button, step S25 receives the pause voice reading instruction; when the user triggers the resume voice reading selection button, the step S25 receives the resume speech reading instruction; when the user triggers the stop of the speech reading selection button, step S25 receives the stop speech reading instruction.
  • step S26 when the browsing instruction is to start the voice reading instruction, the browser may be controlled to perform a voice reading operation from the initial position of the webpage text. At this time, the browser starts reading from the initial position of the webpage of the current webpage. Until the voice reads to the end position of the webpage of the current webpage, or receives a pause speech reading instruction or stops the voice reading instruction, wherein the initial position of the webpage text is the position of the first character string cached in step S24, and the end of the webpage text The position is the position of the last character string buffered in step S24.
  • the browser may be controlled to pause the voice reading operation on the webpage of the current webpage, and record the pause position of the webpage text. At this time, the browser pauses reading.
  • the browser can be controlled to perform a voice reading operation from the pause position of the webpage of the current webpage. At this time, the browser reads from the pause position of the webpage text until the end of the voice reading to the webpage text. Position, or receive a pause speech read command or stop the voice read command.
  • the browser may be controlled to stop the voice reading operation on the webpage text of the current webpage, and at this time, the browser stops reading. Further, after controlling the browser to stop the voice reading operation on the webpage text, if receiving the continuous voice reading instruction, the browser can control the browser to perform the voice reading operation from the initial position of the webpage text, at this time, the browser Read from the initial position of the body of the web page until the end of the voice reading to the end of the web page, or receive a pause speech read command or stop the voice reading command.
  • the user can easily learn the related content in the webpage without reading the text information in the webpage, and the user does not need to drag the webpage up and down, thereby effectively improving the user experience.
  • the browser pair can be controlled.
  • the webpage of the current webpage pauses the voice reading operation, records the pause position of the webpage body, or controls the browser to stop the voice reading operation on the webpage text of the current webpage.
  • the webpage data corresponding to the browsing request such as an article, a link, and the like
  • the webpage data is converted into a character string, and the page code corresponding to the string is parsed.
  • the string method caches the body of the webpage, and after receiving the browsing instruction, for example, starting the voice reading text, the browser controls the browser to read the text of the webpage according to the browsing instruction, for example, controlling the browser to start the voice reading text operation on the webpage text, and the browser reads the corresponding text.
  • the body of the page After receiving the browsing instruction, for example, starting the voice reading text, the browser controls the browser to read the text of the webpage according to the browsing instruction, for example, controlling the browser to start the voice reading text operation on the webpage text, and the browser reads the corresponding text.
  • the embodiment of the invention not only facilitates the user to know the related content in the webpage, but also makes the user do not need to drag the webpage text up and down, and is also suitable for people with poor eyesight such as the elderly to browse the webpage, which greatly improves the browsing. user experience.
  • FIG. 3 a block diagram of a web browser of a browser according to a third embodiment of the present invention is shown.
  • the request receiving module 1 is configured to receive a browsing request.
  • the user may issue a browsing request by using text input, voice input, or clicking a tab on the webpage currently opened by the browser, etc., wherein the browsing request in the request receiving module 1 may be opening a certain web address.
  • the browser in the embodiment of the present invention may be a television, a computer, a mobile phone, or the like.
  • the user can be a user with normal vision or a user with poor vision, such as an elderly person, a nearsighted person, a farsighted person, and the like.
  • the webpage data obtaining module 2 is configured to obtain webpage data corresponding to the browsing request from the server.
  • the webpage in the webpage data acquisition module 2 may include an article page, a newspage, and the like.
  • the webpage data may be an article, a link, or the like in the current page.
  • the webpage data may be an article in the current page, Links, pictures, etc.
  • the webpage text obtaining module 3 is configured to obtain the webpage text from the webpage data.
  • the webpage text body may be text-intensive content in the webpage data.
  • the instruction receiving module 4 is configured to receive a browsing instruction.
  • the browsing instruction may be starting a voice reading instruction, suspending a voice reading instruction, continuing a voice reading instruction, or stopping a voice reading instruction.
  • the control module 5 is configured to control the browser to read the body of the webpage according to the browsing instruction.
  • the control module 5 can control the browser to start the voice reading text, pause the voice reading text, continue the voice reading text or stop the voice reading text on the webpage text. It should be noted that when the browser starts the voice reading text and continues the voice reading text operation on the body of the webpage, the browser reads the corresponding webpage text, thereby facilitating the user to know the related content in the webpage, and the user does not need to perform the text of the webpage. Dragging operations such as up and down effectively improves the user experience.
  • the browsing request received in the request receiving module 1 is to open the webpage corresponding to the news tab, and the webpage data obtaining module 2 slaves the server.
  • the webpage data obtaining module 3 obtains the webpage text, that is, the report related to each image, from the webpage data, and then receives the report related to each image, and then receives the report in the instruction receiving module 4.
  • the control module 5 controls the browser to start the voice reading text operation on the webpage text, and the browser reads the corresponding webpage text, so that the old person can conveniently know the webpage content.
  • the webpage data obtaining module acquires webpage data corresponding to the browsing request, such as an article, a link, and the like from the server, and then the webpage text obtaining module obtains the webpage data from the webpage data.
  • the text of the webpage such as text-intensive content in the webpage data
  • the instruction receiving module receives the browsing instruction, for example, starting the text reading of the text
  • the control module controls the browser to read the text of the webpage according to the browsing instruction. For example, the control module controls the browser to start the voice reading text operation on the webpage text, and the browser reads the corresponding webpage text.
  • the embodiment of the invention not only facilitates the user to know the related content in the webpage, but also makes the user do not need to drag the webpage text up and down, and is also suitable for people with poor eyesight such as the elderly to browse the webpage, which greatly improves the browsing. user experience.
  • the web browsing device of the browser may include:
  • the request receiving module 21 is configured to receive a browsing request.
  • the user can issue a browsing request by using text input, voice input, or clicking a tab on the webpage currently opened by the browser, etc., wherein the browsing request in the request receiving module 21 can be to open a certain web address.
  • the browser in the embodiment of the present invention may be a browser in a smart device such as a television, a computer, or a mobile phone.
  • the user can be a user with normal vision or a user with poor vision, such as an elderly person, a nearsighted person, or a farsighted person.
  • the webpage data obtaining module 22 is configured to obtain webpage data corresponding to the browsing request from the server.
  • the webpage in the webpage data obtaining module 22 may include an article page, a newspage, and the like, wherein, for the articlepage, the webpage data may be an article, a link, or the like in the current page, and for the newspage, the webpage data may be an article in the current page, Links, pictures, etc.
  • the webpage text obtaining module 23 is configured to obtain the webpage text from the webpage data, including:
  • the data conversion module 231 is configured to convert the webpage data into a string.
  • the node information obtaining module 232 is configured to parse the page code corresponding to the character string to obtain each node information of the webpage; each node information includes a corresponding node attribute and node content.
  • the webpage text determining module 233 is configured to sequentially acquire the length of each node content, and use the node content of the node content whose length is greater than or equal to the preset length as the webpage text.
  • the node content of the continuous node whose length of the node content is greater than or equal to the preset length is text-intensive content in the webpage data.
  • the continuous node may be 3 nodes or more than 3 nodes
  • the preset length may be 160 characters, that is, the length of each of the 3 nodes or more than 3 nodes is greater than or Equal to 160 characters, the node content of the 3 nodes or more than 3 nodes as the body of the web page.
  • the cache module 24 is configured to cache the webpage text in a string manner after the webpage text determining module 233 uses the node content of the continuous node whose length of the node content is greater than or equal to the preset length as the webpage text.
  • the instruction receiving module 25 is configured to receive a browsing instruction.
  • the browsing instruction may be starting a voice reading instruction, suspending a voice reading instruction, continuing a voice reading instruction, or stopping a voice reading instruction.
  • the browsing instruction in the instruction receiving module 25 may be a voice browsing instruction issued by the user.
  • the instruction receiving module 25 may identify the voice browsing instruction by using a voice recognition chip or the like.
  • the instruction receiving module 25 may include:
  • the trigger signal receiving module is configured to receive a trigger signal generated when the voice recognition button is clicked; wherein the voice recognition button is disposed at a front end of the current webpage interface displayed by the browser.
  • the instruction receiving module is configured to receive a browsing instruction when a duration of the trigger signal is greater than or equal to a preset time.
  • the command receiving module can receive a voice browsing instruction sent by the user through a microphone or a headphone.
  • the receiving language of the command receiving module 25 may be a Chinese, English, or the like. In an actual application, the receiving language of the command receiving module 25 may be set in advance or by the user according to the language situation he or she has mastered. In addition, when the duration of the trigger signal is less than the preset time, for example, when the user mistakenly clicks the voice recognition button, the control microphone or the earphone or the like does not receive the voice browsing instruction.
  • the preset time may be preset according to actual conditions or set by the user according to personal habits.
  • the browsing instruction in the instruction receiving module 25 may be a browsing instruction generated by triggering any of the selection buttons in the browsing mode selection list.
  • the browse mode selection list can be set at the front end of the current web interface to facilitate user selection.
  • the browse mode selection list may include starting a voice reading selection button, pausing a voice reading selection button, continuing a voice reading selection button, or stopping a voice reading selection button.
  • the instruction receiving module 25 receives the start voice reading instruction; when the user triggers the pause voice reading selection button, the instruction receiving module 25 receives the pause voice reading instruction; when the user triggers to continue the voice reading selection When the button is pressed, the instruction receiving module 25 receives the resume speech reading instruction; when the user triggers the stop speech reading selection button, the instruction receiving module 25 receives the stop speech reading instruction.
  • the control module 26 is configured to control the browser to read the text of the webpage according to the browsing instruction.
  • the control module 26 when the browsing instruction is to start the voice reading instruction, the control module 26 can control the browser to perform the voice reading operation from the initial position of the webpage text, and at this time, the browser starts from the webpage of the current webpage.
  • the location begins to read until the voice is read to the end position of the webpage of the current webpage, or receives a pause speech read command or stops the voice reading instruction, wherein the initial position of the webpage text is the location of the first character string buffered by the cache module 24.
  • the end position of the web page body is the location of the last character string buffered by the cache module 24.
  • the control module 26 can control the browser to pause the voice reading operation on the webpage text of the current webpage, and record the pause position of the webpage body. At this time, the browser pauses reading.
  • the control module 26 can control the browser to perform a voice reading operation from the pause position of the webpage body of the current webpage. At this time, the browser starts reading from the pause position of the webpage text until the voice is read to the webpage. The end position of the text, or receive a pause speech read command or stop the voice read command.
  • the control module 26 can control the browser to stop the voice reading operation on the webpage text of the current webpage, and at this time, the browser stops reading. Further, after the control module 26 controls the browser to stop the voice reading operation on the webpage text, if the instruction receiving module 25 receives the continuous voice reading instruction, the control module 26 may control the browser to perform the voice reading operation from the initial position of the webpage body. At this time, the browser reads from the initial position of the body of the webpage until the voice is read to the end position of the body of the webpage, or receives a pause speech reading instruction or stops the voice reading instruction.
  • the user can easily learn the related content in the webpage without reading the text information in the webpage, and the user does not need to drag the webpage up and down, thereby effectively improving the user experience.
  • the control module 26 can control.
  • the browser pauses the voice reading operation on the webpage of the current webpage, records the pause position of the webpage body, or controls the browser to stop the voice reading operation on the webpage text of the current webpage.
  • the request receiving module receives the browsing request, for example, opens a certain website.
  • the webpage data obtaining module obtains webpage data corresponding to the browsing request, such as an article, a link, and the like from the server, and the data conversion module converts the webpage data into a character string, and the node information acquiring module parses the page code corresponding to the string to obtain each webpage.
  • the node information (including the corresponding node attribute and the node content), the webpage text determining module sequentially acquires the length of each node content, and uses the node content of the node content whose length is greater than or equal to the preset length as the webpage text, and the cache module
  • the webpage text is cached in a string manner, and after the instruction receiving module receives the browsing instruction, for example, starting the voice reading text, the control module controls the browser to read the text of the webpage according to the browsing instruction, for example, the control module controls the browser to start the voice reading on the webpage text.
  • the text operation the browser reads the corresponding web page body.
  • the embodiment of the invention not only facilitates the user to know the related content in the webpage, but also makes the user do not need to drag the webpage text up and down, and is also suitable for people with poor eyesight such as the elderly to browse the webpage, which greatly improves the browsing. user experience.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • Those skilled in the art will appreciate that some or all of some or all of the components of the web browsing method and apparatus of a browser in accordance with an embodiment of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 5 illustrates a computing device that can implement a web browsing method for a browser in accordance with the present invention.
  • the computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520.
  • the memory 520 can be, for example, a flash memory, an EEPROM (electrically erasable) An electronic memory such as a programmable read only memory, an EPROM, a hard disk, or a ROM.
  • Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above.
  • storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种浏览器的网页浏览方法和装置,所述方法包括:接收浏览请求(S1);从服务器获取浏览请求对应的网页数据(S2);从网页数据中获取网页正文(S3);接收浏览指令(S4);控制浏览器根据浏览指令语音阅读网页正文(S5)。所述方法方便了用户获知网页中的相关内容,使得用户无需对网页正文进行向上、向下等拖动操作,同时也适合视力不佳的人群浏览网页,提高了用户体验。

Description

一种浏览器的网页浏览方法和装置
本申请要求在2015年12月01日提交中国专利局、申请号为201510870831.9、发明名称为“一种浏览器的网页浏览方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及浏览器技术领域,特别是涉及一种浏览器的网页浏览方法和装置。
背景技术
当前,语音技术在浏览器产品中开始普及。主要有两种模式:语音输入法和语音命令。在第一种模式即语音输入法模式下,具体产品形态如,语音搜索、语音输入文本等;在语音命令模式下,则由语音控制前进、后退等浏览器动作。第二种模式,是用语音转换的文字来执行命令,即一种新的交互方式,而交互时执行的操作是由语音来控制的。也就是说是一种新的用户界面(User Interface,UI)。现有浏览器产品中对第二种模式的使用是有局限的:因为这种模式是与网页内容无关的通用控制,因此必须是通用的,即对每个网页都能进行的操作进行控制,例如控制翻页、前进、后退、打开网页等。也就是说,第二种模式针对的是浏览器本身的功能,而与网页的具体内容没有关系。
综上所述,在现有技术的语音命令模式下,通过语音只能对浏览器进行与网页内容无关的通用控制,而不能针对网页的具体内容进行控制,用户体验差。
发明内容
本发明实施例提供一种浏览器的网页浏览方法和装置,用以解决现有技术不能针对网页的具体内容进行控制,用户体验差的缺陷,实现浏览器根据用户发出的浏览指令,语音阅读网页的正文等,提高用户的体验。
为了解决上述问题,本发明实施例公开了一种浏览器的网页浏览方法,包括以下步骤:接收浏览请求;从服务器获取所述浏览请求对应的网页数据;从所述网页数据中获取网页正文;接收浏览指令;控制浏览器根据所述浏览指令语音阅读所述网页正文。
为了解决上述问题,本发明实施例还公开了一种浏览器的网页浏览装置,包括:请求接收模块,用于接收浏览请求;网页数据获取模块,用于从服务器获取所述浏览请求对应的网页数据;网页正文获取模块,用于从所述网页数据中获取网页正文;指令接收模块,用于接收浏览指令;控制模块,用于控制浏览器根据所述浏览指令语音阅读所述网页正文。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行所述的浏览器的网页浏览方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了所述的计算机程序。
本发明实施例提供的一种浏览器的网页浏览方法和装置,在接收浏览请求后,从服务器获取浏览请求对应的网页数据,进而从网页数据中获取网页正文,并在接收浏览指令后,控制浏览器根据浏览指令语音阅读网页正文。本发明实施例不仅方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,同时也适合视力不佳的人群浏览网页,极大地提高了用户体验。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例一种浏览器的网页浏览方法的步骤流程图;
图2是本发明实施例另一种浏览器的网页浏览方法的步骤流程图;
图3是本发明实施例一种浏览器的网页浏览装置的结构框图;
图4是本发明实施例另一种浏览器的网页浏览装置的结构框图。
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例一
参照图1,示出了本发明实施例一种浏览器的网页浏览方法的步骤流程图。
本发明实施例的浏览器的网页浏览方法可以包括以下步骤:
S1,接收浏览请求。
其中,用户可以通过文字输入、语音输入或点击浏览器当前打开网页上的标签等,来发出浏览请求,其中,步骤S1中的浏览请求可以为打开某一网址。具体地,本发明实施例中的浏览器可以为电视、电脑、手机等智能设备中的浏览器。用户可以为视力正常的用户,也可以为视力不佳的用户,例如老人、近视者、远视者等。
S2,从服务器获取浏览请求对应的网页数据。
步骤S2中的网页可以包括文章页面、新闻页面等,其中,对于文章页面,网页数据可以为当前页面中的文章、链接等,对于新闻页面,网页数据可以为当前页面中的文章、链接、图片等。
S3,从网页数据中获取网页正文。
其中,在步骤S3中,网页正文可以为网页数据中文字密集的内容。
S4,接收浏览指令。
其中,浏览指令可以为开始语音阅读指令、暂停语音阅读指令、继续语音阅读指令或停止语音阅读指令等。
S5,控制浏览器根据浏览指令语音阅读网页正文。
步骤S5可以控制浏览器对网页正文进行开始语音阅读正文、暂停语音阅读正文、继续语音阅读正文或停止语音阅读正文等操作。需要说明的是,浏览器对网页正文进行开始语音阅读正文和继续语音阅读正文操作时,浏览器朗读相应的网页正文,从而方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,有效提高了用户体验。
例如,当老人点击浏览器当前打开网页上的新闻标签“习近平开始对英国进行国事访问”时,步骤S1中接收的浏览请求为打开该新闻标签对应的网页,步骤S2从服务器获取该浏览请求对应的网页数据,包括国事访问期间的图片和各图片相关的报道等,步骤S3从网页数据中获取网页正文即各图片相关的报道,进而在接收到老人发出开始语音阅读正文的浏览指令后,步骤S5控制浏览器对网页正文进行开始语音阅读正文操作,浏览器朗读相应的网页正文,从而老人可以方便的获知网页内容。
根据本发明实施例一,在接收浏览请求例如打开某一网址后,从服务器获取浏览请求对应的网页数据例如文章、链接等,进而从网页数据中获取网页正文例如网页数据中文字密集的内容,并在接收浏览指令例如开始语音阅读正文后,控制浏览器根据浏览指令语音阅读网页正文,例如控制浏览器对网页正文进行开始语音阅读正文操作,浏览器朗读相应的网页正文。本发明实施例不仅方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,同时也适合视力不佳的人群例如老人等浏览网页,极大地提高了用户体验。
实施例二
参照图2,示出了本发明实施例另一种浏览器的网页浏览方法的步骤流程图。该浏览器的网页浏览方法可以包括以下步骤:
S21,接收浏览请求。
用户可以通过文字输入、语音输入或点击浏览器当前打开网页上的标签等,来发出浏览请求,其中,步骤S21中的浏览请求可以为打开某一网址。具体地,本发明实施例中的浏览器可以为电视、电脑、手机等智能设备中的浏览器。用户可以为视力正常的用户,也可以为视力不佳的用户,例如老人、 近视者、远视者。
S22,从服务器获取浏览请求对应的网页数据。
步骤S22中的网页可以包括文章页面、新闻页面等,其中,对于文章页面,网页数据可以为当前页面中的文章、链接等,对于新闻页面,网页数据可以为当前页面中的文章、链接、图片等。
S23,从网页数据中获取网页正文,包括:
S231,将网页数据转化为字符串。
S232,解析字符串对应的页面代码以获取网页的各节点信息;每个节点信息包括相应的节点属性和节点内容。
S233,依次获取各节点内容的长度,并将节点内容的长度大于或等于预设长度的连续节点的节点内容作为网页正文。
在步骤S233中,节点内容的长度大于或等于预设长度的连续节点的节点内容为网页数据中文字密集的内容。其中,在本发明的一个实施例中,连续节点可以为3个节点或3个以上节点,预设长度可以为160字符,即该3个节点或3个以上节点中每个节点的长度大于或等于160字符,该3个节点或3个以上节点的节点内容作为网页正文。
S24,以字符串的方式缓存网页正文。
S25,接收浏览指令。
具体地,浏览指令可以为开始语音阅读指令、暂停语音阅读指令、继续语音阅读指令或停止语音阅读指令等。
其中,在本发明的一个实施例中,步骤S25中的浏览指令可以为用户发出的语音浏览指令,此时,步骤S25可以通过语音识别芯片等对语音浏览指令进行识别。具体地,当浏览指令为用户发出的语音浏览指令时,步骤S25可以包括以下步骤:
接收点击语音识别按钮时产生的触发信号;其中,语音识别按钮设置在浏览器所展示的当前网页界面的前端。
当触发信号的持续时间大于或等于预设时间时,接收语音浏览指令。
其中,可以通过麦克风或耳机等接收用户发出的语音浏览指令,步骤S25的接收语言可以为中文、英语等语言,在实际应用中,可以预先设置或由用户根据自身掌握的语言情况对步骤S25的接收语言进行设置。另外,当触发 信号的持续时间小于预设时间时,例如当用户误点击语音识别按钮时,控制麦克风或耳机等不接收语音浏览指令。具体地,在应用中,预设时间可以根据实际情况预先设置或由用户根据个人习惯进行设置。
在本发明的另一个实施例中,步骤S25中的浏览指令可以为通过触发浏览方式选择列表中任一选择按钮产生的浏览指令。浏览方式选择列表可以设置在当前网页界面的前端,以便于用户选择。浏览方式选择列表可以包括开始语音阅读选择按钮、暂停语音阅读选择按钮、继续语音阅读选择按钮或停止语音阅读选择按钮等。相应的,当用户触发开始语音阅读选择按钮时,步骤S25接收开始语音阅读指令;当用户触发暂停语音阅读选择按钮时,步骤S25接收暂停语音阅读指令;当用户触发继续语音阅读选择按钮时,步骤S25接收继续语音阅读指令;当用户触发停止语音阅读选择按钮时,步骤S25接收停止语音阅读指令。
S26,控制浏览器根据浏览指令语音阅读网页正文。
具体地,在步骤S26中,当浏览指令为开始语音阅读指令时,可以控制浏览器从网页正文的初始位置进行语音阅读操作,此时,浏览器从当前网页的网页正文的初始位置开始朗读,直至语音阅读至当前网页的网页正文的结束位置,或接收到暂停语音阅读指令或停止语音阅读指令,其中,网页正文的初始位置为步骤S24缓存的第一个字符串的位置,网页正文的结束位置为步骤S24缓存的最后一个字符串的位置。
当浏览指令为暂停语音阅读指令时,可以控制浏览器对当前网页的网页正文进行暂停语音阅读操作,并记录网页正文的暂停位置,此时,浏览器暂停朗读。
当浏览指令为继续语音阅读指令时,可以控制浏览器从当前网页的网页正文的暂停位置进行语音阅读操作,此时,浏览器从网页正文的暂停位置开始朗读,直至语音阅读至网页正文的结束位置,或接收到暂停语音阅读指令或停止语音阅读指令。
当浏览指令为停止语音阅读指令时,可以控制浏览器对当前网页的网页正文进行停止语音阅读操作,此时,浏览器停止朗读。进一步地,在控制浏览器对网页正文进行停止语音阅读操作之后,若接收到继续语音阅读指令,则可以控制浏览器从网页正文的初始位置进行语音阅读操作,此时,浏览器 从网页正文的初始位置开始朗读,直至语音阅读至网页正文的结束位置,或接收到暂停语音阅读指令或停止语音阅读指令。
因此,用户无需阅读网页中的文字信息,即可方便的获知网页中的相关内容,而且用户无需对网页正文进行向上、向下等拖动操作,有效提高了用户体验。
需要说明的是,当浏览器朗读网页正文时,若出现用户关闭、退出浏览器,或用户对浏览器进行前进、后退操作,或用户打开其他链接页面或子页面等情况,可以控制浏览器对当前网页的网页正文进行暂停语音阅读操作,并记录网页正文的暂停位置,或控制浏览器对当前网页的网页正文进行停止语音阅读操作。
根据本发明实施例二,在接收浏览请求例如打开某一网址后,从服务器获取浏览请求对应的网页数据例如文章、链接等,进而将网页数据转化为字符串,并解析字符串对应的页面代码以获取网页的各节点信息(包括相应的节点属性和节点内容),依次获取各节点内容的长度,并将节点内容的长度大于或等于预设长度的连续节点的节点内容作为网页正文,同时以字符串的方式缓存网页正文,并在接收浏览指令例如开始语音阅读正文后,控制浏览器根据浏览指令语音阅读网页正文,例如控制浏览器对网页正文进行开始语音阅读正文操作,浏览器朗读相应的网页正文。本发明实施例不仅方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,同时也适合视力不佳的人群例如老人等浏览网页,极大地提高了用户体验。
实施例三
参照图3,示出了本发明实施例三的一种浏览器的网页浏览装置的结构框图。
本发明实施例的浏览器的网页浏览装置,可以包括:
请求接收模块1,用于接收浏览请求。
其中,用户可以通过文字输入、语音输入或点击浏览器当前打开网页上的标签等,来发出浏览请求,其中,请求接收模块1中的浏览请求可以为打开某一网址。具体地,本发明实施例中的浏览器可以为电视、电脑、手机等 智能设备中的浏览器。用户可以为视力正常的用户,也可以为视力不佳的用户,例如老人、近视者、远视者等。
网页数据获取模块2,用于从服务器获取浏览请求对应的网页数据。
网页数据获取模块2中的网页可以包括文章页面、新闻页面等,其中,对于文章页面,网页数据可以为当前页面中的文章、链接等,对于新闻页面,网页数据可以为当前页面中的文章、链接、图片等。
网页正文获取模块3,用于从网页数据中获取网页正文。
其中,在网页正文获取模块3中,网页正文可以为网页数据中文字密集的内容。
指令接收模块4,用于接收浏览指令。
其中,浏览指令可以为开始语音阅读指令、暂停语音阅读指令、继续语音阅读指令或停止语音阅读指令等。
控制模块5,用于控制浏览器根据浏览指令语音阅读网页正文。
控制模块5可以控制浏览器对网页正文进行开始语音阅读正文、暂停语音阅读正文、继续语音阅读正文或停止语音阅读正文等操作。需要说明的是,浏览器对网页正文进行开始语音阅读正文和继续语音阅读正文操作时,浏览器朗读相应的网页正文,从而方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,有效提高了用户体验。
例如,当老人点击浏览器当前打开网页上的新闻标签“习近平开始对英国进行国事访问”时,请求接收模块1中接收的浏览请求为打开该新闻标签对应的网页,网页数据获取模块2从服务器获取该浏览请求对应的网页数据,包括国事访问期间的图片和各图片相关的报道等,网页正文获取模块3从网页数据中获取网页正文即各图片相关的报道,进而在指令接收模块4接收到老人发出开始语音阅读正文的浏览指令后,控制模块5控制浏览器对网页正文进行开始语音阅读正文操作,浏览器朗读相应的网页正文,从而老人可以方便的获知网页内容。
根据本发明实施例三,在请求接收模块接收浏览请求例如打开某一网址后,网页数据获取模块从服务器获取浏览请求对应的网页数据例如文章、链接等,进而网页正文获取模块从网页数据中获取网页正文例如网页数据中文字密集的内容,并在指令接收模块接收浏览指令例如开始语音阅读正文后, 控制模块控制浏览器根据浏览指令语音阅读网页正文,例如控制模块控制浏览器对网页正文进行开始语音阅读正文操作,浏览器朗读相应的网页正文。本发明实施例不仅方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,同时也适合视力不佳的人群例如老人等浏览网页,极大地提高了用户体验。
实施例四
参照图4,示出了本发明实施例四的另一种浏览器的网页浏览装置的结构框图。该浏览器的网页浏览装置,可以包括:
请求接收模块21,用于接收浏览请求。
用户可以通过文字输入、语音输入或点击浏览器当前打开网页上的标签等,来发出浏览请求,其中,请求接收模块21中的浏览请求可以为打开某一网址。具体地,本发明实施例中的浏览器可以为电视、电脑、手机等智能设备中的浏览器。用户可以为视力正常的用户,也可以为视力不佳的用户,例如老人、近视者、远视者。
网页数据获取模块22,用于从服务器获取浏览请求对应的网页数据。
网页数据获取模块22中的网页可以包括文章页面、新闻页面等,其中,对于文章页面,网页数据可以为当前页面中的文章、链接等,对于新闻页面,网页数据可以为当前页面中的文章、链接、图片等。
网页正文获取模块23,用于从网页数据中获取网页正文,包括:
数据转化模块231,用于将网页数据转化为字符串。
节点信息获取模块232,用于解析字符串对应的页面代码以获取网页的各节点信息;每个节点信息包括相应的节点属性和节点内容。
网页正文确定模块233,用于依次获取各节点内容的长度,并将节点内容的长度大于或等于预设长度的连续节点的节点内容作为网页正文。
在网页正文确定模块233中,节点内容的长度大于或等于预设长度的连续节点的节点内容为网页数据中文字密集的内容。其中,在本发明的一个实施例中,连续节点可以为3个节点或3个以上节点,预设长度可以为160字符,即该3个节点或3个以上节点中每个节点的长度大于或等于160字符,该3个节点或3个以上节点的节点内容作为网页正文。
缓存模块24,用于在网页正文确定模块233将节点内容的长度大于或等于预设长度的连续节点的节点内容作为网页正文之后,以字符串的方式缓存网页正文。
指令接收模块25,用于接收浏览指令。
具体地,浏览指令可以为开始语音阅读指令、暂停语音阅读指令、继续语音阅读指令或停止语音阅读指令等。
其中,在本发明的一个实施例中,指令接收模块25中的浏览指令可以为用户发出的语音浏览指令,此时,指令接收模块25可以通过语音识别芯片等对语音浏览指令进行识别。具体地,当浏览指令为用户发出的语音浏览指令时,指令接收模块25可以包括:
触发信号接收模块,用于接收点击语音识别按钮时产生的触发信号;其中,语音识别按钮设置在浏览器所展示的当前网页界面的前端。
指令接收模块,用于当触发信号的持续时间大于或等于预设时间时,接收浏览指令。
其中,指令接收模块可以通过麦克风或耳机等接收用户发出的语音浏览指令。指令接收模块25的接收语言可以为中文、英语等语言,在实际应用中,可以预先设置或由用户根据自身掌握的语言情况对指令接收模块25的接收语言进行设置。另外,当触发信号的持续时间小于预设时间时,例如当用户误点击语音识别按钮时,控制麦克风或耳机等不接收语音浏览指令。具体地,在应用中,预设时间可以根据实际情况预先设置或由用户根据个人习惯进行设置。
在本发明的另一个实施例中,指令接收模块25中的浏览指令可以为通过触发浏览方式选择列表中任一选择按钮产生的浏览指令。浏览方式选择列表可以设置在当前网页界面的前端,以便于用户选择。浏览方式选择列表可以包括开始语音阅读选择按钮、暂停语音阅读选择按钮、继续语音阅读选择按钮或停止语音阅读选择按钮等。相应的,当用户触发开始语音阅读选择按钮时,指令接收模块25接收开始语音阅读指令;当用户触发暂停语音阅读选择按钮时,指令接收模块25接收暂停语音阅读指令;当用户触发继续语音阅读选择按钮时,指令接收模块25接收继续语音阅读指令;当用户触发停止语音阅读选择按钮时,指令接收模块25接收停止语音阅读指令。
控制模块26,用于控制浏览器根据浏览指令语音阅读网页正文。
具体地,在控制模块26中,当浏览指令为开始语音阅读指令时,控制模块26可以控制浏览器从网页正文的初始位置进行语音阅读操作,此时,浏览器从当前网页的网页正文的初始位置开始朗读,直至语音阅读至当前网页的网页正文的结束位置,或接收到暂停语音阅读指令或停止语音阅读指令,其中,网页正文的初始位置为缓存模块24缓存的第一个字符串的位置,网页正文的结束位置为缓存模块24缓存的最后一个字符串的位置。
当浏览指令为暂停语音阅读指令时,控制模块26可以控制浏览器对当前网页的网页正文进行暂停语音阅读操作,并记录网页正文的暂停位置,此时,浏览器暂停朗读。
当浏览指令为继续语音阅读指令时,控制模块26可以控制浏览器从当前网页的网页正文的暂停位置进行语音阅读操作,此时,浏览器从网页正文的暂停位置开始朗读,直至语音阅读至网页正文的结束位置,或接收到暂停语音阅读指令或停止语音阅读指令。
当浏览指令为停止语音阅读指令时,控制模块26可以控制浏览器对当前网页的网页正文进行停止语音阅读操作,此时,浏览器停止朗读。进一步地,在控制模块26控制浏览器对网页正文进行停止语音阅读操作之后,若指令接收模块25接收到继续语音阅读指令,则控制模块26可以控制浏览器从网页正文的初始位置进行语音阅读操作,此时,浏览器从网页正文的初始位置开始朗读,直至语音阅读至网页正文的结束位置,或接收到暂停语音阅读指令或停止语音阅读指令。
因此,用户无需阅读网页中的文字信息,即可方便的获知网页中的相关内容,而且用户无需对网页正文进行向上、向下等拖动操作,有效提高了用户体验。
需要说明的是,当浏览器朗读网页正文时,若出现用户关闭、退出浏览器,或用户对浏览器进行前进、后退操作,或用户打开其他链接页面或子页面等情况,控制模块26可以控制浏览器对当前网页的网页正文进行暂停语音阅读操作,并记录网页正文的暂停位置,或控制浏览器对当前网页的网页正文进行停止语音阅读操作。
根据本发明实施例四,在请求接收模块接收浏览请求例如打开某一网址 后,网页数据获取模块从服务器获取浏览请求对应的网页数据例如文章、链接等,进而数据转化模块将网页数据转化为字符串,节点信息获取模块并解析字符串对应的页面代码以获取网页的各节点信息(包括相应的节点属性和节点内容),网页正文确定模块依次获取各节点内容的长度,并将节点内容的长度大于或等于预设长度的连续节点的节点内容作为网页正文,同时缓存模块以字符串的方式缓存网页正文,并在指令接收模块接收浏览指令例如开始语音阅读正文后,控制模块控制浏览器根据浏览指令语音阅读网页正文,例如控制模块控制浏览器对网页正文进行开始语音阅读正文操作,浏览器朗读相应的网页正文。本发明实施例不仅方便了用户获知网页中的相关内容,而且使得用户无需对网页正文进行向上、向下等拖动操作,同时也适合视力不佳的人群例如老人等浏览网页,极大地提高了用户体验。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器的网页浏览方法和装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5示出了可以实现根据本发明的浏览器的网页浏览方法的计算设备。该计算设备传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦 除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6所述的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (14)

  1. 一种浏览器的网页浏览方法,其特征在于,包括以下步骤:
    接收浏览请求;
    从服务器获取所述浏览请求对应的网页数据;
    从所述网页数据中获取网页正文;
    接收浏览指令;
    控制浏览器根据所述浏览指令语音阅读所述网页正文。
  2. 根据权利要求1所述的网页浏览方法,其特征在于,所述从所述网页数据中获取网页正文,包括:
    将所述网页数据转化为字符串;
    解析所述字符串对应的页面代码以获取网页的各节点信息;每个所述节点信息包括相应的节点属性和节点内容;
    依次获取各节点内容的长度,并将节点内容的长度大于或等于预设长度的连续节点的节点内容作为所述网页正文。
  3. 根据权利要求2所述的网页浏览方法,其特征在于,在所述将节点内容的长度大于或等于预设长度的连续节点的节点内容作为所述网页正文之后,还包括:
    以字符串的方式缓存所述网页正文。
  4. 根据权利要求1所述的网页浏览方法,其特征在于,所述浏览指令为开始语音阅读指令、暂停语音阅读指令、继续语音阅读指令或停止语音阅读指令。
  5. 根据权利要求4所述的网页浏览方法,其特征在于,
    当所述浏览指令为所述开始语音阅读指令时,控制所述浏览器从所述网页正文的初始位置进行语音阅读操作,直至语音阅读至所述网页正文的结束位置,或接收到所述暂停语音阅读指令或所述停止语音阅读指令;
    当所述浏览指令为所述暂停语音阅读指令时,控制所述浏览器对所述网页正文进行暂停语音阅读操作,并记录所述网页正文的暂停位置;
    当所述浏览指令为所述继续语音阅读指令时,控制所述浏览器从所述网页正文的暂停位置进行语音阅读操作;
    当所述浏览指令为所述停止语音阅读指令时,控制所述浏览器对所述网页正文进行停止语音阅读操作。
  6. 根据权利要求5所述的网页浏览方法,其特征在于,在所述控制所述浏览器对所述网页正文进行停止语音阅读操作之后,若接收到所述继续语音阅读指令,则控制所述浏览器从所述网页正文的初始位置进行语音阅读操作。
  7. 一种浏览器的网页浏览装置,其特征在于,包括:
    请求接收模块,用于接收浏览请求;
    网页数据获取模块,用于从服务器获取所述浏览请求对应的网页数据;
    网页正文获取模块,用于从所述网页数据中获取网页正文;
    指令接收模块,用于接收浏览指令;
    控制模块,用于控制浏览器根据所述浏览指令语音阅读所述网页正文。
  8. 根据权利要求7所述的网页浏览装置,其特征在于,所述网页正文获取模块,包括:
    数据转化模块,用于将所述网页数据转化为字符串;
    节点信息获取模块,用于解析所述字符串对应的页面代码以获取网页的各节点信息;每个所述节点信息包括相应的节点属性和节点内容;
    网页正文确定模块,用于依次获取各节点内容的长度,并将节点内容的长度大于或等于预设长度的连续节点的节点内容作为所述网页正文。
  9. 根据权利要求8所述的网页浏览装置,其特征在于,还包括:
    缓存模块,用于在所述网页正文确定模块将节点内容的长度大于或等于预设长度的连续节点的节点内容作为所述网页正文之后,以字符串的方式缓存所述网页正文。
  10. 根据权利要求7所述的网页浏览装置,其特征在于,所述浏览指令为开始语音阅读指令、暂停语音阅读指令、继续语音阅读指令或停止语音阅读指令。
  11. 根据权利要求10所述的网页浏览装置,其特征在于,
    当所述浏览指令为所述开始语音阅读指令时,所述控制模块控制所述浏览器从所述网页正文的初始位置进行语音阅读操作,直至语音阅读至所述网页正文的结束位置,或接收到所述暂停语音阅读指令或所述停止语音阅读指令;
    当所述浏览指令为所述暂停语音阅读指令时,所述控制模块控制所述浏览器对所述网页正文进行暂停语音阅读操作,并记录所述网页正文的暂停位置;
    当所述浏览指令为所述继续语音阅读指令时,所述控制模块控制所述浏览器从所述网页正文的暂停位置进行语音阅读操作;
    当所述浏览指令为所述停止语音阅读指令时,所述控制模块控制所述浏览器对所述网页正文进行停止语音阅读操作。
  12. 根据权利要求11所述的网页浏览装置,其特征在于,在所述控制模块控制所述浏览器对所述网页正文进行停止语音阅读操作之后,若所述指令接收模块接收到所述继续语音阅读指令,则所述控制模块控制所述浏览器从所述网页正文的初始位置进行语音阅读操作。
  13. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-6中的任一个所述的浏览器的网页浏览方法。
  14. 一种计算机可读介质,其中存储了如权利要求13所述的计算机程序。
PCT/CN2016/088888 2015-12-01 2016-07-06 一种浏览器的网页浏览方法和装置 Ceased WO2017092312A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/247,644 US20170153867A1 (en) 2015-12-01 2016-08-25 Web browsing method and device of a browser

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510870831.9A CN105975469A (zh) 2015-12-01 2015-12-01 一种浏览器的网页浏览方法和装置
CN201510870831.9 2015-12-01

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/247,644 Continuation US20170153867A1 (en) 2015-12-01 2016-08-25 Web browsing method and device of a browser

Publications (1)

Publication Number Publication Date
WO2017092312A1 true WO2017092312A1 (zh) 2017-06-08

Family

ID=56988271

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088888 Ceased WO2017092312A1 (zh) 2015-12-01 2016-07-06 一种浏览器的网页浏览方法和装置

Country Status (2)

Country Link
CN (1) CN105975469A (zh)
WO (1) WO2017092312A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770157A (zh) * 2020-12-17 2021-05-07 深圳创维-Rgb电子有限公司 电视web前端界面的语音控制方法、装置、设备及介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943405A (zh) * 2016-10-13 2018-04-20 广州市动景计算机科技有限公司 语音播报装置、方法、浏览器及用户终端
CN106896985B (zh) * 2017-02-24 2020-06-05 百度在线网络技术(北京)有限公司 用于切换朗读信息与阅读信息的方法和装置
CN110019929B (zh) * 2017-11-30 2022-11-01 腾讯科技(深圳)有限公司 网页内容的处理方法、装置及计算机可读存储介质
CN108846030B (zh) * 2018-05-28 2019-12-10 苏州思必驰信息科技有限公司 访问官方网站的方法、系统、电子设备及存储介质
CN108763500A (zh) * 2018-05-30 2018-11-06 深圳壹账通智能科技有限公司 基于语音的网页浏览方法、装置、设备及存储介质
CN109325212B (zh) * 2018-08-30 2023-08-22 北京车和家信息技术有限公司 信息交互方法、装置、电子设备及浏览器
CN111767019B (zh) * 2019-11-28 2024-10-22 北京沃东天骏信息技术有限公司 页面处理方法和装置
CN113450762B (zh) * 2021-06-23 2024-05-14 Oppo广东移动通信有限公司 文字朗读方法、装置、终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055575A (zh) * 2006-04-13 2007-10-17 北京闻言科技有限公司 一种听网的方法
US20100145686A1 (en) * 2008-12-04 2010-06-10 Sony Computer Entertainment Inc. Information processing apparatus converting visually-generated information into aural information, and information processing method thereof
CN102254550A (zh) * 2010-05-21 2011-11-23 腾讯科技(深圳)有限公司 网页文字朗读方法和系统
CN102487461A (zh) * 2010-12-02 2012-06-06 康佳集团股份有限公司 在网络电视上实现网页朗读的方法及其装置
CN104078038A (zh) * 2013-03-28 2014-10-01 腾讯科技(深圳)有限公司 一种页面内容朗读方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398839A (zh) * 2008-10-23 2009-04-01 浙江大学 一种有声网页新闻的个性化推送方法
US20120185253A1 (en) * 2011-01-18 2012-07-19 Microsoft Corporation Extracting text for conversion to audio
JP6056610B2 (ja) * 2013-03-29 2017-01-11 株式会社Jvcケンウッド テキスト情報処理装置、テキスト情報処理方法、及びテキスト情報処理プログラム

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055575A (zh) * 2006-04-13 2007-10-17 北京闻言科技有限公司 一种听网的方法
US20100145686A1 (en) * 2008-12-04 2010-06-10 Sony Computer Entertainment Inc. Information processing apparatus converting visually-generated information into aural information, and information processing method thereof
CN102254550A (zh) * 2010-05-21 2011-11-23 腾讯科技(深圳)有限公司 网页文字朗读方法和系统
CN102487461A (zh) * 2010-12-02 2012-06-06 康佳集团股份有限公司 在网络电视上实现网页朗读的方法及其装置
CN104078038A (zh) * 2013-03-28 2014-10-01 腾讯科技(深圳)有限公司 一种页面内容朗读方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770157A (zh) * 2020-12-17 2021-05-07 深圳创维-Rgb电子有限公司 电视web前端界面的语音控制方法、装置、设备及介质
CN112770157B (zh) * 2020-12-17 2023-03-28 深圳创维-Rgb电子有限公司 电视web前端界面的语音控制方法、装置、设备及介质

Also Published As

Publication number Publication date
CN105975469A (zh) 2016-09-28

Similar Documents

Publication Publication Date Title
WO2017092312A1 (zh) 一种浏览器的网页浏览方法和装置
KR102100742B1 (ko) 디지털 어시스턴트 서비스의 원거리 확장
CN107801096B (zh) 视频播放的控制方法、装置、终端设备及存储介质
WO2019157894A1 (zh) 应用页面的显示方法、装置、存储介质及电子设备
US20130219277A1 (en) Gesture and Voice Controlled Browser
WO2019149026A1 (zh) 应用页面的链接生成方法、装置、存储介质及电子设备
CN105138555B (zh) 一种网页多语言国际化的加载方法和装置
CN112799630B (zh) 使用网络可寻址设备创建电影化的讲故事体验
US9565301B2 (en) Apparatus and method for providing call log
KR20200039030A (ko) 디지털 어시스턴트 서비스의 원거리 확장
WO2020001165A1 (zh) 语音控制方法、装置、存储介质及电子设备
US10083004B2 (en) Using voice-based web navigation to conserve cellular data
CN105580384A (zh) 触摸屏上显示的可操作内容
WO2019157880A1 (zh) 应用页面的链接生成方法、装置、存储介质及电子设备
CN110431514A (zh) 用于情境驱动智能的系统和方法
CN102768683B (zh) 一种图片信息的搜索方法及搜索装置
KR20170100175A (ko) 전자 장치 및 전자 장치의 동작 방법
WO2017045399A1 (zh) 一种语音播读网页信息的方法、浏览器客户端及服务器
JP2009271903A (ja) ウェブページの閲覧中に便利に辞書サービスを提供するための方法及びシステム
CN104462571A (zh) 进行网页加载的方法、装置和浏览器客户端
WO2019109663A1 (zh) 一种跨语言搜索方法和装置、一种用于跨语言搜索的装置
CN103595742B (zh) 调试网页css的方法及装置
CN111523071B (zh) 信息分享方法、电子设备和存储介质
US11948564B2 (en) Information processing device and information processing method
US20140114917A1 (en) Experience log

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: 16869625

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16869625

Country of ref document: EP

Kind code of ref document: A1