Music list generation method and device, equipment and storage medium

By displaying a floating component in a music application, the target music list is retrieved and updated. The user's preference level is determined based on the number of plays and the completion rate, which solves the problem that existing technologies cannot reflect the user's current playback preferences and achieves high-precision music list generation.

CN121765112APending Publication Date: 2026-03-31PRANUS BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-18
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing music applications fail to provide intelligent music playlists that reflect a user's current playback preferences and lack convenient interactive methods for displaying them.

Method used

By displaying a floating component in response to preset operations on the music playback interface, the target music list is obtained and updated. The user's preference is determined based on the number of times the song is played and the completion rate, and the music list is generated by sorting the songs according to the preference.

Benefits of technology

It enables the display of music lists that match the user's current playback preferences through a minimalist interactive path, improving the accuracy of preference assessment and solving the problem that music applications cannot reflect the user's current preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121765112A_ABST
    Figure CN121765112A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a music list generation method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps that a preset operation is executed in response to a music playing interface, a suspension assembly is displayed, and the suspension assembly is used for displaying a target music list; the target music list is updated in the following mode: obtaining the playing frequency of a first song in a first time period and a first playing completion rate of each playing; the first time period is a time period from the moment when the target music list is emptied last time to the current moment, and the first playing completion rate refers to the proportion of the playing duration to the song duration; for each first song, determining the preference degree according to the corresponding playing frequency and the first playing completion rate of each playing; and generating a target music list containing the at least one first song according to a sequence of the preference degrees from high to low. According to the embodiment of the invention, the target music list is dynamically generated based on the current playing preference behavior of the user, and the target music list is displayed in a convenient interaction mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, device, and storage medium for generating music playlists. Background Technology

[0002] Music apps are popular among users, and currently, they typically offer "Recently Played" or "Popular Charts" features. However, "Recently Played" simply lists the songs a user has listened to in reverse chronological order, lacking intelligent sorting; "Popular Charts" are usually global or regional, and have a longer timeframe.

[0003] Therefore, related music applications cannot provide music lists that reflect the user's current playback preferences, and there is a problem with displaying them through convenient interactive methods. Summary of the Invention

[0004] This application provides a method, apparatus, device, and storage medium for generating music playlists, addressing the technical problem.

[0005] According to a first aspect of the embodiments of this application, a method for generating a music playlist is provided, the method comprising: displaying a floating component in response to a preset operation being performed on a music playback interface, the floating component being used to display a target music playlist; The target music list is updated in the following ways: Get the number of plays for at least one song within the first time period and the first completion rate for each play; the first time period is the period from the moment the target music list was last cleared to the current moment, and the first completion rate is the proportion of the playback time to the song duration during a single playback; For each song, the user's level of liking for the song is determined based on the number of plays and the first completion rate for each play. Generate a target music list containing at least one first song, sorted by preference from highest to lowest.

[0006] In one possible implementation, for each playback's first completion rate, the weight coefficient corresponding to the first completion rate is determined based on the interval in which the first completion rate falls. Sum the weight coefficients corresponding to the first completion rate of each playback to obtain the total weight coefficient; The average completion rate is obtained by averaging the first completion rate of each playback of the first song. The product of the total weighting coefficient and the average completion rate is taken as the overall completion rate of the first song; If it is determined that all completion rates of the first song are not lower than the first completion rate threshold, then the overall completion rate will be used as the degree of preference for the first song.

[0007] In another possible implementation, after taking the product of the total weight coefficient and the average completion rate as the comprehensive completion rate of the first song, if it is determined that the first song has at least one first completion rate lower than the first completion rate threshold, then the first completion rate lower than the first completion rate threshold is taken as the second completion rate; and the first proportion of the second completion rate to all first completion rates is calculated. The low-quality playback level of the first song is obtained based on the first ratio and the preset first coefficient; If it is determined that there is at least one second completion rate that is not lower than the second completion rate threshold, then the overall completion rate is reduced by the degree of low-quality playback, and the reduced overall completion rate is used as the degree of preference for the first song.

[0008] In another possible implementation, after obtaining the low-quality playback level of the first song based on the first ratio and the preset first coefficient, if it is determined that all the second completion rates of the first song are lower than the second completion rate threshold, then the user's aversion to the first song is obtained based on the first ratio and the preset second coefficient. The overall completion rate is reduced based on the degree of low-quality playback and aversion, and the reduced overall completion rate is used as the degree of liking for the first song.

[0009] In another possible implementation, in response to reaching a preset time, the current first date and the clear date are obtained; the clear date is used to represent the date the target music playlist was last cleared; the preset time is determined based on the user's sleep time. If it is determined that the application corresponding to the playback interface is not currently running, the target music list is cleared and the clearing date is updated to the first date; If it is determined that the application corresponding to the playback interface is currently running, when the application corresponding to the playback interface runs again, obtain the current second date and clear information; If the second date is determined to be inconsistent with the clear date, the target music list will be cleared and the clear date will be updated to the second date.

[0010] In yet another possible implementation, in response to the first control used to switch to the previous song being triggered, the first duration of the current playback of the second song that is currently interrupted is obtained; If the first duration exceeds the playback duration threshold, then based on the first duration and the duration of the second song, the number of times the second song is played in the first time period and the first completion rate for each playback are updated.

[0011] In yet another possible implementation, in response to the triggering of the second control for switching to the next song or the playback control corresponding to any song, the second duration of the currently interrupted third song is obtained; Based on the duration of the second and third songs, the number of times the third song was played in the first time slot and the first completion rate for each play were updated.

