Song playing method, device and system, storage medium and program product

Through the audio characteristics of the song and the effect selection model, the most suitable effector is recommended, which solves the problem of time-consuming selection among multiple effects and improves selection efficiency.

CN118885148APending Publication Date: 2024-11-01TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410945657.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

When users use music playback applications, they need to manually select the effect, which makes it a long time to find the favorite effect among many effects.

Method used

By receiving the playback request of the song, obtaining its audio characteristics and inputting the effect selection model, determining the effect to be recommended based on the selection probability, providing feedback for users to choose, and simplifying the user's selection process.

Benefits of technology

Reduces the time the user selects in a large number of effects, improves selection efficiency, and allows users to choose among a small number of recommended effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885148A_ABST
    Figure CN118885148A_ABST
Patent Text Reader

Abstract

The invention provides a song playing method, device and system, a storage medium and a program product, and belongs to the technical field of Internet. According to the method, when a user plays a certain song, a small number of effectors more suitable for the song can be found for the user from a large number of effectors to serve as the to-be-recommended effectors to be fed back to the user, so that the user does not need to select from the large number of effectors and only needs to select from the small number of effectors, and the time for selecting the effectors by the user is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a song playing method, device, system, storage medium and program product. Background Art

[0002] When using music playing applications, users usually manually select effects (such as ancient style, rock, etc.). Different effects have different sound effects, which can make the song sound better. However, there are many types of effects. When users listen to a song, it takes a long time to try out many effects one by one to find the one they like best. Summary of the invention

[0003] In order to solve the related technical problems, the present disclosure provides a song playing method, device, system, storage medium and program product. The technical solution is as follows:

[0004] In a first aspect, a method for playing a song is provided, the method comprising:

[0005] Receive a request to play a target song;

[0006] Acquire the audio features of the target song;

[0007] Inputting the audio feature into an effector selection model to obtain selection information corresponding to a plurality of effectors output by the effector selection model;

[0008] Determining at least one effector to be recommended based on the selection information respectively corresponding to the multiple effectors;

[0009] The at least one effector to be recommended is used as feedback information to provide feedback for the playback request, wherein the feedback information is used to indicate selection of a target effector from the at least one effector to be recommended, and use the target effector to play the target song.

[0010] In a possible implementation manner, the selection information is a selection probability.

[0011] In a possible implementation, determining at least one effector to be recommended based on the selection information respectively corresponding to the multiple effectors includes:

[0012] Among the multiple effectors, a specified number of effectors are selected in descending order of selection probability as the effectors to be recommended.

[0013] In a possible implementation, determining at least one effector to be recommended based on the selection information respectively corresponding to the multiple effectors includes:

[0014] Selecting a first number of effectors from the plurality of effectors in descending order of selection probability;

[0015] Randomly selecting a second number of effectors from other effectors except the first number of effectors;

[0016] The first number of effectors and the second number of effectors are determined as effectors to be recommended.

[0017] In a possible implementation, the method further includes:

[0018] Obtain sample audio features of a sample song;

[0019] Determine sample selection probabilities of multiple effectors corresponding to the sample audio features;

[0020] Based on the sample audio features and the sample selection probabilities of the multiple effectors, the effector selection model to be trained is trained, and if the training end condition is met, a trained effector selection model is obtained.

[0021] In a possible implementation, the obtaining of sample selection probabilities corresponding to a plurality of effectors of the sample audio feature respectively includes:

[0022] Determine the number of times each effector is selected based on the effectors selected by different terminals when playing the sample song within the target duration;

[0023] Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

[0024] In a possible implementation, the obtaining of sample selection probabilities corresponding to a plurality of effectors of the sample audio feature respectively includes:

[0025] determining a number of times each effector is selected based on the effectsor selected during a specified number of historical playbacks of the sample song;

[0026] Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

[0027] In a possible implementation, the training of the effector selection model to be trained based on the sample audio features and the sample selection probabilities of the multiple effectors includes:

[0028] Inputting the sample audio features into the effector selection model to be trained, and obtaining the predicted selection probabilities corresponding to a plurality of effectors output by the effector selection model to be trained;

[0029] Determine a loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors and the sample selection probabilities;

[0030] Parameters of the effector selection model to be trained are adjusted based on the loss value.

[0031] In a possible implementation, determining the loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors and the sample selection probabilities includes:

[0032] Based on the sample selection probabilities respectively corresponding to the multiple effectors, determining weight values ​​respectively corresponding to the multiple effectors, wherein the weight values ​​are positively correlated with the corresponding sample selection probabilities;

[0033] A loss value is determined based on the predicted selection probabilities, the sample selection probabilities and the weight values ​​respectively corresponding to the multiple effectors.

[0034] In a possible implementation, the weight value corresponding to the effector is a power value with a specified value as a base and a sample selection probability corresponding to the effector as an exponent.

