Song playing method and device, equipment and medium

By adjusting the song playback order based on the attributes of the currently playing song and reordering them when switching songs, the problem of abrupt listening experience caused by large jumps between songs is solved, improving the user's listening experience and flexibility.

CN120804359APending Publication Date: 2025-10-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510897470.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

In existing technologies, song playback modes cannot be flexibly adjusted when users' listening needs change, resulting in excessive jumps between songs and affecting the listening experience.

Method used

By responding to user actions, the playback order is determined based on the attributes of the currently playing song, and the order is reordered when switching songs to ensure that the playback order closely matches the user's listening needs.

Benefits of technology

It enhances the user's listening experience, avoids abrupt transitions between songs, and meets the user's flexible and diverse listening needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120804359A_ABST
    Figure CN120804359A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a song playing method and device, equipment and a medium, and the method comprises the steps: responding to a playing triggering operation of a first song in a target list in a target playing mode, and playing the first song; determining a first playing sequence of the target list in the target playing mode according to the first song, and continuing to play the songs in the target list according to the first playing sequence; switching the first song to a second song for playing in response to a switching playing operation on the target list; and determining a second playing sequence of the target list in the target playing mode according to the second song, and switching the first playing sequence into the second playing sequence to continue playing the songs in the target list. According to the method and the device, the problem of abrupt listening feeling caused by overlarge jump between songs is avoided, the playing sequence of the list is subjected to secondary sorting after another song is switched to be played, the playing sequence is immediately rearranged when a user changes a song listening demand, and the flexible and changeable song listening demand of the user is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a song playing method, device, equipment and medium. Background Art

[0002] Users can play their favorite songs in the music player. Song playback can include sequential play, random play, single-track loop and other play modes. In a song list, no matter which play mode is used, completely different songs may be played in sequence. For example, if you want to listen to soothing songs before bed, you may play noisy songs instead. The song playback effect is poor, resulting in a poor listening experience for the user. Moreover, when the user's listening needs change in real time, the playback order remains the same, which cannot meet the user's demand for flexible listening. Summary of the Invention

[0003] In order to solve the above technical problems, the present disclosure provides a song playing method, device, equipment and medium.

[0004] The present disclosure provides a song playing method, the method comprising:

[0005] In response to a play triggering operation on a first song in a target play mode, playing the first song;

[0006] determining a first play order of the target list in the target play mode according to the first song, and continuing to play the songs in the target list according to the first play order;

[0007] In response to a switch play operation on the target list, switching the first song to the second song for playing;

[0008] Determine the second play order of the target list in the target play mode according to the second song, and switch the first play order to the second play order to continue playing the songs in the target list.

[0009] The present disclosure also provides a song playing device, the device comprising:

[0010] a playing module, configured to play the first song in the target list in response to a play triggering operation on the first song in the target play mode;

[0011] a first sorting module, configured to determine a first play order of the target list in the target play mode according to the first song, and continue to play the songs in the target list according to the first play order;

[0012] switch the first song to the second song for playing in response to a switch playing operation on the target list;

[0013] The second sorting module is configured to determine a second playing order of the target list in the target playing mode according to the second song, and switch the first playing order to the second playing order to continue playing the songs in the target list.

[0014] The electronic device comprises a processor, a memory for storing executable instructions of the processor, and the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the song playing method provided in the embodiments of the present disclosure.

[0015] The embodiments of the present disclosure further provide a computer readable storage medium, which stores a computer program for executing the song playing method provided in the embodiments of the present disclosure.

[0016] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art: the song playing solution provided by the embodiments of the present disclosure plays a first song in response to a playing trigger operation on the first song in a target list in a target playing mode, determines a first playing order of the target list in the target playing mode according to the first song, and continues playing the songs in the target list according to the first playing order; the first song is switched to a second song for playing in response to a switch playing operation on the target list; a second playing order of the target list in the target playing mode is determined according to the second song, and the first playing order is switched to the second playing order to continue playing the songs in the target list. By using the above technical solution, after playing a song in a list in a target playing mode, the list can be sorted according to the playing order of the song, so that the subsequent songs played according to the playing order are more smooth and close in rhythm and style, avoiding the problem of abrupt listening caused by large jumps between songs, effectively improving the listening experience of users, and after switching to play another song, the playing order of the list is sorted again, so that the playing order is rearranged immediately when the user changes the listening demand, meeting the flexible and variable listening demand of users, and further improving the listening effect of users. BRIEF DESCRIPTION OF DRAWINGS

[0017] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent by describing in detail some embodiments with reference to the attached drawings. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn according to the scale.

[0018] Figure 1A flowchart of a song playing method provided for some embodiments of the present disclosure is shown in FIG. 1;

[0019] Figure 2 A schematic diagram of a song playing page provided for some embodiments of the present disclosure is shown in FIG. 2;

[0020] Figure 3 A flowchart of another song playing method provided for some embodiments of the present disclosure is shown in FIG. 3;

[0021] Figure 4 A schematic diagram of another song playing page provided for some embodiments of the present disclosure is shown in FIG. 4;

[0022] Figure 5 A schematic diagram of a song playing process provided for some embodiments of the present disclosure is shown in FIG. 5;