[0012] According to a second aspect of the embodiments of this application, an apparatus for generating a music playlist is provided, the apparatus comprising: The display module is used to display a floating component in response to a preset operation performed on the music playback interface. The floating component is used to display the target music list. The target music list is updated in the following ways: Get the number of plays for at least one song within the first time period and the first completion rate for each play; the first time period is the period from the moment the target music list was last cleared to the current moment, and the first completion rate is the proportion of the playback time to the song duration during a single playback; For each song, the user's level of liking for the song is determined based on the number of plays and the first completion rate for each play. Generate a target music list containing at least one first song, sorted by preference from highest to lowest.

[0013] According to a third aspect of the embodiments of this application, an electronic device is provided, the electronic device including a memory, a processor and a computer program stored in the memory, wherein the processor executes the program to implement the steps of the method provided in the first aspect.

[0014] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps of the method provided in the first aspect.

[0015] According to a fifth aspect of the present application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, wherein when a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, causing the computer device to perform steps implementing the method provided in the first aspect.

[0016] The beneficial effects of the technical solutions provided in this application are: This application provides a method for generating a music playlist. By responding to a preset operation performed on the music playback interface, a component for displaying the target music playlist is displayed, thereby enabling the display of the target playlist through a minimalist interactive path.

[0017] This method retrieves the playback count and first completion rate of at least one song played by the user within the time period from the last time the target music playlist was cleared to the current time. The first completion rate refers to the proportion of playback time to the total song duration during a single playback. For each song, the user's preference for the song is determined based on the playback count and the first completion rate. By determining the preference from two dimensions using the playback count and the first completion rate within the first time period, the accuracy of the preference assessment is improved. The target music playlist is generated by sorting songs according to their preference, ensuring that users see the first songs that match their current playback preferences first. This solves the problem that music applications cannot provide a music playlist that reflects the user's current playback preferences. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0019] Figure 1 A schematic diagram of the system architecture for implementing the music playlist generation method provided in this application embodiment; Figure 2 A flowchart illustrating a method for generating a music playlist provided in an embodiment of this application; Figure 3 A flowchart illustrating a method for updating a target music list provided in an embodiment of this application; Figure 4 A flowchart illustrating the method for determining preference levels in a music playlist generation method provided in this application embodiment; Figure 5 A flowchart illustrating the method for determining preference level in another music playlist generation method provided in this application embodiment; Figure 6 A flowchart illustrating the method for determining preference level in another music playlist generation method provided in this application embodiment; Figure 7 A flowchart illustrating another method for determining the degree of preference provided in an embodiment of this application; Figure 8 A flowchart illustrating the method for clearing the target music list in another music list generation method provided in this application embodiment; Figure 9 A flowchart illustrating the method for processing interrupted song playback records in another music playlist generation method provided in this application embodiment; Figure 10 A schematic diagram of the structure of a music playlist generation device provided in an embodiment of this application; Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0021] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0022] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0023] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0024] Figure 1 This is a schematic diagram of the system architecture for implementing a music playlist generation method provided in an embodiment of this application, wherein the system architecture includes: a terminal 120 and a server 140.

[0025] Terminal 120 has an application installed and runs that has a method for generating music playlists. Terminal 120 is used to generate and display the target music playlist.

[0026] Terminal 120 is connected to server 140 via a wireless network or a wired network.

[0027] Server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Illustratively, server 140 includes a processor 144 and a memory 142, the memory 142 including a display module 1421, a control module 1422, and a receiving module 1423. Server 140 is used to provide background services for the application of the method. Optionally, server 140 undertakes the primary computing work, and terminal 120 undertakes secondary computing work; or, server 140 undertakes secondary computing work, and terminal 120 undertakes primary computing work; or, server 140 and terminal 120 collaborate on computing using a distributed computing architecture.