[0035] In a possible implementation, determining the loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors, the sample selection probabilities, and the weight values ​​includes:

[0036] Among them, k is the loss value, N is the total number of effectors, and coe i is the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector.

[0037] In a possible implementation, the method includes:

[0038] Sending a play request of a target song to a server, wherein the play request is used to instruct the server to obtain audio features of the target song, input the audio features into an effector selection model, obtain selection information corresponding to a plurality of effectors output by the effector selection model, and determine at least one effector to be recommended based on the selection information corresponding to the plurality of effectors;

[0039] receiving at least one effector to be recommended sent by the server;

[0040] displaying the at least one effector to be recommended;

[0041] In response to a selection operation of a target effector among the at least one effector to be recommended, the target song is played based on the target effector.

[0042] In a second aspect, a device for playing songs is provided, the device comprising:

[0043] A receiving module, used for receiving a request to play a target song;

[0044] An acquisition module, used to acquire the audio features of the target song;

[0045] A determination module, configured to input the audio feature into an effector selection model to obtain selection information corresponding to a plurality of effectors output by the effector selection model; and determine at least one effector to be recommended based on the selection information corresponding to the plurality of effectors;

[0046] A feedback module is used to use the at least one effector to be recommended as feedback information to provide feedback on the playback request, wherein the feedback information is used to indicate the selection of a target effector from the at least one effector to be recommended, and the use of the target effector to play the target song.

[0047] In a possible implementation manner, the selection information is a selection probability.

[0048] In a possible implementation manner, the determining module is used to:

[0049] Among the multiple effectors, a specified number of effectors are selected in descending order of selection probability as the effectors to be recommended.

[0050] In a possible implementation manner, the determining module is used to:

[0051] Selecting a first number of effectors from the plurality of effectors in descending order of selection probability;

[0052] Randomly selecting a second number of effectors from other effectors except the first number of effectors;

[0053] The first number of effectors and the second number of effectors are determined as effectors to be recommended.

[0054] In a possible implementation, the device further includes a training module, which is used to:

[0055] Obtain sample audio features of a sample song;

[0056] Determine sample selection probabilities of multiple effectors corresponding to the sample audio features;

[0057] Based on the sample audio features and the sample selection probabilities of the multiple effectors, the effector selection model to be trained is trained, and if the training end condition is met, a trained effector selection model is obtained.

[0058] In a possible implementation, the acquisition module is used to:

[0059] Determine the number of times each effector is selected based on the effectors selected by different terminals when playing the sample song within the target duration;

[0060] Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

[0061] In a possible implementation, the acquisition module is used to:

[0062] determining a number of times each effector is selected based on the effectsor selected during a specified number of historical playbacks of the sample song;

[0063] Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

[0064] In a possible implementation, the training module is used to:

[0065] Inputting the sample audio features into the effector selection model to be trained, and obtaining the predicted selection probabilities corresponding to a plurality of effectors output by the effector selection model to be trained;

[0066] Determine a loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors and the sample selection probabilities;

[0067] Parameters of the effector selection model to be trained are adjusted based on the loss value.

[0068] In a possible implementation, the training module is used to:

[0069] Based on the sample selection probabilities respectively corresponding to the multiple effectors, determining weight values ​​respectively corresponding to the multiple effectors, wherein the weight values ​​are positively correlated with the corresponding sample selection probabilities;

[0070] A loss value is determined based on the predicted selection probabilities, the sample selection probabilities and the weight values ​​respectively corresponding to the multiple effectors.

[0071] In a possible implementation, the weight value corresponding to the effector is a power value with a specified value as a base and a sample selection probability corresponding to the effector as an exponent.

[0072] In a possible implementation, the training module is used to:

[0073] Among them, k is the loss value, N is the total number of effectors, and coe i is the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector.

[0074] In a possible implementation, the device includes:

[0075] A sending module, used for sending a play request of a target song to a server, wherein the play request is used for instructing the server to obtain audio features of the target song, input the audio features into an effector selection model, obtain selection information corresponding to a plurality of effectors output by the effector selection model, and determine at least one effector to be recommended based on the selection information corresponding to the plurality of effectors;

[0076] A receiving module, used for receiving at least one effector to be recommended sent by the server;

[0077] A display module, used for displaying the at least one effector to be recommended;

[0078] The playing module is used for responding to the selection operation of the target effector among the at least one effector to be recommended, and playing the target song based on the target effector.

[0079] In a third aspect, a system for playing songs is provided, the system comprising a terminal and a server;

[0080] The terminal is used to send a play request of a target song to the server;

[0081] The server is used to receive a play request of a target song, obtain audio features of the target song, input the audio features into an effector selection model, obtain selection information corresponding to a plurality of effectors output by the effector selection model, determine at least one effector to be recommended based on the selection information corresponding to the plurality of effectors, use the at least one effector to be recommended as feedback information, and provide feedback on the play request;

