Audio-based text processing method and apparatus, and device and storage medium
By obtaining and processing audio progress and audio streams, the problem of lyrics and audio out of synchronization in live broadcast scenarios is solved, and the precise alignment of text and audio is achieved, improving the audio-visual experience.
Patent Information
- Application Number
- PCT/CN2024/116421
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-04
- Filing Date
- 2024-09-02
- Publication Date
- 2025-03-13
AI Technical Summary
In the live singing scene, the lyrics and audio cannot be synchronized, causing the audience to perceive the lyrics and audio not to align, affecting the audio-visual experience.
By obtaining the latest benchmark audio progress and the audio stream at the connecting end, the current audio progress of the audio stream is determined based on the local system time and the latest benchmark audio progress, and the target text content corresponding to the audio stream is rendered according to the current audio progress.
It realizes accurate alignment of the display progress of text and the playback progress of audio, improving the audio-visual effect.
Smart Images

Figure CN2024116421_13032025_PF_FP_ABST
Abstract
Description
Audio-based text processing method, device, equipment, and storage medium
[0001] This application claims priority to the Chinese invention patent application entitled “Audio-based text processing method, device, equipment and storage medium” filed on September 4, 2023, with application number 202311134444.X. The entire contents of that application are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present disclosure relate to the field of live broadcast technology, and in particular to an audio-based text processing method, apparatus, device, and storage medium. Background Art
[0003] In a live singing scenario, the singer's client sends the lyrics or audio progress to the host, who then forwards the lyrics or audio progress to the audience. Because the lyrics are limited by the network or streaming system during transmission, the lyrics and audio cannot be synchronized, and the audience perceives that the lyrics and audio are not aligned, affecting the audio-visual experience. In related technologies, a timer is set on the audience side to accumulate audio progress, but this still causes the lyrics and audio to be out of sync, and the deviation between the lyrics and audio will become larger and larger as time goes by.
[0004] Summary of the Invention
[0005] The embodiments of the present disclosure provide an audio-based text processing method, apparatus, device, and storage medium, which improve the alignment effect between the display progress of the text and the playback progress of the audio.
[0006] In a first aspect, an embodiment of the present disclosure provides an audio-based text processing method, which is executed by an audience end; comprising: obtaining the latest baseline audio progress and the audio stream corresponding to the microphone end; wherein the microphone end includes a guest end and / or a host end; determining the current audio progress of the audio stream based on the local system time and the latest baseline audio progress; playing the audio stream, and rendering the target text content corresponding to the audio stream according to the current audio progress.
[0007] In the second aspect, the embodiment of the present disclosure also provides an audio-based text processing device, which is arranged in the audience end and includes: a latest baseline audio progress acquisition module, used to obtain the latest baseline audio progress and the audio stream corresponding to the microphone end; wherein the microphone end includes a guest end and / or a host end; a current audio progress determination module, used to determine the current audio progress of the audio stream based on the local system time and the latest baseline audio progress; a target text content rendering module, used to play the audio stream and render the target text content corresponding to the audio stream according to the current audio progress.
[0008] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the audio-based text processing method as described in the embodiment of the present disclosure.
[0009] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute the audio-based text processing method as described in the embodiment of the present disclosure.
[0010] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which is tangibly stored in a computer storage medium and includes computer-executable instructions, which, when executed by a device, enable the device to execute the audio-based text processing method as described in an embodiment of the present disclosure.
[0011] The embodiments of the present disclosure disclose an audio-based text processing method, apparatus, device and storage medium, which obtain the latest baseline audio progress and the audio stream corresponding to the connected microphone end; wherein the connected microphone end includes a guest end and / or a host end; determines the current audio progress of the audio stream based on the local system time and the latest baseline audio progress; plays the audio stream, and renders the target text content corresponding to the audio stream according to the current audio progress. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0013] FIG1 is a flow chart of an audio-based text processing method provided by an embodiment of the present disclosure;
[0014] FIG2 is an example diagram of a live broadcast scenario provided by an embodiment of the present disclosure;
[0015] FIG3 is an example diagram of determining the current audio progress provided by an embodiment of the present disclosure;
[0016] FIG4 is a schematic structural diagram of an audio-based text processing device provided by an embodiment of the present disclosure;
[0017] FIG5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0019] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0020] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0021] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0024] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0025] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0026] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0027] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0028] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0029] Figure 1 is a flow chart of an audio-based text processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where text is rendered based on audio. The method can be executed by an audio-based text processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC or server, etc.
[0030] As shown in FIG1 , the method includes:
[0031] S110: Obtain the latest baseline audio progress and the audio stream corresponding to the microphone-connected end.
[0032] In some embodiments, the microphone connection end includes a guest end and / or an anchor end. The audio stream can be obtained by collecting the singer's voice by the client where the singer (anchor and / or guest) is located and merging it with the background music. For example, Figure 2 is an example diagram of a live broadcast scene of an embodiment of the present disclosure. As shown in Figure 2, the guest end collects the audio of the guest's singing and sends the collected audio stream to the anchor end. The anchor end sends the audio stream to the server end, which is then forwarded to the audience end by the server end. If the singer is the anchor, the anchor end directly sends the audio stream to the server end, which is then forwarded to the audience end by the server end. While sending the audio stream, the client where the singer is located sends the audio progress every set time, and the anchor end sends the audio progress to the audience end via the server end. Each time the audience end receives the audio progress, it uses the latest audio progress received as the benchmark audio progress to determine the audio progress of the audience end at each moment based on the latest benchmark audio progress.
[0033] The audio progress can be understood as the progress of audio playback, which can be represented by a timestamp or percentage. For example, assuming that the audio is 2 minutes long, if the current playback reaches 1 minute and 20 seconds, the audio progress is 1 minute and 20 seconds. The latest baseline audio progress can be the audio progress most recently received by the viewer. The audio progress of the viewer at each moment is determined based on the latest received audio progress, that is, the latest audio progress is used as the latest baseline audio progress.
[0034] Optionally, the method for obtaining the latest baseline audio progress and the audio stream corresponding to the connected microphone end can be: obtaining the latest media supplementary information and the audio stream corresponding to the connected microphone end; extracting the latest baseline audio progress from the latest media supplementary information, and recording the local system time corresponding to when the latest media supplementary information is received.
[0035] In some embodiments, the latest media supplemental information can be understood as the media supplemental enhancement information (SEI) recently received by the viewer end. The local system time can be obtained by measuring the local clock of the viewer end. In the present embodiment, the audio progress is sent to the viewer end in the form of SEI information, and the viewer end extracts the audio progress from the SEI information as the latest baseline audio progress. When the viewer end receives the latest media supplemental information, the local system time at this time is obtained and the local system time is recorded.
[0036] S120: Determine a current audio progress of the audio stream based on the local system time and the latest benchmark audio progress.
[0037] In some embodiments, the local system time may be measured by a local clock at the viewer's terminal.
[0038] Optionally, the method for determining the current audio progress of the audio stream based on the local system time and the latest benchmark audio progress can be: determining the time interval between the current moment and the moment when the latest benchmark audio progress is received based on the local system time; and determining the current audio progress of the audio stream based on the time interval and the latest benchmark audio progress.
[0039] In some embodiments, the time interval between the current moment and the moment when the latest benchmark audio progress is received can be understood as: the time interval between the local system time corresponding to the current moment and the local system time corresponding to the moment when the latest benchmark audio progress is received.
[0040] Specifically, the method for determining the time interval between the current moment and the moment when the latest benchmark audio progress is received based on the local system time can be: obtaining the first local system time corresponding to the current moment and the second local system time corresponding to the moment when the latest benchmark audio progress is received; determining the time interval based on the first local system time and the second local system time.
[0041] In some embodiments, the time interval can be determined based on the first and second local system times by subtracting the second local system time from the first local system time to obtain the time interval between the current time and the time when the latest baseline audio progress is received. For example, assuming the first local system time is T1 and the second local system time is T2, the time interval between the current time and the time when the latest baseline audio progress is received is ΔT = T1 - T2.
[0042] Specifically, the manner of determining the current audio progress of the audio stream according to the time interval and the latest benchmark audio progress may be: determining the current audio progress of the audio stream based on the time interval and the latest benchmark audio progress.
[0043] Specifically, the time interval and the latest benchmark audio progress are accumulated to obtain the current audio progress of the audio stream. In this embodiment, assuming that the current audio progress is represented by t2, the latest benchmark audio progress is represented by t1, and the time interval is △T, the calculation formula for the current audio progress of the audio stream is: t2=t1+△T. For example, Figure 3 is an example diagram for determining the current audio progress. As shown in Figure 2, T2 is the local system time corresponding to the moment when the latest benchmark audio progress is received, T1 is the local system time corresponding to the current moment, and t1 is the latest benchmark audio progress. The audio progress corresponding to the current moment is t2=t1+(T1-T2).
[0044] S130: Play the audio stream and render the target text content corresponding to the audio stream according to the current audio progress.
[0045] In this embodiment, the viewer end receives the audio stream sent by the host end in real time, and decodes and plays the received audio stream. In order to ensure that the displayed text content is aligned with the played audio, it is necessary to display the corresponding target text content according to the audio progress.
[0046] Specifically, a method of rendering the text content corresponding to the audio stream according to the current audio progress may be: obtaining a text file corresponding to the audio stream; extracting target text content from the text file based on the current audio progress; and rendering the target text content.
[0047] In some embodiments, the text content in the text file carries an audio timestamp. The text content consists of multiple characters, each of which carries an audio timestamp. The audio timestamp can be expressed in the following format: "character: start timestamp, duration." If the audio stream is the audio corresponding to a song, the text file is the corresponding lyrics text file. The text file corresponding to the audio stream can be pre-sent by the host end to the viewer end, or the viewer end can obtain it from a preset data source based on the audio stream representation.
[0048] Specifically, the target text content may be extracted from the text file based on the current audio progress by taking the text content in the text file whose audio timestamp matches the current audio progress as the target text content.
[0049] In this embodiment, the text content in the text file is divided into multiple text segments, each of which includes multiple characters. The method for determining the text content whose audio timestamp matches the current audio progress can be: obtain the characters whose audio timestamp in the text file matches the timestamp corresponding to the current audio progress, and use the text segment where the matching characters are located and the previous and / or next text segments adjacent to the text segment as the target text content. After determining the target text content, the target text content is rendered to the interface for display, so that the display progress of the text content is synchronized with the playback progress of the audio stream.
[0050] Optionally, obtaining the audio stream corresponding to the connected microphone end can be understood as: obtaining the audio stream corresponding to when the user on the connected microphone end sings the target song; accordingly, playing the audio stream and rendering the target text content corresponding to the audio stream according to the current audio progress can be understood as: while playing the audio stream, rendering the target text content corresponding to the audio stream in the form of subtitles according to the current audio progress to the interface for display, so that the display of the subtitles is synchronized with the playback of the audio stream.
[0051] The solution of this embodiment can be applied to a karaoke session with a live microphone. The live microphone users include a host and at least one guest. The host and at least one guest sing a target song via a live microphone. The live microphone terminal captures the audio of the live microphone user, obtains an audio stream, and sends the audio stream to the viewer terminal for playback. The viewer terminal plays the audio stream while displaying the corresponding subtitles (i.e., the lyrics of the target song). The solution of this embodiment ensures that the audio playback and subtitle display are synchronized.
[0052] The technical solution of the embodiment of the present disclosure obtains the latest baseline audio progress and the audio stream corresponding to the microphone connection end; wherein, the microphone connection end includes a guest end and / or a host end, that is, a guest end and / or a host end participating in the microphone connection; determines the current audio progress of the audio stream based on the local system time and the latest baseline audio progress; plays the audio stream, and renders the target text content corresponding to the audio stream according to the current audio progress. The audio-based text processing method provided by the embodiment of the present disclosure determines the current audio progress of the audio stream based on the local system time and the latest baseline audio progress, so as to render the target text content corresponding to the audio stream according to the current audio progress, thereby ensuring that the display progress of the text is accurately aligned with the playback progress of the audio, and improving the audio-visual effect of the audio.
[0053] FIG4 is a schematic diagram of the structure of an audio-based text processing device provided by an embodiment of the present disclosure. As shown in FIG4 , the device includes:
[0054] The latest baseline audio progress acquisition module 210 is used to obtain the latest baseline audio progress and the audio stream corresponding to the connected microphone end; wherein the connected microphone end includes the guest end and / or the host end.
[0055] The current audio progress determining module 220 is configured to determine the current audio progress of the audio stream based on the local system time and the latest reference audio progress.
[0056] The target text content rendering module 230 is used to play the audio stream and render the target text content corresponding to the audio stream according to the current audio progress.
[0057] Optionally, the current audio progress determination module 220 is further configured to: determine the time interval between the current moment and the moment when the latest benchmark audio progress is received based on the local system time; and determine the current audio progress of the audio stream according to the time interval and the latest benchmark audio progress.
[0058] Optionally, the current audio progress determination module 220 is further used to: obtain a first local system time corresponding to the current moment and a second local system time corresponding to the moment when the latest benchmark audio progress is received; and determine a time interval based on the first local system time and the second local system time.
[0059] Optionally, the current audio progress determining module 220 is further configured to determine the current audio progress of the audio stream based on the time interval and the latest benchmark audio progress.
[0060] Optionally, the target text content rendering module 230 is further used to: obtain a text file corresponding to the audio stream; wherein the text content in the text file carries an audio timestamp; extract the target text content from the text file based on the current audio progress; and render the target text content.
[0061] Optionally, the target text content rendering module 230 is further configured to use the text content in the text file whose audio timestamp matches the current audio progress as the target text content.
[0062] Optionally, the latest baseline audio progress acquisition module 210 is also used to: receive the latest media supplementary information and the audio stream corresponding to the microphone connection end; extract the latest baseline audio progress from the latest media supplementary information, and record the local system time corresponding to when the latest media supplementary information is received.
[0063] Optionally, the latest benchmark audio progress acquisition module 210 is further used to obtain the audio stream corresponding to when the user at the microphone connection end sings the target song.
[0064] Optionally, the target text content rendering module 230 is also used to: while playing the audio stream, render the target text content corresponding to the audio stream in the form of subtitles to the interface for display according to the current audio progress, so that the display of the subtitles is synchronized with the playback of the audio stream.
[0065] The audio-based text processing device provided by the embodiments of the present disclosure can execute the audio-based text processing method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0066] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0067] FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG5 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG5 ) 500 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG5 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0068] As shown in FIG5 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0069] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG5 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0070] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart 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, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0071] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0072] The electronic device provided by the embodiment of the present disclosure and the audio-based text processing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0073] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the audio-based text processing method provided in the above embodiment is implemented.
[0074] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0075] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0076] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0077] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the latest baseline audio progress and the audio stream corresponding to the connected microphone end; wherein the connected microphone end includes the guest end and / or the host end; determines the current audio progress of the audio stream based on the local system time and the latest baseline audio progress; plays the audio stream, and renders the target text content corresponding to the audio stream according to the current audio progress.
[0078] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0079] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0080] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0081] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0082] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. 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, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, 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 of the foregoing.
[0083] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0084] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0085] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A text processing method based on audio, the method being executed by a viewer end, comprising: Obtain the latest benchmark audio progress and the audio stream corresponding to the microphone-connected end; wherein the microphone-connected end includes a guest end and / or a host end; Determine the current audio progress of the audio stream based on the local system time and the latest benchmark audio progress; The audio stream is played, and the target text content corresponding to the audio stream is rendered according to the current audio progress.
2. The method according to claim 1, wherein determining the current audio progress of the audio stream based on the local system time and the latest reference audio progress comprises: Determine, based on the local system time, a time interval between the current time and the time when the latest baseline audio progress is received; The current audio progress of the audio stream is determined according to the time interval and the latest reference audio progress.
3. The method according to claim 2, wherein determining the time interval between the current time and the time when the latest baseline audio progress is received based on the local system time comprises: Obtaining a first local system time corresponding to the current moment and a second local system time corresponding to the moment when the latest reference audio progress is received; A time interval is determined according to the first local system time and the second local system time.
4. The method according to claim 2, wherein determining the current audio progress of the audio stream according to the time interval and the latest reference audio progress comprises: Based on the time interval and the latest reference audio progress, a current audio progress of the audio stream is determined.
5. The method according to claim 1, wherein rendering text content corresponding to the audio stream according to the current audio progress comprises: Obtaining a text file corresponding to the audio stream; wherein the text content in the text file carries an audio timestamp; Extracting target text content from the text file based on the current audio progress; The target text content is rendered.
6. The method according to claim 5, wherein extracting target text content from the text file based on the current audio progress comprises: The text content in the text file whose audio timestamp matches the current audio progress is used as the target text content.
7. The method according to claim 1, wherein obtaining the latest reference audio progress and the audio stream corresponding to the microphone-connected end comprises: Get the latest supplementary media information and the corresponding audio stream of the microphone connection end; The latest reference audio progress is extracted from the latest media supplementary information, and the local system time corresponding to when the latest media supplementary information is received is recorded.
8. The method according to claim 1, wherein obtaining the audio stream corresponding to the microphone-connected end comprises: Get the audio stream corresponding to the target song sung by the user at the microphone end; Accordingly, playing the audio stream and rendering the target text content corresponding to the audio stream according to the current audio progress includes: While playing the audio stream, the target text content corresponding to the audio stream is rendered in the form of subtitles in the interface for display according to the current audio progress, so that the display of the subtitles is synchronized with the playing of the audio stream.
9. An audio-based text processing device, the device being arranged in a viewer terminal, comprising: The latest reference audio progress acquisition module is used to obtain the latest reference audio progress and the audio stream corresponding to the microphone-connected end; wherein the microphone-connected end includes the guest end and / or the host end; A current audio progress determination module, configured to determine the current audio progress of the audio stream based on the local system time and the latest reference audio progress; The target text content rendering module is used to play the audio stream and render the target text content corresponding to the audio stream according to the current audio progress.
10. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the audio-based text processing method as described in any one of claims 1-8.
11. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the audio-based text processing method according to any one of claims 1 to 8 when executed by a computer processor.
12. A computer program product tangibly stored in a computer storage medium and comprising computer executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Audio-based text processing method and device, equipment and storage medium
CN119562114A
Video data decoder and method for decoding video data
CN101933332A
Live streaming service system and realization method
CN102196319A
Caption data pushing method, caption displaying method, device, equipment and medium
CN108600773A
Audio data synchronization method and device
CN110519627A