[0028] Optionally, the device type of the terminal includes at least one of the following: smartphone, tablet computer, e-book reader, Moving Picture Experts Group Audio Layer Ⅲ (MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, laptop computer, and desktop computer.

[0029] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number of terminals or the type of device.

[0030] This application provides a method for generating a music playlist, such as... Figure 2 As shown, the method includes: S101, in response to the music playback interface being executed by a preset operation, displays a floating component, which is used to display the target music list.

[0031] In this embodiment of the application, the preset operation refers to the operation performed by the user on the music playback interface in order to bring up the floating component. The preset operation can be the operation performed by sliding in a preset direction at any position on the playback interface, or the long press operation performed at any position on the playback interface, etc. The preset operation can be defined by the user based on their usage habits.

[0032] In this embodiment of the application, the songs included in the target music list are songs that have been played within a user-preset time period, which is usually about 24 hours.

[0033] In this embodiment, after the terminal detects a preset operation on the playback interface, it obtains the most recently updated target music list and displays the target music list through a floating component, thereby allowing the user to select and play songs displayed in the target music list.

[0034] In this application embodiment, a method for updating a target music list is provided, such as... Figure 3 As shown, the specific content is as follows: S201, obtain the number of plays of at least one first song in the first time period and the first completion rate of each play; S202, For each first song, determine the user's level of liking for the first song based on the corresponding number of plays and the first completion rate of each play; S203, Generate a target music list containing at least one first song, sorted by preference from highest to lowest.

[0035] In S201 of this application embodiment, the first time period is the period from the time when the target music list was last cleared to the current time. For example, if the time when the target music list was last cleared was 8:00 AM today, then the playback count and first completion rate of all the first songs that have been played from 8:00 AM today to the current time are obtained. The first completion rate refers to the proportion of playback time to the total song length during a single playback. For example, if song A has a playback time of 1 minute and a total song length of 2 minutes, then the first completion rate of song A is 50%.

[0036] In this embodiment of the application, after the first song finishes playing (including manual interruption and automatic music ending terminal), the first completion rate of this playback is calculated based on the song's playback duration and song length. Based on the first completion rate of this playback, the number of times the first song is played and the first completion rate of each playback within the currently recorded first time period are updated.

[0037] In S202 of this application embodiment, generally speaking, the closer the first completion rate of a song is to 100%, and the more times a song is played, the higher the user's liking for the first song. Therefore, by obtaining the number of times a first song is played and the first completion rate of each playback, the user's playback preferences for the day can be clearly identified. For each first song, the user's liking for the first song is comprehensively evaluated based on the number of plays and the first completion rate of each playback.

[0038] In S203 of this application embodiment, after evaluating the preference level of all the first songs, in order to facilitate the user to play songs based on the target music list, the first songs are sorted in descending order of preference level, and a target music list containing the first songs in the above sorting is generated, so that the user can play the first song with the highest preference level at the top of the target music list.

[0039] In this embodiment of the application, the target music list can be updated periodically, for example, every 10 minutes. The target music list can also be updated according to the real-time playback situation. That is, after each first song is played, the target music list is updated based on the new number of plays and the first completion rate of this playback.

[0040] The music playlist generation method provided in this application displays a component for displaying the target music playlist by responding to a preset operation performed on the music playback interface, thereby achieving the display of the target playlist through a very simple interactive path.

[0041] This method retrieves the playback count and first completion rate of at least one song played by the user within the time period from the last time the target music playlist was cleared to the current time. The first completion rate refers to the proportion of playback time to the total song duration during a single playback. For each song, the user's preference for the song is determined based on the playback count and the first completion rate. By determining the preference from two dimensions using the playback count and the first completion rate within the first time period, the accuracy of the preference assessment is improved. The target music playlist is generated by sorting songs according to their preference, ensuring that users see the first songs that match their current playback preferences first. This solves the problem that music applications cannot provide a music playlist that reflects the user's current playback preferences.

[0042] Based on the above embodiments, as an optional embodiment, a method for determining the degree of preference is provided, such as... Figure 4 As shown, the specific content is as follows: S301, For the first completion rate of each playback, determine the weight coefficient corresponding to the first completion rate based on the interval in which the first completion rate is located; S302, sum the weight coefficients corresponding to the first completion rate of each playback to obtain the total weight coefficient; S303, calculate the average completion rate of the first song for each playback to obtain the average completion rate; S304, the product of the total weight coefficient and the average completion rate is used as the overall completion rate of the first song; S305, if it is determined that all first completion rates of the first song are not lower than the first completion rate threshold, then the overall completion rate will be used as the degree of preference for the first song.

[0043] In S301 of this application embodiment, when calculating the liking level of the first song, for each playback of the first song, the weight coefficient corresponding to the first completion rate is determined according to the first completion rate interval where the first completion rate is located and the pre-set correspondence between the first completion rate interval and the weight coefficient.

[0044] In S302 of this application embodiment, the weight coefficients corresponding to the first completion rate of each playback of the first song are summed to obtain the total weight coefficient.

[0045] In S303 of this application embodiment, all first completion rates are summed to obtain the summation result, and the average completion rate is obtained based on the ratio between the summation result and the number of plays.

[0046] In S304 of this application embodiment, the product of the total weight coefficient and the average completion rate is used as the comprehensive completion rate of the first song.

[0047] In S305 of this application embodiment, it is determined whether all first completion rates of the first song are not lower than the first completion rate threshold. If not, it means that there are no low-quality playbacks in the playback history of the first song. Therefore, the comprehensive completion rate is directly used as the degree of preference for the first song.

[0048] In one example, a completion rate > 80% results in a weighting factor of 1.0. A completion rate between 50% and 80% is weighted at a factor of 0.5. A completion rate between 20% and 50% is weighted at a factor of 0.2. Completion rate ≤ 20%: weighting coefficient is 0.05; The first completion rate threshold is 50%. The first song was played 3 times, with completion rates of 100%, 90%, and 70% respectively. The calculation process for the first song's popularity level is as follows: The total weighting coefficient is: 1 + 1 + 0.5 = 2.5; The average completion rate is: (100%+90%+70%) / 3=0.867 (rounded to three decimal places); The overall completion rate of the first song is: 2.5 x 0.876 = 2.19; Since the first completion rate of the aforementioned songs is not lower than the first completion rate threshold, the overall completion rate will be used as the degree of preference for the first song.

[0049] In the above scheme, different weighting coefficients correspond to different ranges of first completion rate. All weighting coefficients are summed to obtain the total weighting coefficient. The overall completion rate of the song is determined by obtaining the average completion rate. The comprehensive completion rate is determined by multiplying the total weighting coefficient and the average completion rate. Since the more times the song is played, the higher the completion rate of each play, the higher the user's liking for the first song. Therefore, the comprehensive completion rate is determined by combining the completion rate of each play and the overall completion rate of the first song. A higher comprehensive completion rate also indicates a higher degree of liking. Furthermore, when the completion rates of the first song are all high (i.e., not lower than the first completion rate threshold), the comprehensive completion rate is directly used as the degree of liking, which improves the accuracy of user liking assessment.

[0050] Based on the above embodiments, as an optional embodiment, a method for determining the degree of preference is also provided, such as... Figure 5 As shown, the specific content is as follows: S401, if it is determined that the first song has at least one first completion rate lower than the first completion rate threshold, then the first completion rate lower than the first completion rate threshold is taken as the second completion rate; S402, calculate the first proportion of the second completion rate to all first completion rates. S403, based on the first ratio and the preset first coefficient, obtain the low-quality playback level of the first song; S404 If it is determined that there is at least one second completion rate that is not lower than the second completion rate threshold, then the overall completion rate is reduced by the low quality playback level, and the reduced overall completion rate is used as the preference level of the first song.

[0051] In S401 of this application embodiment, if it is determined that the first song has at least one first completion rate lower than the first completion rate threshold, it indicates that the historical playback record of the current first song has low-quality playback, and the first completion rate lower than the first completion rate threshold is used as the second completion rate, that is, the first completion rate of low-quality playback is used as the second completion rate.

[0052] In S402 of this application embodiment, calculating the first proportion of the second completion rate to all first completion rates is to determine the proportion of low-quality playbacks to all playbacks. The higher the first proportion, the lower the user's preference for the first song is.

[0053] In S403 of this application embodiment, by multiplying the first ratio and the preset first number, and then using the product result as the low quality playback level of the first song, the higher the proportion of low quality playback (the higher the first ratio), the higher the low quality playback level of the first song.

[0054] In S404 of this application embodiment, determining whether there is at least one second play rate that is not lower than the second completion rate of the first song is to determine whether all low-quality playbacks are extremely low-quality playbacks. If not, the overall completion rate is reduced by the degree of low-quality playback, and the reduced overall completion rate is used as the preference level of the first song. This realizes that when low-quality playback exists, in determining the preference level of the first song, the degree of low-quality playback is also taken into account in addition to the overall play rate, which further improves the accuracy of the preference level assessment.

[0055] In one example, a completion rate > 80% results in a weighting factor of 1.0. A completion rate between 50% and 80% is weighted at a factor of 0.5. A completion rate between 20% and 50% is weighted at a factor of 0.2. Completion rate ≤ 20%: weighting coefficient is 0.05; The first completion rate threshold is 50%. The second completion rate threshold is 30%. The first preset coefficient is 0.6; The second preset coefficient is 0.3.

[0056] The first song was played 4 times in the first time slot, with completion rates of 100%, 60%, 40%, and 40% respectively. The calculation method for the first song's popularity level is as follows: The total weighting coefficient is: 1.0 + 0.5 + 0.2 + 0.2 = 1.9; The average completion rate is: (100% + 60% + 40% + 40%) / 4 = 0.6; The overall completion rate of the first song is: 1.9 x 0.6 = 1.14; Since there is at least one first completion rate lower than the first completion rate threshold: 40% and 40%, the first ratio is calculated as: 2 / 4 = 0.5, and the low-quality playback level is: 0.5 x 0.6 = 0.3; Since the completion rates of all the songs mentioned above are not lower than the second completion rate threshold, there exists at least one second completion rate that is not lower than the second completion rate threshold. Therefore, the overall completion rate is reduced using a low-quality playback level, and the reduced overall completion rate is used as the preference level. The specific formula is as follows:

[0057] Among them, A represents the degree of preference, B represents the overall completion rate, and C represents the degree of low-quality playback; The degree of liking is: 1.14 x (1-0.3) = 0.798.

[0058] In the above scheme, if it is determined that there are low-quality playbacks in the historical playback count of the first song, and not every low-quality playback is of particularly poor quality, then the overall completion rate is reduced based on the existence of low-quality playbacks. The reduced overall completion rate is used as the preference level, which realizes the corresponding reduction of preference level when low-quality playbacks exist, thereby improving the accuracy of preference level assessment.

[0059] Based on the above embodiments, as an optional embodiment, a method for determining the degree of preference is provided, such as... Figure 6 As shown, the specific content is as follows: S501, if it is determined that all the second completion rates of the first song are lower than the second completion rate threshold, then the user's degree of aversion to the first song is obtained according to the first ratio and the preset second coefficient. S502 reduces the overall completion rate based on the degree of low-quality playback and aversion, and uses the reduced overall completion rate as the preference level of the first song.

[0060] In S501 of this application embodiment, if it is determined that all the second completion rates of the first song are lower than the second completion rate threshold, it means that all the low-quality playbacks of the first song by the user are extremely low-quality playbacks, that is, when the user plays the first song, the user performs the song-switching operation very quickly, indicating that the user has aversion to the first song. Therefore, the first ratio and the preset second coefficient are used as the degree of user aversion to the first song.

[0061] In S502 of this application embodiment, when evaluating the degree of liking for a song, in addition to considering the completion rate and the degree of low-quality playback, the degree of user aversion to the first song is also taken into account. That is, the degree of liking for the first song by the user is evaluated through multiple dimensions, thereby improving the accuracy of the evaluation.

[0062] Based on the examples provided above, the first song was played 4 times in the first time slot, with completion rates of 100%, 60%, 20%, and 20% respectively. The calculation method for the first level of preference is as follows: The total weighting coefficient is: 1.0 + 0.5 + 0.05 + 0.05 = 1.6; The average completion rate is: (100% + 60% + 20% + 20%) / 4 = 0.5; The overall completion rate of the first song is: 1.9 x 0.6 = 0.8; Since there is at least one first completion rate lower than the first completion rate threshold: 20% and 20%, the first ratio is calculated as: 2 / 4 = 0.5, and the low-quality playback level is: 0.5 x 0.6 = 0.3; Since the second completion rate of the first song mentioned above is lower than the second completion rate threshold, the degree of aversion is calculated as: 0.5 x 0.3 = 0.15 The overall completion rate is reduced by using lower quality playback levels, and the reduced overall completion rate is used as the preference level. The specific formula is as follows:

[0063] Among them, A represents the degree of liking, B represents the overall completion rate, C represents the degree of low-quality playback, and D represents the degree of aversion. The degree of liking is: 1.14 x (1-0.3-0.15)=0.627.

[0064] In the above scheme, when the second completion rate of low-quality playback is lower than the second completion rate threshold, it indicates that the overall playback instructions of the song are extremely poor. Therefore, it indicates that the user has aversion to the first song. The degree of aversion is determined based on the first ratio and the preset second coefficient. The degree of aversion and the degree of low-quality playback are used together to reduce the overall completion rate. The reduced overall completion rate is used as the degree of preference. This achieves a further reduction in the degree of preference when there is poor overall playback quality, thus improving the accuracy of the degree of preference assessment.

[0065] In this embodiment, for each first song, different calculation methods are used to determine the user's degree of liking for the first song under different playback conditions. For songs that are played multiple times but have a low completion rate, the low completion rate indicates that the user's degree of liking for the first song is low. Therefore, the comprehensive completion filter is reduced under the corresponding conditions using two parameters: low quality playback degree and aversion degree. This achieves the effect that even if the number of playbacks is high, it is still not as high as the degree of liking for the first song that has a low number of playbacks but a completion rate of 100%.

[0066] In this embodiment of the application, the first songs in the target music list are arranged in descending order of preference. For first songs with the same preference, they are sorted according to their playback time, with the song closer to the current time having a higher ranking.

[0067] In this application embodiment, a method for determining the degree of liking for a first song is provided, such as... Figure 7 As shown, the specific content is as follows: S601, For the first completion rate of each playback, determine the weight coefficient corresponding to the first completion rate according to the interval in which the first completion rate is located, and sum the weight coefficients corresponding to the first completion rate of each playback to obtain the total weight coefficient. S602, calculate the average completion rate of the first song for each playback to obtain the average completion rate; use the product of the total weight coefficient and the average completion rate as the comprehensive completion rate of the first song. S603, determine whether all first completion rates of the first song are not lower than the first completion rate threshold. If yes, execute S604; otherwise, execute S605. S604 uses the overall completion rate as the measure of the song's popularity. S605, the first completion rate, which is lower than the first completion rate threshold, is taken as the second completion rate; S606, calculate the first proportion of the second completion rate to all first completion rates, and obtain the low quality playback level of the first song based on the first proportion and the preset first coefficient; S607, determine whether there is at least one second completion rate that is not lower than the second completion rate threshold. If so, proceed to S608; otherwise, proceed to S609. S608 reduces the overall completion rate by playing at a lower quality level, and uses the reduced overall completion rate as the preference level for the first song. S609: Based on the first ratio and the preset second coefficient, obtain the user's level of aversion to the first song; reduce the overall completion rate based on the low quality playback level and the level of aversion, and use the reduced overall completion rate as the user's level of liking for the first song.

[0068] Based on the above embodiments, as an optional embodiment, a method for clearing a target music list is provided, such as... Figure 8 As shown, the specific content is as follows: S701, in response to reaching a preset time, obtains the current first date and the clear date; S702-1, If ​​it is determined that the application corresponding to the playback interface is not currently running, the target music list is cleared and the clearing date is updated to the first date; S702-2, If it is determined that the application corresponding to the playback interface is currently running, then when the application corresponding to the playback interface runs again, obtain the current second date and clear information; S703, if it is determined that the second date is inconsistent with the clear date, then the target music list is cleared and the clear date is updated to the second date.

[0069] In S701 of this application embodiment, the clear date is used to represent the date when the target music list was last cleared. The preset time is determined based on the user's sleep time. In order to avoid clearing the target music list when the user is using the music application, which would affect the user's experience, the preset time is determined based on the sleep time. This achieves the goal of clearing the target music list when the user is not using the phone as much as possible. For example, if the user's usual sleep time is 23:30-08:30, then the preset time can be set to 4:00 AM. Therefore, at 4:00 AM, the current first date and the date when the target music list was last cleared are obtained.

[0070] In S702-1 of this application embodiment, in order to prevent the user from still using the music application at the preset time and clearing the target music list, when the preset time is reached, it is first determined whether the application corresponding to the playback interface is currently running. Only when it is determined that it is not running will the target music list be cleared and the clearing date be updated to the first date.

[0071] In S702-2 of this application embodiment, if it is determined that the application is currently running, in order to avoid the user feeling disconnected when using the application, the target music list is not cleared at present, and after the application ends and is restarted, the current second date and the clearing date are obtained.

[0072] In S703 of this application embodiment, before clearing the target music list, it is determined whether the second date and the clearing date are consistent. If they are consistent, it means that a clearing has already been performed once in a short period of time; no clearing is required. Therefore, when the second date and the clearing date are inconsistent, it means that the first song in the target music list was generated based on yesterday's playback preferences, and the current day is the second day, so the target music list needs to be cleared.

[0073] In the above scheme, if the application is determined not to be running at a preset time, the target music list is cleared and the update date is updated to the first date. If the application is determined to be running at the preset time, the list is not cleared, thus avoiding interference with the user experience. When the application is restarted, if it is determined that the current date is inconsistent with the clearing date, the target music list is cleared. This ensures that regardless of the path taken, only one clearing operation is performed on the same day, avoiding the risk of data being accidentally cleared repeatedly and avoiding interference from multiple clearings within a day. It also ensures that the clearing of the target music list occurs at a time when the user is unaware (preset time) or without interference (the moment the application starts and initializes). This ensures that the target music list contains only the first song played that day and provides a smooth and user-friendly experience, avoiding interruption of the user's continuous use during peak user activity periods (such as around midnight).

[0074] Based on the above embodiments, as an optional embodiment, in response to the triggering of the first control for switching to the previous song, the first duration of the current playback of the second song that is currently interrupted is obtained; if the first duration is greater than the playback duration threshold, the number of times the second song is played in the first time period and the first completion rate of each playback are updated according to the first duration and the duration of the second song.

[0075] In this embodiment, when a user triggers the first control, i.e., when the user wants to interrupt the currently playing second song and play the previously played song, the system first checks the first duration of the second song's current playback. If the first duration is determined to be no greater than the playback duration threshold, it indicates that the user's main intention in interrupting the second song is to quickly return to and listen to the previous song, rather than having a negative opinion of the second song. In this case, the system does not record the current playback of the second song, i.e., it does not update the number of plays or the first completion rate of each playback based on this playback. If the first duration is determined to be greater than the playback duration threshold, it indicates that the current playback of the second song is valid, and the user's preference for this playback needs to be judged based on the completion rate of the second song. Therefore, it is necessary to determine the completion rate of this playback based on the first duration and the duration of the second song, and then update the number of plays and the first completion rate of each playback of the second song within the first time period.

[0076] In the above scheme, when the system detects that a user has performed the "switch to the previous song" operation, it immediately checks the first playback duration of the second song that is about to be interrupted. If the first playback duration is shorter than a preset duration threshold (e.g., 15 seconds), the system infers that the user's main intention in this action is to quickly return to and listen to the previous song, rather than to make a negative evaluation of the current song. Therefore, the system will automatically discard the current playback record of the song, not count it in the playback count, and not calculate the corresponding first completion rate. This avoids the situation where a very low completion rate has a significant impact on the preference level when calculating the preference level of the second song, thus preventing a discrepancy between the user's actual preference level and the calculated preference level.

[0077] Based on the above embodiments, as an optional embodiment, in response to the triggering of the second control for switching to the next song or the playback control corresponding to any song, the second duration of the currently interrupted third song is obtained; based on the second duration and the duration of the third song, the number of times the third song is played in the first time period and the first completion rate of each playback are updated.

[0078] In this embodiment of the application, when the user triggers the second control or the playback control of any song, the triggering of the above control indicates that the user's intention is to actively abandon the currently playing third song, that is, the user's liking for the third song is no longer sufficient and the willingness to listen has ended. Therefore, when the second control and the playback control are triggered, the second duration of the currently interrupted third song is directly obtained, and then the completion rate of the third song in this playback is determined according to the second duration and the duration of the third song, thereby updating the number of times the third song is played in the first time period and the first completion rate of each playback.

[0079] In the above scheme, regarding the handling of actively switching to the next / other songs: when it is detected that the user executes "switch to the next song", actively clicks to play other songs in the playlist, or plays a new song through search, regardless of how long the current song has been playing, it is determined as a valid playback, and the second playback duration is recorded for the completion rate calculation. This kind of behavior of actively abandoning the current song indicates that the user's liking for the current song is no longer sufficient and the willingness to listen has ended. Therefore, the number of playbacks and the completion rate of the second song in the first time period in the above situation need to be updated.

[0080] In this application embodiment, a method for processing interrupted song playback records is provided, such as... Figure 9 As shown, the specific content is as follows: S801, in response to the interruption of the currently playing song, detects the interruption method; S802, if it is determined that the interruption method is triggered by the first control used to switch to the previous song, then get the current playback duration of the song that is playing. S803, determine whether the playback duration is less than the duration threshold. If yes, proceed to step S804; otherwise, proceed to step S806. S804, this playback is deemed invalid; S805, if it is determined that the interruption method is triggered by the second control used to switch to the next song or the playback control corresponding to any song, then obtain the current playback duration of the song that is currently playing. S806 updates the number of plays within the first time period and the first completion rate for each play, based on the duration of this playback and the duration of the song.

[0081] This application embodiment also provides a small window interaction method. When a user performs a gesture that conforms to a preset trajectory and speed on the music playback interface, such as performing an upward swipe gesture at the bottom of the playback interface, the terminal listens to the gesture, renders and manages a floating component, which embeds a ListView to display the target music list generated by the sorting module. Each item displays the song name, artist, and "preference level". After the user triggers the playback control in the target music list, the system directly calls the audio player interface, interrupts the current playback and immediately plays the selected song. When a song needs to be added, the user clicks the right side of the list item, a list of the user's own playlists pops up, and after selecting the target playlist, the song is added to the target playlist.

[0082] This application provides a music playlist generation apparatus, such as... Figure 10 As shown, the music list generation device 100 may include a display module 1001.

[0083] Specifically, the display module 1001 is used to display a floating component in response to a preset operation being performed on the music playback interface. The floating component is used to display the target music list. The target music list is updated in the following ways: Get the number of plays for at least one song within the first time period and the first completion rate for each play; the first time period is the period from the moment the target music list was last cleared to the current moment, and the first completion rate is the proportion of the playback time to the song duration during a single playback; For each song, the user's level of liking for the song is determined based on the number of plays and the first completion rate for each play. Generate a target music list containing at least one first song, sorted by preference from highest to lowest.

[0084] The music playlist generation device provided in this application embodiment displays components for displaying the target music playlist by responding to a preset operation performed on the music playback interface, thereby realizing the display of the target playlist through a very simple interactive path.

[0085] This method retrieves the playback count and first completion rate of at least one song played by the user within the time period from the last time the target music playlist was cleared to the current time. The first completion rate refers to the proportion of playback time to the total song duration during a single playback. For each song, the user's preference for the song is determined based on the playback count and the first completion rate. By determining the preference from two dimensions using the playback count and the first completion rate within the first time period, the accuracy of the preference assessment is improved. The target music playlist is generated by sorting songs according to their preference, ensuring that users see the first songs that match their current playback preferences first. This solves the problem that music applications cannot provide a music playlist that reflects the user's current playback preferences.

[0086] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0087] Furthermore, in one possible implementation, for each playback's first completion rate, the weight coefficient corresponding to the first completion rate is determined based on the interval in which the first completion rate falls. Sum the weight coefficients corresponding to the first completion rate of each playback to obtain the total weight coefficient; The average completion rate is obtained by averaging the first completion rate of each playback of the first song. The product of the total weighting coefficient and the average completion rate is taken as the overall completion rate of the first song; If it is determined that all completion rates of the first song are not lower than the first completion rate threshold, then the overall completion rate will be used as the degree of preference for the first song.

[0088] In another possible implementation, after taking the product of the total weight coefficient and the average completion rate as the comprehensive completion rate of the first song, if it is determined that the first song has at least one first completion rate lower than the first completion rate threshold, then the first completion rate lower than the first completion rate threshold is taken as the second completion rate; and the first proportion of the second completion rate to all first completion rates is calculated. The low-quality playback level of the first song is obtained based on the first ratio and the preset first coefficient; If it is determined that there is at least one second completion rate that is not lower than the second completion rate threshold, then the overall completion rate is reduced by the degree of low-quality playback, and the reduced overall completion rate is used as the degree of preference for the first song.

[0089] In another possible implementation, after obtaining the low-quality playback level of the first song based on the first ratio and the preset first coefficient, if it is determined that all the second completion rates of the first song are lower than the second completion rate threshold, then the user's aversion to the first song is obtained based on the first ratio and the preset second coefficient. The overall completion rate is reduced based on the degree of low-quality playback and aversion, and the reduced overall completion rate is used as the degree of liking for the first song.

[0090] In another possible implementation, in response to reaching a preset time, the current first date and the clear date are obtained; the clear date is used to represent the date the target music playlist was last cleared; the preset time is determined based on the user's sleep time. If it is determined that the application corresponding to the playback interface is not currently running, the target music list is cleared and the clearing date is updated to the first date; If it is determined that the application corresponding to the playback interface is currently running, when the application corresponding to the playback interface runs again, obtain the current second date and clear information; If the second date is determined to be inconsistent with the clear date, the target music list will be cleared and the clear date will be updated to the second date.

