Method, apparatus, readable medium and electronic device for synchronizing audio and text
The method addresses synchronization issues by detecting multimedia content during page turns and maintaining audio and text synchronization through continuous playback and targeted text updates, ensuring a seamless user experience.
Patent Information
- Application Number
- JP2022571224
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-11-26
- Filing Date
- 2021-10-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-10-29
AI Technical Summary
Existing methods for audio and text synchronization in electronic devices fail to effectively handle multimedia content, leading to desynchronization and disruption during page turns in documents with integrated multimedia elements.
A method and apparatus that determine the presence of multimedia content during page turns, continue audio playback when multimedia is silent, and update the display to show corresponding text based on playback identifiers, maintaining synchronization.
Ensures continuous audio and text synchronization by recognizing and handling multimedia content, allowing seamless integration of audio and text during page turns.
Smart Images

Figure 00000024_0000 
Figure 00000024_0001 
Figure 00000025_0000
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the field of electronics and information technology, and in particular to audio-text synchronization methods, apparatus, readable media, and electronic devices.
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to a Chinese patent application entitled "Audio-Text Synchronization Method, Apparatus, Readable Medium and Electronic Device" filed on November 26, 2020, bearing application number No. 202011355859.6, the entire disclosure of which is incorporated herein by reference. [Background technology]
[0003] In the field of electronic information technology, as smart terminals are increasingly used in daily life, users can browse with browsing software on smart terminals at any time and anywhere. However, in many usage scenarios, simple browsing alone cannot meet the needs of users. While a user browses a novel, audio corresponding to the novel is added and played synchronously, so that the user can read and listen at the same time, and obtain information about the novel in two dimensions of sight and hearing, thereby improving the user's browsing experience. Since novels generally contain multimedia content (e.g., promotional content, questionnaires, etc.), these multimedia content interfere with the synchronization between the audio and the novel. Summary of the Invention
[0004] This Summary is provided to introduce concepts in a simplified form that are described in detail later in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter.
[0005] According to a first aspect, the present disclosure provides a method for producing a method for detecting a pulmonary circulation disorder, comprising: determining whether a second page includes multimedia content in response to a first page being updated to a second page displayed on an exhibition interface, wherein audio corresponding to text in the first page is played while the first page is being displayed; if the second page includes the multimedia content and the multimedia content is in a silent playback state, controlling the audio to continue playing; determining a first playback identifier of the audio when playback of the multimedia content is stopped, and determining a corresponding target text based on the first playback identifier; updating, on the exhibit interface, the second page with a third page containing the target text.
[0006] According to a second aspect, the present disclosure provides a method for producing a method for detecting a pulmonary circulation, comprising: a first determination module for determining whether a first page displayed on an exhibition interface is updated to a second page, the first determination module being configured to determine whether the second page includes multimedia content, wherein audio corresponding to text in the first page is played while the first page is displayed; a control module for controlling the audio to continue playing when the second page includes the multimedia content and the multimedia content is in a silent playback state; a second determination module for determining a first playback identifier of the audio when playback of the multimedia content is stopped, and determining a corresponding target text based on the first playback identifier; and an update module for updating, on the exhibition interface, the second page with a third page including the target text.
[0007] According to a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing device, causes the method according to the first aspect of the present disclosure to be implemented.
[0008] According to a fourth aspect, the present disclosure provides a method for producing a method for manufacturing a semiconductor device comprising: A storage device in which a computer program is stored; and a processing device that executes the computer program in the storage device to realize the method according to the first aspect of the present disclosure.
[0009] According to the above technical solution, the present disclosure first determines whether the second page includes multimedia content in a scene where the first page displayed on the exhibition interface is updated to a second page. Here, while the first page is displayed on the exhibition interface, audio corresponding to the text on the first page is played. Then, if the second page includes multimedia content and the multimedia content is in a silent playback state, control the audio to continue playing, and further determine a first playback identifier of the audio when the playback of the multimedia content stops, and determine the corresponding target text based on the first playback identifier, and finally update the second page on the exhibition interface to a third page including the target text. The present disclosure recognizes the multimedia content included in the second page displayed after the page is turned, and controls the playback of the audio and the content displayed on the exhibition interface, thereby maintaining synchronization between the audio and the text while normally displaying the multimedia content.
[0010] Other features and advantages of the present disclosure are described in detail in the Detailed Description section that follows. [Brief description of the drawings]
[0011] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which the same or similar elements are designated by the same or similar reference numerals in all the accompanying drawings. It is understood that the accompanying drawings are schematic and that the originals and elements are not necessarily drawn to scale. [Figure 1] 4 is a flowchart of a method for synchronizing audio and text according to an example embodiment. [Diagram 2] 1 is a schematic diagram of an exhibit interface, according to an example embodiment; [Diagram 3] 4 is a flowchart of another audio and text synchronization method according to an example embodiment. [Figure 4] 4 is a flowchart of another audio and text synchronization method according to an example embodiment. [Diagram 5] 4 is a flowchart of another audio and text synchronization method according to an example embodiment. [Figure 6] 4 is a flowchart of another audio and text synchronization method according to an example embodiment. [Figure 7] 4 is a flowchart of another audio and text synchronization method according to an example embodiment. [Figure 8] 4 is a flowchart of another audio and text synchronization method according to an example embodiment. [Figure 9] 1 is a schematic diagram of an exhibit interface, according to an example embodiment; [Figure 10] 1 is a block diagram of an audio and text synchronizer according to an example embodiment. [Figure 11] 4 is a block diagram of another audio and text synchronizer according to an exemplary embodiment. [Figure 12] 4 is a block diagram of another audio and text synchronizer according to an exemplary embodiment. [Figure 13] 4 is a block diagram of another audio and text synchronizer according to an exemplary embodiment. [Figure 14] FIG. 1 is a block diagram of an electronic device, according to an example embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown, but it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the accompanying drawings and embodiments of the present disclosure are merely illustrative and do not limit the scope of protection of the present disclosure.
[0013] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in a different order and / or in parallel. Additionally, method embodiments may include additional steps and / or omit performance of steps shown. The scope of the present disclosure is not limited in this respect.
[0014] As used herein, the term "comprising" and variations thereof are open-ended, i.e., meaning "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one other embodiment," and the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided below.
[0015] It should be noted that concepts such as "first" and "second" described in this disclosure are merely intended to distinguish different devices, modules, or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules, or units.
[0016] In addition, the modifications of "one" and "multiple" described in the present disclosure are exemplary and not limiting. It is obvious to those skilled in the art that unless otherwise specified, it should be understood as "one or multiple".
[0017] The names of messages or information exchanged between devices in the embodiments of the present disclosure are merely descriptive and do not limit the scope of these messages or information.
[0018] 1 is a flow chart of an audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 1, the method may include steps as follows:
[0019] Step 101: In response to updating a first page displayed on an exhibition interface to a second page, determine whether the second page includes multimedia content, where audio corresponding to text on the first page is played while the first page is displayed.
[0020] For example, a user can view a document through a viewing software installed on a terminal device. The document may include text and may further include multimedia content. The multimedia content may be in the format of, for example, images, videos, audios, etc., or a combination of the formats of images, videos, audios, etc. The viewing software can display the content in the document on the exhibition interface (e.g., display) of the terminal device, and can play audio corresponding to the text included in the document through a playback device (e.g., speaker) of the terminal device. As can be understood, the viewing software includes two parts: a reader that controls the content displayed on the exhibition interface, and a player that controls the playback device to play the audio. The content displayed by the exhibition interface at a certain time can be considered as a page. The page may include text and may include multimedia content. However, the document being viewed by the user may be an e-book (e.g., a novel), or may be other types of documents, such as news, official account articles, blogs, etc. The document may be in any format, such as .txt, .chm (Compiled HTML Help file), .pdf (Portable Document Format), .epub (Electronic Publication), .mobi, etc. The present disclosure is not specifically limited in this regard. The text included in the document may be, for example, one or more chapters in a novel, one or more paragraphs, or one or more sentences. Accordingly, the audio corresponding to the text included in the document may be, for example, an audio file obtained by converting the text using a Text To Speech (TTS) service, or an audio file recorded based on the text.The audio may be a file of any format, such as MP3, .WAV, .WMA (English: Windows Media Audio), .AMR (English: Adaptive Multi-Rate), etc. The present disclosure is not specifically limited in this regard.
[0021] When the first page is exhibited on the exhibit interface, audio corresponding to the text on the first page may also be played, allowing the user to listen while reading. If the audio playback identifier indicates that the page needs to be turned or the user triggers a page turn command, the first page displayed on the exhibit interface may be updated to the second page (i.e., a page turn operation is performed). The content included on the second page may be content adjacent to and following the text included on the first page in the document being viewed by the user, or may be content inserted by the viewing software after the first page. The content included on the second page may be text or multimedia content.
[0022] Here, the multimedia content can be regarded as content that the user does not intend to view, such as promotional content, questionnaires, gifting content, comment content, etc., which prevents synchronization between audio and text. Therefore, for a page-turning operation (i.e., updating a first page to a second page), it can be determined whether the second page includes multimedia content. For example, the first page displayed on the exhibition interface is updated to the second page when the audio corresponding to the text on the first page is played up to "Thank you", as shown in (a) of FIG. 2. The second page is as shown in (b) of FIG. 2. The second page includes gifting content (i.e., multimedia content).
[0023] Step 102: If the second page includes multimedia content and the multimedia content is in a silent playing state, control the audio to continue playing.
[0024] Exemplarily, if it is determined that the second page does not include multimedia content (i.e., the second page includes text), the audio may be controlled to continue playing. At this time, synchronization between the audio and the text included in the second page is maintained. If it is determined that the second page includes multimedia content, the playback state of the multimedia content may be further determined, and the audio playback may be controlled based on the playback state of the multimedia content. The playback state may be divided into a silent playback state and a voice playback state. If the playback state of the multimedia content is a voice playback state, the audio playback may be controlled to be paused so that the user can hear the sound in the multimedia content, and the audio playback may be resumed after the playback of the multimedia content is completed. If the playback state of the multimedia content is a silent playback state, the audio may be controlled to continue playing. In this case, there is no impact on the user's acquisition of information through the audio. Here, the silent playback state of the multimedia content can be divided into two scenes: scene 1, in which the multimedia content itself does not contain audio (for example, the multimedia content is commentary content), and scene 2, in which the multimedia content contains audio, but the audio contained in the multimedia content is not played back based on settings in the viewing software.
[0025] Step 103: Determine a first playback identifier of the audio when the playback of the multimedia content stops.
[0026] Step 104: Based on the first playback identifier, determine the corresponding target text.
[0027] For example, during the playback of the multimedia content, the audio continues to be played. At this time, the text corresponding to the audio is not displayed on the display interface, and the audio and the text are not synchronized. Therefore, when the playback of the multimedia content is stopped, a first playback identifier of the audio at this time can be obtained to determine the corresponding target text. The first playback identifier may be regarded as one or more audio frames of the audio being played at this time, or as the playback progress of the audio at this time, or may further be regarded as which audio file among a plurality of audio files is being played. Here, the stopping of the playback of the multimedia content can be regarded as the completion of the playback of the multimedia content, or the display of the multimedia content for a preset time (e.g., 30s), and further as the user performing a preset operation to turn off the multimedia content.
[0028] Then, a target text corresponding to the first playback identifier may be determined based on the first playback identifier and a mapping relationship between the audio playback identifier and the text established in advance. Specifically, a mapping relationship between the audio playback identifier and the text may be established in advance. A plurality of mapping records are stored in the mapping relationship, and each mapping record includes a correspondence relationship between the text and the playback identifier. Then, a mapping record matching the first playback identifier is found from the mapping relationship, and the target text is determined based on the mapping record. The target text can be regarded as a text matching the first playback identifier in the document being viewed by the user. That is, when the audio frame indicated by the first playback identifier is played back, the voice content included in the audio frame corresponds to the character content included in the target text.
[0029] Step 105: On the exhibition interface, update the second page to a third page containing the target text.
[0030] Exemplarily, after determining the target text, the second page displayed on the exhibition interface may be updated to a third page containing the target text. Since the audio is always played in the above process, when the audio is played up to the audio frame indicated by the first playback identifier, the target text corresponding to the first playback identifier is displayed on the exhibition interface. This maintains the synchronization between the audio and the target text. In this way, after the user browses the multimedia content, the audio can still be synchronized with the third page displayed on the exhibition interface. This allows the user to continue reading and listening, improving the user's browsing experience.
[0031] As described above, in the present disclosure, in a scene where the first page displayed on the exhibition interface is updated to the second page, first, it is determined whether the second page includes multimedia content. Here, while the first page is displayed on the exhibition interface, audio corresponding to the text on the first page is played. Thereafter, if the second page includes multimedia content and the multimedia content is in a silent playback state, the audio may be controlled to continue to be played. Next, a first playback identifier of the audio when the playback of the multimedia content stops is determined, and the corresponding target text is determined based on the first playback identifier. Finally, the second page is updated on the exhibition interface to a third page including the target text. The present disclosure recognizes the multimedia content included in the second page exhibited after the page is turned, and controls the playback of the audio and the content exhibited on the exhibition interface, thereby maintaining synchronization between the audio and the text while normally exhibiting the multimedia content.
[0032] 3 is a flowchart of another audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 3, the first playback identifier includes a playback time identifier, and step 104 may include the following steps:
[0033] Step 1041: Determine a first mapping record that matches the play time identifier in a preset first mapping relationship, where the first mapping relationship includes at least one mapping record, the mapping record includes a correspondence relationship between a text and an audio play time range, and the play time identifier belongs to the play time range in the first mapping record.
[0034] Step 1042: Determine a target text based on the first mapping record.
[0035] In a scene, the first playback identifier may include a playback time identifier indicating up to which audio frame the audio has been played or up to which time the audio has been played. Accordingly, to determine the target text corresponding to the first playback identifier, a first mapping relationship between the audio playback time range and the text may be obtained first. The first mapping relationship stores a plurality of mapping records, and each mapping record includes a correspondence relationship between the text and the audio playback time range.
[0036] Here, the text may be one or more sentences, one or more paragraphs, or one or more chapters of a document being viewed by a user. The text may be indicated by, for example, a sentence identifier, a paragraph identifier, or a chapter identifier. Accordingly, the playback time range is for indicating the start and end time of the audio corresponding to the corresponding text, and may be, for example, a frame number range or a time range. For example, if the playback time range included in one mapping record is 5s to 20s and the sentence identifier of the corresponding text is 0x57AD, the mapping record indicates that when the audio is played from the 5th frame to the 20th frame, the corresponding text is the text whose sentence identifier is 0x57AD. Or, if the playback time range included in another mapping record is 35 frames to 80 frames and the paragraph identifier of the corresponding text is 0106, the mapping record indicates that when the audio is played from the 35th frame to the 80th frame, the corresponding text is the text whose paragraph identifier is 0106. Then, look up the first mapping record whose playback time identifier belongs to the playback time range from the first mapping relationship, and determine the text in the first mapping record as the target text.
[0037] The first mapping relationship is established in advance and stored in the server. When the terminal device plays back the audio, the terminal device can obtain the first mapping relationship from the server. The first mapping relationship may be obtained when converting text using a TTS service to obtain audio, or may be obtained from a correspondence relationship between voice content included in each audio frame in the audio and character content in the text.
[0038] 4 is a flowchart of another audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 4, the audio includes at least one audio file, and the first playback identifier includes a playback time identifier and an audio identifier, and accordingly, step 104 may include the following steps:
[0039] Step 1043: Determine a second mapping record that matches the audio identifier in a preset second mapping relationship, where the second mapping relationship includes at least one mapping record, the mapping record includes a correspondence relationship between an audio file and a paragraph-divided text, and the target audio file indicated by the audio identifier is the audio file in the second mapping record.
[0040] Step 1044: Determine the target paragraph text based on the second mapping record.
[0041] In another scene, the audio may include at least one audio file. Accordingly, the first playback identifier may include a playback time identifier indicating up to which audio frame or up to which time the audio has been played, and an audio identifier, the audio identifier being for indicating which audio file of the at least one audio file is currently being played.
[0042] To determine the target text corresponding to the first playback identifier, a second mapping relationship between the audio file and the paragraphed text may be obtained first. A plurality of mapping records are stored in the second mapping relationship, and each mapping record includes a correspondence relationship between the paragraphed text and the audio file. Here, the paragraphed text may be regarded as one or more chapters in a document that a user is reading (correspondingly, the text may be regarded as a paragraph or a sentence in the chapter), or may be regarded as one or more paragraphs (correspondingly, the text may be regarded as a sentence in the chapter). The paragraphed text may be indicated by a chapter identifier or a paragraph identifier. For example, if the audio identifier of the audio file included in one mapping record is a1 and the chapter identifier of the corresponding paragraphed text is 0x1005, the mapping record indicates that when the audio file a1 is played, it corresponds to the paragraphed text whose chapter identifier is 0x1005. Also, for example, if the audio identifier of the audio file included in one mapping record is b1 and the paragraph identifier of the corresponding paragraph-divided text is 0xAA00, the mapping record indicates that when the audio file b1 is played, it corresponds to the paragraph-divided text whose paragraph identifier is 0xAA00. Then, the second mapping record may be looked up from the second mapping relationship. The audio file in the second mapping record is the same as the target audio file indicated by the audio identifier included in the first playback identifier. Thus, the paragraph-divided text in the second mapping record is the target paragraph-divided text.
[0043] Step 1045: Determine a third mapping record that matches the play time identifier in a preset third mapping relationship, where the third mapping relationship includes at least one mapping record, the mapping record includes a correspondence relationship between a text in the target paragraph text and a play time range of the target audio file, and the play time identifier belongs to the play time range in the third mapping record.
[0044] Step 1046: Determine a target text in the target paragraphed text based on the third mapping record.
[0045] For example, after determining the target paragraph text, a third mapping relationship may be obtained, in which the text in the target paragraph text corresponds to the play time range of the target audio file, wherein the third mapping relationship stores a plurality of mapping records, and each mapping record includes a correspondence relationship between the text in the target paragraph text and the play time range of the target audio file.
[0046] If the target paragraph text is a chapter in the document the user is browsing, the text may be a paragraph in the target paragraph text. If the target paragraph text is a paragraph in the document the user is browsing, the text may be a sentence in the target paragraph text. Accordingly, the playback time range is for indicating the start and end time of the audio corresponding to the corresponding text, and may be, for example, a frame number range or a time range. For example, if the playback time range of the target audio file included in one mapping record is 100s to 250s and the sentence identifier of the corresponding target paragraph text is 0x281D, the mapping record indicates that when the audio is played from 100s to 250s of the target audio file, the corresponding text is the text whose sentence identifier of the target paragraph text is 0x281D. Then, from the third mapping relationship, look up the third mapping record whose playback time identifier included in the first playback identifier belongs to the playback time range. Thereby, the text in the third mapping record is taken as the target text.
[0047] The second mapping relationship and the third mapping relationship are both established in advance and stored in the server. When the terminal device plays back the audio, the second mapping relationship and the third mapping relationship can be obtained from the server. The second mapping relationship and the third mapping relationship may be obtained when converting text using a TTS service to obtain audio, or may be obtained from the correspondence relationship between the voice content included in each audio frame in the audio and the character content in the text.
[0048] 5 is a flowchart of another audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 5, the method may further include steps as follows:
[0049] Step 106: Determine a first text corresponding to the second playback identifier based on a second playback identifier of the audio when the first page is exhibited on the exhibit interface.
[0050] Step 107: Determine whether a final predetermined number of elements in the first text are exhibited within the target area of the exhibit interface.
[0051] For example, when a first page is displayed on the display interface, audio corresponding to the text on the first page is played at the same time. This allows the user to listen while reading. Based on the current second playback identifier of the audio, a first text corresponding to the second playback identifier may be determined. The manner of determining the first text is similar to the manner of determining the target text shown in FIG. 3 and FIG. 4, and will not be described further here. Then, it may be determined whether the first text is completely displayed within the target area of the display interface. When displaying text in the display interface, a page straddling phenomenon often occurs. That is, the text cannot be completely displayed within the target area of the display interface at one time. Therefore, when determining the corresponding text based on the second playback identifier of the audio, it is difficult to turn the page accurately and to maintain synchronization between the audio and the text. For this reason, it is necessary to determine whether the first text is completely displayed within the target area of the display interface at the current time. The first text may include one or more elements. An element can be regarded as the smallest unit that constitutes the first text. If the first text is a sentence or a paragraph, the element may be a character (or a word), where the target area may be, for example, an area where the last text exists in the display interface, or a pre-specified area (for example, a middle area, an upper area, a lower area, etc. of the display interface).
[0052] The first text being completely displayed in the target area indicates that all elements constituting the first text are displayed in the target area at the current time. The first text not being completely displayed in the target area can be divided into three scenes. Scene 1: A predetermined number of elements at the beginning of the first text are not displayed in the target area. Scene 2: A predetermined number of elements at the end of the first text are not displayed in the target area. Scene 3: A predetermined number of elements at the beginning of the first text and a predetermined number of elements at the end of the first text are not displayed in the target area. Here, the predetermined number may be, for example, 1 or 2, or may be other numerical values. The present disclosure is not specifically limited thereto. In order to maintain synchronization between audio and text, it is necessary to determine an appropriate time to perform a page-turning operation in scenes 2 and 3. Therefore, it can be determined whether a predetermined number of elements at the end of the first text are displayed in the target area.
[0053] Step 108: If a final predetermined number of elements in the first text are not displayed in the target area, determine a target ratio of elements in the first text that are displayed in the target area and elements included in the first text.
[0054] Step 109: Determine whether to update the first page to the second page based on the second playback identifier and the target percentage.
[0055] For example, if a predetermined number of elements at the end of the first text are not displayed in the target area, it indicates that the first text is not completely displayed in the target area. In this case, a ratio between the elements of the first text displayed in the target area and the elements included in the first text, i.e., a target ratio, can be determined. The target ratio may be taken as a ratio of the number of elements displayed in the target area to the total number of all elements constituting the first text, a ratio of the area of the elements displayed in the target area to the total area of all elements of the first text, or a ratio of the number of bytes of the elements displayed in the target area to the total number of bytes of all elements of the first text. For example, if the first text is
number
number
number
[0056] Specifically, it is considered that the speed at which the sound corresponding to each element of the audio is played is the same. Then, it is possible to determine which element of the first text the audio has been played up to based on the second playback identifier. If it is determined based on the second playback identifier that the element for which the audio has been played corresponds to the last element of the first text exhibited in the target area, the first page can be updated to the second page. If it is determined based on the second playback identifier that the element for which the audio has been played does not correspond to the last element of the first text exhibited in the target area, the audio can be continued to be played without updating the first page to the second page.
[0057] 6 is a flowchart of another audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 6, the method may further include steps as follows:
[0058] Step 110: Determine whether an element in the first text is exhibited in the exhibit interface.
[0059] Accordingly, step 107 may be as follows:
[0060] If any elements of the first text are displayed in the display interface, it is determined whether a final predetermined number of elements of the first text are displayed in the target area.
[0061] In one implementation scenario, after determining the first text, it may further determine whether the first page includes the first text. That is, it is determined whether the first page and the audio are synchronized. When a user browses, the page may be manually turned over, which causes the audio and the page displayed on the exhibition interface to be out of sync. For example, if the current playback identifier of the audio corresponds to the text with a sentence identifier of 0x330, and the first page includes the text with a sentence identifier of 0x330, and then the user manually turns the page forward twice, the page displayed on the exhibition interface will not include the text with the sentence identifier of 0x330, and the page displayed on the exhibition interface will be out of sync with the audio.
[0062] Specifically, first, it may be determined whether any element of the first text is displayed in the display interface. If any element of the first text is not displayed in the display interface, it indicates that the audio and the text are not synchronized. At this time, the audio may be controlled to continue playing, and the original page may be continued to be displayed on the display interface (i.e., the page turning operation is not performed). If one or more elements of the first text are displayed in the display interface, it indicates that the audio and the text are synchronized, and it may be further determined whether a predetermined number of elements at the end of the first text are displayed in the target area.
[0063] 7 is a flowchart of another audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 7, the method may further include the following steps:
[0064] Step 111: If the second page includes a multimedia content, and the multimedia content is not in a playing state, control the multimedia content to play on the exhibition interface for a predetermined time.
[0065] In one application scenario, when the second page includes multimedia content and the multimedia content is not in a playing state, the multimedia content may be controlled to be played on the exhibition interface for a predetermined time (for example, 3s), and after the predetermined time, the playback of the multimedia content may be stopped.
[0066] In another application scenario, when the second page includes a multimedia content and the multimedia content is not in a playing state, it may be determined whether a trigger command for the multimedia content is received. The trigger command may be regarded as a command to click out the multimedia content after a user browses the multimedia content. For example, the multimedia content is a promotion content, and if the user is interested in the promotion content and wants to understand it, the user clicks on the promotion content. After receiving the trigger command, the corresponding multimedia file may be obtained according to a jump link included in the multimedia content, and the multimedia content may be controlled to be played on the exhibition interface for a predetermined time. Here, the multimedia file may be a text file, a picture file, a video file, an audio file, etc., or a combination of the above multiple files. The jump link may be an address from which the multimedia file can be obtained, for example, a URL (English: Uniform Resource Locator) address.
[0067] 8 is a flowchart of another audio and text synchronization method according to an exemplary embodiment. As shown in FIG. 8, the method may further include steps as follows:
[0068] Step 112: If the second page contains multimedia content and a page-turning command is received, update the second page on the exhibition interface to a fourth page containing a second text indicated by the page-turning command.
[0069] In yet another application scenario, when the second page includes multimedia content and receives a page-turning command, the playback of the multimedia content on the exhibition interface may be stopped, and the second page may be updated to a fourth page including a second text indicated by the page-turning command. For example, when the multimedia content included in the second page is a comment content and the user is not interested in the comment content and clicks the "Turn page" button on the exhibition interface to issue a page-turning command, the playback of the comment content may be stopped, and the second page may be updated to a fourth page. The second text may be, for example, a text adjacent to the text included in the first page and located after the text included in the first page in the document being viewed by the user.
[0070] Furthermore, it may be determined whether to respond to a page-turning command according to the display attribute of the multimedia content. The display attribute is for indicating whether the multimedia content is a forced display. For example, if the display attribute of the multimedia content is a forced display, even if the user clicks the "page-turning" button on the display interface to issue a page-turning command within a preset forced display time (e.g., 5 s), the terminal device does not respond to the page-turning command. That is, the second page is not updated to the fourth page. If the display attribute of the multimedia content is not a forced display, when the user clicks the "page-turning" button on the display interface to issue a page-turning command, the terminal device responds to the page-turning command. That is, the second page is updated to the fourth page.
[0071] In addition, the page turning operation in the above embodiments (i.e., updating the first page to the second page, updating the second page to the third page, updating the second page to the fourth page, etc.) may include a horizontal page turning operation or a scrolling page turning operation.
[0072] Accordingly, if the page-turning operation is a horizontal page-turning operation, the implementation manner of step 105 may be as follows:
[0073] On the exhibition interface, the second page is replaced with a third page according to a preset page-turning effect, including one of a page-turning animation, an overlay animation, and a translation animation.
[0074] If the page turning operation is a scroll page turning operation, the implementation manner of step 105 may be as follows.
[0075] On the exhibit interface, scroll from the second page to the third page at a preset speed.
[0076] Exemplarily, if the page turning operation is a horizontal page turning operation, each time the page turning operation is performed, it can be regarded as switching from the current content to the next page to be displayed on the display interface. In the middle of the switching, various preset page turning effects, for example, a page turning animation, an overlay animation, a translation animation, etc., can be added. Here, the page turning animation can be regarded as an animation that can display the effect of actually turning a sheet of paper, the overlay animation can be regarded as an animation that can display the effect of one sheet of paper overlaying another sheet of paper, and the translation animation can be regarded as an animation that can display the effect of one sheet of paper moving away from another sheet of paper. The preset page turning effect may be other animations. The present disclosure is not specifically limited thereto. Accordingly, in step 105, the second page may be replaced with a third page on the display interface according to a preset page turning effect. That is, in the middle of switching from the second page to the third page, a preset page turning effect may be added.
[0077] If the page turning operation is a scroll page turning operation, each time the page turning operation is performed, it can be regarded as gradually scrolling from the current content to the next page to be displayed on the display interface. During the scrolling, the content may be scrolled down at a preset speed (e.g., 3 lines / second) for a predetermined time (e.g., 5 s), or may be scrolled down at a preset speed to a specified position. Accordingly, in step 105, the second page may be scrolled to the third page at a preset speed on the display interface. That is, the scroll page turning operation is performed at the preset speed until the display interface can completely display the third page.
[0078] In the above embodiment, a manner of realizing the playback of audio corresponding to the text on the first page while the first page is being displayed may include the following steps:
[0079] Step 1) Based on a third playback identifier of the audio when the first page is exhibited on the exhibit interface, a third text corresponding to the third playback identifier is determined.
[0080] Step 2) Marking the third text on the display interface with a preset display pattern, including at least one of highlighting, underlining, and bolding.
[0081] For example, when a first page is displayed on the exhibition interface, audio corresponding to the text on the first page is played at the same time, so that the user can listen while reading. A third text corresponding to the third playback identifier may be determined based on the current third playback identifier of the audio. The manner of determining the third text is similar to the manner of determining the target text shown in Figures 3 and 4, and will not be described further here. The third text may be marked with a preset display pattern so that the user can intuitively browse the third text corresponding to the third playback identifier. Here, the preset display pattern includes at least one of highlight display, underline display, and bold display. For example, when a third text is displayed on a first page displayed on the exhibition interface,
number
[0082] As described above, the present disclosure first determines whether the second page includes multimedia content when the first page displayed on the exhibition interface is updated to the second page. Here, while the first page is displayed on the exhibition interface, audio corresponding to the text on the first page is played. Thereafter, if the second page includes multimedia content and the multimedia content is in a silent playback state, the audio may be controlled to continue playing. Next, a first playback identifier of the audio when the playback of the multimedia content stops is determined, and the corresponding target text is determined based on the first playback identifier. Finally, the second page is updated on the exhibition interface to a third page including the target text. The present disclosure recognizes the multimedia content included in the second page exhibited after the page is turned, and controls the playback of the audio and the content exhibited on the exhibition interface, thereby maintaining synchronization between the audio and the text while normally exhibiting the multimedia content.
[0083] 10 is a block diagram of an audio and text synchronization apparatus according to an exemplary embodiment. As shown in FIG. 10, the apparatus 200 includes modules such as:
[0084] A first determination module 201 that, in response to a first page displayed on an exhibition interface being updated to a second page, determines whether the second page includes multimedia content, where audio corresponding to text in the first page is played while the first page is displayed.
[0085] If the second page includes multimedia content and the multimedia content is in a silent play state, the control module 202 controls to continue playing the audio.
[0086] A second determination module 203 determines a first playback identifier of the audio when the playback of the multimedia content stops, and determines a corresponding target text based on the first playback identifier.
[0087] An update module 204 updates, on the exhibit interface, the second page to a third page that includes the target text.
[0088] In one application scenario, the first playback identifier includes a playback time identifier, and the second determination module 203 may be used to perform the following steps:
[0089] Step 1) Determine a first mapping record that matches the play time identifier in a preset first mapping relationship, where the first mapping relationship includes at least one mapping record, the mapping record includes a correspondence relationship between a text and an audio play time range, and the play time identifier belongs to the play time range in the first mapping record.
[0090] Step 2) Determine a target text based on the first mapping record.
[0091] In another application scenario, the audio includes at least one audio file, the first playback identifier includes a playback time identifier and an audio identifier, and the second determination module 203 can be used to perform steps such as:
[0092] Step 3) determining a second mapping record that matches the audio identifier in a preset second mapping relationship, the second mapping relationship including at least one mapping record, the mapping record including a correspondence between an audio file and a paragraph-divided text, and the target audio file indicated by the audio identifier is the audio file in the second mapping record.
[0093] Step 4) Determine a target chapter based on the second mapping record.
[0094] Step 5) determining a third mapping record that matches the play time identifier in a preset third mapping relationship, the third mapping relationship including at least one mapping record, the mapping record including a correspondence relationship between the text in the target paragraph text and the play time range of the target audio file, and the play time identifier belongs to the play time range in the third mapping record.
[0095] Step 6) determining a target text in the paragraphed text based on the third mapping record;
[0096] 11 is a block diagram of another audio and text synchronization apparatus according to an exemplary embodiment. As shown in FIG. 11, the apparatus 200 further includes modules such as:
[0097] A third determination module 205 determines a first text corresponding to the second playback identifier based on a second playback identifier of the audio when the first page is displayed on the exhibition interface, and determines whether a final predetermined number of elements of the first text are displayed within a target area of the exhibition interface.
[0098] A fourth determination module 206 determines a target ratio of elements displayed in the target region of the first text to elements included in the first text when a predetermined number of elements at the end of the first text are not displayed in the target region, and determines whether to update the first page to a second page based on the second playback identifier and the target ratio.
[0099] In one application scenario, the third determination module 205 may be used to perform the following:
[0100] Determine whether any elements of the first text are displayed in the display interface. If any elements of the first text are displayed in the display interface, determine whether a final predetermined number of elements of the first text are displayed in the target area.
[0101] In other application scenarios, the control module 202 may be further used to perform the following:
[0102] If the second page includes multimedia content and the multimedia content is not in a playing state, the multimedia content is controlled to be played on the exhibition interface for a predetermined period of time.
[0103] In yet another application scenario, the control module 202 may be further used to perform the following:
[0104] If the second page includes multimedia content and a page turn command is received, the second page is updated on the exhibition interface to a fourth page including the second text indicated by the page turn command.
[0105] 12 is a block diagram of another audio and text synchronizer according to an example embodiment. As shown in FIG. 12, the update module 204 may include modules such as:
[0106] A first updating submodule 2041 replaces the second page with a third page on the exhibition interface according to a preset page turning effect, including one of a page turning animation, an overlay animation, and a translation animation.
[0107] A second update submodule 2042 scrolls from the second page to the third page at a preset speed on the exhibition interface.
[0108] 13 is a block diagram of another audio and text synchronization apparatus according to an exemplary embodiment. As shown in FIG. 13, the apparatus 200 may further include modules such as:
[0109] A marking module 207 determines third text corresponding to the third playback identifier based on a third playback identifier of the audio when the first page is exhibited on the exhibit interface, and marks the third text on the exhibit interface with a preset display pattern including at least one of highlighting, underlining, and bolding.
[0110] Regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation is described in detail in the embodiment relating to the method, and will not be described in detail here.
[0111] As described above, the present disclosure, in a scene where a first page displayed on an exhibition interface is updated to a second page, first, determines whether the second page includes multimedia content. Here, while the first page is displayed on the exhibition interface, audio corresponding to the text on the first page is played. Thereafter, if the second page includes multimedia content and the multimedia content is in a silent playback state, the audio may be controlled to continue to be played. Next, a first playback identifier of the audio when the playback of the multimedia content stops is determined, and the corresponding target text is determined based on the first playback identifier. Finally, the second page is updated on the exhibition interface to a third page including the target text. The present disclosure recognizes the multimedia content included in the second page exhibited after the page is turned, and controls the playback of the audio and the content exhibited on the exhibition interface, thereby maintaining synchronization between the audio and the text while normally exhibiting the multimedia content.
[0112] Reference is now made to FIG. 14, which illustrates a structural diagram of an electronic device (e.g., an entity that executes the above-mentioned audio-text synchronization method) 300 suitable for implementing the embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG. 14 is merely an example and does not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0113] 14, the electronic device 300 may include a processing unit (e.g., a central processing unit, a graphic processor, etc.) 301, which can execute various appropriate operations and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. The RAM 303 further stores various programs and data necessary for the operation of the electronic device 300. The processing unit 301, the ROM 302, and the RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0114] Typically, input devices 306 including, for example, a touch screen, touch panel, keyboard, mouse, camera head, microphone, accelerometer, gyro, etc., output devices 307 including, for example, a liquid crystal display (LCD), speaker, oscillator, etc., storage devices 308 including, for example, a magnetic tape, hard disk, etc., and communication devices 309 may be connected to the I / O interface 305. The communication devices 309 enable the electronic device 300 to communicate wirelessly or via wires with other devices to exchange data. Although FIG. 14 shows the electronic device 300 with various devices, it should be understood that it is not intended to require the implementation or inclusion of all of the devices shown. More or fewer devices may alternatively be implemented or included.
[0115] In particular, according to an embodiment of the present disclosure, the processes described with reference to the above flowcharts can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network by the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, it performs the above-mentioned functions defined in the method of the embodiment of the present disclosure.
[0116] In addition, the computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specifically, the computer-readable storage medium may include, but is not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used in or in combination with a command execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated at baseband or a data signal propagated as part of a carrier wave, carrying computer-readable program code therein. As such, the propagated data signal may take a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may transmit, propagate, or transmit a program used in or in conjunction with a command execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including, but not limited to, electrical wire, optical cable, RF (radio frequency), etc., or any suitable combination thereof.
[0117] In some embodiments, the terminal devices and servers may communicate using any now known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include local area networks ("LANs"), wide area networks ("WANs"), international networks (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any now known or later developed network.
[0118] The computer-readable medium may be included in the electronic device, or may be a separate entity not mounted on the electronic device.
[0119] The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: determine, in response to a first page displayed on an exhibition interface being updated to a second page, whether the second page includes multimedia content, wherein audio corresponding to text on the first page is played while the first page is displayed; if the second page includes the multimedia content and the multimedia content is in a silent playback state, control the audio to continue playing; determine a first playback identifier of the audio when playback of the multimedia content stops and determine corresponding target text based on the first playback identifier; and update the second page to a third page including the target text on the exhibition interface.
[0120] Computer program code for carrying out the operations of the present disclosure can be written using one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and general procedural programming languages such as "C" or similar programming languages, but are not limited to these. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate possible system architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code, which includes one or more executable instructions for implementing a certain logical function. It should be noted that in some permutation implementations, the functions depicted in the blocks may be implemented in a different order than that depicted in the drawings. For example, two successively depicted blocks may be executed substantially simultaneously or in the reverse order, depending on the functionality involved. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented by a dedicated system based on hardware that executes a certain function or operation, or by a combination of dedicated hardware and computer instructions.
[0122] The modules according to the embodiments of the present disclosure may be implemented in software or hardware. Here, the name of the module may not limit the module itself. For example, the first determination module may be described as "a module that determines whether a page includes multimedia content."
[0123] The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, exemplary hardware logic components that may be used include, but are not limited to, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0124] In the present disclosure, a machine-readable medium may be a tangible medium and may include or store a program used by or in combination with a command execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of machine-readable storage media include one or more wire-based electrical connections, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0125] According to one or more embodiments of the present disclosure, Example 1 provides a method for synchronizing audio and text, including: in response to updating a first page displayed on an exhibition interface to a second page, determining whether the second page includes multimedia content, where audio corresponding to text on the first page is played while the first page is displayed; if the second page includes the multimedia content and the multimedia content is in a silent playback state, controlling to continue playing the audio; determining a first playback identifier of the audio when playback of the multimedia content stops, and determining corresponding target text based on the first playback identifier; and updating the second page on the exhibition interface to a third page including the target text.
[0126] According to one or more embodiments of the present disclosure, in Example 2, the first playback identifier includes a playback time identifier, and determining a corresponding target text based on the first playback identifier as described above includes determining a first mapping record that matches the playback time identifier in a first mapping relationship that is preset, the first mapping relationship including at least one mapping record, the mapping record including a correspondence relationship between text and an audio playback time range, and the playback time identifier belonging to the playback time range in the first mapping record, and determining the target text based on the first mapping record.
[0127] According to one or more embodiments of the present disclosure, in Example 3, the audio includes at least one audio file, the first playback identifier includes a playback time identifier and an audio identifier, and determining a corresponding target text based on the first playback identifier as described above includes determining a second mapping record that matches the audio identifier in a second mapping relationship that is preset, the second mapping relationship includes at least one mapping record, the mapping record includes a correspondence relationship between an audio file and a paragraph-divided text, and the target audio file indicated by the audio identifier is determined by ... file in the second mapping record. determining a target paragraph text based on the second mapping record; and determining a third mapping record that matches the playback time identifier in a third mapping relationship preset, the third mapping relationship including at least one mapping record, the mapping record including a correspondence relationship between a text in the target paragraph text and a playback time range of the target audio file, the playback time identifier belonging to the playback time range in the third mapping record; and determining the target text in the target paragraph text based on the third mapping record.
[0128] According to one or more embodiments of the present disclosure, Example 4 provides a method according to Examples 1 to 3, further including: determining a first text corresponding to a second playback identifier of the audio when the first page is displayed on the display interface based on the second playback identifier; determining whether a predetermined number of elements at the end of the first text are displayed within a target area of the display interface; if a predetermined number of elements at the end of the first text are not displayed within the target area, determining a target ratio of elements in the first text displayed within the target area and elements included in the first text; and determining whether to update the first page to the second page based on the second playback identifier and the target ratio.
[0129] According to one or more embodiments of the present disclosure, Example 5 provides a method as described in Example 4, further comprising determining whether elements of the first text are displayed in the exhibition interface, wherein the aforementioned determining whether a predetermined number of elements of the last of the first text are displayed in a target area of the exhibition interface includes determining whether a predetermined number of elements of the last of the first text are displayed in the target area if any element of the first text is displayed in the exhibition interface.
[0130] According to one or more embodiments of the present disclosure, Example 6 provides a method according to Examples 1 to 5, further comprising: if the second page includes the multimedia content and the multimedia content is not in a playing state, controlling the multimedia content to be played on the exhibition interface for a predetermined period of time.
[0131] According to one or more embodiments of the present disclosure, Example 7 provides a method according to Examples 1 to 5, further comprising: if the second page includes the multimedia content and a page-turn command is received, updating the second page on the exhibition interface to a fourth page including second text indicated by the page-turn command.
[0132] According to one or more embodiments of the present disclosure, Example 8 provides a method according to any of Examples 1 to 7, in which updating the second page to a third page on the exhibition interface as described above includes replacing the second page with the third page on the exhibition interface according to a preset page turning effect including any one of a page turning animation, an overlay animation, and a translation animation, or scrolling from the second page to the third page on the exhibition interface at a preset speed.
[0133] According to one or more embodiments of the present disclosure, Example 9 provides a method according to Examples 1 to 8, in which the aforementioned playback of audio corresponding to text in the first page while the first page is displayed specifically includes: determining third text corresponding to a third playback identifier based on a third playback identifier of the audio when the first page is displayed on the exhibition interface; and marking the third text on the exhibition interface with a preset display pattern including at least one of highlighting, underlining, and bolding.
[0134] According to one or more embodiments of the present disclosure, Example 10 provides an audio and text synchronization apparatus, including modules for performing the methods described in Examples 1-9.
[0135] According to one or more embodiments of the present disclosure, Example 11 provides a non-transitory computer-readable medium having stored thereon a computer program that, when executed by a processor, performs the methods described in Examples 1-9.
[0136] According to one or more embodiments of the present disclosure, Example 12 provides an electronic device including a storage device storing a computer program, and a processing device that executes the computer program in the storage device to realize the methods described in Examples 1 to 9.
[0137] According to one or more embodiments of the present disclosure, Example 13 provides a computer program that, when executed by a processor, causes the computer program to perform the methods described in Examples 1-9.
[0138] According to one or more embodiments of the present disclosure, Example 14 provides a computer program product having stored thereon a computer program that, when executed by a processor, causes the method according to Examples 1-9 to be implemented.
[0139] The above is merely a description of the preferred embodiment and the technical principles applied in the present disclosure. It is obvious to those skilled in the art that the scope of the disclosure of the present disclosure is not limited to the technical solution of the specific combination of the above technical features, but should also include other technical solutions formed by any combination of the above technical features or features equivalent thereto without departing from the concept of the above disclosure. For example, it also includes technical solutions formed by replacing the above features with technical features having similar functions disclosed in the present disclosure (not limited to them).
[0140] Also, although operations are described in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown, or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although certain specific implementation details are included in the above description, they should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of a single embodiment can also be implemented in combination with a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
[0141] Although the subject matter has been described in language specifying structural features and / or methodological operations, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms of implementing the claims. The specific manner in which each module performs an operation of the apparatus in the above embodiment is described in detail in the embodiment relating to the method, and will not be described in detail here.
Claims
1. 1. A method for synchronizing audio and text, comprising: in response to updating a first page displayed on an exhibition interface to a second page, determining whether the second page includes multimedia content, and playing audio corresponding to text in the first page while the first page is being displayed; controlling the audio to continue playing when the second page includes the multimedia content and the multimedia content is in a silent playback state; determining a first playback identifier of the audio when playback of the multimedia content is stopped, and determining a corresponding target text based on the first playback identifier; updating, on the exhibit interface, the second page to a third page including the target text; A method comprising:
2. the first playback identifier includes a playback time identifier; determining a corresponding target text based on the first playback identifier, determining a first mapping record that matches the play time identifier in a first preset mapping relationship; the first mapping relationship includes at least one mapping record; The mapping record includes a correspondence between text and an audio playback time range; the play time identifier belongs to a play time range in the first mapping record; Steps and determining the target text based on the first mapping record; The method of claim 1 , comprising:
3. the audio comprises at least one audio file; the first playback identifier includes a playback time identifier and an audio identifier; determining a corresponding target text based on the first playback identifier, determining a second mapping record that matches the audio identifier in a second preset mapping relationship; the second mapping relationship includes at least one mapping record; The mapping record includes a correspondence between an audio file and a paragraph-divided text; the target audio file indicated by the audio identifier is an audio file in the second mapping record; Steps and determining a target paragraphed text based on the second mapping record; determining a third mapping record that matches the play time identifier in a third preset mapping relationship; the third mapping relationship includes at least one mapping record; The mapping record includes a correspondence between the text in the target paragraph text and the playback time range of the target audio file; the play time identifier belongs to a play time range in the third mapping record; Steps and determining the target text in the target paragraphed text based on the third mapping record; The method of claim 1 , comprising:
4. The method further comprises: determining, based on a second playback identifier of the audio when the first page is exhibited on the exhibit interface, a first text corresponding to the second playback identifier; determining whether a final predetermined number of elements of the first text are exhibited within a target area of the exhibit interface; determining a target ratio of elements of the first text that are displayed in the target area to elements included in the first text when a final predetermined number of elements of the first text are not displayed in the target area; determining whether to update the first page to the second page based on the second playback identifier and the target percentage; The method according to any one of claims 1 to 3, comprising:
5. The method further comprises: determining whether an element of the first text is exhibited in the exhibit interface; The step of determining whether a final predetermined number of elements of the first text are exhibited within a target area of the exhibit interface includes: When any element of the first text is displayed in the display interface, determining whether a final predetermined number of elements of the first text are displayed within the target area; Including, The method according to claim 4.
6. The method further comprises: When the second page includes the multimedia content and the multimedia content is not in a playing state, controlling the multimedia content to be played on the exhibition interface for a predetermined period of time; Including, The method according to any one of claims 1 to 5.
7. The method further comprises: When the second page includes the multimedia content and a page turning command is received, updating, on the exhibition interface, the second page to a fourth page including a second text indicated by the page turning command; Including, The method according to any one of claims 1 to 5.
8. updating the second page to a third page on the exhibition interface, replacing the second page with the third page on the exhibition interface according to a preset page-turning effect, including one of a page-turning animation, an overlay animation, and a translation animation; or scrolling from the second page to the third page on the exhibition interface at a preset rate; Including, The method according to any one of claims 1 to 7.
9. The step of playing audio corresponding to text in the first page while the first page is being displayed includes: determining, based on a third playback identifier of the audio when the first page is exhibited on the exhibit interface, a third text corresponding to the third playback identifier; marking the third text on the exhibition interface with a preset display pattern, including at least one of highlighting, underlining, and bolding; Including, The method according to any one of claims 1 to 8.
10. A method for implementing the method according to any one of claims 1 to 9, Audio and text synchronizer.
11. A non-transitory computer readable medium having stored thereon a computer program which, when executed by a processor, causes the implementation of the method according to any one of claims 1 to 9.
12. A storage device in which a computer program is stored; A processing device that executes the computer program in the storage device to realize the method according to any one of claims 1 to 9; Including electronic devices.
13. A computer program which, when executed by a processing device, causes the device to carry out the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Server device which distributes advertisement insered in book content
JP2009059317A
Automatic creation of mapping between text data and audio data
JP2013008357A
Consistency of supported media content
JP2015531915A
Background processing of media applications
JP2017508368A
Platform for educational and interactive ereaders and ebooks
US20190196675A1