[0082] The terminal is used to receive at least one effector to be recommended sent by the server, display the at least one effector to be recommended, and in response to a selection operation of a target effector among the at least one effector to be recommended, play the target song based on the target effector.

[0083] In a possible implementation manner, the selection information is a selection probability.

[0084] In a possible implementation manner, the server is used to:

[0085] Among the multiple effectors, a specified number of effectors are selected in descending order of selection probability as the effectors to be recommended.

[0086] In a possible implementation, the server is used to select a first number of effectors from the plurality of effectors in descending order of selection probability;

[0087] Randomly selecting a second number of effectors from other effectors except the first number of effectors;

[0088] The first number of effectors and the second number of effectors are determined as effectors to be recommended.

[0089] In a possible implementation manner, the server is used to:

[0090] Obtain sample audio features of a sample song;

[0091] Determine sample selection probabilities of multiple effectors corresponding to the sample audio features;

[0092] Based on the sample audio features and the sample selection probabilities of the multiple effectors, the effector selection model to be trained is trained, and if the training end condition is met, a trained effector selection model is obtained.

[0093] In a possible implementation manner, the server is used to:

[0094] Determine the number of times each effector is selected based on the effectors selected by different terminals when playing the sample song within the target duration;

[0095] Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

[0096] In a possible implementation manner, the server is used to:

[0097] determining a number of times each effector is selected based on the effectsor selected during a specified number of historical playbacks of the sample song;

[0098] Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

[0099] In a possible implementation manner, the server is used to:

[0100] Inputting the sample audio features into the effector selection model to be trained, and obtaining the predicted selection probabilities corresponding to a plurality of effectors output by the effector selection model to be trained;

[0101] Determine a loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors and the sample selection probabilities;

[0102] Parameters of the effector selection model to be trained are adjusted based on the loss value.

[0103] In a possible implementation manner, the server is used to:

[0104] Based on the sample selection probabilities respectively corresponding to the multiple effectors, determining weight values ​​respectively corresponding to the multiple effectors, wherein the weight values ​​are positively correlated with the corresponding sample selection probabilities;

[0105] A loss value is determined based on the predicted selection probabilities, the sample selection probabilities and the weight values ​​respectively corresponding to the multiple effectors.

[0106] In a possible implementation, the weight value corresponding to the effector used by the server is a power value with a specified value as the base and a sample selection probability corresponding to the effector as the exponent.

[0107] In a possible implementation manner, the server is used to:

[0108] Among them, k is the loss value, N is the total number of effectors, and coe i is the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector.

[0109] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by a computer device, the computer device executes the method provided by the first aspect and its possible implementation methods.

[0110] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program code. When the computer program code is executed by a computer device, the computer device executes the method provided by the first aspect and its possible implementation methods.

[0111] By adopting this method, when a user plays a song, a small number of effects that are more suitable for the song can be found among a large number of effects for the user, and the effects to be recommended are fed back to the user. In this way, the user does not need to choose from a large number of effects, but only needs to choose from a small number of effects, thus shortening the time for the user to select effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0112] Figure 1 is a structural diagram of a server provided by an embodiment of the present disclosure;

[0113] Figure 2 is a schematic diagram of the structure of a terminal provided by an embodiment of the present disclosure;

[0114] Figure 3 It is a schematic diagram of a processing flow of a song playing method provided by an embodiment of the present disclosure;

[0115] Figure 4 It is a schematic diagram of a processing flow of obtaining samples and training models provided by an embodiment of the present disclosure;

[0116] Figure 5 It is a schematic diagram of a processing flow for training an effector selection model provided by an embodiment of the present disclosure;

[0117] Figure 6 is a schematic diagram of a song playing device provided by an embodiment of the present disclosure;

[0118] Figure 7 is a schematic diagram of a song playing device provided by an embodiment of the present disclosure;

[0119] Figure 8 It is a system schematic diagram of a song playing provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0120] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0121] The disclosed embodiment provides a method for playing songs, and the execution subject of the method can be a server and a terminal, or it can be executed independently by the terminal. The terminal can be a mobile phone, a tablet computer, a smart screen, a laptop computer, a desktop computer, etc. The terminal can be installed with a music playback application. The server can be the background server of the application, and can be a separate server or a server group. If it is a separate server, the server can be responsible for all the processing in the following scheme. If it is a server group, different servers in the server group can be responsible for different processing in the following scheme. The specific processing distribution can be arbitrarily set by the technician according to actual needs, and will not be repeated here. The disclosed embodiment takes the execution subject as a server and a terminal as an example to explain the scheme in detail. Other situations are similar, and this embodiment will not be repeated.

[0122] Figure 1 is a schematic diagram of the structure of a server provided by an embodiment of the present disclosure. From the perspective of hardware composition, the structure of the server can be as follows Figure 1 As shown, it includes a processor 110 , a memory 120 and a communication component 130 .

[0123] The processor 110 may be a central processing unit (CPU) or a system on chip (SoC), etc. The processor 110 may be used to process various operation instructions, for example, determining audio features of a target song, etc.

[0124] The memory 120 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 120 may be used to store initial data, intermediate data, and result data used in the relevant processing process, for example, to store audio data, audio features, etc.

[0125] The communication component 130 may be a wired network connector, ultra wide band (UWB), wireless fidelity (WiFi) module, Bluetooth module, cellular network communication module, etc. The communication component 130 may be used to transmit data with other devices, which may be other servers or terminals, etc. For example, receiving a request to play a target song.

[0126] Figure 2 is a schematic diagram of a terminal structure provided by an embodiment of the present disclosure. From the perspective of hardware composition, the structure of the server can be as follows: Figure 2As shown, it includes a processor 210 , a memory 220 , a display component 230 and a communication component 240 .

[0127] The processor 210 may be a CPU or a SoC, etc. The processor 210 may be used to process various operation instructions, for example, process selection operations, etc.

[0128] The memory 220 may include various volatile memories or non-volatile memories, such as SSD, DRAM memory, etc. The memory 220 may be used to store initial data, intermediate data, and result data used in the relevant processing process, for example, to store the identification of the song, etc.

[0129] The display component 230 can be an independent screen, or a screen integrated with the terminal body, a projector, etc. The screen can be a touch screen or a non-touch screen (which can be broadcast remotely). The display component 230 is used to display the system interface, application interface, etc., for example, displaying the music playback interface, etc.

[0130] The communication component 230 may be a wired network connector, UWB, WiFi module, Bluetooth module, cellular network communication module, etc. The communication component 240 may be used to transmit data with other devices, which may be other servers or terminals, etc. For example, to receive feedback information.

[0131] In order to meet the diverse needs of users for listening to songs, music playback applications generally have a variety of effects, and different effects have different listening effects. When using music playback applications, users generally manually select effects. However, there are many types of effects, and it takes a long time for users to try one by one to find the most favorite effect. In order to improve the efficiency of users selecting effects during the process of listening to songs, the present disclosure provides a method for playing songs. The following is a detailed description of the song playback process. Figure 3 As shown, the following steps are included:

[0132] 301, the terminal sends a request to play the target song to the server.

[0133] In music playing applications, users can select target songs in a variety of ways, such as searching for the target song in the search bar, clicking the target song on the recommendation page, etc. After the user selects the target song, the terminal sends a request to play the target song to the server.

[0134] 302. The server obtains the audio features of the target song.

[0135] The server may pre-store the audio data of the song, as shown in Table 1. After receiving the play request of the target song, the server may find the audio data corresponding to the target song in the pre-stored audio data, perform feature extraction on the audio data, and obtain the audio features of the target song. Alternatively, the server may pre-store the audio features of the song, as shown in Table 2. After receiving the play request of the target song, the server may find the audio features corresponding to the target song in the pre-stored audio features.

[0136] Table 1

[0137] song Audio Data 1 A 2 B …… ……

[0138] Table 2

[0139] song Audio Features 1 C 2 D …… ……

[0140] 303. The server inputs the audio feature into the effector selection model to obtain selection information corresponding to the multiple effectors output by the effector selection model.

[0141] After the server obtains the audio features of the target song, it inputs the audio features of the target song into the effector selection model to obtain selection information corresponding to multiple effectors output by the effector selection model. The effector selection model can be a machine learning model, and the technician can train the effector model in advance.

[0142] The selection information may be a selection probability.

[0143] For example, the audio features of the target song 1 are input into the effector selection model, and the selection information corresponding to the multiple effects output by the effector selection model can be shown in Table 3. The target song 1 output by the effector selection model corresponds to three effects, the selection information corresponding to "heavy bass" is 0.7, the selection information corresponding to "soft and slow rock" is 0.1, and the selection information corresponding to "rock" is 0.2.

[0144] Table 3

[0145]

[0146] 304. The server determines at least one effector to be recommended based on the selection information corresponding to the multiple effectors.

[0147] Among multiple effectors, a specified number of effectors are selected in descending order of selection probability as the effectors to be recommended.

[0148] After obtaining the selection information corresponding to the multiple effects output by the effect selection model, the multiple effects can be sorted according to the selection information. For example, the three effects corresponding to the target song 1 are sorted from high to low according to the selection information as "heavy bass", "soft and slow rock", and "rock".

[0149] The technician can pre-set the designated number of effects to be recommended, and the user can also adjust the designated number of effects to be recommended. According to the designated number of effects to be recommended, the same number of effects are selected from the sorted effects. For example, the designated number of effects to be recommended for target song 1 is preset to 2, and the two effects "heavy bass" and "rock" should be selected as the effects to be recommended from the sorted effects.

[0150] In addition, after selecting a first number of effects from multiple effectors in descending order of selection probability, a second number of effects can be randomly selected from effectors other than the first number of effects, and the first number of effects and the second number of effects can be determined as the effects to be recommended.