[0091] In yet another possible implementation, in response to the first control used to switch to the previous song being triggered, the first duration of the current playback of the second song that is currently interrupted is obtained; If the first duration exceeds the playback duration threshold, then based on the first duration and the duration of the second song, the number of times the second song is played in the first time period and the first completion rate for each playback are updated.

[0092] In yet another possible implementation, in response to the triggering of the second control for switching to the next song or the playback control corresponding to any song, the second duration of the currently interrupted third song is obtained; Based on the duration of the second and third songs, the number of times the third song was played in the first time slot and the first completion rate for each play were updated.

[0093] This application provides an electronic device (computer device / equipment / system) including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of a music playlist method. Compared with related technologies, this method can achieve the following: by responding to a preset operation performed on a music playback interface, a component for displaying a target music playlist is displayed, thereby realizing the display of the target playlist through a very simple interactive path.

[0094] This method retrieves the playback count and first completion rate of at least one song played by the user within the time period from the last time the target music playlist was cleared to the current time. The first completion rate refers to the proportion of playback time to the total song duration during a single playback. For each song, the user's preference for the song is determined based on the playback count and the first completion rate. By determining the preference from two dimensions using the playback count and the first completion rate within the first time period, the accuracy of the preference assessment is improved. The target music playlist is generated by sorting songs according to their preference, ensuring that users see the first songs that match their current playback preferences first. This solves the problem that music applications cannot provide a music playlist that reflects the user's current playback preferences.

[0095] In one alternative embodiment, an electronic device is provided, such as Figure 11 As shown, Figure 11 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0096] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0097] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0098] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0099] The memory 4003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 4001. The processor 4001 executes the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0100] The electronic device package may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 11 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0101] This application provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it can achieve the following: by responding to a preset operation performed on a music playback interface, a component for displaying a target music list is displayed, realizing the display of the target playlist through a very simple interactive path.

[0102] This method retrieves the playback count and first completion rate of at least one song played by the user within the time period from the last time the target music playlist was cleared to the current time. The first completion rate refers to the proportion of playback time to the total song duration during a single playback. For each song, the user's preference for the song is determined based on the playback count and the first completion rate. By determining the preference from two dimensions using the playback count and the first completion rate within the first time period, the accuracy of the preference assessment is improved. The target music playlist is generated by sorting songs according to their preference, ensuring that users see the first songs that match their current playback preferences first. This solves the problem that music applications cannot provide a music playlist that reflects the user's current playback preferences.

[0103] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium, a computer-readable medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0104] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it can achieve: By responding to preset operations performed on the music playback interface, a component for displaying the target music playlist is shown, enabling the display of the target playlist through a minimalist interaction path.

[0105] This method retrieves the playback count and first completion rate of at least one song played by the user within the time period from the last time the target music playlist was cleared to the current time. The first completion rate refers to the proportion of playback time to the total song duration during a single playback. For each song, the user's preference for the song is determined based on the playback count and the first completion rate. By determining the preference from two dimensions using the playback count and the first completion rate within the first time period, the accuracy of the preference assessment is improved. The target music playlist is generated by sorting songs according to their preference, ensuring that users see the first songs that match their current playback preferences first. This solves the problem that music applications cannot provide a music playlist that reflects the user's current playback preferences.