[0023] Figure 6 A schematic diagram of another song playing process provided for some embodiments of the present disclosure is shown in FIG. 6;

[0024] Figure 7 A structural schematic diagram of a song playing device provided for some embodiments of the present disclosure is shown in FIG. 7;

[0025] Figure 8 A structural schematic diagram of an electronic device provided for some embodiments of the present disclosure is shown in FIG. 8. DETAILED DESCRIPTION

[0026] Embodiments of the present disclosure will be described in more detail by referring to the drawings. Although certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, but rather these embodiments are provided so as to more completely and thoroughly understand the present disclosure. It is understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not intended to limit the scope of protection of the present disclosure.

[0027] It is understood that each step recited in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the execution of the steps shown. The scope of the present disclosure is not limited in this respect.

[0028] The term "comprising" and variations thereof as used in the present disclosure are open-ended, that is, "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related definitions are given throughout the description.

[0029] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] In order to solve the problems existing in song playing in the related art, the embodiments of the present disclosure provide a song playing method, which is introduced below in conjunction with specific embodiments.

[0033] Figure 1 This is a flow chart of a song playing method provided by some embodiments of the present disclosure. The method can be executed by a song playing device, wherein the device can be implemented using software and / or hardware and can generally be integrated into an electronic device. Figure 1 As shown, the method includes:

[0034] Step 101: In response to a play trigger operation on a first song in a target play mode, play the first song.

[0035] The song playing method of the embodiment of the present disclosure can be applied to any application that supports song playing, and the specific type is not limited. The target playback mode can be a song playback mode that can adjust the playback order of the list according to the song currently played by the user. In the target playback mode, the songs in the list can adjust the playback order according to the user's manual operation, so that the playback of multiple songs in this mode is smoother and the listening experience is avoided. The target list can be the list of songs triggered by the current user to play, and it is also the list where the first song is located. There is no restriction on the target list. For example, the target list can be at least one of a favorite list, a search list, and a playlist list. The search list can be a list obtained according to the user's search operation, and the playlist list can be a list of a playlist created by others selected by the user. The embodiment of the present disclosure takes the target list as an example of a favorite list. The favorite list can be a list obtained by the user collecting songs according to his or her listening preferences.

[0036] The target list can include multiple songs, and the number and types of songs are not limited. The songs in the target list can be diverse and cover songs with various attributes such as rhythm and style. The play trigger operation can be a click operation on a first song in the target list or a trigger operation on a play control of the first song. In this case, the first song can be the song triggered by the play trigger operation. The play trigger operation can also be a trigger operation on a play control of the target list. In this case, the first song can be any song in the target list or the first song according to the original order in the target list.

[0037] Specifically, the user can start the target play mode. In the target play mode, the user performs a play trigger operation on a first song in the target list. The song playing device starts the target play mode in response to the start operation of the target play mode. The start operation can be a selection operation on the target play mode in a play mode control. The play mode control can include multiple play modes, such as a target play mode, a random play mode, a sequential play mode, a single play mode, and a loop play mode. Then, when the play trigger operation of the user on the first song in the target list is received in the target play mode, the first song can be played in the song playing page.

[0038] An exemplary song playing page is shown in FIG. 2. Figure 2 An exemplary song playing page is shown in FIG. 2. Figure 2 As shown in FIG. 2, an exemplary song playing page 201 is shown. The song playing page 201 shows a play mode control 2011, which shows a mode mark of the target play mode, indicating that the target play mode is in the target play mode. The song playing page 201 also shows a song name of song A, indicating that the song is being played. Song A is the first song described above.

[0039] Step 102: Determine the first play order of the target list in the target play mode according to the first song, and continue playing the songs in the target list according to the first play order.

[0040] The first play order can be an order obtained by sorting the play order of the target list according to the song attributes of the first song, and the first song has the first sorting position in the first play order. The earlier the song is sorted, the greater the similarity of the song attribute of the first song. The song attribute of the present disclosure can include the technical, artistic characteristics of the song from the perspective of music, and the core idea and emotional tone of the song that can be quantified. For example, the song attribute can include style, rhythm, mode, tonality, tempo, instrument, theme, emotion, artistic conception, dance, energy, loudness, speech, acoustic confidence index, voice, audience, music positivity, etc. Dance can be a value that measures whether the song is suitable for dancing according to the combination of speed, rhythm stability, beat intensity, and overall regularity. Energy represents the perceived intensity and activity. Speech can be whether there is spoken language in the song. Acoustic confidence index can be the confidence of whether the song is original. Music positivity represents the positivity conveyed by the song. The higher the value, the more positive the song sounds.

[0041] After the song playing device plays the first song in the target play mode, the target list can be sorted according to the song attribute of the first song and the song attributes of the plurality of songs included in the target list, the first play order is determined, and the songs in the target list are played in the first play order.

[0042] In some embodiments, determining the first play order of the target list in the target play mode according to the first song can include: inputting the first song into an attribute recognition model to output attribute values and weights of the first song attribute of the first song; determining a plurality of relevancies between the first song and a plurality of songs in the target list according to the attribute values and weights of the first song attribute; and sorting the plurality of songs in the target list in descending order of the plurality of relevancies to obtain the first play order.

