CN109543064B - Lyric display processing method and device, electronic equipment and computer storage medium - Google Patents

Lyric display processing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN109543064B
CN109543064B CN201811457975.1A CN201811457975A CN109543064B CN 109543064 B CN109543064 B CN 109543064B CN 201811457975 A CN201811457975 A CN 201811457975A CN 109543064 B CN109543064 B CN 109543064B
Authority
CN
China
Prior art keywords
lyric
information
song
target
lyrics
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811457975.1A
Other languages
Chinese (zh)
Other versions
CN109543064A (en
Inventor
刘德平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811457975.1A priority Critical patent/CN109543064B/en
Priority to PCT/CN2018/125416 priority patent/WO2020107626A1/en
Publication of CN109543064A publication Critical patent/CN109543064A/en
Application granted granted Critical
Publication of CN109543064B publication Critical patent/CN109543064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of audio processing, and discloses a lyric display processing method, a device, electronic equipment and a computer readable storage medium, wherein the lyric display processing method comprises the following steps: acquiring song information and original lyric information of a song to be played; analyzing the original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main body part; and then when the song information is detected to be played, synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information. According to the method, when the song information is played, the corresponding lyrics can be synchronously displayed in a more diversified and personalized manner according to the playing progress of the current song, the lyrics can be accurately displayed in a dyeing manner with corresponding colors one by one according to the playing progress of the song, and the user experience is greatly improved.

Description

Lyric display processing method and device, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of audio processing technologies, and in particular, to a method and an apparatus for processing lyric display, an electronic device, and a computer storage medium.
Background
In recent years, with the development of the scientific and technical level and the economy, people have higher and higher requirements on mental life. Music has been enjoyed by people all over the world as a representative of multimedia technology. Traditional music comes from computers, MP3 players and the like, and with the popularization of intelligent terminals, more and more people tend to play music through the intelligent terminals.
In order to provide a more optimized service, while playing a song, lyrics of the played song are also displayed, and the lyric display mode supported by the current lyric format is only to simply display all the lyrics of the song to be played, the inventor of the present application finds that: the lyric display mode supported by the lyric format is too single, so that corresponding lyrics cannot be synchronously displayed more diversely according to the playing progress of the current song, and poor user experience is caused.
Disclosure of Invention
The purpose of the present application is to solve at least one of the above technical drawbacks, and to provide the following solutions:
in an original aspect, a lyric display processing method is provided, including:
acquiring song information and original lyric information of a song to be played;
analyzing original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main body part;
and when the song information is detected to be played, synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information.
Specifically, the identification information part comprises identification display information and identification parameters;
the identification display information includes at least one of: song name, song singer or song singing combination, song uploading author and song length;
the identification parameters include at least one of: song identification, song hash value, lyric delay value and total lyric line number;
the lyric main body part comprises lyrics and lyric parameters;
the lyric parameters include at least one of: singer identification of each lyric, starting time and duration of each word in each lyric, and display color of each lyric.
Further, before playing the song information, the method further comprises the following steps:
calculating a first hash value of the song information according to a preset hash algorithm;
detecting whether the first hash value is the same as the song hash value;
if the song information is the same, the song information is allowed to be played.
Further, analyzing the original lyric information based on a preset lyric format, comprising:
determining a corresponding regular expression according to a preset lyric format;
and analyzing the original lyric information according to the regular expression to obtain target lyric information comprising an identification information part and a lyric main body.
Further, when the song information is detected to be played, the step of synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information comprises the following steps:
and when the playing instruction of the song information is detected, displaying the identification display information and the lyrics.
Further, when the song information is detected to be played, the step of synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information comprises the following steps:
determining a display mode of target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyric parameters;
and displaying the target lyrics according to the display mode.
Further, according to the display mode, the target lyrics are displayed, and the display mode comprises at least one of the following items:
displaying the singer identification of the target lyric;
and dynamically adjusting the display color of each character in the displayed target lyrics according to the display color of the target lyrics and the starting time and the duration time of each character in the target lyrics.
In an object aspect, there is provided a lyric display processing apparatus including:
the acquisition module is used for acquiring song information and original lyric information of a song to be played;
the analysis module is used for analyzing the original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, and the preset lyric format comprises an identification information part and a lyric main part;
and the display module is used for synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information when the song information is detected to be played.
Specifically, the target lyric information conforming to the preset lyric format comprises an identification information part and a lyric main part;
the identification information part comprises identification display information and identification parameters;
the identification display information includes at least one of: song name, song singer or song singing combination, song uploading author and song length;
the identification parameters include at least one of: song identification, song hash value, lyric delay value and total lyric line number;
the lyric main body part comprises lyrics and lyric parameters;
the lyric parameters include at least one of: singer identification of each lyric, starting time and duration of each word in each lyric, and display color of each lyric.
Furthermore, the device also comprises a calculation module and a detection module;
the calculating module is used for calculating a first hash value of the song information according to a preset hash algorithm;
and the detection module is used for detecting whether the first hash value is the same as the song hash value or not, and if so, allowing the song information to be played.
Further, the analysis module comprises a first determination submodule and an analysis submodule;
the first determining submodule is used for determining a corresponding regular expression according to a preset lyric format;
and the analysis submodule is used for analyzing the original lyric information according to the regular expression so as to obtain target lyric information comprising an identification information part and a lyric main body.
Further, the display module is specifically configured to display the identification display information and the lyrics when a play instruction of the song information is detected.
Further, the display module comprises a second determination submodule and a display submodule;
the second determining submodule is used for determining a display mode of target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyric parameters;
and the display sub-module is used for displaying the target lyrics according to the display mode.
Further, the display sub-module is specifically configured to display the singer identifier of the target lyric; and/or, the display color of each word in the target lyrics is dynamically adjusted and displayed according to the display color of the target lyrics and the starting time and the duration of each word in the target lyrics.
In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the lyric display processing method is implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the lyric display processing method described above.
The lyric display processing method provided by the embodiment of the application acquires the song information and the original lyric information of the song to be played, and lays a foundation for subsequently adjusting the lyric information of the played song; analyzing original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main part, so that the obtained original lyric information is adjusted according to the preset lyric format to obtain the target lyric information which can better meet the diversified requirements of users, and a precondition guarantee is provided for the display of subsequent lyrics; when the song information is detected to be played, the target lyric information corresponding to the current playing time is synchronously displayed according to the current playing time of the song information, so that the corresponding lyrics can be synchronously displayed in a more diversified and personalized manner according to the playing progress of the current song while the song information is played, the lyrics can be accurately displayed in a corresponding color-dyed manner word by word according to the playing progress of the song, and the user experience is greatly improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart illustrating a lyric display processing method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a predetermined lyric format according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a basic structure of a lyric display processing device according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a detailed structure of a lyric display processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
An embodiment of the present application provides a lyric display processing method, as shown in fig. 1, including:
step S110, obtaining the song information and the original lyric information of the song to be played.
Specifically, a user may play music through various clients, wherein during the playing of a certain music (e.g., a track a) through a client, particularly during the first playing, the relevant information of the track a needs to be downloaded and cached from a corresponding server through the client, and when the music is not played for the first time, the relevant information of the track a is already cached in the client, and at this time, the relevant information of the track a may be obtained from the cache data of the client, where the relevant information of the track a includes a music score (i.e., the above-mentioned song information), lyrics (i.e., the above-mentioned original lyric information), and the like, that is, the song information of the track to be played and the original lyric information are obtained.
And step S120, analyzing the original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main body part.
Specifically, after the original lyric information of the song to be played is acquired, the original lyric information can be analyzed based on the preset lyric format to obtain target lyric information conforming to the preset lyric format, so that the acquired original lyric information is adjusted according to the preset lyric format to obtain the target lyric information which can better meet the diversified requirements of the user, and a precondition guarantee is provided for the display of the subsequent lyrics.
Step S130, when the song information is detected to be played, the target lyric information corresponding to the current playing time is synchronously displayed according to the current playing time of the song information.
Specifically, when the user needs to play the song, the user can play the song through triggering the start touch key of the song, wherein when playing the song, the song information of the song is actually played, namely the client plays the song information, so that the client can detect the playing of the song information, and when the playing of the song information is detected, the target lyric information corresponding to the current playing time can be synchronously displayed according to the current playing time of the song information, so that when the song information is played, the corresponding lyrics can be accurately displayed in a word-by-word manner according to the playing progress of the song, the synchronization accuracy of the song and the lyrics is improved, and the user experience is greatly improved.
Compared with the prior art, the lyric display processing method provided by the embodiment of the application acquires the song information and the original lyric information of the song to be played, and lays a foundation for subsequently adjusting the lyric information of the played song; analyzing original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main part, so that the obtained original lyric information is adjusted according to the preset lyric format to obtain the target lyric information which can better meet the diversified requirements of users, and a precondition guarantee is provided for the display of subsequent lyrics; when the song information is detected to be played, the target lyric information corresponding to the current playing time is synchronously displayed according to the current playing time of the song information, so that the corresponding lyrics can be synchronously displayed in a more diversified and personalized manner according to the playing progress of the current song while the song information is played, the lyrics can be accurately displayed in a corresponding color-dyed manner word by word according to the playing progress of the song, and the user experience is greatly improved.
The embodiments of the present application provide another possible implementation manner, wherein,
the identification information part comprises identification display information and identification parameters;
the identification display information includes at least one of: song name, song singer or song singing combination, song uploading author and song length;
the identification parameters include at least one of: song identification, song hash value, lyric delay value and total lyric line number;
the lyric main body part comprises lyrics and lyric parameters;
the lyric parameters include at least one of: singer identification of each lyric, starting time and duration of each word in each lyric, and display color of each lyric.
Specifically, the target lyric information conforming to the preset lyric format may be divided into an identification information part and a lyric main part, wherein the identification information part may be further divided into identification display information and identification parameters, and the identification display information is information that can be synchronously displayed in the process of playing the song information (i.e., a music score), such as displaying information of a song name, a song singer or a song singing combination, an uploading author of the song, a song length, and the like while playing the song information; the identification parameter is information that is not displayed synchronously when the song is played, but some characteristic parameters carried by the song itself, such as song identification, song hash value, lyric delay value, total number of lyrics, and the like.
Further, the lyric main body part can also be divided into two parts: the lyrics are words correspondingly displayed in the song information playing process, the lyric parameters are used for adjusting the display mode and the display color of the lyrics in the song information playing process and are also used for assisting the accurate synchronization of the song information and the lyrics, and the lyric parameters include but are not limited to singer identification of each lyric, the starting time and the duration of each word in each lyric and the display color of each lyric.
Further, as can be seen from the above description, the preset lyric format actually includes two parts, i.e., an identification information part and a lyric main part, the identification display information part includes a song name, a song singer or a song singing combination, an uploading author of a song, a song length, a song identification, a song hash value, a lyric delay value, a lyric total number of lines, and the like, the lyric main part includes lyrics, a singer identification of each lyric, a start time and a duration of each word in each lyric, a display color of each lyric, and the like, wherein the preset lyric format is as shown in fig. 2.
Wherein "W" in the main body part of the lyric in fig. 2 is the singer identifier of the lyric, and represents female voice, and here, the singer name can also be directly used as the singer identifier, and "M" can also be used for male voice, and "C" can also be used for chorus; 2000 represents the starting time of the lyrics of the current sentence, 500 represents the duration of the lyrics of the current sentence, 2000 preceding the word "cang" represents the starting time of the word "cang" in the lyrics of the current sentence, 100 preceding the word "cang" represents the duration of the word "cang" in the lyrics of the current sentence, 2100 preceding the word "cang" represents the starting time of the word "cang" in the lyrics of the current sentence, 100 preceding the word "cang" represents the duration of the word "RGB" in the lyrics of the current sentence, the last word "RGB" of the lyrics of the current sentence represents the display color of the lyrics of the current sentence, which can be omitted, if the omission represents that the display color of the lyrics of the current sentence is the same as the display color of the lyrics of the previous sentence.
For the implementation mode, the original lyric information is analyzed based on the preset lyric format to obtain the target lyric information conforming to the preset lyric format, so that the song information can be played while the synchronization of the song playing progress and the lyric dyeing progress is greatly improved according to the progress of the song and the duration of each word, the display color of each lyric can be dynamically adjusted, in addition, the identification information of a song singer or a song singing combination can be correspondingly displayed in front of each lyric individually, the diversified requirements of users are greatly met, and the user experience is improved.
The embodiments of the present application provide another possible implementation manner, wherein,
step S121 (not shown), step S122 (not shown) are further included before step S130,
step S121: calculating a first hash value of the song information according to a preset hash algorithm;
step S122: and detecting whether the first hash value is the same as the song hash value, and if so, allowing the song information to be played.
Specifically, analyzing the original lyric information based on a preset lyric format includes:
determining a corresponding regular expression according to a preset lyric format;
and analyzing the original lyric information according to the regular expression to obtain target lyric information comprising an identification information part and a lyric main body.
Further, when the song information is detected to be played, the step of synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information comprises the following steps:
and when the playing instruction of the song information is detected, displaying the identification display information and the lyrics.
Further, when the song information is detected to be played, the step of synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information comprises the following steps:
determining a display mode of target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyric parameters;
and displaying the target lyrics according to the display mode.
Further, according to the display mode, the target lyrics are displayed, and the display mode comprises at least one of the following items:
displaying the singer identification of the target lyric;
and dynamically adjusting the display color of each character in the displayed target lyrics according to the display color of the target lyrics and the starting time and the duration time of each character in the target lyrics.
The following describes the lyric display processing method in this implementation in detail as follows:
specifically, after the song information of the song to be played is acquired, a first hash value of the acquired song information is calculated according to a preset hash algorithm, whether the first hash value is the same as a song hash value obtained by analyzing the original lyric information based on a preset lyric format is detected, if the first hash value is the same as the song hash value obtained by analyzing the original lyric information based on the preset lyric format, the fact that the complete song information of the song to be played is acquired is indicated, the song information can be played, if the first hash value is not the same as the song hash value obtained by analyzing the original lyric information based on the preset lyric format is indicated, the fact that the song information of the acquired song to be played is incomplete is indicated, the song information cannot be.
Further, in the process of analyzing the original lyric information based on the preset lyric format, a matching model can be generated according to a corresponding regular expression, the original lyric information is analyzed through the matching model, namely, from the original sentence of the obtained original lyric information, when the song identification is analyzed, the analyzed song identification is assigned to the song identification in the preset lyric format, when the song name is analyzed, the analyzed song name is assigned to the song name in the preset lyric format, according to the logic of the analysis and assignment, the original lyric information is analyzed until the analysis of all the original lyric information is completed, so that the target lyric information conforming to the preset lyric format is obtained, and the name, the singer or the singing combination of the song to be played, and the uploaded lyric of the song to be played, Song length, song identification, song hash value, lyric delay value, total line number of lyrics, singer identification of each lyric, starting time and duration of each word in each lyric, display color of each lyric and the like.
Further, when the user plays the song information of the song by triggering the start touch button of the song, that is, the client detects the playing instruction of the song information, the target lyric information conforming to the preset lyric format is displayed, that is, the identification display information and the lyrics are displayed, in other words, once the playing instruction of the song information is detected, the identification display information and the lyrics, such as the corresponding song name, the song singer or the song singing combination, the uploading author of the song, the song length and the like, are displayed immediately.
Further, when the user plays the song information of the song by triggering the "start" touch key of the song, the display mode of the target lyric corresponding to the current playing time may be determined according to the current playing time of the song information and lyric artist identification of each lyric, the starting time and duration of each word in each lyric, the display color of each lyric, and other lyric parameters, and the target lyric may be displayed according to the display mode, for example, artist identification (such as W, M, C, etc.) of the target lyric, display color (such as red, blue, green, etc.) of each word in the target lyric may be dynamically adjusted according to the display color of the target lyric and the starting time and duration of each word in the target lyric, and the like.
For the implementation mode, on one hand, the completeness of the acquired song information of the song to be played is ensured, on the other hand, the corresponding lyrics can be dyed word by word according to the playing progress of the song information, the display color of each sentence of lyrics can be dynamically adjusted, and the user experience is greatly improved.
Example two
Fig. 3 is a schematic structural diagram of a lyric display processing apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus 30 may include an obtaining module 31, an analyzing module 32, and a display module 33, wherein,
the obtaining module 31 is configured to obtain song information and original lyric information of a song to be played;
the analysis module 32 is configured to analyze the original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, where the preset lyric format includes an identification information part and a lyric main part;
the display module 33 is configured to synchronously display the target lyric information corresponding to the current playing time according to the current playing time of the song information when the song information is detected to be played.
Specifically, the identification information part comprises identification display information and identification parameters;
the identification display information includes at least one of: song name, song singer or song singing combination, song uploading author and song length;
the identification parameters include at least one of: song identification, song hash value, lyric delay value and total lyric line number;
the lyric main body part comprises lyrics and lyric parameters;
the lyric parameters include at least one of: singer identification of each lyric, starting time and duration of each word in each lyric, and display color of each lyric.
Further, the apparatus further comprises a calculation module 34 and a detection module 35, as shown in fig. 4, wherein,
the calculating module 34 is configured to calculate a first hash value of the song information according to a predetermined hash algorithm;
the detection module 35 is configured to detect whether the first hash value is the same as the song hash value, and if so, allow the song information to be played.
Further, the parsing module 32 includes a first determining submodule 321 and a parsing submodule 322, as shown in fig. 4, wherein,
the first determining sub-module 321 is configured to determine a corresponding regular expression according to a preset lyric format;
the parsing sub-module 322 is used for parsing the original lyric information according to the regular expression to obtain target lyric information including an identification information portion and a lyric main body.
Further, the display module 33 is specifically configured to display the identification display information and the lyrics when the playing instruction of the song information is detected.
Further, the display module 33 includes a second determination sub-module 331 and a display sub-module 332, as shown in fig. 4, wherein,
the second determining sub-module 331 is configured to determine a display mode of a target lyric corresponding to a current playing time according to the current playing time of the song information and the lyric parameter;
the display sub-module 332 is configured to display the target lyric according to the display mode.
Further, the display sub-module 332 is specifically configured to display the singer identifier of the target lyric; and/or, the display color of each word in the target lyrics is dynamically adjusted and displayed according to the display color of the target lyrics and the starting time and the duration of each word in the target lyrics.
Compared with the prior art, the device provided by the embodiment of the application acquires the song information and the original lyric information of the song to be played, and lays a foundation for subsequently adjusting the lyric information of the played song; analyzing original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main part, so that the obtained original lyric information is adjusted according to the preset lyric format to obtain the target lyric information which can better meet the diversified requirements of users, and a precondition guarantee is provided for the display of subsequent lyrics; when the song information is detected to be played, the target lyric information corresponding to the current playing time is synchronously displayed according to the current playing time of the song information, so that the corresponding lyrics can be synchronously displayed in a more diversified and personalized manner according to the playing progress of the current song while the song information is played, the lyrics can be accurately displayed in a corresponding color-dyed manner word by word according to the playing progress of the song, and the user experience is greatly improved.
EXAMPLE III
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present application may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present application when executed by the processing device 501.
It should be noted that the computer readable medium mentioned above in the present application 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 electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring song information and original lyric information of a song to be played; analyzing the original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main body part; and then when the song information is detected to be played, synchronously displaying the target lyric information corresponding to the current playing time according to the current playing time of the song information.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
The computer-readable storage medium provided by the embodiment of the application is suitable for any embodiment of the method. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (7)

1. A lyric display processing method is characterized by comprising the following steps:
acquiring song information and original lyric information of a song to be played;
analyzing the original lyric information based on a preset lyric format to obtain target lyric information conforming to the preset lyric format, wherein the preset lyric format comprises an identification information part and a lyric main part, the identification information part comprises identification parameters, the identification parameters are asynchronously displayed when the song information is played and are characteristic parameters carried by the song information, the identification parameters comprise song identification, a song hash value and a lyric total line number, the lyric main part comprises lyric parameters, and the lyric parameters are used for adjusting the display mode and the display color of the lyrics in the information playing process and coordinating the synchronization of the song information and the lyrics;
when the song information is detected to be played, synchronously displaying target lyric information corresponding to the current playing time according to the current playing time of the song information;
analyzing the original lyric information based on a preset lyric format, wherein the analyzing comprises the following steps:
generating a corresponding matching model according to a preset regular expression based on the preset lyric format;
analyzing the original lyric information through the matching model to obtain target lyric information comprising an identification information part and a lyric main part;
before playing the song information, the method further comprises the following steps:
calculating a first hash value of the song information according to a preset hash algorithm;
detecting whether the first hash value is the same as the song hash value or not to carry out integrity check on song information of the song to be played;
if the verification is passed, the song information is allowed to be played;
when the song information is detected to be played, synchronously displaying target lyric information corresponding to the current playing time according to the current playing time of the song information, wherein the target lyric information comprises the following steps:
determining a display mode of target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyric parameters;
displaying the target lyrics according to the display mode;
the displaying the target lyrics according to the display mode comprises the following steps:
and judging whether the sentence in which the target lyrics are located has RGB information, if so, displaying the display color of the target lyrics according to the RGB information, and if not, displaying the display color of the target lyrics according to the display color of the lyrics of the previous sentence.
2. The method of claim 1, wherein the identification information portion further comprises identification display information;
the identification display information includes at least one of: song name, song singer or song singing combination, song uploading author and song length;
the lyric main body part also comprises lyrics;
the lyric parameters include at least one of: singer identification of each lyric, starting time and duration of each word in each lyric, and display color of each lyric.
3. The method of claim 2, wherein when the song information is detected to be played, synchronously displaying target lyric information corresponding to a current playing time according to the current playing time of the song information, comprises:
and when a playing instruction of the song information is detected, displaying the identification display information and the lyrics.
4. The method of claim 1, wherein the displaying the target lyrics according to the display mode comprises at least one of:
displaying the singer identification of the target lyric;
and dynamically adjusting the display color of each character in the displayed target lyrics according to the display color of the target lyrics and the starting time and the duration time of each character in the target lyrics.
5. A lyric display processing apparatus characterized by comprising:
the acquisition module is used for acquiring song information and original lyric information of a song to be played;
the lyric display module is used for displaying lyric information of the original lyric information in a lyric display mode, displaying the lyric information in a lyric display mode, and displaying the lyric information in a lyric display mode;
the display module is used for synchronously displaying target lyric information corresponding to the current playing time according to the current playing time of the song information when the song information is detected to be played;
the parsing module is specifically configured to, when parsing the original lyric information based on a preset lyric format:
generating a corresponding matching model according to a preset regular expression based on the preset lyric format;
analyzing the original lyric information through the matching model to obtain target lyric information comprising an identification information part and a lyric main body;
the calculating module is used for calculating a first hash value of the song information according to a preset hash algorithm;
the detection module is used for detecting whether the first hash value is the same as the song hash value or not so as to carry out integrity check on the song information of the song to be played, and when the check is passed, the song information is allowed to be played;
the display module includes:
the second determining submodule is used for determining a display mode of target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyric parameters;
the display sub-module is used for displaying the target lyrics according to the display mode;
the display submodule is specifically used for judging whether the sentence where the target lyrics are located has RGB information, if so, displaying the display color of the target lyrics according to the RGB information, and if not, displaying the display color of the target lyrics according to the display color of the lyrics of the previous sentence.
6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the lyric display processing method of any one of claims 1 to 4 when executing the program.
7. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which when executed by a processor implements the lyric display processing method of any one of claims 1 to 4.
CN201811457975.1A 2018-11-30 2018-11-30 Lyric display processing method and device, electronic equipment and computer storage medium Active CN109543064B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811457975.1A CN109543064B (en) 2018-11-30 2018-11-30 Lyric display processing method and device, electronic equipment and computer storage medium
PCT/CN2018/125416 WO2020107626A1 (en) 2018-11-30 2018-12-29 Lyrics display processing method and apparatus, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457975.1A CN109543064B (en) 2018-11-30 2018-11-30 Lyric display processing method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN109543064A CN109543064A (en) 2019-03-29
CN109543064B true CN109543064B (en) 2020-12-18

Family

ID=65851894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457975.1A Active CN109543064B (en) 2018-11-30 2018-11-30 Lyric display processing method and device, electronic equipment and computer storage medium

Country Status (2)

Country Link
CN (1) CN109543064B (en)
WO (1) WO2020107626A1 (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087122A (en) * 2019-05-06 2019-08-02 北京字节跳动网络技术有限公司 For handling system, the method and apparatus of information
CN110232135B (en) * 2019-06-13 2023-08-11 广州酷狗计算机科技有限公司 Song playing method and device, terminal and storage medium
CN111107383B (en) * 2019-12-03 2023-02-17 广州方硅信息技术有限公司 Video processing method, device, equipment and storage medium
CN111309964A (en) * 2020-01-20 2020-06-19 福建凯米网络科技有限公司 Method, device and medium for replacing lyrics in real time
CN111339350B (en) * 2020-03-27 2023-11-28 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and device, storage medium and electronic equipment
CN111859014A (en) * 2020-06-29 2020-10-30 维沃移动通信有限公司 Data labeling method and device
CN112037741A (en) * 2020-08-27 2020-12-04 深圳创维-Rgb电子有限公司 Karaoke method, device, equipment and storage medium
CN112347298A (en) * 2020-11-13 2021-02-09 广州酷狗计算机科技有限公司 Character information display method, device, terminal and storage medium
CN112380378B (en) * 2020-11-17 2022-09-02 北京字跳网络技术有限公司 Lyric special effect display method and device, electronic equipment and computer readable medium
CN112423107B (en) * 2020-11-18 2022-05-17 北京字跳网络技术有限公司 Lyric video display method and device, electronic equipment and computer readable medium
CN112184861B (en) * 2020-12-01 2021-07-30 成都极米科技股份有限公司 Lyric editing and displaying method and device and storage medium
CN112699269A (en) * 2020-12-30 2021-04-23 北京达佳互联信息技术有限公司 Lyric display method, device, electronic equipment and computer readable storage medium
CN112866224B (en) * 2021-01-12 2022-10-14 广州橙行智动汽车科技有限公司 Data processing method and device
CN114296669A (en) * 2021-03-11 2022-04-08 海信视像科技股份有限公司 Display device
CN114339081A (en) * 2021-12-22 2022-04-12 腾讯音乐娱乐科技(深圳)有限公司 Subtitle generating method, electronic equipment and computer readable storage medium
CN115167966A (en) * 2022-07-19 2022-10-11 北京字跳网络技术有限公司 Information prompting method, device, equipment, medium and product based on lyrics
WO2024084049A2 (en) 2022-10-20 2024-04-25 Cysbio Aps Genetically modified host cells producing l-serine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984490A (en) * 2010-11-23 2011-03-09 亿览在线网络技术(北京)有限公司 Word-for-word synchronous lyric file generating method and system thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071422B (en) * 2006-06-15 2010-10-13 腾讯科技(深圳)有限公司 Music file search processing system and method
CN101127210A (en) * 2007-09-20 2008-02-20 Ut斯达康通讯有限公司 Method and device for implementing lyric synchronization when broadcasting song
CN101206900B (en) * 2007-11-23 2010-06-09 深圳市同洲电子股份有限公司 Method and system for displaying lyric
CN102013265A (en) * 2010-08-19 2011-04-13 上海酷吧信息技术有限公司 Device and method for parsing lyrics and synchronously playing lyrics and song
US20140074663A1 (en) * 2012-09-09 2014-03-13 Apple Inc. Integrating purchase history and metadata across devices
CN103137167B (en) * 2013-01-21 2016-04-20 青岛海信宽带多媒体技术有限公司 Play method and the music player of music
CN104267903B (en) * 2014-09-24 2017-09-12 广州酷狗计算机科技有限公司 Multimedia lyrics information display methods and device
US9305530B1 (en) * 2014-09-30 2016-04-05 Amazon Technologies, Inc. Text synchronization with audio

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984490A (en) * 2010-11-23 2011-03-09 亿览在线网络技术(北京)有限公司 Word-for-word synchronous lyric file generating method and system thereof

Also Published As

Publication number Publication date
WO2020107626A1 (en) 2020-06-04
CN109543064A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109543064B (en) Lyric display processing method and device, electronic equipment and computer storage medium
CN110503961B (en) Audio recognition method and device, storage medium and electronic equipment
WO2020113733A1 (en) Animation generation method and apparatus, electronic device, and computer-readable storage medium
CN112153460B (en) Video dubbing method and device, electronic equipment and storage medium
KR20220103110A (en) Video generating apparatus and method, electronic device, and computer readable medium
CN111309962B (en) Method and device for extracting audio clips and electronic equipment
US11511200B2 (en) Game playing method and system based on a multimedia file
CN111798821B (en) Sound conversion method, device, readable storage medium and electronic equipment
CN111292717B (en) Speech synthesis method, speech synthesis device, storage medium and electronic equipment
CN109600559B (en) Video special effect adding method and device, terminal equipment and storage medium
CN113257218B (en) Speech synthesis method, device, electronic equipment and storage medium
WO2021057740A1 (en) Video generation method and apparatus, electronic device, and computer readable medium
US11272136B2 (en) Method and device for processing multimedia information, electronic equipment and computer-readable storage medium
WO2022257797A1 (en) Target content display method and apparatus, device, readable storage medium, and product
US11886484B2 (en) Music playing method and apparatus based on user interaction, and device and storage medium
WO2023142913A1 (en) Video processing method and apparatus, readable medium and electronic device
CN113923390A (en) Video recording method, device, equipment and storage medium
CN110087122A (en) For handling system, the method and apparatus of information
WO2023169259A1 (en) Music popularity prediction method and apparatus, storage medium, and electronic device
WO2024001548A1 (en) Song list generation method and apparatus, and electronic device and storage medium
CN111857482A (en) Interaction method, device, equipment and readable medium
CN111916050A (en) Speech synthesis method, speech synthesis device, storage medium and electronic equipment
CN111859970A (en) Method, apparatus, device and medium for processing information
CN109495786B (en) Pre-configuration method and device of video processing parameter information and electronic equipment
CN111859971A (en) Method, apparatus, device and medium for processing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant