CN109446317B - Method, device and equipment for displaying lyrics and readable storage medium - Google Patents

Method, device and equipment for displaying lyrics and readable storage medium Download PDF

Info

Publication number
CN109446317B
CN109446317B CN201811291597.4A CN201811291597A CN109446317B CN 109446317 B CN109446317 B CN 109446317B CN 201811291597 A CN201811291597 A CN 201811291597A CN 109446317 B CN109446317 B CN 109446317B
Authority
CN
China
Prior art keywords
lyric information
useless
lyric
information
filtering
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
CN201811291597.4A
Other languages
Chinese (zh)
Other versions
CN109446317A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201811291597.4A priority Critical patent/CN109446317B/en
Publication of CN109446317A publication Critical patent/CN109446317A/en
Application granted granted Critical
Publication of CN109446317B publication Critical patent/CN109446317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, a device and equipment for displaying lyrics and a readable storage medium, and belongs to the technical field of multimedia. The method comprises the following steps: acquiring a target lyric file; acquiring lyric information of the target lyric file; if the lyric information contains useless lyric information, filtering the useless lyric information in the lyric information to obtain filtered lyric information; and displaying the lyrics according to the filtered lyric information. According to the method provided by the invention, after the lyric information of the target lyric file is obtained, when useless lyric information exists in the lyric information, the useless lyric information is reduced by the displayed lyrics through filtering the useless lyric information, and further the K song experience of a user is optimized.

Description