[0043] The attribute recognition model can be a large model that identifies song attributes and weights of a song. The attribute recognition model can be fine-tuned based on training data of songs with annotated song attributes and weights. The first song attribute can be a song attribute identified by the first song. The number of first song attributes is not limited, and the number and type of song attributes identified by different songs are different. The weight of the first song attribute can be a value that quantifies the prominence or importance of the first song attribute in the song. The more prominent a song attribute of a song is, the greater the weight. For example, if the dance value of a song is very high, the weight is set to the maximum. The relevance can represent the similarity or relevance between a song in the target list and the first song. The higher the relevance, the more matching or similar the song is to the first song.

[0044] Specifically, when determining the first playing order of the target list in the target playing mode according to the first song, the song playing device can first input the first song into the attribute recognition model, recognize the song attributes of the first song by using the attribute recognition model, obtain a plurality of first song attributes of the first song and attribute values and weights of each first song attribute, and the weights of different first song attributes are different, or can obtain a plurality of first song attributes of the first song and attribute values and weights of each first song attribute pre-stored in the song attribute database, the song attribute database can be a database constructed by recognizing the song attributes of each song in the target list and the attribute values and weights of the song attributes by using the attribute recognition model in advance, and the recognition and addition to the song attribute database are performed when each song is added to the target list; then for each song in the target list, the relevance of the song to the first song can be calculated according to the attribute values and weights of the first song attributes, and a plurality of relevances are obtained; the plurality of songs are sorted in descending order of the plurality of relevances, and the sorting result is determined as the first playing order.

[0045] Optionally, when the playing times of the target list is twice, the first playing order can also be obtained by sorting the plurality of songs in the target list in descending order of the plurality of relevances and then in ascending order of the plurality of relevances, so that the plurality of songs are sorted in descending order of the relevances to the first song and then in ascending order of the relevances to the first song when the list is played twice, the switching between the songs is still smooth, and the abrupt listening experience is avoided.

[0046] In the above scheme, the plurality of songs in the list are matched according to the song attributes and weights of the currently played song, the corresponding matching scores are determined, the list is sorted according to the matching scores, the playing order at this time is smoother for the user to listen to the song, and the abrupt listening experience is avoided.

[0047] Optionally, the plurality of relevances of the first song to the plurality of songs in the target list are determined according to the attribute values and weights of the first song attributes, including: for each song in the target list, the song is weighted and summed in the plurality of first song attributes and the plurality of attribute difference values of the first song and the weights of each first song attribute to obtain a correlation score, and the relevance of the song to the first song is determined according to the correlation score, wherein the relevance is negatively correlated with the correlation score.

[0048] The attribute difference value represents the difference between the attribute value of a song in the target list and the attribute value of the first song with respect to a first song attribute, for example, the attribute value of a song in the target list with respect to a first song attribute is 0.5, the attribute value of the first song with respect to the first song attribute is 0.7, and the attribute difference value is 0.2. The correlation score can represent the score of the difference between a song in the target list and the first song, the correlation degree is negatively correlated with the correlation score, the smaller the correlation score is, the greater the correlation degree is, indicating that the difference between the song and the first song is smaller, that is, the matching degree and the similarity degree are higher, and the song is more matched or more similar to the first song.

[0049] When the song playing device determines the correlation degrees of the multiple songs in the target list, for each song in the target list, the song playing device extracts multiple attribute values of the song corresponding to multiple first song attributes of the first song, calculates the attribute difference value between the song and the first song for each first song attribute, and obtains multiple attribute difference values; multiplies each attribute difference value by the weight of the corresponding first song attribute to obtain a product, sums multiple products of the multiple first song attributes to obtain a sum value, determines the sum value as the correlation score of the song and the first song, and determines the correlation degree of the song and the first song according to the correlation score and a negative correlation formula. The negative correlation formula is determined according to actual conditions. The smaller the correlation score is, the smaller the difference between the song and the first song in the comprehensive attribute dimension of the multiple first song attributes is, and the greater the correlation degree is. The correlation degree of each song is determined in the above manner to obtain multiple correlation degrees.

[0050] For example, assuming that the first song attributes of the first song include danceability and musical positivity, the attribute value of danceability is 0.7 and the weight is 0.4, the attribute value of musical positivity is 0.8 and the weight is 0.6, the attribute value of a song in the target list with respect to danceability is 0.75, and the attribute value of musical positivity is 0.7, then the attribute difference value of the song and the first song with respect to danceability is 0.05, and the attribute difference value with respect to musical positivity is 0.1. The correlation score = 0.05*0.4+0.1*0.6=0.08, and the correlation degree can be equal to 1 / 0.08=12.5. The smaller the correlation score is, the smaller the difference between the song and the first song is, and the greater the correlation degree is.

[0051] In the above scheme, when determining the matching degree of each song in the list and the currently played song, the attribute difference value of the song attribute and the weight of the song attribute in the currently played song can be considered comprehensively, so that the determination of the matching degree is more accurate, and the accuracy of the subsequent play order determination is improved.

[0052] Step 103, in response to the switching play operation on the target list, switching the first song to the second song for playing.