[0151] 305. The server uses at least one effector to be recommended as feedback information to respond to the play request.

[0152] The feedback information is used to indicate the selection of a target effector from at least one effector to be recommended, and the target song is played using the target effector.

[0153] 306. The terminal displays at least one effector to be recommended sent by the server.

[0154] After receiving at least one effector to be recommended, the terminal may directly display it, or may sort the at least one effector to be recommended from high to low according to the selection probability to obtain an effector display order, and display it according to the effector display order.

[0155] 307 , the terminal plays a target song based on the target effector in response to a selection operation of the target effector among at least one effector to be recommended.

[0156] The user can click on an effector from at least one of the displayed effects to be recommended as a target effector. After receiving the click operation, the terminal uses the target effector to play the target song.

[0157] In one possible implementation, the process of obtaining samples and training the model can be as follows: Figure 4 As shown, the following steps are included:

[0158] 401, obtaining sample audio features of a sample song.

[0159] The audio data of a large number of sample songs played by users on the terminal are obtained, and the audio features are extracted as the sample audio features.

[0160] 402 , determine sample selection probabilities of multiple effectors corresponding to the sample audio features.

[0161] The user's sound effect selection history is obtained, including the effects of a large number of songs and the corresponding selection times, as shown in Table 4.

[0162] Table 4

[0163]

[0164] There are two ways to determine the sample selection probability.

[0165] Method 1: Based on the effects selected during the historical playback of the sample song for a specified number of times, the number of times each effect is selected is determined, and based on the number of times each effect is selected, the sample selection probability of multiple effects corresponding to the sample audio feature is determined.

[0166] The technician can set a frequency threshold to filter out songs that are selected less than the frequency threshold. For example, the frequency threshold is 10, and the number of selections corresponding to the "gentle and slow rock" effector of song 1 in Table 4 is less than the frequency threshold, so "gentle and slow rock" is filtered out. The selection probabilities of "heavy bass", "rock", and "super heavy bass" samples are 5 / 11, 3 / 11, and 3 / 11.

[0167] Method 2: Based on the effects selected by different terminals when playing sample songs within the target duration, determine the number of times each effect is selected, and based on the number of times each effect is selected, determine the sample selection probability of multiple effects corresponding to the sample audio features.

[0168] The technician can set a target duration, for example, 1 hour, 1 day, etc.

[0169] 403, based on the sample audio features and the sample selection probabilities of the multiple effectors, the effector selection model to be trained is trained, and if the training end condition is met, a trained effector selection model is obtained.

[0170] The sample audio features are input into the effector selection model to be trained to obtain the predicted selection probability output by the effector selection model to be trained, the predicted selection probability is compared with the sample selection probability, and the parameters of the effector selection model to be trained are adjusted. If the training end conditions are met, the trained effector selection model is obtained.

[0171] In a possible implementation, the specific process of training the effector selection model can be as follows: Figure 5As shown, the following steps are included:

[0172] 501, input the sample audio features into the effector selection model to be trained, and obtain the predicted selection probabilities of multiple effectors output by the effector selection model to be trained.

[0173] 502, determine a loss value based on the predicted selection probabilities and sample selection probabilities of the multiple effectors.

[0174] Based on the sample selection probability, the weight value of each effector of each sample audio feature is determined. The weight value is positively correlated with the sample selection probability. The weight value corresponding to the effector is a power value with the specified value as the base and the sample selection probability corresponding to the effector as the exponent. The formula is Among them, i is the i-th effector, coe i is the weight value corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector, and the weight value corresponding to the effector is a power value with the specified value as the base and the sample selection probability corresponding to the effector as the exponent.

[0175] The loss value is determined based on the predicted selection probability, sample selection probability and weight value corresponding to multiple effectors. For a sample audio feature, the loss value is k is the loss value, coe i is the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector.

[0176] During the training process, the loss value of each sample audio feature can be used to adjust the parameters separately. Alternatively, the sum of the loss values ​​of multiple sample audio features can be used as the final loss value to adjust the parameters once. The corresponding loss value calculation can be used as follows Among them, K is the final loss value, M is the total number of sample audio features, N is the total number of effectors, and coe ij is the weight value corresponding to the i-th effector of the j-th sample audio feature, is the predicted selection probability corresponding to the i-th effector of the j-th sample audio feature, y ij is the sample selection probability corresponding to the i-th effector of the j-th sample audio feature.

[0177] 503, adjusting parameters of the effector selection model to be trained based on the loss value.

[0178] There are many conditions for ending training, such as the loss value is less than the loss value threshold, the number of training times reaches the training time threshold, and so on.

[0179] In the disclosed embodiment, when a user plays a song, a small number of effects that are more suitable for the song can be found for the user from a large number of effects, and the effects can be fed back to the user as recommended effects. In this way, the user does not need to choose from a large number of effects, but only needs to choose from a small number of effects, thereby shortening the time taken for the user to select effects.