Method, device and equipment for displaying lyrics and readable storage medium
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for displaying lyrics.
Background
With the development of multimedia technology, more and more multimedia applications are applied to the life of people. A song playing application is a common application through which songs can be played and lyrics displayed on a display interface. Therefore, how to display the lyrics becomes a very interesting problem in the multimedia technology field.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for displaying lyrics and a readable storage medium, which are used for solving the problems of the related art.
In one aspect, a method of displaying lyrics is provided, the method comprising:
acquiring a target lyric file;
acquiring lyric information of the target lyric file;
if the lyric information contains useless lyric information, filtering the useless lyric information in the lyric information to obtain filtered lyric information;
and displaying the lyrics according to the filtered lyric information.
Optionally, after obtaining the lyric information of the target lyric file, the method further includes:
matching the lyric information of the target lyric file with useless lyric information in a useless lyric information base; and if the successfully matched lyric information exists, determining that useless lyric information exists in the lyric information, and taking the successfully matched lyric information as the useless lyric information.
Optionally, the filtering useless lyric information in the lyric information includes:
detecting whether the lyric information contains a chorus mark;
and filtering useless lyric information in the lyric information according to the detection result.
Optionally, the detecting whether the lyric information includes a chorus identifier includes:
if the lyric information contains X: or X, and X: or X is positioned at the beginning of the lyric line, and the lyric information contains the chorus identification.
Optionally, the filtering useless lyric information in the lyric information according to the detection result includes:
if the detection result indicates that the lyric information does not contain a chorus mark, searching a first useless lyric information mark from the tail part of the lyric information forward;
if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before;
the useless lyric information identification is used for identifying the lyric information as useless lyric information.
Optionally, after searching for the first useless lyric information identification from the tail of the lyric information, the method further includes:
and filtering useless lyric information in a first reference time period if the time stamp corresponding to the lyric information of the line where the first useless lyric information mark is located is outside the first reference time period.
Optionally, the filtering useless lyric information in the lyric information according to the detection result includes:
if the detection result shows that the lyric information contains a chorus mark, searching a first useless lyric information mark from the tail part of the lyric information in a second reference time period;
and if the lyric information in the second reference time period does not contain the chorus identification, filtering useless lyric information on the line where the first useless lyric information identification is located and before.
Optionally, after searching for the first unwanted lyric information identifier from the tail of the lyric information in the second reference time period, the method further includes:
if the lyric information in the second reference time period contains the chorus identification, searching a first chorus lyric identification from the head of the lyric information in the second reference time period, and filtering useless lyric information before the first chorus identification.
Optionally, the filtering useless lyric information in the lyric information includes:
searching a first useless lyric information identification from the tail part of the lyric information;
if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before;
optionally, after searching for the first useless lyric information identification from the tail of the lyric information, the method further includes:
and filtering useless lyric information in a first reference time period if the time stamp corresponding to the lyric information of the line where the first useless lyric information mark is located is outside the first reference time period.
Optionally, the filtering useless lyric information in the lyric information comprises:
searching for a first useless lyric information identification from the tail part of the lyric information in the second reference time period; and if a first useless lyric information identifier is found from the tail part of the lyric information in a second reference time period to the front, filtering useless lyric information before and on the line where the first useless lyric information identifier is located.
Optionally, the useless lyric information comprises one or more of a writer, a composer, a song singer, and a song version.
In one aspect, an apparatus for displaying lyrics is provided, the apparatus comprising:
the first acquisition module is used for acquiring a target lyric file;
the second acquisition module is used for acquiring the lyric information of the target lyric file;
the filtering module is used for filtering useless lyric information in the lyric information to obtain filtered lyric information if the useless lyric information exists in the lyric information;
and the display module is used for displaying the lyrics according to the filtered lyric information.
Optionally, the second obtaining module is further configured to match the lyric information of the target lyric file with useless lyric information in an useless lyric information library; and if the successfully matched lyric information exists, determining that useless lyric information exists in the lyric information, and taking the successfully matched lyric information as the useless lyric information.
Optionally, the filtration module comprises:
the detection unit is used for detecting whether the lyric information contains a chorus mark;
and the filtering unit is used for filtering useless lyric information in the lyric information according to the detection result.
Optionally, the detecting unit is configured to, if the lyric information contains X: or X, and X: or X is positioned at the beginning of the lyric line, and the lyric information contains the chorus identification.
Optionally, the filtering unit is configured to search a first useless lyric information identifier from a tail of the lyric information forward if the detection result indicates that the lyric information does not contain a chorus identifier; if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before; the useless lyric information identification is used for identifying the lyric information as useless lyric information.
Optionally, the filtering unit is further configured to filter the unwanted lyric information within a first reference time period if the first unwanted lyric information identifies that a timestamp corresponding to the lyric information of the row is outside the first reference time period.
Optionally, the filtering unit is configured to search for a first useless lyric information identifier from a tail of the lyric information in a second reference time period if the detection result indicates that the lyric information contains a chorus identifier; and if the lyric information in the second reference time period does not contain the chorus identification, filtering useless lyric information on the line where the first useless lyric information identification is located and before.
Optionally, the filtering unit is further configured to, if the lyric information in the second reference time period includes a chorus mark, search for a first chorus lyric mark from a head of the lyric information in the second reference time period, and filter useless lyric information before the first chorus mark.
Optionally, the filtering module is configured to search for a first useless lyric information identifier from the tail of the lyric information; if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before;
optionally, the filtering module is further configured to filter the unwanted lyric information within a first reference time period if the timestamp corresponding to the lyric information of the line identified by the first unwanted lyric information is outside the first reference time period.
Optionally, the filtering module is configured to search for a first useless lyric information identifier from the end of the lyric information in the second reference time period; and if a first useless lyric information identification is found forward from the tail part of the lyric information in a second reference time period, filtering useless lyric information before and on the line where the first useless lyric information identification is located.
Optionally, the useless lyric information comprises one or more of a composer, a song singer, and a song version.
In one aspect, an apparatus for displaying lyrics is provided, the apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, the instruction being displayed and executed by the processor to implement the method for displaying lyrics as recited in any of the above.
In one aspect, a computer-readable storage medium having at least one instruction stored therein for display by a processor and execution is provided to implement the method for displaying lyrics as described in any one of the above.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
after the lyric information of the target lyric file is obtained, when useless lyric information exists in the lyric information, useless lyric information is reduced by displayed lyrics through filtering the useless lyric information, and further the K song experience of a user is optimized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the invention;
FIG. 2 is a flow chart of a method for displaying lyrics according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a lyric display interface according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for displaying lyrics according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
With the development of scientific technology, more and more application programs are applied to the lives of people. A song playing application is a common application through which songs can be played and lyrics displayed on a display interface.
The embodiment of the invention provides a method for displaying lyrics, which can be applied to the implementation environment shown in FIG. 1. In fig. 1, at least one terminal 11 and a server 12 are included, and the terminal 11 may be communicatively connected to the server 12 to download song files from the server 12.
The terminal 11 may be any electronic product that can perform human-Computer interaction with a user through one or more modes such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or handwriting equipment, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a pocket PC (pocket PC), a tablet Computer, a smart car, a smart television, a smart sound box, and the like.
The server 12 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
It should be understood by those skilled in the art that the above-mentioned terminal 11 and server 12 are only examples, and other existing or future terminals or servers may be suitable for the present application and are included within the scope of the present application and are herein incorporated by reference.
Based on the implementation environment shown in fig. 1, referring to fig. 2, an embodiment of the present invention provides a method for displaying lyrics, which may be applied to the terminal shown in fig. 1. As shown in fig. 2, the method includes:
step 201, obtaining a target lyric file;
the terminal is installed with a song playing application program, and when a user clicks a target lyric file in the song playing application program, the song playing application program can directly acquire the target lyric file from a background of the terminal, for example, the target lyric file is acquired from the lyric file stored in a storage space of the terminal. Alternatively, the target lyric file may be obtained by instant downloading from a network.
Step 202, obtaining lyric information of a target lyric file;
the song playing application program may obtain, according to the obtained target lyric file, lyric information in the target lyric file, where the lyric information includes content such as useful lyric information, useless lyric information, and a time stamp corresponding to the lyric information, and this is not limited in the embodiment of the present invention. The content corresponding to the useful lyric information is lyrics, the content corresponding to the useless lyric information is non-lyrics, and the lyric information has respective corresponding time stamps because the lyric file needs to be displayed according to time when being displayed and played.
In step 203, if the lyric information contains useless lyric information, filtering the useless lyric information in the lyric information to obtain filtered lyric information;
the determination of whether useless lyric information exists in the lyric information in the target lyric file can be realized by the following steps:
matching the lyric information of the target lyric file with useless lyric information in a useless lyric information base; and if the successfully matched lyric information exists, determining that useless lyric information exists in the lyric information, and taking the successfully matched lyric information as the useless lyric information.
For example, a useless lyric information base is established in advance, useless lyric information of a lyric file is configured in advance in the useless lyric information base, and a song playing class application program matches the lyric information of a target lyric file with the useless lyric information in the preset useless lyric information base. And if the matching is successful, taking the lyric information successfully matched as useless lyric information. And if the matching is unsuccessful, determining that useless lyric information does not exist in the lyric information.
For convenience of understanding, a target lyric file with useless lyric information 'word builder' is taken as an example, when the target lyric file is played, the lyric information of the target lyric file is matched with the useless lyric information in a useless lyric information base, if the useless lyric information base comprises the useless lyric information 'word builder', the lyric information of the target lyric file is successfully matched with the useless lyric information in the useless lyric information base, and the successfully matched lyric information 'word builder' is the useless lyric information.
Further, after the useless lyric information base is established, the useless lyric information base can be updated. For example, after new useless lyric information is acquired by manual screening and the like, the acquired useless lyric information is stored in a useless lyric information base so as to update the useless lyric information in the useless lyric information base, thereby ensuring that the useless lyric information in the useless lyric information base is more and more accurate and comprehensive.
And after determining that the lyric information comprises useless lyric information, filtering the useless lyric information in the lyric information, and referring to the subsequent content in detail.
And step 204, displaying the lyrics according to the filtered lyric information.
The song playing APP obtains the filtered lyric information without useless lyric information, and the lyrics are displayed on a lyric display interface according to the filtered lyric information, for example, the lyrics are displayed on the display interface of a video recording studio according to the filtered lyric information, so that the useless lyric information is reduced, and the K song experience of a user is improved.
It should be noted that, in addition to the manner of filtering the useless lyric information in the lyric information according to the above method to obtain the filtered lyric information, the method provided by the embodiment of the present invention may provide a selection of whether the useless lyric information needs to be filtered according to the user's requirement when filtering the useless lyric information, and the user may select whether the useless lyric information needs to be filtered according to the user's requirement. And if the obtained selection result is filtering, performing the filtering operation in the manner, and if the obtained selection result is not filtering, displaying the corresponding lyrics according to the lyric information of the target lyric file.
Further, even if useless lyric information in the lyric information is filtered according to the above-mentioned manner, and the filtered lyric information is obtained, the method provided by the embodiment of the present invention further includes: after the filtered lyric information is obtained, a selection for returning unfiltered useless lyric information is provided on a lyric information display interface, and a user can select whether the useless lyric information is unfiltered or not according to the requirement of the user. If the selection operation of the unfiltered useless lyric information is obtained, because the lyric information in the target lyric file does not filter the useless lyric information, the lyric is displayed again according to the lyric information in the target lyric file.
Through the two settings, different requirements of the user can be met, and the K song experience of the user is further improved.
According to the method provided by the embodiment of the invention, after the lyric information of the target lyric file is obtained, when useless lyric information exists in the lyric information, the useless lyric information is filtered, so that the useless information of the displayed lyrics is reduced, and the K song experience of a user is further optimized.
In addition, whether useless lyric information is filtered or not can be selected by a user through setting a selection mode, so that the requirements of different users can be met, and the K song experience of the user is further improved.
Further, for the above step 203, after the lyric information of the target lyric file is obtained, the useless lyric information in the lyric information is filtered, including but not limited to the following two ways:
the first filtration mode: filtering useless lyric information based on chorus marks
This first filtering means includes, but is not limited to, steps 2031 and 2032 below.
Step 2031, detecting whether the lyric information contains a chorus mark;
and the song playing application program searches whether the lyric information contains a chorus identifier or not according to the acquired lyric information of the target lyric file.
Optionally, if the lyric information contains X: or X, and X: or X is positioned at the beginning of the lyric line, and the lyric information contains the identification of chorus.
For example, if the lyric information at the beginning of the lyric line is "close": or the chorus mark is contained in the lyric information of the target lyric file, otherwise the chorus mark is not contained in the lyric information of the target lyric file. In this embodiment, X may be male or female, which is not limited in the embodiment of the present invention.
In step 2032, filtering useless lyric information in the lyric information according to the detection result;
and obtaining whether the lyric information of the target lyric file contains a chorus mark according to the detection result so as to filter useless lyric information in the lyric information.
In step 2032, filtering the useless lyric information in the lyric information according to the detection result can be implemented in the following two ways.
First implementation of step 2032
Step 20321, if the detection result is that the lyric information does not contain the chorus mark, searching the first useless lyric information mark from the tail part of the lyric information;
if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before;
the useless lyric information identification is used for identifying the lyric information as useless lyric information.
Optionally, when the lyric information does not contain the chorus identifier, searching a first useless lyric information identifier from the tail part of the lyric information to the front;
further, the useless lyric information includes one or more of a writer, a composer, a song singer and a song version, which is not limited in this embodiment of the present invention, and the useless lyric information identifier may be set according to actual situations.
For example, the first useless lyric information found is identified as "worderer: "for example, when" is used as a word: "the time stamp corresponding to the lyric of the line is in the first reference time period," the word maker: "the line and the previous useless lyric information are filtered. Since useless lyric information is mostly displayed in a period before the song starts, the first reference period can be determined accordingly. For example, the first reference time period may be 20 seconds, or other time period lengths, which is not limited in the embodiment of the present invention. For example, the setting may be made according to actual conditions or empirical values.
Taking an Android system mobile phone version song playing APP (application) as an example, entering the song playing APP, sequentially clicking 'sing' and 'i want to sing', and displaying lyrics on a video recording studio interface after requesting songs.
As shown in fig. 3, the lyric information of the on-demand song contains no chorus mark, and a first useless lyric information identifier is searched from the tail part of the lyric information to the front, wherein the first useless lyric information identifier is "worder: ", if" is the word: "the time stamp corresponding to the lyric of the line is within 20 seconds," the word is made: "useless lyrics information on the line and before it is filtered.
Step 20322, if the first unwanted lyric information mark is outside the first reference time period, filtering the unwanted lyric information in the first reference time period.
When the time stamp corresponding to the lyric information of the line where the first useless lyric information mark is located is outside the first reference time period, the lyric information within the first reference time period is described as useless lyric information, and the useless lyric information within the first reference time period is filtered.
For example, when the word "writer: "the time stamp corresponding to the lyrics of the line is outside the first reference time period, and useless lyric information in the first reference time period is filtered. Taking the first reference time period as 20 seconds as an example, when the word "as: "the corresponding time stamp of the lyrics of the line is 20 seconds away, the useless lyric information in 20 seconds is filtered.
Second implementation of step 2032
Step 20323, if the lyric information contains chorus marks, searching a first useless lyric information mark from the tail of the lyric information in the second reference time period;
and if the lyric information in the second reference time period does not contain the chorus identification, filtering useless lyric information on the line where the first useless lyric information identification is located and before.
Optionally, when the lyric information contains a chorus identifier, for example, the chorus identifier is "chorus: for example, the first useless lyric information flag is searched from the end of the lyric information in the second reference period, where the first useless lyric information flag is "worder: ". Wherein. The second reference time period may be 20 seconds, which is not limited in the embodiment of the present invention, and may be set according to actual conditions or empirical values, for example.
When the lyric information within 20 seconds does not contain 'closed': "will" be the word: "useless lyric information on and before the line is filtered.
Step 20324, if the lyric information in the second reference time period contains chorus marks, searching the first chorus lyric mark from the head of the lyric information in the second reference time period, and filtering useless lyric information before the first chorus mark.
For example, when the lyric information within 20 seconds contains a chorus mark, the first chorus lyric mark is' chorus: for example, the head of the lyric information within 20 seconds is searched for a sum: ", will" close: "filtering of previous useless lyric information.
It should be noted that the first reference time period and the second reference time period may be the same or different, and the embodiment of the present invention is not limited thereto.
The second filtering mode is as follows: filtering useless lyric information without considering chorus mark
In the second filtering method, after the lyric information of the target lyric file is obtained, useless lyric information in the lyric information is filtered, and the filtering method can be implemented in the following two ways.
First implementation mode under second filtering mode
Step 2033, searching a first useless lyric information mark from the tail part of the lyric information;
and filtering the useless lyric information before and on the line where the first useless lyric information identifier is located if the time stamp corresponding to the lyric information of the line where the first useless lyric information identifier is located is within a first reference time period.
In the case of not considering the chorus identification, only useless lyric information identification exists in the lyric information. For example, the first useless lyric information found is identified as "worderer: "for example, when" is used as a word: "the time stamp corresponding to the lyric of the line is in the first reference time period," the word maker: "the line and the previous useless lyric information are filtered. The first reference time period may be 20 seconds, or another time period length, which is not limited in this embodiment of the present invention. For example, the setting may be made according to actual conditions or empirical values.
Step 2034, if the time stamp corresponding to the lyric information of the row in which the first useless lyric information mark is located is outside the first reference time period, filtering the useless lyric information within the first reference time period.
When the time stamp corresponding to the lyric information of the line where the first useless lyric information mark is located is outside the first reference time period, the lyric information within the first reference time period is described as useless lyric information, and the useless lyric information within the first reference time period is filtered.
For example, when the word "writer: "the time stamp corresponding to the lyrics of the line is outside the first reference time period, and useless lyric information in the first reference time period is filtered. Taking the first reference time period as 20 seconds as an example, when the word ": "the corresponding time stamp of the lyrics of the line is 20 seconds away, the useless lyric information in 20 seconds is filtered.
Second implementation under second filtering
Step 2035, searching for the first useless lyric information mark from the tail of the lyric information in the second reference time period; and if the first useless lyric information identification is found from the tail part of the lyric information in the second reference time period to the front, filtering useless lyric information before and on the line where the first useless lyric information identification is located.
Searching for a first unwanted lyric information identification from the end of the lyric information in the second reference period onward, where the first unwanted lyric information identification is "worder: ". Wherein. The second reference time period may be 20 seconds, which is not limited in the embodiment of the present invention, and may be set according to actual conditions or empirical values, for example.
The first useless lyric information is searched forward starting at the tail of the lyric information within 20 seconds and is identified as a word writer: "will" be the word: "useless lyrics information on and before the line is filtered.
Based on the same concept as the method, referring to fig. 4, an embodiment of the present invention provides an apparatus for displaying lyrics, the apparatus including:
a first obtaining module 401, configured to obtain a target lyric file;
a second obtaining module 402, configured to obtain lyric information of a target lyric file;
a filtering module 403, configured to filter useless lyric information in the lyric information if the useless lyric information exists in the lyric information, to obtain filtered lyric information;
and a display module 404, configured to display the lyrics according to the filtered lyric information.
In an optional embodiment, the second obtaining module 402 is further configured to match the lyric information of the target lyric file with useless lyric information in a useless lyric information library; and if the successfully matched lyric information exists, determining that useless lyric information exists in the lyric information, and taking the successfully matched lyric information as the useless lyric information.
In an alternative embodiment, the filtering module 403 includes:
the detection unit is used for detecting whether the lyric information contains a chorus mark;
and the filtering unit is used for filtering useless lyric information in the lyric information according to the detection result.
In an alternative embodiment, the detecting unit is configured to, if the lyric information contains X: or X, and X: or X is positioned at the beginning of the lyric line, and the lyric information contains the identification of chorus.
In an alternative embodiment, the filtering unit is configured to search for a first useless lyric information identifier from the tail of the lyric information forward if the detection result indicates that the lyric information does not contain a chorus identifier; if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before; the useless lyric information identification is used for identifying the lyric information as useless lyric information.
In an alternative embodiment, the filtering unit is further configured to filter the unwanted lyric information within the first reference time period if the first unwanted lyric information identifies that the corresponding timestamp of the lyric information of the row is outside the first reference time period.
In an alternative embodiment, the filtering unit is configured to search for a first useless lyric information flag from the end of the lyric information in the second reference time period if the detection result indicates that the lyric information contains a chorus flag; and if the lyric information in the second reference time period does not contain the chorus identification, filtering useless lyric information before and on the line where the first useless lyric information identification is located.
In an alternative embodiment, the filtering unit is further configured to, if the lyric information in the second reference period includes a chorus mark, search for a first chorus lyric mark from a head of the lyric information in the second reference period, and filter useless lyric information before the first chorus mark.
Optionally, a filtering module 403, configured to search for a first useless lyric information identifier from the tail of the lyric information; if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before;
optionally, the filtering module 403 is further configured to filter the unwanted lyric information within the first reference time period if the first unwanted lyric information identifies that the time stamp corresponding to the lyric information of the row is outside the first reference time period.
Optionally, the filtering module 403 is configured to search for a first useless lyric information identifier from the end of the lyric information in the second reference time period; and if the first useless lyric information identification is found from the tail part of the lyric information in the second reference time period to the front, filtering useless lyric information before and on the line where the first useless lyric information identification is located.
In an alternative embodiment, the unwanted lyric information comprises one or more of a writer, a composer, a singer of a song, and a version of a song.
According to the device provided by the embodiment of the invention, after the lyric information of the target lyric file is obtained, when useless lyric information exists in the lyric information, the useless lyric information is reduced by the displayed lyrics through filtering the useless lyric information, and further the K song experience of a user is optimized.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 5, a schematic structural diagram of a terminal 500 for displaying lyrics according to an embodiment of the present disclosure is shown. The terminal 500 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, the terminal 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as 4 core processors, 5 core processors, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 502 is used to store at least one instruction for execution by processor 501 to implement the method of displaying lyrics provided by the method embodiments herein.
In some embodiments, the terminal 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the terminal 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the terminal 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or a folded surface of the terminal 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 505 may also include a headphone jack.
The positioning component 508 is used for positioning the current geographic Location of the terminal 500 for navigation or LBS (Location Based Service). The Positioning component 508 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, the grignard System in russia, or the galileo System in the european union.
Power supply 509 is used to power the various components in terminal 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 510 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the terminal 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the terminal 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 513 may be disposed on a side bezel of the terminal 500 and/or an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the terminal 500, a user's holding signal of the terminal 500 may be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back, or side of the terminal 500. When a physical button or a vendor Logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical button or the vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front surface of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-rest state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of terminal 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, the memory having at least one instruction stored therein. At least one instruction is configured to be executed by one or more processors to implement the above-described method of displaying lyrics.
In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction is stored, and the at least one instruction, when executed by a processor of a computer device, implements the above-mentioned method of displaying lyrics.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A method for displaying lyrics is characterized in that the method is applied to a terminal and comprises the following steps:
acquiring a target lyric file;
acquiring lyric information of the target lyric file;
if the lyric information contains useless lyric information, filtering the useless lyric information in the lyric information to obtain filtered lyric information;
displaying lyrics according to the filtered lyric information;
after obtaining the lyric information of the target lyric file, the method further comprises:
matching the lyric information of the target lyric file with useless lyric information in a useless lyric information base; if the successfully matched lyric information exists, determining that useless lyric information exists in the lyric information, and taking the successfully matched lyric information as the useless lyric information;
wherein the filtering useless lyric information in the lyric information comprises:
detecting whether the lyric information contains a chorus mark;
filtering useless lyric information in the lyric information according to the detection result;
the filtering useless lyric information in the lyric information according to the detection result comprises the following steps:
if the detection result indicates that the lyric information does not contain a chorus mark, searching a first useless lyric information mark from the tail part of the lyric information forward; if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before; the useless lyric information identification is used for identifying the lyric information as useless lyric information;
if the detection result shows that the lyric information contains a chorus mark, searching the first useless lyric information mark from the tail part of the lyric information in a second reference time period; and if the lyric information in the second reference time period does not contain the chorus identification, filtering useless lyric information on the line where the first useless lyric information identification is located and before.
2. The method of claim 1, wherein the detecting whether the lyric information contains an identification of chorus comprises:
if the lyric information contains' X: "or" X: ", and the" X: and the or is X, the lyric information comprises a chorus identifier when the or is positioned at the beginning of the lyric line, wherein X is the identifier indicating chorus.
3. The method of claim 1, wherein after searching forward for the first unwanted lyric information identification starting from the end of the lyric information within the second reference time period, further comprising:
if the lyric information in the second reference time period contains the chorus identification, searching a first chorus lyric identification from the head of the lyric information in the second reference time period, and filtering useless lyric information before the first chorus identification.
4. The method of claim 1, wherein the filtering unwanted lyric information from the lyric information comprises:
searching a first useless lyric information identification from the tail part of the lyric information;
and filtering the useless lyric information before and on the line where the first useless lyric information identification is located if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period.
5. The method according to any of claims 1 or 4, wherein after searching for the first unwanted lyric information identification from the tail of the lyric information onwards, further comprising:
and filtering useless lyric information in a first reference time period if the time stamp corresponding to the lyric information of the line where the first useless lyric information mark is located is outside the first reference time period.
6. The method of claim 1, wherein the filtering unwanted lyric information from the lyric information comprises:
searching for a first useless lyric information identification from the tail part of the lyric information in the second reference time period; and if a first useless lyric information identification is found forward from the tail part of the lyric information in a second reference time period, filtering useless lyric information before and on the line where the first useless lyric information identification is located.
7. The method of any of claims 1-4 and 6, wherein the unwanted lyric information comprises one or more of a writer, a composer, a singer of a song, and a version of a song.
8. An apparatus for displaying lyrics, the apparatus comprising:
the first acquisition module is used for acquiring a target lyric file;
the second acquisition module is used for acquiring the lyric information of the target lyric file;
the filtering module is used for filtering useless lyric information in the lyric information to obtain filtered lyric information if the useless lyric information exists in the lyric information;
the display module is used for displaying the lyrics according to the filtered lyric information;
the second obtaining module is further used for matching the lyric information of the target lyric file with useless lyric information in a useless lyric information base; if the successfully matched lyric information exists, determining that useless lyric information exists in the lyric information, and taking the successfully matched lyric information as the useless lyric information;
the filtration module includes:
the detection unit is used for detecting whether the lyric information contains a chorus mark;
the filtering unit is used for filtering useless lyric information in the lyric information according to the detection result;
the filter unit is used for:
if the detection result indicates that the lyric information does not contain a chorus mark, searching a first useless lyric information mark from the tail part of the lyric information forward; if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period, filtering the useless lyric information of the line where the first useless lyric information identification is located and before; the useless lyric information identification is used for identifying the lyric information as useless lyric information;
if the detection result shows that the lyric information contains a chorus mark, searching the first useless lyric information mark from the tail part of the lyric information in a second reference time period; and if the lyric information in the second reference time period does not contain the chorus identification, filtering useless lyric information on the line where the first useless lyric information identification is located and before.
9. The apparatus of claim 8, wherein the detecting unit is configured to, if the lyric information contains an "X: "or" X: ", and the" X: and the ' or ' X ' is positioned at the beginning of the lyric line, the lyric information contains the identification of chorus, wherein X is the identification indicating chorus.
10. The apparatus of claim 8, wherein the filtering unit is further configured to, if the lyric information in the second reference time period includes a chorus mark, search for a first chorus lyric mark from a head of the lyric information in the second reference time period, and filter useless lyric information before the first chorus mark.
11. The apparatus of claim 8, wherein the filtering module is configured to search for a first unwanted lyric information flag from a tail of the lyric information; and filtering the useless lyric information before and on the line where the first useless lyric information identification is located if the time stamp corresponding to the lyric information of the line where the first useless lyric information identification is located is within a first reference time period.
12. The apparatus according to any of claims 8 or 11, wherein the filtering module is further configured to filter unwanted lyric information within a first reference time period if the first unwanted lyric information identifies that a timestamp corresponding to the lyric information of the row is outside the first reference time period.
13. The apparatus of claim 8, wherein the filtering module is configured to search for a first unwanted lyric information flag from a tail of the lyric information in the second reference time period; and if a first useless lyric information identification is found forward from the tail part of the lyric information in a second reference time period, filtering useless lyric information before and on the line where the first useless lyric information identification is located.
14. The apparatus of any of claims 8-11 and 13, wherein the unwanted lyric information comprises one or more of a writer, a composer, a singer of a song, and a version of a song.
15. An apparatus for displaying lyrics, comprising a processor and a memory, the memory having stored therein at least one instruction, the instruction being displayed and executed by the processor to implement the method of displaying lyrics of any of claims 1-7.
16. A computer-readable storage medium having stored therein at least one instruction for display by a processor and execution to implement a method of displaying lyrics according to any one of claims 1-7.
CN201811291597.4A 2018-10-31 2018-10-31 Method, device and equipment for displaying lyrics and readable storage medium Active CN109446317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811291597.4A CN109446317B (en) 2018-10-31 2018-10-31 Method, device and equipment for displaying lyrics and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811291597.4A CN109446317B (en) 2018-10-31 2018-10-31 Method, device and equipment for displaying lyrics and readable storage medium