[0053] The switching playing operation can be an operation of switching a currently playing song to another song that another user wants to listen to. The switching playing operation can be a triggering operation on a next song playing control or a previous song playing control in a song playing page or a selection operation on a song in the target list. The operation of switching the current song to another song is the switching playing operation. The second song can be a song to be switched by the switching playing operation. For example, when the switching playing operation is the triggering operation on the next song playing control or the previous song playing control in the song playing page, the second song can be a previous song or a next song of the first song. When the switching playing operation is the selection operation on a song in the target list, the second song is the song selected by the selection operation.

[0054] In some embodiments, the first song and the second song are not adjacent in the first playing order, that is, the number of songs between the first song in the first playing order and the second song in the first playing order is greater than or equal to a preset number of songs. The preset number of songs can be set according to actual conditions. For example, it can be set to 1, and the number of songs between the first song and the second song in the first playing order is greater than or equal to 1. The more the number of songs, the stronger the user's desire to switch songs that do not meet the user's listening preferences at the moment. By setting the number of songs between the second song to be switched and the currently playing song in the first playing order, the recognition accuracy of the listening demand switching is improved, indicating that the user urgently needs to switch songs of other styles.

[0055] During playing of the first song and continuous playing of the songs in the target list in the first playing order, when the switching playing operation of the user on the target list is received, the second song of the switching playing operation can be obtained, and the first song is closed, and the second song is played in the song playing page.

[0056] For example, Figure 2 When the user triggers the next song playing control 2012 in the song playing page 201, it can be determined that the switching playing operation is received, and the second song is a next song of the first song in the first playing order. For example, when the user triggers the list control 2013 in the song playing page 201, the song playing page 202 can be displayed, and the collection list 2021 is displayed in the song playing page 202. The collection list 2021 includes a plurality of songs sorted in the first playing order. The user selects the third song in the collection list 2021, and the third song is the second song.

[0057] Step 104: determining a second play order of the target list in the target play mode according to the second song, and switching the first play order to the second play order to continue playing the songs in the target list.

[0058] The second play order can be obtained by sorting the play order of the target list according to the song attributes of the second song, and the second song is ranked first in the second play order. The songs ranked earlier have greater similarity to the song attributes of the second song.

[0059] After the first song is switched to the second song for playing, the song playing device can perform secondary sorting on the target list according to the song attributes of the second song and the song attributes of the songs included in the target list, determine the second play order, and the specific determination manner of the second play order is the same as the determination manner of the first play order, which will not be described herein. Then, the first play order can be switched to the second play order, and the songs in the target list are played according to the second play order.

[0060] Optionally, the switching play operation is performed multiple times. After each switching play operation, the target list can be sorted again to obtain a new play order according to the song switched by the switching play operation, and the songs in the target list are played according to the new play order. The play order can be determined again for the songs in the list as long as the user manually switches the songs, and the songs can be sorted multiple times. This effectively meets the flexible listening needs of the user, and is not limited to a listening preference and sorting at one time. Instead, the play order is changed in a timely manner to follow the listening needs of the user in different scenarios and at different times, so that the user will not experience a sudden change in listening when the needs change, and the listening experience of the user is greatly improved.

[0061] The song playing scheme provided by the embodiments of the present disclosure can play a first song in response to a playing triggering operation on the first song in a target list in a target playing mode, determine a first playing order of the target list in the target playing mode according to the first song, and continue playing the songs in the target list according to the first playing order; switch the first song to a second song for playing in response to a switching playing operation on the target list, determine a second playing order of the target list in the target playing mode according to the second song, and switch the first playing order to the second playing order to continue playing the songs in the target list. With the above technical scheme, the list can be sorted according to the playing order of the song after the song in the list is played in the target playing mode, so that the songs played subsequently in the playing order are more smooth and close in rhythm and style, and the problem of abrupt listening experience caused by too large jumps between songs is avoided, the listening experience of the user is effectively improved, and the playing order of the list is sorted again after another song is switched for playing, so that the playing order is rearranged immediately when the user changes the listening demand, the flexible and changeable listening demand of the user is met, and the listening effect of the user is further improved.

[0062] Exemplarily, Figure 3 The flowchart of another song playing method provided by the embodiments of the present disclosure is shown in FIG. 3. Figure 3 As shown in a feasible implementation, the song playing method of the embodiments of the present disclosure can further include the following steps:

[0063] Step 301: In response to an input operation on a target list, a listening demand is obtained.

[0064] The input operation can be an operation triggered by the user to input content, and the input operation can include a triggering operation of single-clicking, double-clicking, etc. on a dialogue control in a page displaying the target list and an operation of text input or voice input in a dialogue page displaying the dialogue control. The listening demand can be input content corresponding to the input operation, which indicates the demand of the user at this time to listen to which type or style of song in the target list, reflects the listening preference of the user at the current time and in the current scene, and for example, the listening demand can be “I want to listen to fast-paced rock music suitable for working commute”.

[0065] Specifically, the song playing device can display the target list in a list page in response to a display operation of the user on the target list, and the list page further includes a dialogue control. A dialogue page is displayed in response to a triggering operation of the user on the dialogue control, and the user can perform an input operation in the dialogue page to obtain the listening demand of the user on the target list.

[0066] Step 302: A plurality of second song attributes corresponding to the listening demand and a weight of each second song attribute are determined.

[0067] The second song attribute can be a song attribute identified by the listening demand, and the number of second song attributes is not limited, and the number of song attributes identified by different listening demands is different. The weight of the second song attribute can be a value quantifying the prominence or importance of the second song attribute in the listening demand, for example, the weight of the style in the listening demand can be set to be the maximum.

[0068] Specifically, after obtaining the listening demand for the target list, the song playing device can input the listening demand into the attribute identification model, identify the intention of the listening demand by using the attribute identification model, and then determine a plurality of second song attributes and weights of the second song attributes. The weights of different second song attributes are different.

[0069] Step 303, extracting songs from the target list based on the plurality of second song attributes and the weights of the second song attributes to construct a real-time listening list.

[0070] The real-time listening list can be a list constructed by filtering songs in the target list according to the listening demand input by the current user, and the songs in the real-time listening list meet the listening demand and are sorted according to the degree of meeting.

[0071] In some embodiments, constructing a real-time listening list by extracting songs from the target list based on the plurality of second song attributes and the weights of the second song attributes can include: extracting a plurality of target songs including the plurality of second song attributes from the target list; determining a third playing order of the plurality of target songs according to the plurality of second song attributes and the weights of the second song attributes; and sorting the plurality of target songs according to the third playing order to obtain the real-time listening list.

[0072] Optionally, determining a third playing order of the plurality of target songs according to the plurality of second song attributes and the weights of the second song attributes includes: obtaining a matching score by weighting and summing attribute values of each target song in the plurality of second song attributes and weights of the second song attributes, and determining a matching degree of each target song and the listening demand according to the matching score, wherein the matching degree is positively correlated with the matching score; and sorting the plurality of target songs in descending order of the plurality of matching degrees of the plurality of target songs to obtain the third playing order.

[0073] The target song can be a song attribute in the target list that meets the song listening demand, and the number of target songs is determined according to actual conditions. The third playing order can be a playing order of the plurality of target songs determined according to the degree of matching from high to low. The matching degree can represent the matching degree or the similarity between the target song and the song listening demand. The matching score can be a parameter for quantifying the matching degree. The matching degree and the matching score are positively correlated. The greater the matching score, the greater the matching degree, indicating that the higher the similarity between the target song and the song listening demand, and the higher the user's listening satisfaction with the target song.

[0074] Specifically, when constructing the real-time song listening list, the song playing device can match the plurality of second song attributes with the song attributes corresponding to each song in the target list. If a song attribute includes the plurality of second song attributes, the song is a target song, and the plurality of target songs are extracted. Then, for each target song, the matching score of the target song and the song listening demand can be calculated according to the plurality of attribute values and weights of the plurality of second song attributes, and a plurality of matching scores are obtained. The specific process can be as follows: for each target song, the plurality of attribute values of the target song in the plurality of second song attributes are determined, and the product of the corresponding attribute value and the corresponding weight is calculated for each second song attribute. The sum of the plurality of products of the plurality of second song attributes is summed to obtain a sum value, which is determined as the matching score of the target song and the song listening demand. The matching degree is determined according to the matching score and the positive correlation formula, which is set according to actual conditions, for example, multiplied by a preset coefficient. The greater the matching score, the greater the similarity between the target song and the song attribute in the comprehensive attribute dimension of the plurality of second song attributes. Each target song is determined according to the above-mentioned manner to obtain a plurality of matching degrees. Then, the plurality of target songs are sorted in descending order of the plurality of matching scores, and the sorting result is determined as the third playing order. The plurality of target songs are sorted according to the third playing order to obtain the real-time song listening list.

[0075] In the above scheme, the song attributes and weights identified according to the song listening demand can be used to extract songs from the list to construct a new real-time song listening list. The playing order of the real-time song listening list is arranged from high to low according to the matching degree with the song listening demand, effectively improving the accuracy of the song listening list construction. The song listening list at this time is more in line with the user's listening preferences in the current time and current scene. Moreover, the attribute value and the weight are considered comprehensively when determining the matching degree between the real-time song listening list and the song listening demand, improving the accuracy of the matching degree determination and the accuracy of the playing order determination.

[0076] Step 304, in response to the playing trigger operation of the real-time song listening list, playing the target song in the real-time song listening list.

[0077] The playing trigger operation can be a trigger operation on the entry information of the real-time listening list, or a trigger operation on a target song in the real-time listening list, both of which can trigger the playing of the real-time listening list.

[0078] Specifically, after the song playing device constructs the real-time listening list, when receiving a playing trigger operation of the real-time listening list by the user, the song playing device can play the target songs in the real-time listening list according to the third playing order of the real-time listening list. When the playing trigger operation is a trigger operation on the entry information of the real-time listening list, the song playing device can first play the target song ranked first in the real-time listening list, and then continue to play other target songs according to the third playing order. When the playing trigger operation is a trigger operation on a target song in the real-time listening list, the song playing device can first play the target song triggered at this time, and then continue to play other target songs according to the third playing order.

[0079] Optionally, the playing mode when playing the target songs in the real-time listening list can be switched to the target playing mode. The real-time listening list can also be played according to the new playing order determined by the song playing device in response to the switching playing operation according to the scheme of the above embodiments.