[0106] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.

[0107] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0108] The above are only optional implementation methods for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application, without departing from the technical concept of this application, also fall within the protection scope of the embodiments of this application.

Claims

1. A method of generating a music list, characterized by, The method comprises: in response to a preset operation being performed on a music playing interface, displaying a floating component for displaying a target music list; wherein the target music list is updated by: obtaining the number of plays of at least one first song and the first complete play rate of each play in a first time period; the first time period is a time period from the time when the target music list was last emptied to the current time; the first complete play rate refers to the proportion of the play duration to the song duration in a play process; for each first song, determining the degree of preference of the user for the first song according to the corresponding number of plays and the first complete play rate of each play; generating a target music list containing the at least one first song according to the order of the degree of preference from high to low.

2. The method of claim 1, wherein, The method further comprises: for the first complete play rate of each play, determining the weight coefficient corresponding to the first complete play rate according to the interval in which the first complete play rate is located; summing the weight coefficients corresponding to the first complete play rate of each play to obtain a total weight coefficient; averaging the first complete play rate of each play of the first song to obtain an average complete play rate; taking the product of the total weight coefficient and the average complete play rate as the comprehensive complete play rate of the first song; if it is determined that all the first complete play rates of the first song are not lower than a first complete play rate threshold, taking the comprehensive complete play rate as the degree of preference of the first song.

