Audio-based text processing method and device, equipment 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.

CN119562114APending Publication Date: 2025-03-04BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311134444.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

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.

Method used

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.

Benefits of technology

It realizes accurate alignment of the display progress of text and the playback progress of audio, improving the audio-visual effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562114A_ABST
    Figure CN119562114A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an audio-based text processing method and device, equipment and a storage medium. Comprising the following steps: acquiring a latest reference audio progress and an audio stream corresponding to a microphone connecting end; wherein the microphone connecting end comprises a guest end and / or an anchor end; determining a current audio progress of the audio stream based on a local system time and the latest reference audio progress; and playing the audio stream, and rendering target text content corresponding to the audio stream according to the current audio progress. According to the audio-based text processing method provided by the embodiment of the invention, the current audio progress of the audio stream is determined based on the local system time and the latest reference audio progress, and the target text content corresponding to the audio stream is rendered according to the current audio progress, so that the alignment effect of the display progress of the text and the playing progress of the audio is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of live broadcast technology, and in particular to an audio-based text processing method, device, equipment and storage medium. Background Art

[0002] In the live singing scene, the client where the singer is located sends the lyrics or audio progress to the host end, and the host end then forwards the lyrics or audio progress to the audience end. Since the lyrics are limited by the network or streaming system during the sending process, 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 end to accumulate the audio progress, but it still causes the lyrics and audio to be out of sync, and as time goes by, the deviation between the lyrics and the audio will become larger and larger. Summary of the invention

[0003] 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.

[0004] In a first aspect, an embodiment of the present disclosure provides an audio-based text processing method, which is executed by a viewer end; comprising:

[0005] 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;

[0006] Determine the current audio progress of the audio stream based on the local system time and the latest benchmark audio progress;

[0007] The audio stream is played, and the target text content corresponding to the audio stream is rendered according to the current audio progress.

[0008] In a second aspect, the embodiment of the present disclosure further provides an audio-based text processing device, which is disposed in a viewer terminal and includes:

[0009] 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;

[0010] A current audio progress determining module, configured to determine a current audio progress of the audio stream based on a local system time and the latest reference audio progress;

[0011] 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.

[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0013] one or more processors;

[0014] a storage device for storing one or more programs,

[0015] 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.

[0016] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the audio-based text processing method as described in the embodiments of the present disclosure.

[0017] The disclosed embodiments 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 microphone-connected end; wherein the microphone-connected end includes a guest end and / or a host end; the current audio progress of the audio stream is determined based on the local system time and the latest baseline 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. The audio-based text processing method provided by the disclosed embodiments 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. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0019] Figure 1 It is a flowchart of an audio-based text processing method provided by an embodiment of the present disclosure;

[0020] Figure 2 is an example diagram of a live broadcast scenario provided by an embodiment of the present disclosure;

[0021] Figure 3 is an example diagram for determining the current audio progress provided by an embodiment of the present disclosure;

[0022] Figure 4 is a structural schematic diagram of an audio-based text processing device provided by an embodiment of the present disclosure;

[0023] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below 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 being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] 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.

[0026] The term "including" and its variations used herein are open inclusions, 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"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present 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.

[0028] It should be noted that the modifications of "one" and "plurality" 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, it should be understood as "one or more".

[0029] 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.

[0030] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present 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.

[0031] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0032] As an optional but non-limiting implementation, in response to receiving an active request from the user, 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. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0033] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0034] 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) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0035] Figure 1 A flow chart of an audio-based text processing method provided in an 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, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0036] like Figure 1 As shown, the method includes:

[0037] S110, obtaining the latest reference audio progress and the audio stream corresponding to the microphone-connected end.