[0080] Exemplarily, Figure 4 Another schematic diagram of a song playing page provided by some embodiments of the present disclosure is shown in FIG. 4B. Figure 4 As shown in FIG. 4B, the song playing page 403 for the real-time listening list played according to the listening demand is displayed by taking the target list as the collection list. The song playing page 403 in which "Rock on the way to work" is the list name of the real-time listening list indicates that a song in the list is being played. At this time, the playing mode is also the target playing mode. The song playing page 403 is played on the basis of the list page 401 and the dialogue page 402.

[0081] The list page 401 can be displayed in response to a user's operation of displaying a collection list. The list page 401 displays the collection list and a dialogue control 4011. After the user triggers the dialogue control 4011, the dialogue page 402 can be displayed. The user can input a song listening demand in the dialogue page 402. For example, the song listening demand can be "I want to listen to fast-paced rock music suitable for commuting to work". According to the song listening demand, a real-time song listening list is constructed by extracting songs from the collection list, and a reply corresponding to the song listening demand is generated. The reply and a list entry of the real-time song listening list are displayed. For example, the list name of the real-time song listening list "Rock music on the way to work (16 songs)" can be the list entry. The gesture in the figure indicates a triggering operation on the list entry. Then, the first song in the real-time song listening list can be played in the song playing page 403. Alternatively, the list entry can be triggered to display the real-time song listening list. In response to a user's selection operation on one of the songs, the selected song can be played in the song playing page 403.

[0082] When the user triggers the list control 4031 in the song playing page 403, the song playing page 404 can be displayed. The song playing page 404 displays the real-time song listening list 4041 with the list name "Rock music on the way to work". The real-time song listening list 4041 includes 16 songs, and the 16 songs are sorted and played according to the third playing order described above. It can be understood that, Figure 4 The figures in the page are only examples and are not limited.

[0083] In related technologies, when a user wants to listen to a certain type of song, the user can only add songs to a list in batches or add songs to a list one by one and then play the songs. This method is time-consuming and laborious, and cannot quickly meet the user's needs when there is a clear demand. For example, if a user wants to listen to music without lyrics before going to bed, the user needs to create such a playlist in advance to listen to the music. This method is inefficient and has high labor costs.

[0084] In the above scheme, the song attributes that meet the user's needs are identified according to the song listening demand, and a song list that meets the song listening demand is created based on the existing list. This reduces the user's operation cost of sorting songs and creating a list, greatly improves the efficiency, and sorts the playing order of the created song list according to the matching degree with the song listening demand. This maximizes the satisfaction of the song listening demand when playing the song list, and eliminates the problem of sudden changes between songs, thereby improving the listening experience.

[0085] Next, the song playing scheme of the embodiments of the present disclosure will be further described through a specific example. For example, Figure 5 The schematic diagram of the song playing process provided by the embodiments of the present disclosure is as follows, Figure 5As shown, the figure shows the song playing process in the target play mode with the target list as the favorites list, specifically including: the client can store the song in the original song library in response to the user operation to add the song collection; the processing module can identify the song attributes of each song in the original song library to generate a song attribute database; the client plays the favorites list in response to the user operation and switches the play mode to the target play mode, can play the first song, and send the first song to the processing module. The first song can be the song triggered to play by the user in the favorites list; the processing module can pull song attribute data from the song attribute database, the song attribute data can include the song attributes of the first song and each song in the favorites list, determine the first play order of the favorites list based on the first song and the song attribute data, and return the first play order to the client; the client plays the favorites list in the first play order; the client can play the second song in response to the switch play operation, and send the second song to the processing module; the processing module can pull song attribute data from the song attribute database, the song attribute data can include the song attributes of the second song and each song in the favorites list, determine the second play order of the favorites list based on the second song and the song attribute data, and return the second play order to the client; the client plays the favorites list in the second play order. The above processing module can be set on the client or server, depending on the actual situation.

[0086] For example, Figure 6 A schematic diagram of another song playing process provided by an embodiment of the present disclosure is shown as follows: Figure 6 As shown in the figure, the song playing process for the user's input listening demand is displayed with the target list as the collection list, specifically including: the client can store the song in the original song library in response to the user operation to add the song collection; the processing module can identify the song attributes of each song in the original song library to generate a song attribute database; the client obtains the listening demand and can send the listening demand to the processing module; the processing module can pull the song attribute data from the song attribute database, and the song attribute data can include the song attributes of each song in the collection list, create a real-time listening list according to the listening demand and the song attribute data, and return the real-time listening list to the client; the client plays the target song in the real-time listening list according to the third playback order, and the third playback order is the playback order of the real-time listening list determined by the processing module.

[0087] The scheme provides identification of song attributes of a song by using an attribute identification model, and innovates determination of a playing order of a song list and a list creation manner. In a target playing mode, a song playing order is arranged according to attribute information and weights of the song, so that a song playing rhythm and style are more smooth and close, the experience problem of a large jump in rhythm and style between songs caused by inevitable song playing in the related art is solved, and a user's listening experience is smoother. Song attributes required in a listening demand are identified, and a song list meeting the requirements is created, so that the operation cost of a user in sorting and collecting songs and creating a song list is reduced, the problem that a user cannot quickly play songs adapted to a specific scene is solved, and a user creates a personalized song list more conveniently. The scheme can play songs smoothly according to the rhythm and genre of a song, effectively improve the listening experience effect, and quickly organize songs suitable for different scenes for a user according to different listening demands of the user in different scenes according to an existing song list.