Publications (2)

Publication Number Publication Date
CN109446317A CN109446317A (en) 2019-03-08
CN109446317B true CN109446317B (en) 2022-08-02

Family

ID=65549280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811291597.4A Active CN109446317B (en) 2018-10-31 2018-10-31 Method, device and equipment for displaying lyrics and readable storage medium

Country Status (1)

Country Link
CN (1) CN109446317B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761733A (en) * 2016-02-02 2016-07-13 腾讯科技(深圳)有限公司 Method and device for generating lyrics files
CN108039184A (en) * 2017-12-28 2018-05-15 腾讯音乐娱乐科技(深圳)有限公司 Lyrics adding method and device
CN108109634A (en) * 2017-12-15 2018-06-01 广州酷狗计算机科技有限公司 Generation method, device and the equipment of song pitch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080184870A1 (en) * 2006-10-24 2008-08-07 Nokia Corporation System, method, device, and computer program product providing for a multiple-lyric karaoke system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761733A (en) * 2016-02-02 2016-07-13 腾讯科技(深圳)有限公司 Method and device for generating lyrics files
CN108109634A (en) * 2017-12-15 2018-06-01 广州酷狗计算机科技有限公司 Generation method, device and the equipment of song pitch
CN108039184A (en) * 2017-12-28 2018-05-15 腾讯音乐娱乐科技(深圳)有限公司 Lyrics adding method and device

