Content marking method and apparatus, terminal, and storage medium
By automatically marking and distinguishing the target text content according to the playback progress of the audio data, the problem of cumbersome operation during "listening to books" is solved, and efficient human-computer interaction is achieved.
Patent Information
- Application Number
- CN202111161896.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-09-30
AI Technical Summary
In existing technologies, the process of marking content of interest by users during "listening to books" is cumbersome, resulting in low efficiency of human-computer interaction.
By responding to the playback progress of audio data, the system automatically marks the target text content and displays it differently in the text interface. It supports operation methods such as physical buttons, function buttons, and voice commands, simplifying the switching of the user interface.
It improves the efficiency of users marking content of interest during "audiobook" listening, and content marking can be achieved without switching interfaces, thus improving the efficiency of human-computer interaction.
Smart Images

Figure CN115933937B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network technology, and in particular to a content marking method, apparatus, terminal and storage medium. Background Technology
[0002] With the increasingly fast pace of life, "audiobooks" have emerged as a new trend and become an important way for people to read and acquire information. Users can achieve the purpose of reading by listening to audiobooks. When reading in a traditional way, people often mark the content that interests them so that they can quickly review it when they read it again. Users also have the need to mark the content that interests them when "listening to audiobooks".
[0003] Currently, content tagging is achieved through the following process: users need to pause the audio playback of the book, and then manually select the text paragraphs of interest in the text interface of the book to complete the content tagging. This operation involves switching interfaces and is relatively cumbersome, which greatly reduces the efficiency of human-computer interaction. Summary of the Invention
[0004] This application provides a content tagging method, apparatus, terminal, and storage medium, which can improve the efficiency of human-computer interaction. The technical solution is as follows:
[0005] On the one hand, a content markup method is provided, which includes:
[0006] Play the audio data of the target electronic text;
[0007] In response to the target operation, based on the current playback progress of the audio data, a first target time period is determined, and the end point of the first target time period is the time point corresponding to the playback progress.
[0008] Based on the first target time period, the target text content in the target electronic text is marked, and the target text content is the text content corresponding to the first target time period;
[0009] In the text content interface of the target electronic text, the marked target text content is displayed separately.
[0010] On one hand, a content marking device is provided, the device comprising:
[0011] The playback module is used to play the audio data of the target electronic text;
[0012] The time period determination module is used to respond to the target operation and determine the first target time period based on the current playback progress of the audio data. The end point of the first target time period is the time point corresponding to the playback progress.
[0013] The tagging module is used to tag target text content in the target electronic text based on the first target time period, wherein the target text content is text content corresponding to the first target time period;
[0014] The display module is used to distinguish and display the marked target text content in the text content interface of the target electronic text.
[0015] In one possible implementation, the target operation is a press operation on a target physical button;
[0016] Alternatively, the target operation is a trigger operation on the first function button on the audio data playback interface on the lock screen, the first function button being used to display the playback progress;
[0017] Alternatively, the target operation is a trigger operation on the second function key on the audio data playback interface on the lock screen, which is used to trigger the text mark operation;
[0018] Alternatively, the target operation may be a target voice command.
[0019] In one possible implementation, the target physical button is a volume button.
[0020] In one possible implementation, the target operation is a long press operation on the first function key.
[0021] In one possible implementation, the time period determination module is used for:
[0022] The time point corresponding to the current playback progress of the audio data is determined as the first time point;
[0023] The first time point is taken as the end point of the first target time period, and the start point of the first target time period is determined before the first time point.
[0024] In one possible implementation, the tagging module includes:
[0025] The text content determination unit is used to determine, based on the first target time period, the target text content played within the target electronic text during the first target time period;
[0026] A tagging unit is used to tag the target text content in the target electronic text.
[0027] In one possible implementation, the text content determination unit includes:
[0028] The position determination subunit is used to determine the target text position of the target electronic text based on the current playback progress of the audio data. The target text position is used to indicate the text position corresponding to the current playback progress.
[0029] The word count determination subunit is used to determine the number of words played within the first target time period based on the first target time period and the preset speech rate;
[0030] The content determination subunit determines the target text content corresponding to the first target time period based on the target text position and the number of words played within the first target time period.
[0031] In one possible implementation, this location-determining sub-unit is used for:
[0032] Based on the current playback progress of the audio data, determine the number of words already played in the target electronic text, and based on the number of words already played, determine the position of the target text in the target electronic text.
[0033] In one possible implementation, the tagging module includes:
[0034] The first determining unit is used to determine, based on the first target time period, the first text content to be played within the target electronic text during the first target time period;
[0035] The target count acquisition unit is used to acquire the target count of the first text content, which represents the number of times the first text content has been marked by other users on the platform;
[0036] The first target determination unit is used to take the first text content as the target text content when the number of times the target is determined meets the marking conditions.
[0037] The second target determination unit is used to determine a second target time period based on the current playback progress of the audio data when the target number does not meet the marking condition, and to determine the target text content based on the second target time period. The end point of the second target time period is the time point corresponding to the playback progress, and the duration of the second target time period is greater than the duration of the first target time period.
[0038] This marking unit is used to mark the target text content in the target electronic text.
[0039] In one possible implementation, the second target determining unit is used for:
[0040] If, within the text content corresponding to the second target time period, there exists a second text content whose target frequency satisfies the marking condition, then that second text content is identified as the target text content.
[0041] If there is no second text content in the text content corresponding to the second target time period that satisfies the marking condition for the target number of times, then the first text content is determined as the target text content.
[0042] In one possible implementation, the tagging module includes:
[0043] The third target determination unit is used to determine the third target time period based on the current playback progress of the audio data when there is no text content in the text content corresponding to the first target time period that meets the marking condition for the target number. The third text content corresponding to the third target time period is determined as the target text content. The target number is used to represent the number of times the text content is marked by other users on the platform. The end point of the third target time period is the time point corresponding to the playback progress. The duration of the third target time period is less than the duration of the first target time period.
[0044] This marking unit is used to mark the target text content in the target electronic text.
[0045] In one possible implementation, the device further includes:
[0046] The timeline display module is used to differentiate and display the timeline segments corresponding to the target text content in the playback timeline of the audio data playback interface.
[0047] In one possible implementation, the device further includes:
[0048] The playback module is used to respond to a target playback operation and play the target audio data corresponding to the target text content;
[0049] The target playback operation is used to instruct the terminal not to play the audio data corresponding to the unmarked text content during playback, but only to play the target audio data corresponding to the target text content.
[0050] In one possible implementation, the playback module further includes:
[0051] An audio tagging unit is used to tag the target audio data corresponding to the target text content in the audio data;
[0052] This playback module is used for:
[0053] In response to the target playback operation, the tagged target audio data is determined in the audio data;
[0054] When playing this audio data, skip the untagged audio data and play the identified target audio data.
[0055] On one hand, a terminal is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, the computer program being loaded and executed by the one or more processors to implement the content tagging method as described above.
[0056] On the one hand, a computer-readable storage medium is provided, which stores at least one computer program that is loaded and executed by a processor to implement the above-described content marking method.
[0057] On one hand, a computer program product is provided, which includes program code stored in a computer-readable storage medium. A processor of a terminal reads the program code from the computer-readable storage medium and executes the program code, causing the terminal to perform the aforementioned content marking method. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0059] Figure 1 This is a schematic diagram of the implementation environment of a content marking method provided in an embodiment of this application;
[0060] Figure 2 This is a flowchart of a content tagging method provided in an embodiment of this application;
[0061] Figure 3 This is a flowchart of a content tagging method provided in an embodiment of this application;
[0062] Figure 4 This is a schematic diagram of a target operation provided in an embodiment of this application;
[0063] Figure 5 This is a schematic diagram of a first target time period provided in an embodiment of this application;
[0064] Figure 6 This is a schematic diagram of target text content provided in an embodiment of this application;
[0065] Figure 7 This is a schematic diagram illustrating a method for distinguishing and displaying target text content, provided in an embodiment of this application.
[0066] Figure 8 This is a schematic diagram illustrating a method for distinguishing and displaying timeline segments according to an embodiment of this application;
[0067] Figure 9 This is a schematic diagram of the structure of a content marking device provided in an embodiment of this application;
[0068] Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0069] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0070] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
[0071] In this application, the term "at least one" means one or more, and "multiple" means two or more, for example, multiple processors means two or more processors.
[0072] Cloud technology is a collective term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies applied based on the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, reading websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.
[0073] Cloud computing refers to the delivery and usage model of IT infrastructure, meaning obtaining necessary resources in an on-demand and easily scalable manner through a network. In a broader sense, cloud computing also refers to the delivery and usage model of services, meaning obtaining necessary services in an on-demand and easily scalable manner through a network. These services can be IT and software related, internet-related, or other services. Cloud computing is a product of the convergence and development of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing. Driven by the development of the internet, real-time data streams, the diversification of connected devices, and the demands of search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Unlike previous parallel and distributed computing, the emergence of cloud computing will fundamentally revolutionize the entire internet model and enterprise management model.
[0074] A database, simply put, can be viewed as an electronic filing cabinet—a place to store electronic files, where users can perform operations such as adding, querying, updating, and deleting data. A "database" is a collection of data stored together in a certain way, capable of being shared by multiple users, with minimal redundancy, and independent of application programs.
[0075] Big data refers to data sets that cannot be captured, managed, and processed within a certain timeframe using conventional software tools. It represents massive, rapidly growing, and diverse information assets that require new processing models to achieve stronger decision-making, insightful discovery, and process optimization capabilities. With the advent of the cloud era, big data has attracted increasing attention. Big data requires specialized technologies to effectively process large amounts of data within a tolerable timeframe. Technologies suitable for big data include massively parallel processing databases, data mining, distributed file systems, distributed databases, cloud computing platforms, the internet, and scalable storage systems.
[0076] Figure 1 This is a schematic diagram illustrating the implementation environment of a content tagging method provided in this application embodiment. See also: Figure 1 The implementation environment includes terminal 110 and server 120.
[0077] Terminal 110 can be a smartphone, e-reader, tablet, laptop, desktop computer, smart speaker, smartwatch, in-vehicle terminal, etc., but is not limited to these. Terminal 110 has an application installed and running that supports e-reading functions, capable of displaying the text content of electronic text and playing the audio data of electronic text. Terminal 110 is connected to server 120 via a wireless network or wired network.
[0078] Optionally, server 120 may be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Server 120 provides background services for applications running on the aforementioned terminals; for example, server 120 provides users of the applications with services such as downloading or reading electronic texts online.
[0079] After introducing the implementation environment of the embodiments of this application, the application scenarios of the content tagging method provided by the embodiments of this application will be described below in conjunction with the above implementation environment. In the following description, the terminal is the aforementioned terminal 110, and the server is the aforementioned server 120.
[0080] The content tagging method provided in this application embodiment is used to tag target text content in electronic text audio data playback scenarios. That is, through the content tagging method provided in this application embodiment, the terminal can respond to a target operation, tag the target text content based on the current playback progress of the audio data, and distinguish and display the target text content in the text content interface. The electronic text can be an e-book or webpage text, etc. With the development of science and technology, the content tagging method provided in this application embodiment can also be applied to other scenarios requiring content tagging; this application embodiment does not limit this application to such applications.
[0081] When the electronic text is an e-book, that is, in the scenario of playing the audio data of an e-book, the aforementioned terminal can respond to the marking operation of the listening user, and based on the current playback progress of the audio data of the e-book, complete the process of determining and marking the target text content in the e-book, and distinguish and display the target text content in the text reading interface of the e-book to meet the listening user's marking needs for the content of the e-book.
[0082] When the electronic text is web page text, that is, in the scenario of playing audio data of web page text, the aforementioned terminal can respond to the marking operation of the web page user, and based on the current playback progress of the audio data of the web page text, complete the process of determining and marking the target text content in the web page text, and distinguish and display the target text content in the text reading interface of the web page text to meet the marking needs of the web page user.
[0083] After introducing the implementation environment and application scenarios of the embodiments of this application, the content marking method provided by the embodiments of this application will be described below. Figure 2 This is a flowchart of a content tagging method provided in an embodiment of this application. The executing entity is the aforementioned terminal. See also... Figure 2 This embodiment includes the following steps:
[0084] 201. The terminal plays the audio data of the target electronic text.
[0085] The target electronic text refers to the text content that a user reads through the terminal, such as e-books or web page text, and this application embodiment does not limit this.
[0086] In some embodiments, the terminal downloads the target electronic text to its local storage based on the user's need for local reading. Further, based on the user's reading status, the terminal reads and displays the target electronic text from its local storage. In other embodiments, the terminal acquires the target electronic text in real time via a wired or wireless network based on the user's need for online reading, and displays the target electronic text in real time according to the user's reading status.
[0087] The audio data is used to represent the target electronic text in a sound manner. For example, if the target electronic text is an e-book, the audio data of the e-book can be the audio of reading the contents of the e-book aloud.
[0088] In some embodiments, the audio data is generated entirely based on the target electronic text, and is downloaded or acquired online along with the target electronic text when the terminal downloads or acquires it online. Based on the user's listening needs for the target electronic text, the terminal reads and plays the audio data locally while displaying the target electronic text. In other embodiments, the terminal acquires the audio data online based on the current playback progress of the target electronic text, and plays the acquired audio data online while displaying the target electronic text. Furthermore, in still other embodiments, the terminal uses its speech synthesis function to synthesize audio data in real time based on the text content of the target electronic text for playback.
[0089] It should be noted that the method of acquiring the target electronic text and the audio data depends on the user's needs. For example, if the user wants to read and listen to books offline, both the target electronic text and the audio data are downloaded to local storage by the terminal, where the audio data is pre-generated in its entirety. If the user wants to read and listen to books online, the terminal acquires and displays the target electronic text in real time, while simultaneously acquiring and playing the audio data in real time according to the current playback progress of the target electronic text. The audio data can be complete and pre-generated, or it can be synthesized in real time. This application embodiment does not limit the method of acquiring the target electronic text and the audio data.
[0090] 202. In response to the target operation, the terminal determines a first target time period based on the current playback progress of the audio data. The end point of the first target time period is the time point corresponding to the playback progress.
[0091] The target operation refers to any of the following operations: (1) A user pressing a target physical button on the terminal, for example, the target physical button is the volume button on a mobile phone, and the target operation is a long press operation on the volume button. (2) A user triggering a first function button on the terminal lock screen, for example, the first function button is the audio playback progress bar on the playback interface of the terminal lock screen, and the target operation is a long press operation on the audio playback progress bar. (3) A user triggering a second function button on the playback interface of the audio data on the terminal lock screen, for example, the second function button is a newly added marking button on the playback interface, and the target operation is a click operation on the marking button. (4) The target operation is a target voice command, which is voice data including target keywords, and the target keywords instruct the terminal to mark content. For example, the target voice command is "Please mark", where the target keyword is "mark". Another example is "Highlight", where the target keyword is "highlight".
[0092] When a user performs a target operation, their purpose may be one of the following: the user wants to review a portion of the content that has already been played; or the user wants to focus on a portion of the content that has already been played. Therefore, by taking the current playback progress as the starting point and tracing back a certain duration within the already played time period, the first target time period within the already played time period can be obtained, thereby achieving the purpose of marking the content that the user needs within the already played content.
[0093] 203. Based on the first target time period, the terminal marks the target text content in the target electronic text, and the target text content is the text content corresponding to the first target time period.
[0094] In this embodiment of the application, the terminal determines the target text content based on the temporal correspondence between the first target time period and the text content of the target electronic text, and marks the target text content in the target electronic text.
[0095] 204. The terminal displays the marked target text content in the text content interface of the target electronic text.
[0096] Here, the text content interface refers to the interactive interface used to display the text content of the target electronic text. In some embodiments, taking an electronic book as an example, the text content interface is an interactive interface used to display the various pages of the electronic book, and the text content interface includes multiple operable options, such as table of contents options, progress options, and settings options.
[0097] Distinctive display refers to any display method that can distinguish between text. For example, the terminal displays the target text content in one font and the unmarked text content in another font. Another example is that the terminal displays the target text content in one color and the unmarked content in another color. Yet another example is that the terminal adds an underline marker below the target text content; this underline marker can be a wavy line, a straight line, or a dashed line, etc. This application does not limit the method of distinctive display.
[0098] The technical solution provided in this application embodiment enables the terminal to respond to a target operation by determining a first target time period based on the current playback progress of the audio data of the target electronic text. Then, based on the correspondence between the first target time period and the text content of the target electronic text, the terminal determines the target text content and marks it within the target electronic text. Based on this, the terminal displays the target text content distinctly in the text content interface. With the content marking method provided in this application embodiment, users do not need to switch interfaces to perform operations; a single target operation is sufficient to trigger the terminal to mark the content, effectively improving human-computer interaction efficiency.
[0099] The above embodiments are a brief introduction to the content marking method provided in this application. The following, in conjunction with... Figure 3 The method will be explained in detail. Figure 3 This is a flowchart of a content tagging method provided in an embodiment of this application. The method is applied to... Figure 1 In the implementation environment shown, see Figure 3 In one possible implementation, the electronic text is an electronic book, and this embodiment includes the following steps:
[0100] 301. The terminal plays the audio data of the target e-book.
[0101] In this embodiment, the audio data can be played offline or online. For offline playback, the terminal stores the target e-book and the audio data, and reads and plays the audio data based on the user's listening needs. For online playback, the terminal acquires the target e-book and the audio data in real time, and plays the audio data based on the user's listening needs.
[0102] The process of local playback and online playback described above is similar to step 201 and will not be repeated here.
[0103] 302. In response to the long press operation of the volume button, the terminal determines the time point corresponding to the current playback progress of the audio data as the first time point and executes steps 303 and 304.
[0104] In this embodiment, the target physical button is the volume button, as an example for illustration. See [link to relevant documentation]. Figure 4 Figure (a) illustrates a long press operation as an example. The user triggers the process of determining the first time point by long-pressing the volume button on the side of the terminal. At this time, the terminal may be in a screen-off state. However, the operation method provided in this embodiment allows for determining the first time point without needing to unlock the screen. The operation is simple and convenient, thus effectively improving the efficiency of human-computer interaction.
[0105] In another embodiment, taking the first function button as an audio playback progress bar as an example, see [link to example]. Figure 4 In Figure (b), the audio data playback interface is displayed on the lock screen. The user triggers the terminal to determine the first time point by long-pressing the audio playback progress bar on this interface. At this time, the terminal is in the lock screen state (which is also the screen-on state), and this operation can determine the first time point without switching interfaces.
[0106] In another embodiment, taking the second function key as a marker key as an example, see [link to relevant documentation]. Figure 4 In Figure (c), the lock screen displays the playback interface for the audio data. The user can trigger the terminal to determine the first time point by long-pressing the marked button on the playback interface. At this time, the terminal is in the lock screen state (which is also the screen-on state), and this operation can determine the first time point without switching interfaces.
[0107] In some embodiments, the target operation is a target voice command. The user issues a target voice command based on the marking requirement, instructing the terminal to mark content; for example, the target voice command is "Please mark". The terminal receives the target voice command, analyzes the text content of the command, and obtains the target keyword "mark". In response to the target voice command containing the target keyword, the terminal executes the step of determining the first time point. This operation does not require direct physical contact with the terminal to trigger the step of determining the first time point, improving user experience and further enhancing human-computer interaction efficiency.
[0108] It should be noted that the target operation can also be other operation types. For example, for the target physical button mentioned above, it can be a double-click or long-press operation type; for the first function button and the second function mentioned above, it can be a double-click, swipe or long-press operation type. This application embodiment does not limit this.
[0109] 303. The terminal takes the first time point as the end point of the first target time period, and takes the time point before the first time point and the time point with a first preset time interval from the first time point as the start point of the first target time period, and executes step 306.
[0110] The following provides a visual example of the process for this step; see [link / reference] Figure 5 , Figure 5 This is a schematic diagram of a first target time period provided in an embodiment of this application.
[0111] Depend on Figure 5 As shown in (a), the duration of the first target time period is a first preset duration, and it falls within the already played time period. The end point of the first target time period is the first time point. The first preset duration is either a system default or determined based on feedback from end-users regarding historical tagging behavior. For example, after tagging content, the terminal provides feedback options to the user, allowing the user to provide feedback on the accuracy of the tagged content. If the feedback accuracy is greater than the target accuracy, the first preset duration remains unchanged; if the feedback accuracy is less than the target accuracy, the time range for content tagging is expanded, that is, the first preset duration is extended. This adjustment method allows the application to increasingly align with users' actual usage habits, improving the accuracy of tagging.
[0112] In some embodiments, see Figure 5In (b), after the first time point is determined, a second time point before the first time point is determined based on the first time point, and an interval between the second time point and the first time point is a target preset duration. Based on this, a time point that is before the second time point and has an interval of the first preset duration from the second time point is used as a start point of the first target time period, to determine the first target time period. In the foregoing solution, a time difference between a time point at which the user listens to content to be marked and a time point at which the user makes a marking decision is considered, and the target preset duration is set to offset the time difference, to improve accuracy of content marking based on a time point of the user's marking decision.
[0113] 304. The terminal determines, based on a current playback progress of the audio data, a played word count of the target e-book.
[0114] The current playback progress of the audio data is a played duration of the audio data, and the played word count of the target e-book is obtained based on the played duration and a preset speech rate. For example, a total duration of the audio data of the target e-book is 100 seconds, the preset speech rate of the audio data is 3 words per second, a played duration of 60 seconds can be determined based on the current playback progress, and 60 seconds × 3 words per second = 180 words.
[0115] The preset speech rate is a speech rate preset by the system or a speech rate set by the user based on a requirement, which is not limited in this embodiment of this application.
[0116] 305. The terminal determines, in the target e-book based on the played word count, a target text position of the target e-book, where the target text position is used to indicate a text position corresponding to the current playback progress.
[0117] The terminal reads a total word count of the text content of the target e-book, and determines, based on the played word count, a word to which the target e-book is currently played, that is, a current text playback progress of the target e-book. For example, a total word count of the text content of the target e-book is 300 words, and an 180th word in the text content of the target e-book is "eight". Then, based on that the played word count is 180 words, it may be determined that the target text position is the 180th word "eight" in the target e-book.
[0118] 306. The terminal determines, based on the first target time period and the preset speech rate, a played word count in the first target time period.
[0119] A duration of the first target time period is the first preset duration, and the played word count in the first target time period can be determined based on the preset speech rate. For example, if the first preset duration is 20 seconds, and the preset speech rate is 3 words per second, it is calculated that a played word count in the first target time period is 60 words.
[0120] 307. The terminal determines the first text content played during the first target time period based on the target text position and the number of words played during the first target time period.
[0121] The character currently being played is taken as the last character of the first text content. Among the text content played before the last character, the character located at a position that is away from the target text position by the number of played words is taken as the first character of the first text content. The text content between the first character and the last character is determined as the first text content. For example, the 180th character "eight" is currently being played, and the number of words played during the first target time period is 60. In the target e-book, the character located 60 positions before the 180th character is "one", then the first text content can be determined as: the 121st to 180th characters "one two... (52 characters omitted here) three four five six seven eight".
[0122] The above steps 304 to 307 are a possible implementation manner. In some embodiments, the audio data includes a time tag, which is used to identify the text position corresponding to the segment of audio data in the text content of the target e-book. Correspondingly, the terminal obtains the first target time period, compares the time tag corresponding to the first target time period with the time tag of the text content of the target e-book, and determines the text content matching the first target time period in terms of the time tag as the first text content.
[0123] 308. The terminal obtains the target number of times of the first text content, which is used to represent the number of times the first text content has been marked by other users on the platform.
[0124] The platform is a server that can provide background services for the application program running on the terminal, and the server provides services such as downloading, online playing, or information record integration of the target e-book for the user of the terminal.
[0125] Optionally, the terminal obtains the target number of times through the server, and the process includes: the terminal sends a marking number obtaining request to the server, where the marking number obtaining request carries the book identifier of the target e-book and the first text content, where the first text content is the text content itself, or the text position of the first text content in the target e-book. After receiving the marking number obtaining request, the server obtains the target number of times based on the book identifier and the first text content. The server records the number of times each segment of text content in the target e-book is marked based on the user's marking operations on the text content of the target e-book, so as to provide corresponding marking services for platform users.
[0126] 309. If the terminal determines the first text content as the target text content when the target number of times the first text content meets the marking condition, it executes steps 313 and 315.
[0127] In this embodiment, the marking condition refers to the number of times the text content is marked by other users on the platform exceeding a threshold. This marking condition is used to determine whether the number of times the first text content is marked meets the standard for a highlight segment, which is a segment frequently marked by other users. When the number of times the first text content is marked exceeds the threshold, it is considered that the first text content is content that the end user wants to mark, and the first text content is taken as the target text content.
[0128] Based on the target number of times and the marking conditions, the marking of the first text content by other users on the platform can be combined to make a comprehensive judgment, thereby improving the accuracy of content marking.
[0129] 310. If the target number of the first text content does not meet the marking condition, the terminal determines a second target time period based on the second preset duration and the first time point. The second preset duration is longer than the first preset duration. Then, steps 311 and 312 are executed.
[0130] The target number of times the first text content is marked does not meet the marking condition. That is, the number of times the first text content is marked does not reach the standard of a highlight segment. Therefore, it is necessary to further expand the time range to redetermine the target text content.
[0131] In this embodiment of the application, the purpose of expanding the time range is achieved by setting a second preset duration that is longer than the first preset duration. The process includes: taking the first time point as the end point of the second target time period, and taking the time point before the first time point that is separated from the second time point by the second preset duration as the start point of the second target time period, thereby determining the second target time period.
[0132] 311. If there is a second text content in the text content corresponding to the second target time period that satisfies the marking condition, the terminal determines the second text content as the target text content and executes steps 313 and 315.
[0133] In this process, the terminal determines the text content corresponding to the second target time period based on the second target time period, and queries the server to see if there is any second text content within the text content that satisfies the target number of times the marking condition exists. In some embodiments, the terminal sends a content query request to the server, which carries the book identifier of the target e-book and the text content corresponding to the second target time period. The text content is either the text content itself or the text position of the text content in the target e-book. Upon receiving the content query request, the server, based on the book identifier and the text content, queries the stored book tags, marked text content, and number of times the tags are set for the target e-book to see if there is any marked content. If there is marked content, the server determines whether the number of times the marked content is marked is greater than or equal to the target number. If it is greater than or equal to the target number, the marked content is obtained as the second text content and returned to the terminal.
[0134] 312. If there is no second text content in the text content corresponding to the second target time period that meets the marking condition, the terminal determines the first text content as the target text content and executes steps 313 and 315.
[0135] In cases where no second text content meets the marking criteria, the first text content is used as the target text content to ensure that the text position of the target text content in the target e-book is closest to the current playback progress, thus guaranteeing the accuracy of the marking.
[0136] The process of this step is the same as that of step 311, and will not be repeated here.
[0137] Optionally, steps 310 to 312 are used to determine the second target time period based on the second preset duration and expand the range of taggable content to obtain the second text content when the target number of the first text content does not meet the tagging condition. If the second text content exists, the second text content is used as the target text content. In some embodiments, step 313 is executed directly after step 309.
[0138] The following provides a visual example of the process described in steps 310 to 311 above. See Figure 6 , Figure 6 This is a schematic diagram illustrating the determination of target text content provided in an embodiment of this application. See also... Figure 6 In step (a), if the target number of times the first text content does not meet the marking conditions, the second target time period is determined based on the second preset duration, expanding the range of markable content to obtain the second text content. See also Figure 6In (b), if the target number of the second text content satisfies the marking condition, the second text content is taken as the target text content.
[0139] In the methods provided in steps 310 to 312 above, if no text content satisfying the marking condition for the target frequency is found within the first target time period, a second target time period is determined to expand the time range for content marking, thereby enabling the target text content to be identified over a wider time period. In another implementation, if no text content satisfying the marking condition for the target frequency is found within the first target time period, a third target time period is determined to narrow the time range for content marking in order to identify the target text content. That is, steps 310 to 312 above can be replaced by the implementation methods of steps 1 and 2 below:
[0140] Step 1: If there is no text content in the text content corresponding to the first target time period that meets the marking condition, the terminal determines the third target time period based on the current playback progress of the audio data. The end point of the third target time period is the time point corresponding to the playback progress, and the duration of the third target time period is less than the duration of the first target time period.
[0141] The process of determining whether there is text content that meets the marking criteria is described in step 311. There is no text content in the text corresponding to the first target time period that meets the marking criteria for the target number of times; that is, the number of times all text content in the first target time period is marked does not reach the standard for a highlight segment. Due to the requirement for accuracy in content marking, the target time period needs to be redefined.
[0142] In some embodiments, by setting a third preset duration that is shorter than the first preset duration, the purpose of determining a third target time period that is closest to the current playback progress and smaller than the range of the first target time period is achieved. The process includes: using the first time point as the end point of the third target time period, and using the time point before the first time point that is separated from the third time point by the third preset duration as the start point of the third target time period, thereby determining the third target time period.
[0143] Step 2: The terminal determines the third text content corresponding to the third target time period as the target text content, and executes steps 313 and 315.
[0144] The process of determining the third text content in this step is described in steps 304 to 307, and will not be repeated here.
[0145] Through the above process, even if the text content corresponding to the first target time period does not meet the marking conditions, the target text content can be re-determined based on the smaller range of the third target time period. This ensures that the re-determined target text content is closest to the current playback progress, that is, closest to the time point when the content marking requirement occurs. Based on this, there is no need to judge the level of excitement based on the target number of times, which simplifies the process of determining the target text content and improves the efficiency of content marking.
[0146] 313. The terminal marks the target text content in the target e-book.
[0147] In this embodiment of the application, by adding a display tag to the target text content in the target e-book, the purpose of marking is achieved. The display tag is used to instruct the terminal to distinguish and display the text content with the display tag when reading the text content of the target e-book.
[0148] 314. The terminal displays the marked target text content in the text content interface of the target e-book.
[0149] In this embodiment, the terminal reads the target e-book, identifies the display tags of the target text content, and accordingly displays the target text content differently in the text content interface. The implementation of this differentiated display is described in step 204, and will not be repeated here.
[0150] In this embodiment, when a user switches back to the text content interface during the playback of the audio data of the target e-book, the terminal starts displaying from the target text content; when the user switches back to the text content interface after the audio data of the target e-book has finished playing, the terminal starts displaying from the target text content; when the user switches to the text content interface under other circumstances, the terminal will locate the most recently marked target text content, or locate the first marked target text content, or display a jump option in the text content interface, which is used to jump to the text position corresponding to each target text content.
[0151] Figure 7 This is a schematic diagram illustrating a method for distinguishing and displaying target text content according to an embodiment of this application. See also... Figure 7 The terminal is a smartphone. In the text content interface displayed on the terminal screen, the text marked with an underline is different from other text and is the target text content.
[0152] 315. The terminal displays the timeline segment corresponding to the target text content in the playback timeline of the audio data playback interface.
[0153] The playback timeline on the playback interface displays the playback progress of the audio data for the target e-book. This differentiated display means that the timeline segment corresponding to the target text content is displayed with features that distinguish it from other timeline segments, such as filling it with a different color or texture. See [link to relevant documentation]. Figure 8 . Figure 8 This is a schematic diagram of a timeline segment display method provided in an embodiment of this application.
[0154] In this embodiment of the application, after the target text content is determined, the timeline segment corresponding to the target text content can be displayed in the playback timeline in a different way without interrupting the playback of the audio data, thus achieving the differentiated display of marked time periods.
[0155] In some embodiments, in response to a target playback operation, the terminal plays the target audio data corresponding to the target text content. The target playback operation is used to instruct the terminal not to play the audio data corresponding to the unmarked text content during playback, but only to play the target audio data corresponding to the target text content.
[0156] In some embodiments, after the target text content is determined, the target audio data corresponding to the target text content is marked in the audio data. This marking can be in the form of a timestamp or by adding a specified tag to the corresponding audio data; this application embodiment does not limit the marking form of the audio data. Accordingly, the process of playing the target audio data corresponding to the target text content includes: in response to the target playback operation, determining the marked target audio data in the audio data; when playing the audio data, skipping unmarked audio data and playing the determined target audio data; when playing the audio data, the terminal reads the markings of the audio data, such as timestamps or specified tags, and based on the read markings, skipping unmarked audio data and playing the determined target audio data.
[0157] Through the above technical solution, after the content marking process is completed, the terminal can respond to the target playback operation and provide the user with the function of playing only the marked content. This simplifies the operation, improves the user experience, and effectively enhances the efficiency of human-computer interaction.
[0158] The technical solution provided in this application embodiment enables the terminal to respond to a target operation by determining a first target time period based on the current playback progress of the audio data of the target electronic text. Then, based on the correspondence between the first target time period and the text content of the target electronic text, the terminal determines the target text content and marks it within the target electronic text. Based on this, the terminal displays the target text content distinctly in the text content interface. With the content marking method provided in this application embodiment, users do not need to switch interfaces to perform operations; a single target operation is sufficient to trigger the terminal to mark the content, effectively improving human-computer interaction efficiency.
[0159] Figure 9 This is a schematic diagram of the structure of a content marking device provided in an embodiment of this application. See also: Figure 9 The device includes:
[0160] The playback module 901 is used to play the audio data of the target electronic text;
[0161] The time period determination module 902 is used to respond to the target operation and determine a first target time period based on the current playback progress of the audio data. The end point of the first target time period is the time point corresponding to the playback progress.
[0162] The marking module 903 is used to mark the target text content in the target electronic text based on the first target time period, wherein the target text content is the text content corresponding to the first target time period;
[0163] Display module 904 is used to distinguish and display the marked target text content in the text content interface of the target electronic text.
[0164] In one possible implementation, the target operation is a press operation on a target physical button;
[0165] Alternatively, the target operation is a trigger operation on the first function button on the audio data playback interface on the lock screen, the first function button being used to display the playback progress;
[0166] Alternatively, the target operation is a trigger operation on the second function key on the audio data playback interface on the lock screen, which is used to trigger the text mark operation;
[0167] Alternatively, the target operation may be a target voice command.
[0168] In one possible implementation, the target physical button is a volume button.
[0169] In one possible implementation, the target operation is a long press operation on the first function key.
[0170] In one possible implementation, the time period determination module 902 is used for:
[0171] The time point corresponding to the current playback progress of the audio data is determined as the first time point;
[0172] The first time point is taken as the end point of the first target time period, and the start point of the first target time period is determined before the first time point.
[0173] In one possible implementation, the tagging module 903 includes:
[0174] The text content determination unit is used to determine, based on the first target time period, the target text content played within the target electronic text during the first target time period;
[0175] A tagging unit is used to tag the target text content in the target electronic text.
[0176] In one possible implementation, the text content determination unit includes:
[0177] The position determination subunit is used to determine the target text position of the target electronic text based on the current playback progress of the audio data. The target text position is used to indicate the text position corresponding to the current playback progress.
[0178] The word count determination subunit is used to determine the number of words played within the first target time period based on the first target time period and the preset speech rate;
[0179] The content determination subunit determines the target text content corresponding to the first target time period based on the target text position and the number of words played within the first target time period.
[0180] In one possible implementation, this location-determining sub-unit is used for:
[0181] Based on the current playback progress of the audio data, determine the number of words already played in the target electronic text, and based on the number of words already played, determine the position of the target text in the target electronic text.
[0182] In one possible implementation, the tagging module 903 includes:
[0183] The first determining unit is used to determine, based on the first target time period, the first text content to be played within the target electronic text during the first target time period;
[0184] The target count acquisition unit is used to acquire the target count of the first text content, which represents the number of times the first text content has been marked by other users on the platform;
[0185] The first target determination unit is used to take the first text content as the target text content when the number of times the target is determined meets the marking conditions.
[0186] The second target determination unit is used to determine a second target time period based on the current playback progress of the audio data when the target number does not meet the marking condition, and to determine the target text content based on the second target time period. The end point of the second target time period is the time point corresponding to the playback progress, and the duration of the second target time period is greater than the duration of the first target time period.
[0187] This marking unit is used to mark the target text content in the target electronic text.
[0188] In one possible implementation, the second target determining unit is used for:
[0189] If, within the text content corresponding to the second target time period, there exists a second text content whose target frequency satisfies the marking condition, then that second text content is identified as the target text content.
[0190] If there is no second text content in the text content corresponding to the second target time period that satisfies the marking condition for the target number of times, then the first text content is determined as the target text content.
[0191] In one possible implementation, the tagging module 903 includes:
[0192] The third target determination unit is used to determine the third target time period based on the current playback progress of the audio data when there is no text content in the text content corresponding to the first target time period that meets the marking condition for the target number. The third text content corresponding to the third target time period is determined as the target text content. The target number is used to represent the number of times the text content is marked by other users on the platform. The end point of the third target time period is the time point corresponding to the playback progress. The duration of the third target time period is less than the duration of the first target time period.
[0193] This marking unit is used to mark the target text content in the target electronic text.
[0194] In one possible implementation, the device further includes:
[0195] The timeline display module is used to differentiate and display the timeline segments corresponding to the target text content in the playback timeline of the audio data playback interface.
[0196] In one possible implementation, the device further includes:
[0197] The playback module is used to respond to a target playback operation and play the target audio data corresponding to the target text content;
[0198] The target playback operation is used to instruct the terminal not to play the audio data corresponding to the unmarked text content during playback, but only to play the target audio data corresponding to the target text content.
[0199] In one possible implementation, the playback module further includes:
[0200] An audio tagging unit is used to tag the target audio data corresponding to the target text content in the audio data;
[0201] This playback module is used for:
[0202] In response to the target playback operation, the tagged target audio data is determined in the audio data;
[0203] When playing this audio data, skip the untagged audio data and play the identified target audio data.
[0204] The technical solution provided in this application embodiment enables the terminal to respond to a target operation by determining a first target time period based on the current playback progress of the audio data of the target electronic text. Then, based on the correspondence between the first target time period and the text content of the target electronic text, the terminal determines the target text content and marks it within the target electronic text. Based on this, the terminal displays the target text content distinctly in the text content interface. With the content marking method provided in this application embodiment, users do not need to switch interfaces to perform operations; a single target operation is sufficient to trigger the terminal to mark the content, effectively improving human-computer interaction efficiency.
[0205] It should be noted that the content marking device provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the content marking device and content marking method embodiments provided in the above embodiments belong to the same concept, and their implementation process can be found in the method embodiments, which will not be repeated here.
[0206] This application provides a terminal for executing the above-described method. The terminal here is the aforementioned terminal 110. The structure of the terminal is described below:
[0207] Figure 10This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. For example, the terminal 1000 can be: a smartphone, e-reader, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, etc. The terminal 1000 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0208] Typically, terminal 1000 includes one or more processors 1001 and one or more memories 1002.
[0209] In one possible implementation, processor 1001 includes one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Optionally, processor 1001 is implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). In one possible implementation, processor 1001 includes a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1001 integrates a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1001 also includes an AI (Artificial Intelligence) processor, which handles computational operations related to machine learning.
[0210] In some embodiments, the terminal 1000 may also optionally include a peripheral device interface 1003 and at least one peripheral device. The processor 1001, memory 1002, and peripheral device interface 1003 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1003 via a bus, signal line, or circuit board. For example, the peripheral device includes at least one of the following: a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008, and a power supply 1009.
[0211] Peripheral device interface 1003 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002 and peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1001, memory 1002 and peripheral device interface 1003 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0212] The radio frequency (RF) circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1004 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.
[0213] Display screen 1005 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. When display screen 1005 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1001 for processing. In this case, display screen 1005 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard.
[0214] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal.
[0215] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 1001 for processing, or input to the radio frequency circuit 1004 to realize voice communication. In some embodiments, the audio circuit 1007 is used to implement the acquisition process of target voice commands in the embodiments of this application.
[0216] The positioning component 1008 is used to locate the current geographical location of the terminal 1000 in order to enable navigation or LBS (Location Based Service).
[0217] The power supply 1009 is used to supply power to the various components in the terminal 1000. The power supply 1009 can be AC power, DC power, a disposable battery, or a rechargeable battery.
[0218] In some embodiments, the terminal 1000 further includes one or more sensors 1100. The one or more sensors 1100 include, but are not limited to: an accelerometer 1011, a gyroscope 1012, a pressure sensor 1013, a fingerprint sensor 1014, an optical sensor 1015, and a proximity sensor 1016.
[0219] Accelerometer 1011 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established with terminal 1000.
[0220] The gyroscope sensor 1012 can collect the body orientation and rotation angle of the terminal 1000. The gyroscope sensor 1012 can work in conjunction with the accelerometer sensor 1011 to collect the user's 3D movements on the terminal 1000.
[0221] The pressure sensor 1013 can be installed on the side bezel of the terminal 1000 and / or on the lower layer of the display screen 1005. When the pressure sensor 1013 is installed on the side bezel of the terminal 1000, it can detect the user's grip signal on the terminal 1000, and the processor 1001 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is installed on the lower layer of the display screen 1005, the processor 1001 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1005.
[0222] The fingerprint sensor 1014 is used to collect the user's fingerprint. The processor 1001 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user's identity based on the collected fingerprint.
[0223] An optical sensor 1015 is used to collect ambient light intensity. In one embodiment, a processor 1001 can control the display brightness of a display screen 1005 based on the ambient light intensity collected by the optical sensor 1015.
[0224] The proximity sensor 1016 is used to detect the distance between the user and the front of the terminal 1000.
[0225] Those skilled in the art will understand that Figure 10 The structure shown does not constitute a limitation on terminal 1000 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0226] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to perform the content marking method in the above embodiments. For example, the computer-readable storage medium may be ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage device, etc.
[0227] In an exemplary embodiment, a computer program product is also provided, which includes program code stored in a computer-readable storage medium. A processor of a terminal reads the program code from the computer-readable storage medium and executes the program code, causing the terminal to perform the content marking method described above.
[0228] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0229] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A content labeling method characterized by, The method includes: Play the audio data of the target electronic text; In response to a target operation, based on the current playback progress of the audio data, a first target time period is determined, including: determining the time point corresponding to the current playback progress of the audio data as a first time point; determining a second time point before the first time point based on the first time point, wherein the interval between the second time point and the first time point is a target preset duration; and taking the time point before the second time point and the time point at which the second time point is spaced a first preset duration as the starting point of the first target time period; the ending point of the first target time period is the time point corresponding to the playback progress. Based on the first target time period, mark the target text content in the target electronic text; In the text content interface of the target electronic text, the marked target text content is displayed separately; Specifically, based on the first target time period, the target text content in the target electronic text is marked as follows: Based on the first target time period, determine the first text content played within the first target time period in the target electronic text; obtain the target number of the first text content, where the target number represents the number of times the first text content has been marked by other users on the platform; if the target number meets the marking condition, designate the first text content as the target text content; if the target number does not meet the marking condition, determine a second target time period based on the current playback progress of the audio data; if, in the text content corresponding to the second target time period, there exists a second text content whose target number meets the marking condition, designate the second text content as the target text content; in the text content corresponding to the second target time period... If there is no second text content in the content that satisfies the marking condition for the target number of times, the first text content is determined as the target text content, the end point of the second target time period is the time point corresponding to the playback progress, and the duration of the second target time period is greater than the duration of the first target time period; or, if there is no text content in the text content corresponding to the first target time period that satisfies the marking condition for the target number of times, a third target time period is determined based on the current playback progress of the audio data, and the third text content corresponding to the third target time period is determined as the target text content, the end point of the third target time period is the time point corresponding to the playback progress, and the duration of the third target time period is less than the duration of the first target time period; In the target electronic text, the target text content is marked.
2. The method of claim 1, wherein, The target operation is the pressing operation of the target physical button; Alternatively, the target operation is a trigger operation on the first function button on the audio data playback interface on the lock screen interface, the first function button being used to display the playback progress; Alternatively, the target operation is a trigger operation on the second function key on the audio data playback interface on the lock screen interface, the second function key being used to trigger the text marking operation; Alternatively, the target operation may be a target voice command.
3. The method of claim 2, wherein, The target physical button is the volume button.
4. The method of claim 2, wherein, The target operation is a long press operation on the first function button.
5. The method of claim 1, wherein, The process of responding to a target operation and determining the first target time period based on the current playback progress of the audio data includes: The time point corresponding to the current playback progress of the audio data is determined as the first time point; Using the first time point as the end point of the first target time period, the start point of the first target time period is determined before the first time point.
6. The method according to claim 1, characterized in that, The step of marking the target text content in the target electronic text based on the first target time period includes: Based on the first target time period, the target text content played within the first target time period is determined in the target electronic text; In the target electronic text, the target text content is marked.
7. The method according to claim 6, characterized in that, The step of determining the target text content played within the first target time period in the target electronic text based on the first target time period includes: Based on the current playback progress of the audio data, the target text position of the target electronic text is determined. This target text position is used to indicate the text position corresponding to the current playback progress. Based on the first target time period and the preset speech rate, determine the number of words to be played within the first target time period; Based on the target text position and the number of words played within the first target time period, the target text content corresponding to the first target time period is determined.
8. The method according to claim 7, characterized in that, Determining the target text location of the target electronic text based on the current playback progress of the audio data includes: Based on the current playback progress of the audio data, determine the number of words already played in the target electronic text, and based on the number of words already played, determine the target text position in the target electronic text.
9. The method according to claim 1, characterized in that, The method further includes: On the playback timeline of the audio data playback interface, the timeline segments corresponding to the target text content are displayed separately.
10. The method according to claim 1, characterized in that, The method further includes: In response to the target playback operation, the target audio data corresponding to the target text content is played; The target playback operation is used to instruct the terminal not to play the audio data corresponding to the unmarked text content during playback, but only to play the target audio data corresponding to the target text content.
11. The method according to claim 10, characterized in that, The method further includes: In the audio data, the target audio data corresponding to the target text content is marked; The step of playing the target audio data corresponding to the target text content in response to the target playback operation includes: In response to the target playback operation, the tagged target audio data is determined in the audio data; When playing the audio data, skip the untagged audio data and play the determined target audio data.
12. A content marking device, characterized in that, The device includes: The playback module is used to play the audio data of the target electronic text; The time period determination module is used to respond to a target operation and determine a first target time period based on the current playback progress of the audio data. This includes: determining the time point corresponding to the current playback progress of the audio data as a first time point; determining a second time point before the first time point based on the first time point, wherein the interval between the second time point and the first time point is a target preset duration; and taking the time point before the second time point and at a first preset duration interval from the second time point as the start point of the first target time period; the end point of the first target time period is the time point corresponding to the playback progress. A tagging module is used to tag target text content in the target electronic text based on the first target time period; The display module is used to distinguish and display the marked target text content in the text content interface of the target electronic text; Specifically, based on the first target time period, the target text content in the target electronic text is marked as follows: Based on the first target time period, determine the first text content played within the first target time period in the target electronic text; obtain the target number of the first text content, where the target number represents the number of times the first text content has been marked by other users on the platform; if the target number meets the marking condition, designate the first text content as the target text content; if the target number does not meet the marking condition, determine a second target time period based on the current playback progress of the audio data; if, in the text content corresponding to the second target time period, there exists a second text content whose target number meets the marking condition, designate the second text content as the target text content; in the text content corresponding to the second target time period... If there is no second text content in the content that satisfies the marking condition for the target number of times, the first text content is determined as the target text content, the end point of the second target time period is the time point corresponding to the playback progress, and the duration of the second target time period is greater than the duration of the first target time period; or, if there is no text content in the text content corresponding to the first target time period that satisfies the marking condition for the target number of times, a third target time period is determined based on the current playback progress of the audio data, and the third text content corresponding to the third target time period is determined as the target text content, the end point of the third target time period is the time point corresponding to the playback progress, and the duration of the third target time period is less than the duration of the first target time period; In the target electronic text, the target text content is marked.
13. A terminal, characterized in that, The terminal includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the content tagging method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the content tagging method as described in any one of claims 1 to 11.
15. A computer program product, characterized in that, The computer program product includes program code stored in a computer-readable storage medium. The processor of the terminal reads the program code from the computer-readable storage medium and executes the program code, causing the terminal to perform the content tagging method as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Method and device for adding digital voice tag
CN103065625A
Golden sentence display method for electronic book, electronic device and computer storage medium
CN109542299A
E-book annotation adding method, electronic equipment and computer storage medium
CN109634501A