3. The method of claim 2, wherein, The method further comprises: if it is determined that there is at least one first complete play rate of the first song that is lower than the first complete play rate threshold, taking the first complete play rate lower than the first complete play rate threshold as a second complete play rate; calculating a first proportion of the second complete play rate in all first complete play rates; obtaining the low-quality play degree of the first song according to the first proportion and a preset first coefficient; if it is determined that there is at least one second complete play rate that is not lower than a second complete play rate threshold, reducing the comprehensive complete play rate through the low-quality play degree, and taking the reduced comprehensive complete play rate as the degree of preference of the first song.

4. The method of claim 3, wherein, The method further comprises: if it is determined that all the second complete play rates of the first song are lower than the second complete play rate threshold, obtaining the degree of aversion of the user to the first song according to the first proportion and a preset second coefficient; reducing the comprehensive complete play rate according to the low-quality play degree and the degree of aversion, and taking the reduced comprehensive complete play rate as the degree of preference of the first song.

5. The method of claim 1, wherein, The target music list is emptied by: in response to reaching a preset time, obtaining the current first date and the emptying date; the emptying date represents the date when the target music list was last emptied; the preset time is determined according to the sleep period of the user. If it is determined that the application corresponding to the playing interface is not currently in a running state, the target music list is emptied, and the emptying date is updated to the first date; If it is determined that the application corresponding to the playing interface is currently in a running state, the second date and the emptying information are obtained when the application corresponding to the playing interface is run again; If it is determined that the second date is inconsistent with the emptying date, the target music list is emptied, and the emptying date is updated to the second date.

6. The method of claim 1, wherein, The method further comprises: In response to a first control for switching to a previous song being triggered, a first duration of a current playing of a second song that is interrupted from playing is obtained; If the first duration is greater than the playing duration threshold, the number of plays and the first complete play rate of each play of the second song in the first time period are updated according to the first duration and the duration of the second song.

7. The method of claim 1, wherein, The method further comprises: In response to a second control for switching to a next song or a playing control corresponding to any song being triggered, a second duration of a third song that is interrupted from playing is obtained; The number of plays and the first complete play rate of each play of the third song in the first time period are updated according to the second duration and the duration of the third song.

8. A music list generation apparatus characterized by comprising: It comprises: A display module is configured to display a floating component in response to a music playing interface being executed with a preset operation, the floating component being configured to display a target music list; The target music list is updated by: Obtaining the number of plays and the first complete play rate of each play of at least one first song in a first time period; the first time period being a time period from a time when the target music list was last emptied to a current time, and the first complete play rate being a proportion of a playing duration to a song duration in a playing process; For each first song, a preference degree of the user for the first song is determined according to the corresponding number of plays and the first complete play rate of each play; A target music list containing the at least one first song is generated according to the preference degrees from high to low.

9. An electronic device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program, when executed by the processor, is arranged to perform the method of any one of claims 1 to 8. The processor executes the computer program to implement the method of any one of claims 1-7.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the method of any one of claims 1-7.

11. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method of any one of claims 1-7.