[0088] Figure 7 A structural schematic diagram of a song playing device provided by some embodiments of the present disclosure is shown in the figure. The device can be implemented by software and / or hardware, and can be integrated in an electronic device. As shown in the figure, the device includes: Figure 7

[0089] The playing module 701 is configured to play a first song in response to a playing trigger operation of the first song in a target list in a target playing mode.

[0090] The first sorting module 702 is configured to determine a first playing order of the target list in the target playing mode according to the first song, and continue to play songs in the target list according to the first playing order.

[0091] The switching module 703 is configured to switch the first song to a second song for playing in response to a switching playing operation of the target list.

[0092] The second sorting module 704 is configured to determine a second playing order of the target list in the target playing mode according to the second song, and switch the first playing order to the second playing order to continue to play the songs in the target list.

[0093] Optionally, the first sorting module 702 includes:

[0094] The identification unit is configured to input the first song into an attribute identification model, and output attribute values and weights of first song attributes of the first song.

[0095] ​a matching unit configured to determine a plurality of relevancies of the first song to a plurality of songs in the target list according to attribute values and weights of the first song attributes;

[0096] a sequencing unit configured to sequence the plurality of songs in the target list in a descending order of the plurality of relevancies to obtain a first play sequence.

[0097] Optionally, the matching unit is configured to:

[0098] for each song in the target list, perform a weighted summation of the plurality of first song attributes, the plurality of attribute difference values of the first song and the weights of the first song attributes to obtain a correlation score, and determine a relevance of the song to the first song according to the correlation score, wherein the relevance is negatively correlated with the correlation score.

[0099] Optionally, the first song and the second song are not adjacent in the first play sequence.

[0100] Optionally, the apparatus further comprises a real-time list module, and the real-time list module comprises:

[0101] a obtaining unit configured to obtain a listening demand in response to an input operation on the target list;

[0102] a determining unit configured to determine a plurality of second song attributes and weights of the second song attributes based on the listening demand;

[0103] a constructing unit configured to extract songs from the target list based on the plurality of second song attributes and the weights of the second song attributes to construct a real-time listening list;

[0104] a listening unit configured to play a target song in the real-time listening list in response to a play triggering operation on the real-time listening list.

[0105] Optionally, the constructing unit comprises:

[0106] a first sub-unit configured to extract a plurality of target songs comprising the plurality of second song attributes from the target list;

[0107] a second sub-unit configured to determine a third play sequence of the plurality of target songs according to the plurality of second song attributes and the weights of the second song attributes;

[0108] a third sub-unit configured to sequence the plurality of target songs in the third play sequence to obtain the real-time listening list.

[0109] Optionally, the second sub-unit is configured to:

[0110] According to attribute values of the plurality of second song attributes of each of the target songs and weights of each of the second song attributes, a matching score is obtained by weighted summation, and according to the matching score, a matching degree of each of the target songs and the song listening demand is determined, wherein the matching degree is positively correlated with the matching score.

[0111] According to the matching degrees of the plurality of target songs from large to small, the plurality of target songs are sorted to obtain the third playing order.

[0112] The song playing device provided by the embodiments of the present disclosure can execute the song playing method provided by any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of the execution method.

[0113] The embodiments of the present disclosure further provide a computer program product, which comprises computer programs / instructions, and when the computer programs / instructions are executed by a processor, the song playing method provided by any of the embodiments of the present disclosure is realized.

[0114] Figure 8 The structural schematic diagram of an electronic device provided by some embodiments of the present disclosure is shown in FIG. 8. The specific reference is made below. Figure 8 FIG. 8 shows a structural schematic diagram of an electronic device 800 suitable for implementing the electronic device in the embodiments of the present disclosure. The electronic device 800 in the embodiments of the present disclosure can include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 8 The electronic device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.

[0115] As shown in FIG. 8, the electronic device 800 can include a bus 801, a processor 803, a memory 805, an input device 807, an output device 809, a display screen 811, a communication device 813, and a power supply 815. Figure 8As shown, the electronic device 800 can include a processing device 801 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a Read-Only Memory (ROM) 802 or loaded from a storage device 808 into a Random Access Memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An Input / Output (I / O) interface 805 is also connected to the bus 804.

[0116] Generally, the following devices can be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication devices 809 can allow the electronic device 800 to communicate wirelessly or wired with other devices to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that not all of the shown devices are required to be implemented or present. More or fewer devices can alternatively be implemented or present.

[0117] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 809, or installed from the storage devices 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the song playing method of embodiments of the present disclosure are performed.

[0118] It should be noted that the computer-readable medium described above in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the computer-readable program code is contained. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium that is not a storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to, wire, cable, radio frequency (RF), and the like, or any suitable combination thereof.

[0119] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as the HyperText Transfer Protocol (HTTP), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed network.