[0038] The microphone connection end includes the guest end and / or the host end. The audio stream can be obtained by the client where the singer (host and / or guest) collects the singer's voice and merges it with the background music. For example, Figure 2 is an example diagram of a live broadcast scenario in an embodiment of the present disclosure, such as Figure 2As shown, the guest end collects the audio of the guest singing and sends the collected audio stream to the host end. The host end sends the audio stream to the server end, which is then forwarded to the audience end. If the singer is the host, the host end directly sends the audio stream to the server end, which is then forwarded to the audience end. The client where the singer is located sends the audio progress once every set time while sending the audio stream, and the host 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.

[0039] The audio progress can be understood as the progress of the audio playback, which can be represented by a timestamp or a percentage. For example, assuming that the audio has a total duration of 2 minutes, if the current playback reaches 1 minute and 20 seconds, the audio progress is 1 minute and 20 seconds. The latest reference audio progress can be the latest audio progress received by the viewer, and the audio progress of the viewer at each moment is determined based on the latest audio progress received, that is, the latest audio progress is used as the latest reference audio progress.

[0040] Optionally, the method for obtaining the latest baseline audio progress and the audio stream corresponding to the microphone connected end can be: obtaining the latest media supplementary information and the audio stream corresponding to the microphone connected 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.

[0041] Among them, the latest media supplementary information can be understood as the media supplementary enhancement information (SEI) recently received by the audience end. The local system time can be obtained by measuring the local clock of the audience end. In this embodiment, the audio progress is sent to the audience end in the form of SEI information, and the audience end extracts the audio progress from the SEI information as the latest benchmark audio progress. When the audience end receives the latest media supplementary information, the local system time at this time is obtained and the local system time is recorded.

[0042] S120: Determine a current audio progress of the audio stream based on the local system time and the latest benchmark audio progress.

[0043] The local system time may be obtained by measuring a local clock at the viewer end.

[0044] 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 according to the time interval and the latest benchmark audio progress.

[0045] The time interval between the current moment and the moment when the latest benchmark audio progress is received may 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.

[0046] 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.

[0047] The method of determining the time interval according to the first local system time and the second local system time may be: subtracting the second local system time from the first local system time to obtain the time interval between the current moment and the moment when the latest benchmark audio progress is received. Exemplarily, assuming that the first local system time is T1 and the second local system time is T2, the time interval between the current moment and the moment when the latest benchmark audio progress is received is ΔT=T1-T2.

[0048] Specifically, the manner of determining the current audio progress of the audio stream according to the time interval and the latest reference audio progress may be: determining the current audio progress of the audio stream based on the time interval and the latest reference audio progress.

[0049] Specifically, the time interval and the latest reference 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 reference 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 To determine the current audio progress, Figure 2 As shown, 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, t1 is the latest benchmark audio progress, and the audio progress corresponding to the current moment is t2=t1+(T1-T2).

[0050] S130, playing the audio stream, and rendering the target text content corresponding to the audio stream according to the current audio progress.

[0051] In this embodiment, the audience receives the audio stream sent by the anchor 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, the corresponding target text content needs to be displayed according to the audio progress.

[0052] 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.

[0053] 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, which can be expressed in the following form: "character: start timestamp, duration". If the audio stream is the audio corresponding to the song, the text file is the lyrics text file corresponding to the song. The text file corresponding to the audio stream can be sent in advance by the host end to the audience end, or the audience end can obtain it from a preset data source according to the audio stream representation.

[0054] Specifically, the method of extracting the target text content from the text file based on the current audio progress may be: taking the text content in the text file whose audio timestamp matches the current audio progress as the target text content.

[0055] 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 text segment and / or the next text segment 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.

[0056] Optionally, obtaining the audio stream corresponding to the microphone-connected end can be understood as: obtaining the audio stream corresponding to the target song when the user on the microphone-connected 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.

[0057] The solution of this embodiment can be applied to a karaoke scene with microphones connected, where the connected users include the host and at least one guest. The host and at least one guest sing the target song through the microphone connection. The microphone connection end collects the audio of the connected user, obtains an audio stream, and sends the audio stream to the audience end for playback. The audience end displays the subtitles corresponding to the audio stream (i.e., the lyrics of the target song) while playing the audio stream. The solution of this embodiment can ensure that the playback of the audio and the display of the subtitles are synchronized.