[0180] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.

[0181] The disclosed embodiment also provides a device for playing songs, such as Figure 6 As shown, the device comprises:

[0182] The receiving module 610 is used to receive a request to play the target song, and can specifically implement the processing function of the above step 302 and other implicit steps.

[0183] The acquisition module 620 is used to acquire the audio features of the target song, and can specifically implement the processing function of the above step 302 and other implicit steps.

[0184] The determination module 630 is used to input the audio features into the effector selection model, obtain the selection information corresponding to the multiple effectors output by the effector selection model, and determine at least one effector to be recommended based on the selection information corresponding to the multiple effectors. Specifically, the processing functions of the above steps 303 and 304, as well as other implicit steps, can be realized.

[0185] The feedback module 640 is used to use at least one effector to be recommended as feedback information to provide feedback on the play request, wherein the feedback information is used to indicate that a target effector is selected from the at least one effector to be recommended, and the target song is played using the target effector. Specifically, the processing function of the above step 305 and other implicit steps can be implemented.

[0186] In one possible implementation, the selection information is a selection probability.

[0187] In a possible implementation, the determination module 630 is used to select a specified number of effectors from a plurality of effectors in descending order of selection probability as effectors to be recommended. Specifically, the processing function of the above step 304 and other implicit steps may be implemented.

[0188] In a possible implementation, the determination module 630 is used to select a first number of effectors from a plurality of effectors in descending order of selection probability, randomly select a second number of effectors from effectors other than the first number of effectors, and determine the first number of effectors and the second number of effectors as effectors to be recommended. Specifically, the processing function of the above step 304 and other implicit steps can be implemented.

[0189] In a possible implementation, the device further includes a training module 650, which is used to obtain sample audio features of the sample song, determine the sample selection probabilities of multiple effectors corresponding to the sample audio features, and train the effector selection model to be trained based on the sample audio features and the sample selection probabilities of the multiple effectors. If the training end condition is met, the trained effector selection model is obtained. Specifically, the processing functions of the above steps 401, 402, and 403, as well as other implicit steps, can be realized.

[0190] In a possible implementation, the acquisition module 620 is used to determine the number of times each effector is selected based on the effects selected by different terminals when playing the sample song within the target duration, and determine the sample selection probability of multiple effects corresponding to the sample audio feature based on the number of times each effector is selected. Specifically, the processing function of the above step 402 and other implicit steps can be implemented.

[0191] In a possible implementation, the acquisition module 620 is used to determine the number of times each effector is selected based on the effectors selected during the specified number of historical playbacks of the sample song, and determine the sample selection probability of multiple effectors corresponding to the sample audio feature based on the number of times each effector is selected. Specifically, the processing function of the above step 402 and other implicit steps can be implemented.

[0192] In a possible implementation, the training module 650 is used to input the sample audio features into the effector selection model to be trained, obtain the predicted selection probabilities corresponding to the multiple effectors output by the effector selection model to be trained, determine the loss value based on the predicted selection probabilities and sample selection probabilities corresponding to the multiple effectors, and adjust the parameters of the effector selection model to be trained based on the loss value. Specifically, the processing functions of the above steps 501, 502, and 503, as well as other implicit steps, can be realized.

[0193] In a possible implementation, the training module 650 is used to determine the weight values ​​corresponding to the multiple effectors based on the sample selection probabilities corresponding to the multiple effectors, wherein the weight values ​​are positively correlated with the corresponding sample selection probabilities, and determine the loss value based on the predicted selection probabilities, sample selection probabilities and weight values ​​corresponding to the multiple effectors. Specifically, the processing function of the above step 502 and other implicit steps can be implemented.

[0194] In a possible implementation, the weight value corresponding to the effector is a power value with a specified value as the base and a sample selection probability corresponding to the effector as the exponent. Specifically, the processing function of the above step 502 and other implicit steps can be implemented.

[0195] In one possible implementation, the training module 650 is used to Among them, k is the loss value, N is the total number of effectors, and coe i is the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector. Specifically, the processing function of the above step 502 and other implicit steps can be realized.

[0196] The disclosed embodiment also provides a device for playing songs, such as Figure 7 As shown, the device comprises:

[0197] The sending module 710 is used to send a play request of the target song to the server, wherein the play request is used to instruct the server to obtain the audio features of the target song, input the audio features into the effector selection model, obtain the selection information corresponding to the multiple effectors output by the effector selection model, and determine at least one effector to be recommended based on the selection information corresponding to the multiple effectors. Specifically, the processing function of the above step 301 and other implicit steps can be realized.

[0198] The receiving module 720 is used to receive at least one effector to be recommended sent by the server, and can specifically implement the processing function of the above step 306 and other implicit steps.

[0199] The display module 730 is used to display at least one effector to be recommended, and can specifically implement the processing function of the above step 306 and other implicit steps.