[0120] The computer-readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device and be not assembled into the electronic device.

[0121] The computer readable medium described above carries one or more programs, which when executed by the electronic device, cause the electronic device to: in response to a play trigger operation on a first song in a target list in a target play mode, play the first song; determine a first play order of the target list in the target play mode according to the first song, and continue to play songs in the target list in the first play order; in response to a switch play operation on the target list, switch the first song to a second song for playing; determine a second play order of the target list in the target play mode according to the second song, and switch the first play order to the second play order to continue to play songs in the target list.

[0122] Computer program code for carrying out operations of the present disclosure can be written in any of one or more programming languages, including object oriented programming languages such as Java, Smalltalk, C++, or conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0123] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in a different order than that noted in the figures. For example, two blocks noted in succession can in fact be executed substantially concurrently or in the opposite order, depending on the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations of blocks in the block diagrams and / or flow diagrams, can be implemented by dedicated hardware-based systems that carry out the specified functions or operations, or combinations of dedicated hardware and computer instructions.

[0124] The units described in the embodiments of the present disclosure can be implemented by software or by hardware. In some cases, the names of the units do not limit the units themselves.

[0125] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, example types of hardware logic components that can be used include Field-Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application-Specific Standard Products (ASSPs), System-on-a-Chip (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0126] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory, read-only memory, erasable programmable read-only memory, flash memory, fiber optics, portable compact disc read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0127] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type of information involved in the present disclosure, the range of use, the scene of use, etc. should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.

[0128] The above description is merely preferred embodiments of the present disclosure and a description of the principles of the technology used. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by replacing the above features with technical features disclosed in the present disclosure (but not limited to) having similar functions.

[0129] Moreover, while operations are depicted in a particular order, this should not be understood as requiring such an order nor infringing on the scope of the disclosure. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, while several specific implementation details are contained in the above discussion, these should not be taken as limiting the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.

[0130] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A song playing method, characterized in that: include: In response to a play triggering operation on a first song in a target play mode, playing the first song; determining a first play order of the target list in the target play mode according to the first song, and continuing to play the songs in the target list according to the first play order; In response to a switch play operation on the target list, switching the first song to the second song for playing; Determine the second play order of the target list in the target play mode according to the second song, and switch the first play order to the second play order to continue playing the songs in the target list.

2. The method according to claim 1, characterized in that Determining a first play order of the target list in the target play mode according to the first song includes: Inputting the first song into an attribute recognition model, and outputting an attribute value and a weight of a first song attribute of the first song; determining a plurality of relevances between the first song and a plurality of songs in the target list according to the attribute value and weight of the first song attribute; The songs in the target list are sorted in descending order according to the multiple relevances to obtain the first playing order.

3. The method according to claim 2, characterized in that Determining multiple relevances between the first song and multiple songs in the target list based on the attribute value and weight of the first song attribute includes: For each song in the target list, a weighted sum of the differences between the multiple first song attributes and the multiple attributes of the first song and the weights of each of the first song attributes is performed to obtain a correlation score, and the correlation between the song and the first song is determined based on the correlation score, wherein the correlation is negatively correlated with the correlation score.

4. The method according to claim 1, wherein The first song and the second song are not adjacent in the first play order.

5. The method according to claim 1, wherein The method further comprises: In response to an input operation on the target list, obtaining a song listening demand; Determining a plurality of corresponding second song attributes and a weight of each of the second song attributes based on the song listening demand; Extracting songs from the target list based on the plurality of second song attributes and the weight of each of the second song attributes to construct a real-time listening song list; In response to a play trigger operation on the real-time listening song list, a target song in the real-time listening song list is played.

6. The method according to claim 5, characterized in that Extracting songs from the target list based on the plurality of second song attributes and the weight of each second song attribute to construct a real-time listening song list includes: extracting a plurality of target songs including the plurality of second song attributes from the target list; determining a third play order of the plurality of target songs according to the plurality of second song attributes and the weight of each of the second song attributes; The multiple target songs are sorted according to the third play order to obtain the real-time listening song list.

7. The method according to claim 6, characterized in that Determining a third play order of the plurality of target songs according to the plurality of second song attributes and the weight of each of the second song attributes includes: A matching score is obtained by performing a weighted summation of the attribute values ​​of each target song in the plurality of second song attributes and the weight of each second song attribute, and a matching degree between each target song and the song listening requirement is determined according to the matching score, wherein the matching degree is positively correlated with the matching score; The multiple target songs are sorted in descending order according to the multiple matching degrees of the multiple target songs to obtain the third playing order.

8. A song playing device, characterized in that: include: a playing module, configured to play the first song in the target list in response to a play triggering operation on the first song in the target play mode; a first sorting module, configured to determine a first play order of the target list in the target play mode according to the first song, and continue to play the songs in the target list according to the first play order; a switching module, configured to switch the playing of the first song to the playing of the second song in response to a switching play operation on the target list; The second sorting module is used to determine the second play order of the target list in the target play mode according to the second song, and switch the first play order to the second play order to continue playing the songs in the target list.

9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the song playing method described in any one of claims 1-7 above.

10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to execute the song playing method described in any one of claims 1-7.