Also Published As

Publication number Publication date
CN109446317A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
CN109033335B (en) Audio recording method, device, terminal and storage medium
CN109348247B (en) Method and device for determining audio and video playing time stamp and storage medium
CN108538302B (en) Method and apparatus for synthesizing audio
CN109168073B (en) Method and device for displaying cover of live broadcast room
CN108965922B (en) Video cover generation method and device and storage medium
CN109101213B (en) Method, device and storage medium for controlling sound card to transmit audio
CN109068160B (en) Method, device and system for linking videos
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110248236B (en) Video playing method, device, terminal and storage medium
CN110266982B (en) Method and system for providing songs while recording video
CN109743461B (en) Audio data processing method, device, terminal and storage medium
CN111949680A (en) Data processing method and device, computer equipment and storage medium
CN112261491B (en) Video time sequence marking method and device, electronic equipment and storage medium
CN111092991B (en) Lyric display method and device and computer storage medium
CN111081277B (en) Audio evaluation method, device, equipment and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN108495183B (en) Method and device for displaying album information
CN111586279A (en) Method, device and equipment for determining shooting state and storage medium
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
CN112069350A (en) Song recommendation method, device, equipment and computer storage medium
CN112118482A (en) Audio file playing method and device, terminal and storage medium
CN108806730B (en) Audio processing method, device and computer readable storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN108831423B (en) Method, device, terminal and storage medium for extracting main melody tracks from audio data

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