Text reading method and device
Abstract
An electronic device displays a first user interface; receives a first operation of a user; obtains first content of the first user interface in response to the first operation; displays a second user interface, where content displayed in the second user interface includes a text in the first content, and the second user interface covers a part of a display area of the first user interface; reads a first sentence in the content of the second user interface; and displays marking information of a text that is in the second user interface and that corresponds to the first sentence that is being read. Embodiments of this application are used for text reading.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method for reading displayed content, applied to an electronic device, wherein the method comprises: displaying a first user interface; receiving a first operation of a user; obtaining first content of the first user interface in response to the first operation; displaying a second user interface, wherein content displayed in the second user interface comprises a text in the first content, and the second user interface covers a part of a display area of the first user interface; and reading a first sentence in the content in the second user interface, and displaying marking information of a text that is in the second user interface and that corresponds to the first sentence that is being read; detecting a fourth operation of the user; and minimizing, in response to the fourth operation, the window corresponding to the second user interface, and continuing reading current text content without interruption; and after the minimizing the window corresponding to the second user interface,
- Claim 2Depends on #1
The method according to claim 1, wherein before the displaying a second user interface, the method further comprises: recognizing one or more sentences for the obtained first content of the first user interface.
- Claim 3Depends on #2
The method according to claim 2, wherein the method further comprises: indexing the one or more recognized sentences, wherein the method further comprises: the content displayed in the second user interface further comprises a player control, and the player control is capable of controlling a reading progress or a reading speed; the player control comprises a progress bar, and the progress bar matches an index of the one or more sentences, and is used for control based on a granularity of the recognized sentence; and the player control comprises a move-down control, the move-down control is configured to control a current reading progress to switch to a next sentence; and/or the player control comprises a move-up control, and the move-up control is configured to control a current reading progress to switch to a previous sentence.
- Claim 4Depends on #2
The method according to claim 2, wherein the method further comprises: separately sending the one or more recognized sentences to a server for text-to-speech conversion processing; receiving and buffering a voice obtained through processing by the server; and reading, in real time, the voice obtained through processing by the server, or sequentially buffering, based on the one or more recognized sentences, the voice obtained through processing by the server.
- Claim 5Depends on #4
The method according to claim 4, wherein the method further comprises: buffering, by the electronic device by using two queues, the voice obtained through processing by the server, wherein a first queue is used to buffer one or more voice packages of a sentence that is currently being processed by the server; and a second queue is used to buffer a voice corresponding to one or more sentences that have been processed by the server; and the reading a first sentence in the content in the second user interface comprises: if a voice currently received from the server is a voice of the first sentence, obtaining, from the first queue, the voice corresponding to the first sentence for reading; or if a voice currently received from the server is not a voice of the first sentence, obtaining, from the second queue, the voice corresponding to the first sentence for reading.
- Claim 6Depends on #2
The method according to claim 2, wherein before the displaying a second user interface, the method further comprises: processing the obtained first content of the first user interface to remove non-text information to obtain the text in the first content; and displaying the processed text in the second user interface.
- Claim 7Depends on #6
The method according to claim 6, wherein before the displaying a second user interface, the method further comprises: performing sentence segmentation on the processed text based on a special punctuation mark, to obtain the one or more recognized sentences.
- Claim 8Depends on #1
The method according to claim 1, wherein the method further comprises: detecting a second operation of the user; and controlling, in response to the second operation based on a text location or text content corresponding to the second operation, the electronic device to read a second sentence corresponding to the second operation, or read from a location of the second sentence.
Technical Overview & Description
CROSS REFERENCE TO RELATED APPLICATIONS This application is a national stage of International Application No. PCT/CN2022/084595 filed on Mar. 31, 2022, which claims priority to Chinese Patent Application No. 202110425978.2, filed on Apr. 20, 2021 and Chinese Patent Application No. 202110485195.3, filed on Apr. 30,2021. All of the aforementioned applications are hereby incorporated by reference in their entireties TECHNICAL FIELD Embodiments of this application relate to the field of electronic technologies, and in particular, to a text reading method and a device. BACKGROUND Listening to books is a common requirement of users. In the past, people mainly listened to story telling programs on the radio. With the emergence of the mobile internet, people began to obtain various types of information through mobile phones. For example, reading various types of articles through a mobile phone is a habit that is common among people. However, when people are in a relatively bumpy scenario such as walking, driving, or riding, or in a scenario in which, for example, eyes are tired or the light is dim, it is difficult to read an article by using a mobile phone. In this case, if the mobile phone can read the article for the user, such a pain point of the user can be resolved. SUMMARY Embodiments of this application provide a text reading method and a device, so as to convert a text displayed in a user interface by an electronic device into playable audio data to implement text reading, and prompt, by using a reading control panel superimposed in the user interface for display, a user in real time with a sentence that is being read. In addition, a reading sentence can be switched at any time based on an instruction of the user. To achieve the foregoing objective, the following technical solutions are used in embodiments of this application. According to an aspect, an embodiment of this application provides a method for reading displayed content, which may be applied to an electro
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (5)
- Wu Yunbo etal.:
- “
- Analysis of the Controlling Model About Subnet Interconnecting Node in Broadband IP
- ”
- Journal of Southwest China Normal University (Natural Science ), vol. 26 No.2 ,Apr. 2001, with English abstract total 5 pages.