Text processing method and device, electronic equipment and storage medium
By obtaining the current broadcast progress information of the player callback, the text of the currently broadcast on the screen is highlighted, solving the problem of synchronism and low efficiency of voice broadcast and text display, achieving more accurate audio-visual synchronization and improving user experience.
Patent Information
- Application Number
- CN202510234281.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the synchronization and synchronization efficiency of voice broadcasting and text display are low, making it difficult to achieve accurate audio-visual synchronization.
By obtaining the current broadcast progress information of the player callback, including the current broadcast statement identifier and text serial number identifier, the text of the current broadcast on the screen is highlighted to realize the synchronization of voice broadcast and text display.
It improves the synchronization accuracy and synchronization efficiency of voice broadcast and text display, and enhances the user's reading and listening experience.
Smart Images

Figure CN120255996A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, specifically to technologies such as speech technology and computer vision, and particularly to a text processing method, apparatus, electronic device, and storage medium. Background Art
[0002] In audio-visual related applications or mini-programs, it is not only necessary to display text, but also to broadcast speech synthesized based on text-to-speech (TTS).
[0003] In the prior art, in order to achieve audio-visual synchronization, the text is mainly displayed line by line or paragraph by paragraph, and the current line or paragraph is highlighted synchronously during the broadcast. Synchronization is usually achieved by calculating the relationship between the text display position and the broadcast progress. Summary of the Invention
[0004] The present disclosure provides a text processing method, apparatus, electronic device, and storage medium.
[0005] According to one aspect of the present disclosure, a text processing method is provided, including:
[0006] During the speech broadcast, obtaining the current broadcast progress information called back by the player; the current broadcast progress information includes the statement identifier currently being broadcast and the text sequence number identifier currently being broadcast to;
[0007] Based on the current broadcast progress information, controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between the speech broadcast and the text display.
[0008] According to another aspect of the present disclosure, a text processing apparatus is provided, including:
[0009] A progress obtaining module, configured to obtain the current broadcast progress information called back by the player during the speech broadcast; the current broadcast progress information includes the statement identifier currently being broadcast and the text sequence number identifier currently being broadcast to;
[0010] A control module, configured to control the highlighting display of the text currently being broadcast on the screen based on the current broadcast progress information to achieve synchronization between the speech broadcast and the text display.
[0011] According to still another aspect of the present disclosure, an electronic device is provided, including:
[0012] At least one processor; and
[0013] A memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the methods of the aspects and any possible implementation manners described above.
[0015] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the methods of the aspects and any possible implementation manners described above.
[0016] According to still another aspect of the present disclosure, there is provided a computer program product including a computer program which, when executed by a processor, implements the methods of the aspects and any possible implementation manners described above.
[0017] According to the technology of the present disclosure, the accuracy and synchronization efficiency of the synchronization between voice broadcast and text display can be effectively improved.
[0018] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0020] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure;
[0021] Figure 2 is a schematic diagram according to the second embodiment of the present disclosure;
[0022] Figure 3 is a schematic diagram according to the third embodiment of the present disclosure;
[0023] Figure 4 is a schematic diagram according to the fourth embodiment of the present disclosure;
[0024] Figure 5 is a schematic diagram according to the fifth embodiment of the present disclosure;
[0025] Figure 6 is a block diagram of an electronic device for implementing the method of the embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] The exemplary embodiments of the present disclosure will be described below in conjunction with the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, descriptions of well-known functions and structures are omitted in the following description for clarity and conciseness.
[0027] Obviously, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts fall within the scope of protection of the present disclosure.
[0028] It should be noted that the terminal devices involved in the embodiments of the present disclosure may include, but are not limited to, intelligent devices such as mobile phones, personal digital assistants (PDAs), wireless handheld devices, and tablet computers; the display devices may include, but are not limited to, devices with display functions such as personal computers and televisions.
[0029] In addition, the term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.
[0030] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure; as Figure 1 shown, this embodiment provides a text processing method, which may specifically include the following steps:
[0031] S101. During the voice broadcast process, obtain the current broadcast progress information called back by the player; the current broadcast progress information includes the statement identifier of the current broadcast and the text sequence number identifier of the current broadcast position.
[0032] S102. Based on the current broadcast progress information, control the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display.
[0033] The execution subject of the text processing method in this embodiment can be a text processing device, which can be embedded in an application or a small program when applied. Among them, the application or small program can synchronously implement voice broadcast and text display. For example, it can be a news reader and educational software, etc.
[0034] In the application scenario of this embodiment, voice announcements are made through a player, and text information is also displayed on a display screen. The purpose of text processing in this embodiment is to synchronize the content of voice announcements and text displays, that is, audio-visual synchronization.
[0035] Specifically, during the voice announcement process, the player can call back the current announcement information, enabling the text processing device to obtain the text of the current announcement in a timely manner. Subsequently, based on the current announcement progress information, the device can control the highlighting of the text currently being announced on the screen. Since the time taken for the text processing device to control the highlighting of the text currently being announced on the screen after receiving the current announcement progress information is extremely short, it can be considered that audio-visual synchronization has been achieved.
[0036] For example, in this embodiment, to improve accuracy, the current announcement progress information called back by the player can be the announcement progress at the word granularity. For instance, it can specifically include the statement identifier of the announcement and the word sequence identifier of the current position in the statement. For example, when the current announcement progress information includes an x identifier and a y identifier, it indicates that the current position is at the yth word in the xth statement. Compared with the announcement progress information at the sentence granularity or paragraph granularity, it can achieve a more precise synchronous display.
[0037] The text processing method of this embodiment, during the voice announcement process, controls the highlighting of the text currently being announced on the screen based on the obtained current announcement progress information, thereby achieving the synchronization of voice announcements and text displays. Moreover, in this embodiment, the current announcement progress information can be accurate to the word sequence number in the current announcement, effectively improving the accuracy and synchronization efficiency of the synchronization between voice announcements and text displays, and further enhancing the user's reading and auditory experiences.
[0038] Figure 2 It is a schematic diagram according to the second embodiment of the present disclosure; the text processing method of this embodiment further describes the technical solution of the present disclosure in more detail based on the technical solution of the above Figure 1 illustrated embodiment. As Figure 2 shown, the text processing method of this embodiment may specifically include the following steps:
[0039] S201. During the voice announcement process, obtain the current announcement progress information called back by the player through a speech synthesizer;
[0040] Specifically, to implement the playback of the player, the text processing device of this embodiment synthesizes the corresponding sentence voices of the text information to be played by the speech synthesizer in sequence based on the sentence granularity in the order from front to back, and stores them in the voice queue in sequence. The player can sequentially obtain the voices to be played from the voice queue for playback. In this embodiment, while the player is playing, it also calls back the current playback progress information. Specifically, the player sends the called-back current playback progress information to the text processing device through the speech synthesizer; correspondingly, the text processing device can accurately and effectively obtain the current playback progress information called back by the player through the speech synthesizer. The current playback progress information may include the sentence identifier of the current playback and the text sequence number identifier of the current playback position.
[0041] S202. Obtain the displayed progress information; the displayed progress information includes the sentence identifier of the displayed part and the text sequence number identifier of the displayed part;
[0042] In this embodiment, the displayed progress information can identify the progress of the current text display. It may include the sentence identifier of the displayed part, that is, the sentence identifier corresponding to the currently latest displayed sentence. It may also include the text sequence number identifier of the displayed part, that is, the text sequence number identifier of the displayed part in the sentence corresponding to the sentence identifier of the displayed part. For example, the displayed progress information can be identified by (z, n), indicating that the current text display has reached the nth word in the zth sentence.
[0043] S203. Based on the displayed progress information and the current playback progress information, control the highlighting of the currently played text on the screen to achieve synchronization between voice playback and text display.
[0044] Optionally, at the first playback, there is no displayed progress information yet. At this time, the highlighting of the currently played text on the screen can be controlled only according to the current playback progress information. It can also be considered that the displayed progress information can be (0, 0) at this time.
[0045] For example, when specifically implementing this step S203, it may include the following steps:
[0046] (1) Determine the currently played text based on the displayed progress information and the current playback progress information;
[0047] Specifically, according to the displayed progress information, it can be known which word in which sentence the historical display progress reaches; according to the current broadcast progress information, it can be known which word in which sentence the current broadcast reaches; furthermore, based on the displayed progress information and the current broadcast progress information, the word currently being broadcast can be determined. Since in specific implementation, the voice is broadcast first and then the broadcast words are synchronously displayed, the displayed progress in this embodiment can also refer to the progress that has been broadcast and displayed. The voice broadcast in this embodiment can be at the character level or at the word level. When it is at the character level, for example, the displayed progress information can include (5, 3), and the current broadcast progress information can include (5, 4), indicating that in the historical display progress, it has reached the 3rd character in the 5th sentence, and the current broadcast reaches the 4th character in the 5th sentence. Therefore, it can be determined that the word currently being broadcast is the 4th character in the 5th sentence. When it is at the word level, for example, the displayed progress information can include (5, 3), and the current broadcast progress information can include (5, 5), indicating that in the historical display progress, it has reached the 3rd character in the 5th sentence, and the current broadcast reaches the 5th character in the 5th sentence. Therefore, it can be determined that the words currently being broadcast are the 4th and 5th characters in the 5th sentence.
[0048] (2) Control the highlighted display of the word currently being broadcast on the screen to achieve the synchronization of voice broadcast and text display.
[0049] In this embodiment, by controlling the highlighted display of the word currently being broadcast on the screen to achieve the synchronization of voice broadcast and text display, it can effectively prompt the user of the current broadcast position and effectively enhance the user experience.
[0050] Optionally, in an embodiment of the present disclosure, the text display component for realizing text display can include a first layer, a second layer, and a third layer from bottom to top, and the three layers have the same size and overlap with each other. The first layer is a placeholder layer, which is only used to support the height, has a transparency of 0, and does not display text content. The second layer is a text display layer, and the second layer can pre-load and display the text to be broadcast before the voice broadcast. For example, if the text to be broadcast is an article, all the text content of the article is pre-loaded and displayed here. The third layer can be a highlighted display layer, and the third layer can, based on the broadcast progress, additionally display the word currently being broadcast. In this way, the words displayed on the third layer can overlap with the words displayed on the second layer, showing a highlighted display effect on the screen and achieving the synchronization of voice broadcast and text display.
[0051] Based on the above-described text display component, in this embodiment, it is possible to control the first target layer of the text display component to add and display the currently announced text so as to overlap with the text displayed in the second target layer of the text display component, achieving a highlighted display effect on the screen and realizing the synchronization of voice announcement and text display. For example, referring to the structure of the above text display component, the first target layer in this embodiment can be the third layer of the text display component, and the second target layer can be the second layer of the text display component. For example, in the application scenario of a mini-program, the mini-program setData method can be called to obtain the currently announced text and add and display it word by word to the first target layer, i.e., the third layer, of the text display component.
[0052] In this embodiment, based on the above technical solution, as the voice announcement progresses, for each word or term announced, the corresponding word or term can be highlighted on the screen to achieve the synchronization of voice announcement and text display, and the position of the announcement can be promptly and accurately prompted to the user on the screen. In this way, on the entire screen, the announced content is displayed on both the second and third layers of the text display component, presenting a highlighted display effect; while the unannounced content is only displayed on the second layer of the text display component and does not present a highlighted display effect.
[0053] In this embodiment, by adopting the text display component with the above three-layer structure, it is possible to efficiently and flexibly control the highlighted display of text and improve the efficiency of text highlighted display.
[0054] The text processing method of this embodiment, by adopting the above technical solution, can accurately determine the currently announced text based on the current announcement progress information during the voice announcement process, and control the highlighted display of the currently announced text on the screen, realizing the synchronization of voice announcement and text display, and effectively improving the accuracy and efficiency of synchronization.
[0055] Moreover, in this embodiment, by adopting the text display component with the above three-layer structure, it is possible to provide effective technical support for the highlighted display of the currently announced text, further effectively improving the accuracy and efficiency of the synchronization of voice announcement and text display.
[0056] Figure 3 is a schematic diagram according to the third embodiment of the present disclosure; the text processing method of this embodiment further describes the technical solution of the present disclosure in more detail based on the technical solutions of the above Figure 1 or Figure 2 shown embodiments. As Figure 3 shown, the text processing method of this embodiment may specifically include the following steps:
[0057] S301. Obtain the ratio of the announced text on the screen to all the text displayed on the screen;
[0058] S302. Detect whether the ratio reaches a preset ratio threshold;
[0059] S303. In response to the ratio reaching the preset ratio threshold, scroll up the text on the screen so that the currently announced statement is located in a preset central area on the screen.
[0060] Specifically, in an actual application scenario, as the announcement and display progress, the position of the highlighted display progress will continuously move downward on the screen. To enhance the display effect, in this embodiment, during the voice announcement and text display, the ratio of the announced text on the screen to all the text displayed on the screen can be obtained, and when it is detected that this ratio is greater than the preset ratio threshold, the text on the screen is scrolled up so that the currently announced statement is located in a preset central area on the screen. In this way, the display effect of the text can be effectively improved, and the user experience can be enhanced.
[0061] If the ratio does not reach the preset ratio threshold, no action may be taken at this time. The preset ratio threshold in this embodiment can be a ratio such as 50%, 48%, or 52%, etc., which is not limited herein.
[0062] The preset central area on the screen in this embodiment can be one line, two lines, or multiple lines in the exact center of the screen, which is not limited herein.
[0063] During specific implementation, based on the announced text, the current position of the currently announced statement on the screen can be determined; further, based on the current position of the currently announced statement on the screen and the preset central area on the screen, the information to be scrolled up can be determined; and then, according to the information to be scrolled up, the text on the screen can be scrolled up so that the currently announced statement exactly falls into the preset central area on the screen. For example, the information for scrolling in this embodiment can be the number of lines of the scrolled text or the scrolling distance, etc., which is not limited herein.
[0064] Optionally, in this embodiment, when scrolling up the text, it can be considered as pulling up the text display component.
[0065] By adopting the above technical solution, the text processing method of this embodiment can scroll up the text on the screen during the voice announcement and text display so that the currently announced statement is located in a preset central area on the screen, which can effectively improve the display effect of the text and further effectively enhance the user experience.
[0066] Figure 4 It is a schematic diagram according to the fourth embodiment of the present disclosure; this embodiment provides a text processing device 400, including:
[0067] The progress acquisition module 401 is configured to acquire the current broadcast progress information called back by the player during the voice broadcast; the current broadcast progress information includes the statement identifier of the current broadcast and the text sequence number identifier of the current broadcast position.
[0068] The control module 402 is configured to control the highlighting display of the text currently being broadcast on the screen based on the current broadcast progress information, so as to synchronize the voice broadcast and the text display.
[0069] The text processing device 400 of this embodiment realizes the principle and technical effect of text processing by adopting the above modules, which is the same as the implementation of the above related method embodiments. For details, reference can be made to the records of the above related method embodiments, and details will not be repeated here.
[0070] Figure 5 is a schematic diagram according to the fifth embodiment of the present disclosure; the text processing device 500 of this embodiment further introduces the technical solution of the present disclosure in more detail on the basis of the technical solutions of the above Figure 4 shown embodiments. As Figure 5 shown, the text processing device 500 of this embodiment includes the same-name and same-function modules as those shown above: a progress acquisition module 501 and a control module 502. Figure 4 shown, the progress acquisition module 501 is configured to:
[0071] In the process of voice broadcast, obtain the current broadcast progress information called back by the player through the speech synthesizer.
[0072] In the process of voice broadcast, obtain the current broadcast progress information called back by the player through the speech synthesizer.
[0073] Further optionally, as Figure 5 shown, in an embodiment of the present disclosure, the control module 502 includes:
[0074] An acquisition unit 5021 is configured to acquire the displayed progress information; the displayed progress information includes the statement identifier of the displayed position and the text sequence number identifier of the displayed position;
[0075] A control unit 5022 is configured to control the highlighting display of the text currently being broadcast on the screen based on the displayed progress information and the current broadcast progress information, so as to synchronize the voice broadcast and the text display.
[0076] Further optionally, in an embodiment of the present disclosure, the control unit 5022 is configured to:
[0077] Based on the displayed progress information and the current broadcast progress information, determine the text currently being broadcast;
[0078] Control the highlighting display of the text currently being broadcast on the screen to synchronize the voice broadcast and the text display.
[0079] Further optionally, in an embodiment of the present disclosure, the control unit 5022 is configured to:
[0080] Control the first target layer of the text display component to increase the display of the currently announced text so as to overlap with the text displayed in the second target layer of the text display component, achieving a highlighted display effect on the screen and realizing the synchronization of voice announcement and text display.
[0081] Further optionally, as Figure 5 shown, in an embodiment of the present disclosure, the text processing device 500 further includes:
[0082] A loading and display module 503, configured to pre-load and display the text to be announced in the second target layer of the text display component.
[0083] Further optionally, in an embodiment of the present disclosure, the first target layer in the text display component is located above the second target layer, and the first target layer and the second target layer are of the same size and overlap each other. Specifically, the text display component may sequentially include a first layer, a second layer, and a third layer from bottom to top; the three layers are of the same size and overlap each other; the first layer is a placeholder layer and does not display text content. The first target layer in the above text display component is the third layer, and the second target layer is the second layer.
[0084] Further optionally, as Figure 5 shown, in an embodiment of the present disclosure, the text processing device 500 further includes:
[0085] A ratio acquisition module 504, configured to acquire the ratio of the announced text in the screen to all the text displayed in the screen;
[0086] A detection module 505, configured to detect whether the ratio reaches a preset ratio threshold;
[0087] A scrolling module 506, configured to, in response to the ratio reaching the preset ratio threshold, scroll up the text in the screen so that the currently announced statement is located in a preset central area in the screen.
[0088] The implementation principle and technical effects of the text processing device 500 in this embodiment for text processing by adopting the above modules are the same as those of the above related method embodiments. For details, reference can be made to the records of the above related method embodiments, which will not be elaborated here.
[0089] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0090] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0091] Figure 6 FIG. shows a schematic block diagram of an exemplary electronic device 600 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0092] As Figure 6 shown, the device 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0093] A plurality of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0094] The computing unit 601 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 executes the various methods and processes described above, such as the above-described methods of the present disclosure. For example, in some embodiments, the above-described methods of the present disclosure can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the above-described methods of the present disclosure can be executed. Alternatively, in other embodiments, the computing unit 601 can be configured to execute the above-described methods of the present disclosure in any other suitable manner (e.g., by means of firmware).
[0095] Various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0096] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0097] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0098] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).
[0099] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0100] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0101] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and no limitations are imposed herein.
[0102] The above specific embodiments do not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.
Claims
1. A text processing method, comprising: During the voice broadcast, obtaining the current broadcast progress information called back by the player; The current broadcast progress information includes the statement identifier of the current broadcast and the text sequence number identifier of the current broadcast position; Based on the current broadcast progress information, controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display.
2. The method according to claim 1, wherein, During the voice broadcast, obtaining the current broadcast progress information called back by the player, including: During the voice broadcast, obtaining the current broadcast progress information called back by the player through the speech synthesizer.
3. The method according to claim 1, wherein Based on the current broadcast progress information, controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display, including: Obtaining the displayed progress information; the displayed progress information includes the statement identifier of the displayed content and the text sequence number identifier of the displayed position; Based on the displayed progress information and the current broadcast progress information, controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display.
4. The method according to claim 3, wherein Based on the displayed progress information and the current broadcast progress information, controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display, including: Based on the displayed progress information and the current broadcast progress information, determining the text currently being broadcast; Controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display.
5. The method according to claim 4, wherein Controlling the highlighting display of the text currently being broadcast on the screen to achieve synchronization between voice broadcast and text display, including: Controlling the first target layer of the text display component to increase the display of the text currently being broadcast so as to overlap with the text displayed in the second target layer of the text display component, achieving the highlighting display effect on the screen and achieving synchronization between voice broadcast and text display.
6. The method according to claim 5, wherein, Before controlling the first target layer of the text display component to increase the display of the text currently being broadcast so as to overlap with the text displayed in the second target layer of the text display component, achieving the highlighting display effect on the screen and achieving synchronization between voice broadcast and text display, the method further includes: Preloading and displaying the text to be broadcast in the second target layer of the text display component.
7. The method according to claim 5 or 6, wherein, The first target layer in the text display component is located above the second target layer, and the first target layer and the second target layer are of the same size and overlap each other.
8. According to the method of any one of claims 1-6, wherein, The method further includes: Obtaining the ratio of the text that has been broadcast on the screen to all the text displayed on the screen; Detecting whether the ratio reaches a preset ratio threshold; In response to the ratio reaching the preset ratio threshold, scrolling up the text on the screen so that the statement currently being broadcast is located in a preset central area on the screen.
9. A text processing device, comprising: A progress obtaining module, configured to obtain the current broadcast progress information called back by the player during the voice broadcast; The current broadcast progress information includes the statement identifier of the current broadcast and the text sequence number identifier of the current broadcast position; A control module, configured to control highlighting the currently announced text on the screen based on the current announcement progress information, so as to synchronize the voice announcement with the text display.
10. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method according to any one of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
12. A computer program product, comprising a computer program, which when executed by a processor, implements the method according to any one of claims 1-8.