[0200] The playing module 740 is used to respond to the selection operation of the target effector among the at least one effector to be recommended, and to play the target song based on the target effector. Specifically, it can realize the processing function of the above step 307 and other implicit steps.

[0201] In the disclosed embodiment, when a user plays a song, a small number of effects that are more suitable for the song can be found for the user from a large number of effects, and the effects can be fed back to the user as recommended effects. In this way, the user does not need to choose from a large number of effects, but only needs to choose from a small number of effects, thereby shortening the time taken for the user to select effects.

[0202] The disclosed embodiment also provides a system for playing songs, such as Figure 8 As shown, the system includes a terminal and a server;

[0203] Terminal 810 is used to send a play request of a target song to server 820. Specifically, the processing function of step 301 and other implicit steps can be implemented.

[0204] The server 820 is used to receive a play request of a target song, obtain audio features of the target song, input the audio features into the effector selection model, obtain selection information corresponding to multiple effectors output by the effector selection model, determine at least one effector to be recommended based on the selection information corresponding to the multiple effectors, and use the at least one effector to be recommended as feedback information to provide feedback on the play request. Specifically, the processing functions of the above steps 302, 303, 304, and 305, as well as other implicit steps, can be implemented.

[0205] The terminal 810 is used to receive at least one effector to be recommended sent by the server 820, display at least one effector to be recommended, and in response to a selection operation of a target effector among the at least one effector to be recommended, play a target song based on the target effector. Specifically, the processing functions of the above steps 306 and 307, as well as other implicit steps, can be realized.

[0206] In one possible implementation, the selection information is a selection probability.

[0207] In a possible implementation, the server 820 is used to select a specified number of effectors from a plurality of effectors in descending order of selection probability as the effectors to be recommended. Specifically, the processing function of the above step 304 and other implicit steps may be implemented.

[0208] In a possible implementation, the server 820 is configured to select a first number of effectors from a plurality of effectors in descending order of selection probability, randomly select a second number of effectors from effectors other than the first number of effectors, and determine the first number of effectors and the second number of effectors as effectors to be recommended. Specifically, the processing function of the above step 304 and other implicit steps may be implemented.

[0209] In a possible implementation, the server 820 is used to obtain the sample audio features of the sample song, determine the sample selection probabilities of multiple effectors corresponding to the sample audio features, and train the effector selection model to be trained based on the sample audio features and the sample selection probabilities of the multiple effectors. If the training end condition is met, the trained effector selection model is obtained. Specifically, the processing functions of the above steps 401, 402, and 403, as well as other implicit steps, can be implemented.

[0210] In a possible implementation, the server 820 is used to determine the number of times each effector is selected based on the effects selected by different terminals when playing the sample song within the target duration, and determine the sample selection probability of multiple effects corresponding to the sample audio feature based on the number of times each effector is selected. Specifically, the processing function of the above step 402 and other implicit steps can be implemented.

[0211] In a possible implementation, the server 820 is used to determine the number of times each effector is selected based on the effectors selected during the specified number of historical playbacks of the sample song, and determine the sample selection probability of multiple effectors corresponding to the sample audio feature based on the number of times each effector is selected. Specifically, the processing function of the above step 402 and other implicit steps can be implemented.

[0212] In a possible implementation, the server 820 is used to input the sample audio features into the effector selection model to be trained, obtain the predicted selection probabilities corresponding to the multiple effectors output by the effector selection model to be trained, determine the loss value based on the predicted selection probabilities and sample selection probabilities corresponding to the multiple effectors, and adjust the parameters of the effector selection model to be trained based on the loss value. Specifically, the processing functions of the above steps 501, 502, and 503, as well as other implicit steps, can be realized.

[0213] In a possible implementation, the server 820 is used to determine the weight values ​​corresponding to the multiple effectors based on the sample selection probabilities corresponding to the multiple effectors, wherein the weight values ​​are positively correlated with the corresponding sample selection probabilities, and determine the loss value based on the predicted selection probabilities, sample selection probabilities, and weight values ​​corresponding to the multiple effectors. Specifically, the processing function of the above step 502 and other implicit steps can be implemented.

[0214] In a possible implementation, the weight value corresponding to the effector is a power value with a specified value as the base and a sample selection probability corresponding to the effector as the exponent.

[0215] In a possible implementation, the server 820 is used to Among them, k is the loss value, N is the total number of effectors, and coe iis the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector. Specifically, the processing function of the above step 502 and other implicit steps can be realized.

[0216] In the disclosed embodiment, when a user plays a song, a small number of effects that are more suitable for the song can be found for the user from a large number of effects, and the effects can be fed back to the user as recommended effects. In this way, the user does not need to choose from a large number of effects, but only needs to choose from a small number of effects, thereby shortening the time taken for the user to select effects.

[0217] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0218] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0219] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

Claims