[0058] The technical solution of the disclosed embodiment obtains the latest baseline 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, 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 disclosed embodiment 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.

[0059] Figure 4 A schematic diagram of the structure of an audio-based text processing device provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the device comprises:

[0060] The latest reference audio progress acquisition module 210 is used to acquire 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;

[0061] A current audio progress determination module 220, configured to determine a current audio progress of an audio stream based on a local system time and a latest reference audio progress;

[0062] 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.

[0063] Optionally, the current audio progress determination module 220 is further configured to:

[0064] 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;

[0065] Determines the current audio progress of an audio stream based on a time interval and a most recent baseline audio progress.

[0066] Optionally, the current audio progress determination module 220 is further configured to:

[0067] 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;

[0068] The time interval is determined based on the first local system time and the second local system time.

[0069] Optionally, the current audio progress determination module 220 is further configured to:

[0070] Based on the time interval and the latest reference audio progress, a current audio progress of the audio stream is determined.

[0071] Optionally, the target text content rendering module 230 is further used for:

[0072] Obtain a text file corresponding to the audio stream; wherein the text content in the text file carries an audio timestamp;

[0073] Extract target text content from a text file based on current audio progress;

[0074] Render the target text content.

[0075] Optionally, the target text content rendering module 230 is further used for:

[0076] The text content whose audio timestamp in the text file matches the current audio progress is taken as the target text content.

[0077] Optionally, the latest benchmark audio progress acquisition module 210 is further used to:

[0078] Receive the latest media supplementary information and the corresponding audio stream of the microphone connection end;

[0079] 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.

[0080] Optionally, the latest benchmark audio progress acquisition module 210 is further used to:

[0081] Get the audio stream corresponding to the target song sung by the user at the microphone end;

[0082] Optionally, the target text content rendering module 230 is further used for:

[0083] 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.

[0084] The audio-based text processing device provided in the embodiments of the present disclosure can execute the audio-based text processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0085] 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.

[0086] Figure 5 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 , which shows an electronic device (eg, Figure 5 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook 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. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0087] like Figure 5 As shown, 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. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. 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.

[0088] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, 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 Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0089] 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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a 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 executed.

[0090] 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.

[0091] 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. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0092] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the audio-based text processing method provided in the above embodiments is implemented.

[0093] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.

[0094] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may 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 future developed network.

[0095] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0096] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0097] 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 microphone-connected end; wherein the microphone-connected 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.

[0098] 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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).

[0099] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0100] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0101] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0102] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may 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.

[0103] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0104] 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 are 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.

[0105] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A text processing method based on audio, characterized in that: The method is executed by the audience end, and includes: 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, characterized in that Determining the current audio progress of the audio stream based on the local system time and the latest reference audio progress includes: 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, characterized in that Determining the time interval between the current time and the time when the latest reference audio progress is received based on the local system time includes: 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, characterized in that: Determining a current audio progress of the audio stream according to the time interval and the latest reference audio progress includes: Based on the time interval and the latest benchmark audio progress, a current audio progress of the audio stream is determined.

5. The method according to claim 1, characterized in that: Rendering text content corresponding to the audio stream according to the current audio progress includes: 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, characterized in that Extracting target text content from the text file based on the current audio progress includes: 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, characterized in that Get the latest baseline audio progress and the corresponding audio stream of the microphone connection end, including: 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, characterized in that Get the audio stream corresponding to the microphone connection end, including: 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, characterized in that: The device is arranged in the viewer end, and includes: 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, characterized in that: The electronic device comprises: 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.

Citation Information

Cited By

  • Audio-based text processing method and apparatus, and device and storage medium

    EP4776633A1

  • Audio-based text processing method and apparatus, and device and storage medium

    WO2025051099A1