1. A method for playing a song, characterized in that: The method comprises: Receive a request to play a target song; Acquire the audio features of the target song; Inputting the audio feature into an effector selection model to obtain selection information corresponding to a plurality of effectors output by the effector selection model; Determining at least one effector to be recommended based on the selection information respectively corresponding to the multiple effectors; The at least one effector to be recommended is used as feedback information to provide feedback for the playback request, wherein the feedback information is used to indicate selection of a target effector from the at least one effector to be recommended, and use the target effector to play the target song.

2. The method according to claim 1, characterized in that The selection information is the selection probability.

3. The method according to claim 2, characterized in that The determining at least one effector to be recommended based on the selection information respectively corresponding to the plurality of effectors comprises: Among the multiple effectors, a specified number of effectors are selected in descending order of selection probability as the effectors to be recommended.

4. The method according to claim 2, characterized in that: The determining at least one effector to be recommended based on the selection information respectively corresponding to the plurality of effectors comprises: Selecting a first number of effectors from the plurality of effectors in descending order of selection probability; Randomly selecting a second number of effectors from other effectors except the first number of effectors; The first number of effectors and the second number of effectors are determined as effectors to be recommended.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtain sample audio features of a sample song; Determine sample selection probabilities of multiple effectors corresponding to the sample audio features; Based on the sample audio features and the sample selection probabilities of the multiple effectors, the effector selection model to be trained is trained, and if the training end condition is met, a trained effector selection model is obtained.

6. The method according to claim 5, characterized in that The obtaining of the sample audio feature's respective corresponding sample selection probabilities of the plurality of effectors includes: Determine the number of times each effector is selected based on the effectors selected by different terminals when playing the sample song within the target duration; Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

7. The method according to claim 5, characterized in that The obtaining of the sample audio feature's respective corresponding sample selection probabilities of the plurality of effectors includes: determining a number of times each effector is selected based on the effectsor selected during a specified number of historical playbacks of the sample song; Based on the number of times each effector is selected, sample selection probabilities of the multiple effectors corresponding to the sample audio features are determined.

8. The method according to claim 5, characterized in that The step of training the effector selection model to be trained based on the sample audio features and the sample selection probabilities of the multiple effectors includes: Inputting the sample audio features into the effector selection model to be trained, and obtaining the predicted selection probabilities corresponding to a plurality of effectors output by the effector selection model to be trained; Determine a loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors and the sample selection probabilities; Parameters of the effector selection model to be trained are adjusted based on the loss value.

9. The method according to claim 8, characterized in that The determining of the loss value based on the predicted selection probabilities and the sample selection probabilities respectively corresponding to the multiple effectors includes: Based on the sample selection probabilities respectively corresponding to the multiple effectors, determining weight values ​​respectively corresponding to the multiple effectors, wherein the weight values ​​are positively correlated with the corresponding sample selection probabilities; A loss value is determined based on the predicted selection probabilities, the sample selection probabilities and the weight values ​​respectively corresponding to the multiple effectors.

10. The method according to claim 9, characterized in that The weight value corresponding to the effector is a power value with a specified value as the base and a sample selection probability corresponding to the effector as the exponent.

11. The method according to claim 9, characterized in that The determining of the loss value based on the predicted selection probabilities respectively corresponding to the multiple effectors, the sample selection probabilities and the weight values ​​includes: Among them, k is the loss value, N is the total number of effectors, and coe i is the weight value corresponding to the i-th effector, is the predicted selection probability corresponding to the i-th effector, y i is the sample selection probability corresponding to the i-th effector.

12. A method for playing a song, characterized in that: The method comprises: Sending a play request of a target song to a server, wherein the play request is used to instruct the server to obtain audio features of the target song, input the audio features into an effector selection model, obtain selection information corresponding to a plurality of effectors output by the effector selection model, and determine at least one effector to be recommended based on the selection information corresponding to the plurality of effectors; receiving at least one effector to be recommended sent by the server; displaying the at least one effector to be recommended; In response to a selection operation of a target effector among the at least one effector to be recommended, the target song is played based on the target effector.

13. A system for playing songs, characterized in that: The system includes a terminal and a server; The terminal is used to send a play request of a target song to the server; The server is used to receive a play request of a target song, obtain audio features of the target song, input the audio features into an effector selection model, obtain selection information corresponding to a plurality of effectors output by the effector selection model, determine at least one effector to be recommended based on the selection information corresponding to the plurality of effectors, use the at least one effector to be recommended as feedback information, and provide feedback on the play request; The terminal is used to receive at least one effector to be recommended sent by the server, display the at least one effector to be recommended, and in response to a selection operation of a target effector among the at least one effector to be recommended, play the target song based on the target effector.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code. When the computer program code is executed by a computer device, the computer device executes the method according to any one of claims 1 to 12.

15. A computer program product, characterized in that The computer program product comprises a computer program code. When the computer program code is executed by a computer device, the computer device performs the method according to any one of claims 1 to 12.