Audio playback method, device, equipment and storage medium based on user scenario

By obtaining user scenarios and historical data, calculating recommendation coefficients to determine target preset information, and adjusting audio parameters, the problem of low adaptability and convenience of audio playback in the existing technology is solved, and better audio in different environments is achieved. matching and usage experience.

CN118551073BActive Publication Date: 2024-10-22LINKPLAY TECHNOLOGY INC NANJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410992945.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-22
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing audio playback control methods do not consider the user's usage preferences in different environments, resulting in low matching between the audio preset information and the audio parameters in the user's current environment, reducing the adaptability and convenience of audio playback.

Method used

By obtaining the current user scenario and historical data, the candidate preset information corresponding to the target user scenario is screened out, the recommendation coefficient is calculated based on the scenario relevance, the number of plays and the number of times selected, the target preset information is determined, and the playback parameters of the audio device are adjusted to Implement adaptive audio playback.

Benefits of technology

It improves the adaptability and convenience of audio playback, reduces the need for users to adjust audio parameters, and improves the audio experience in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551073B_ABST
    Figure CN118551073B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of audio technology, and discloses a user scenario-based audio playback method, device, equipment and storage medium for improving the adaptability and convenience of audio playback. The user scenario-based audio playback method includes: obtaining the target user scenario and user history data of the user at the current moment; filtering out multiple candidate preset information corresponding to the target user scenario from a preset device configuration information table; statistically analyzing the scene relevance, playback times and selection times of the corresponding preset state of each candidate preset information based on the user history data; calculating the recommendation coefficient of each candidate preset information based on the scene relevance, playback times and selection times; determining the target preset information from multiple candidate preset information according to the recommendation coefficient; adjusting the playback parameters of the audio device based on the target preset information, and playing the audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio technology, and in particular to a user scenario-based audio playback method, device, equipment and storage medium. Background Art

[0002] Existing audio playback control methods generally obtain the audio to be played and audio preset information and play the audio to be played based on the audio preset information. This solution does not take into account the user's usage preferences in different environments, resulting in a low match between the audio preset information and the audio parameter preferences used by the user in the current environment. The user is often required to readjust the audio parameters, which reduces the adaptability and convenience of audio playback. Summary of the invention

[0003] The present invention provides a user scenario-based audio playback method, device, equipment and storage medium to solve the problem that the prior art does not consider the user's usage preferences in different environments, resulting in low adaptability and convenience of audio playback.

[0004] The first aspect of the present invention provides an audio playback method based on user scenarios, comprising: obtaining a target user scenario and user history data in which a user is currently located; filtering out multiple candidate preset information corresponding to the target user scenario from a preset device configuration information table, wherein the device configuration information table includes multiple preset states, and each preset state includes preset information of multiple different user scenarios; based on the user history data, performing statistics on the scenario relevance, the number of playbacks, and the number of selections of the corresponding preset state of each candidate preset information; calculating a recommendation coefficient of each candidate preset information based on the scenario relevance, the number of playbacks, and the number of selections; determining a target preset information from the multiple candidate preset information according to the recommendation coefficient; adjusting the playback parameters of the audio device based on the target preset information, and playing the audio.

[0005] In a feasible implementation, obtaining the target user scenario and user history data of the user at the current moment includes: obtaining relevant data of the user's environment at the current moment through a preset sensor; analyzing the relevant data based on a preset model to obtain the target user scenario; and retrieving the user's audio usage information from the local storage of the audio device to obtain the user history data.

[0006] In a feasible implementation, the method of obtaining relevant data of the user's environment at the current moment through a preset sensor includes: collecting brightness data of the ambient light at the user's current moment through a light sensor; collecting acceleration data of the audio device at the current moment through an accelerometer; collecting geographic location information of the user at the current moment through a locator; and collecting sound wave signals at the user's current moment through an audio detector.

[0007] In a feasible implementation, the relevant data is analyzed based on a preset model to obtain a target user scenario, including: extracting features from the relevant data through a neural convolutional network to obtain feature information; inputting the feature information into a scene classification model, and predicting the target user scenario based on the classification rules of the scene classification model.

[0008] In a feasible implementation manner, the scene relevance, number of playbacks and number of selections of the corresponding preset state of each candidate preset information based on the user history data are counted, including: filtering out the number of playbacks of each candidate preset information from the user history data; determining the number of selections of the preset state corresponding to each candidate preset information based on the user history data, and calculating the total number of playbacks of all preset information contained in each preset state; and calculating the scene relevance of each candidate preset information according to the number of playbacks of each candidate preset information and the corresponding total number of playbacks.

[0009] In a feasible implementation manner, the recommendation coefficient of each candidate preset information is calculated based on the scene relevance, the number of playbacks and the number of selections, including: configuring corresponding weights for the scene relevance, the number of playbacks and the number of selections; calculating a first coefficient, a second coefficient and a third coefficient according to the number of selections, the scene relevance and the number of playbacks and the corresponding weights respectively; and calculating the recommendation coefficient of each candidate preset information based on the first coefficient, the second coefficient and the third coefficient.

[0010] In a feasible implementation, when the number of selections corresponds to a first weight, the scene relevance corresponds to a second weight, and the number of playbacks corresponds to a third weight, the first coefficient, the second coefficient, and the third coefficient are calculated based on the number of selections, the scene relevance, and the number of playbacks and the corresponding weights, respectively, including: normalizing the number of playbacks to obtain a playback coefficient; multiplying the first weight by the number of selections to obtain a first coefficient; multiplying the second weight by the scene relevance to obtain a second coefficient; and multiplying the third weight by the playback coefficient to obtain a third coefficient.

[0011] In a feasible implementation manner, the method of determining the target preset information from multiple candidate preset information based on the recommendation coefficient also includes: arranging all the recommendation coefficients and selecting the recommendation coefficient ranked first as the initialization recommendation coefficient; selecting the current recommendation coefficient in the arrangement order for comparison with the initialization recommendation coefficient, and if the current recommendation coefficient is greater than the initialization recommendation coefficient, updating the initialization recommendation coefficient until all the recommendation coefficients are traversed to obtain the target recommendation coefficient, and the target recommendation coefficient is the final updated initialization recommendation coefficient; determining the target preset information from the multiple candidate preset information based on the target recommendation coefficient.

[0012] In a feasible implementation manner, the user scenario-based audio playback method further includes: synchronizing the target preset information to the device to be synchronized via a communication protocol.

[0013] In a feasible implementation, synchronizing the target preset information to the device to be synchronized through a communication protocol includes: receiving an update instruction, creating a synchronization message based on the update instruction and the target preset information, the synchronization message including the target preset information and identification information; publishing the synchronization message to a predetermined message queue so that the device to be synchronized synchronizes the synchronization message.

[0014] In a feasible implementation, the user scenario-based audio playback method further includes: receiving a target instruction from a user to trigger the smart button; executing a corresponding preset function based on the target instruction, the preset functions including one-click audio playback, one-click switching of audio input sources, one-click switching of audio playback modes, one-click adjustment of audio playback sound effects, and one-click collection of audio content.

[0015] In a feasible implementation, executing the corresponding preset function based on the target instruction includes: parsing the target instruction and extracting key information; constructing a hash key based on the key information; searching for the corresponding preset function in a preset hash index based on the hash key, and executing the preset function.

[0016] The second aspect of the present invention provides an audio playback device based on user scenarios, including: an acquisition module, used to acquire the target user scenario and user history data of the user at the current moment; a screening module, used to screen out multiple candidate preset information corresponding to the target user scenario from a preset device configuration information table, the device configuration information table includes multiple preset states, and each preset state includes preset information of multiple different user scenarios; a statistical module, used to count the scenario relevance, number of playbacks and number of selections of the corresponding preset state of each candidate preset information based on the user history data; a calculation module, used to calculate the recommendation coefficient of each candidate preset information based on the scenario relevance, the number of playbacks and the number of selections; a determination module, used to determine the target preset information from the multiple candidate preset information according to the recommendation coefficient; a processing module, used to adjust the playback parameters of the audio device based on the target preset information, and play the audio.

[0017] In a feasible implementation, the acquisition module includes: an acquisition unit, used to acquire relevant data of the user's environment at the current moment through a preset sensor; an analysis unit, used to analyze the relevant data based on a preset model to obtain a target user scenario; and a retrieval unit, used to retrieve the user's audio usage information from the local storage of the audio device to obtain user historical data.

[0018] In a feasible implementation, the acquisition unit is specifically used to: collect brightness data of the ambient light at the user's current location through a light sensor; collect acceleration data of the audio device at the current moment through an accelerometer; collect geographic location information of the user at the current moment through a locator; and collect sound wave signals at the user's current moment through an audio detector.

[0019] In a feasible implementation, the analysis unit is specifically used to: extract features from the relevant data through a neural convolutional network to obtain feature information; input the feature information into a scene classification model, and predict the target user scene based on the classification rules of the scene classification model.

[0020] In a feasible implementation, the statistical module is specifically used to: filter out the number of times each candidate preset information is played from the user history data; determine the number of times a preset state corresponding to each candidate preset information is selected based on the user history data, and calculate the total number of times all preset information contained in each preset state is played; calculate the scene relevance of each candidate preset information based on the number of times each candidate preset information is played and the corresponding total number of times.

[0021] In a feasible implementation, the calculation module includes: a configuration unit, used to configure corresponding weights for the scene relevance, the number of playbacks and the number of selections; a first calculation unit, used to calculate a first coefficient, a second coefficient and a third coefficient according to the number of selections, the scene relevance and the number of playbacks and the corresponding weights respectively; and a second calculation unit, used to calculate a recommendation coefficient for each candidate preset information based on the first coefficient, the second coefficient and the third coefficient.

[0022] In a feasible implementation, the first calculation unit is specifically used to: normalize the number of playback times to obtain a playback coefficient; multiply the first weight by the number of selections to obtain a first coefficient; multiply the second weight by the scene relevance to obtain a second coefficient; multiply the third weight by the playback coefficient to obtain a third coefficient.

[0023] In a feasible implementation, the determination module is specifically used to: arrange all recommendation coefficients, and select the recommendation coefficient ranked first as the initialization recommendation coefficient; select the current recommendation coefficient in the arrangement order for comparison with the initialization recommendation coefficient, if the current recommendation coefficient is greater than the initialization recommendation coefficient, update the initialization recommendation coefficient until all recommendation coefficients are traversed to obtain the target recommendation coefficient, and the target recommendation coefficient is the final updated initialization recommendation coefficient; determine the target preset information from the multiple candidate preset information based on the target recommendation coefficient.

[0024] In a feasible implementation manner, the user scenario-based audio playback method further includes: a synchronization module, configured to synchronize the target preset information to a device to be synchronized via a communication protocol.

[0025] In a feasible implementation, the synchronization module is specifically used to: receive an update instruction, create a synchronization message based on the update instruction and the target preset information, the synchronization message including the target preset information and identification information; publish the synchronization message to a predetermined message queue so that the device to be synchronized synchronizes the synchronization message.

[0026] In a feasible implementation, the user scenario-based audio playback method also includes: a receiving module, used to receive a target instruction of a user triggering the smart button; an execution module, used to execute a corresponding preset function based on the target instruction, and the preset functions include one-click audio playback, one-click switching of audio input source, one-click switching of audio playback mode, one-click adjustment of audio playback sound effects, and one-click collection of audio content.

[0027] In a feasible implementation, the execution module is specifically used to: parse the target instruction and extract key information; construct a hash key according to the key information; search for a corresponding preset function in a preset hash index based on the hash key, and execute the preset function.

[0028] The third aspect of the present invention provides a user scenario-based audio playback device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the user scenario-based audio playback device executes the above-mentioned user scenario-based audio playback method.

[0029] A fourth aspect of the present invention provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned user scenario-based audio playback method.

[0030] In the technical solution provided by the present invention, a target user scenario and user history data of the user at the current moment are obtained; multiple candidate preset information corresponding to the target user scenario are screened out from a preset device configuration information table, the device configuration information table includes multiple preset states, and each preset state includes preset information of multiple different user scenarios; based on the user history data, the scenario relevance, the number of playbacks and the number of selections of the corresponding preset state of each candidate preset information are counted; based on the scenario relevance, the number of playbacks and the number of selections, a recommendation coefficient of each candidate preset information is calculated; according to the recommendation coefficient, a target preset information is determined from the multiple candidate preset information; based on the target preset information, the playback parameters of the audio device are adjusted, and the audio is played. In an embodiment of the present invention, a target user scenario and user history data of the user at the current moment are obtained; multiple candidate preset information corresponding to the target user scenario are screened out from a preset device configuration information table, wherein the device configuration information table includes multiple preset states, and each preset state includes preset information of multiple different user scenarios; based on the user history data, the scenario relevance, the number of times the corresponding preset state of each candidate preset information is played and the number of times the corresponding preset state is selected are counted; based on the scenario relevance, the number of times the playback is performed and the number of times the selection is performed, a recommendation coefficient of each candidate preset information is calculated; according to the recommendation coefficient, a target preset information is determined from the multiple candidate preset information; based on the target preset information, the playback parameters of the audio device are adjusted, and the audio is played, thereby improving the adaptability and convenience of audio playback. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of an embodiment of an audio playback method based on a user scenario in an embodiment of the present invention;

[0032] Figure 2 Schematic diagram of another embodiment of the audio playback method based on user scenarios in an embodiment of the present invention;

[0033] Figure 3 A schematic diagram of an embodiment of an audio playback device based on a user scenario in an embodiment of the present invention;

[0034] Figure 4 It is a schematic diagram of another embodiment of an audio playback device based on a user scenario in an embodiment of the present invention;

[0035] Figure 5 The figure is a schematic diagram of an embodiment of an audio playback device based on a user scenario in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The embodiments of the present invention provide a user scenario-based audio playback method, apparatus, device and storage medium, which improve the adaptability and convenience of audio playback by matching corresponding preset information with the user scenario and adjusting playback parameters for audio playback.

[0037] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] It is understandable that the execution subject of the present invention may be an audio playback device based on a user scenario, or may be a terminal or a server, which is not specifically limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.

[0039] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the audio playback method based on user scenarios in an embodiment of the present invention includes:

[0040] 101. Obtain the target user scenario and user history data of the user at the current moment;

[0041] When the user turns on the audio device, a trigger instruction is generated. The server receives the trigger instruction, calls up multiple pre-set user scenarios based on the trigger instruction, and displays them on the interface of the audio device. The user selects the target user scenario and clicks it, generating click information. The server receives the click information and parses it to determine the target user scenario.

[0042] The user can also input the corresponding user scenario or scenario description through voice. After the server receives the voice input by the user, it recognizes the voice and matches it with the corresponding target user scenario.

[0043] The server receives voice information input by the user, converts the voice information into text, extracts features from the text based on a preset model to obtain feature information, inputs the feature information into a scene classification model, and matches the feature information with the corresponding target user scene based on the classification rules of the scene classification model.

[0044] When extracting features from a text, polysemous words in the text are identified through a pre-trained word sense recognition model to obtain polysemous word information, extract context information of the polysemous words, determine the target words corresponding to the polysemous words based on the polysemous word information and the context information to obtain target word information, and perform feature fusion based on the target word information and other text features except the polysemous words to obtain feature information.

[0045] User history data refers to the user's usage records of the audio device stored in the audio device.

[0046] 102. Filter out a plurality of candidate preset information corresponding to a target user scenario from a preset device configuration information table, wherein the device configuration information table includes a plurality of preset states, and each preset state includes preset information of a plurality of different user scenarios;

[0047] The preset states include home state, outdoor state, work state, etc., and the user scenarios include rest scene, sports scene, chat scene, noisy scene, etc. Each preset state includes the above user scenarios; the preset information includes multiple parameters of audio settings, such as volume, sound effects, playback time, etc.; each user scenario corresponds to a preset information.

[0048] The target user scenario is matched with the user scenarios in the preset device configuration information table, and preset information of the matched multiple user scenarios is extracted to obtain multiple candidate preset information.

[0049] For example, when the target user scenario is a sports scenario, a query is performed from a plurality of preset states in a preset device configuration table, and preset information corresponding to the sports scenario in each preset state is extracted to obtain a plurality of candidate preset information.

[0050] 103. Counting the scene relevance, the number of times the candidate preset information is played, and the number of times the corresponding preset state is selected based on the user history data;

[0051] The scene relevance of each candidate preset information can be pre-set by the user. For example, if each candidate preset information includes first candidate preset information, second candidate preset information, third candidate preset information and fourth candidate preset information, the user sets the first scene relevance for the first candidate preset information, sets the second scene relevance for the second candidate preset information, sets the third scene relevance for the third candidate preset information, and sets the fourth scene relevance for the fourth candidate preset information.

[0052] When a preset scene in a preset state is selected for playback, the playback parameters of the audio device are adjusted based on the preset information corresponding to the preset scene, and the audio is played. The number of times the preset state is selected + 1 is recorded, and the number of times the preset information is played is determined by the number of times the audio is played. If 10 audios are played after the preset information is selected, the number of times the preset information is played + 10 is recorded.

[0053] Therefore, the scene relevance, the number of times the corresponding preset state is selected, and the number of times the scene relevance, the number of times the corresponding preset state is selected of each candidate preset information can be queried based on the user's historical data.

[0054] 104. Calculate the recommendation coefficient of each candidate preset information based on the scene relevance, the number of times it is played, and the number of times it is selected;

[0055] Pre-setting the weights corresponding to the scene relevance, the play coefficient and the number of selections, setting a first weight for the number of selections, a second weight for the scene relevance and a third weight for the number of playbacks;

[0056] Multiply the selected coefficient by the first weight to obtain the first recommendation degree, multiply the scene relevance by the second weight to obtain the second recommendation degree, multiply the number of playbacks by the third weight to obtain the third recommendation degree, add the corresponding first recommendation degree, second recommendation degree and third recommendation degree to obtain the recommendation coefficient of each candidate preset information.

[0057] 105. Determine target preset information from multiple candidate preset information according to the recommendation coefficient;

[0058] The recommendation coefficients are grouped, the recommendation coefficients in each group are compared to obtain the maximum recommendation coefficient in each group, the maximum recommendation coefficients are compared to obtain the target maximum recommendation coefficient, and the target preset information corresponding to the target maximum recommendation coefficient is determined from multiple candidate preset information.

[0059] For example, if the recommended coefficients include 0.1, 0.34, 0.8, 0.53, 0.49, 0.62, 0.5 and 0.73, the recommended coefficients are divided into two groups, the first group includes: 0.1, 0.34, 0.8 and 0.53, the second group includes: 0.49, 0.62, 0.5 and 0.73, the recommended coefficients in the first group are compared, and it is obtained that 0.8>0.53>0.34>0.1, and the recommended coefficients in the second group are compared, and it is obtained that 0.73>.62>0.5>0.49, then the maximum recommended coefficient in the first group is determined to be 0.8, and the maximum recommended coefficient in the second group is 0.73, and 0.8 and 0.73 are compared, and it is obtained that 0.8>0.73, then 0.8 is determined to be the target maximum recommended coefficient.

[0060] 106. Adjust the playback parameters of the audio device based on the target preset information, and play the audio.

[0061] For example, if the target preset information includes: volume is 50%, sound effect is popular, play mode is random play, and play time is 1 hour; the current play parameters are: volume is 30%, sound effect is classical, play mode is single loop, and play time is 1 hour; after adjusting the play parameters of the audio device based on the target preset information, the play parameters are: volume is 50%, sound effect is popular, play mode is random play, and play time is 1 hour; select the audio to be played from the audio device, and play the audio based on the play parameters.

[0062] In an embodiment of the present invention, by obtaining the target user scenario and user history data of the user at the current moment, multiple candidate preset information corresponding to the target user scenario is screened out from a preset device configuration information table, the device configuration information table includes multiple preset states, each preset state includes preset information of multiple different user scenarios, based on the user history data, the scene relevance, the number of playbacks and the number of selections of the corresponding preset state of each candidate preset information are counted, based on the scene relevance, the number of playbacks and the number of selections, the recommendation coefficient of each candidate preset information is calculated, according to the recommendation coefficient, the target preset information is determined from the multiple candidate preset information, the playback parameters of the audio device are adjusted based on the target preset information, and the audio is played, thereby improving the adaptability and convenience of audio playback.

[0063] See also Figure 2 Another embodiment of the audio playback method based on user scenarios in the embodiment of the present invention includes:

[0064] 201. Obtain relevant data of the user's environment at the current moment through a preset sensor;

[0065] The brightness data of the ambient light at the user's current location is collected through the light sensor; the acceleration data of the audio device at the current moment is collected through the accelerometer; the geographical location information of the user at the current moment is collected through the locator; and the sound wave signal of the user's current location is collected through the audio detector.

[0066] 202. Analyze relevant data based on the preset model to obtain the target user scenario;

[0067] The feature information is obtained by extracting features from relevant data through a neural convolutional network. The feature information is input into a scene classification model, and the target user scene is predicted based on the classification rules of the scene classification model.

[0068] Feature extraction is performed on the brightness data, acceleration data, geographic location information and sound wave signal respectively to obtain feature information, wherein feature extraction of the brightness data can be for calculating the average value, maximum value and minimum value of the light brightness within a preset time period, as well as the standard deviation or change rate. For example, the preset time period can be 10s, and the light brightness is recorded every second to obtain 10 light brightnesses, and calculations are performed based on the 10 light brightnesses to obtain features corresponding to the brightness data. The average light level of the environment can be understood through the average value, the fluctuation range of the light brightness can be understood through the maximum and minimum values, and the changing speed and stability of the light brightness can be understood through the standard deviation or change rate. Feature extraction of acceleration data can be performed to calculate the average value, standard deviation, maximum value and minimum value of acceleration within a preset time period. The average value of acceleration reflects the overall level of acceleration, the standard deviation reflects the volatility of acceleration, the maximum value and the minimum value reflect the range of change of acceleration, and extract the time domain information of the acceleration data. The time domain features include zero crossing rate, root mean square value and slope change rate. The zero crossing rate reflects the speed of change of the acceleration curve, the root mean square value reflects the vibration degree of acceleration, and the slope change rate reflects the change trend and vibration mode of the acceleration curve; based on Fourier transform, the acceleration data is converted from time domain to frequency domain to obtain spectrum information, and the spectrum information reflects the frequency distribution of acceleration. Feature extraction of geographic location information may include extracting the longitude and latitude coordinates in the geographic location information, determining the user's location based on the longitude and latitude coordinates, as well as the distance between the location and a specific location, and the population density of the area corresponding to the location, etc. The location may be a residential area, office area, park, commercial area, etc., and the specific location may be a shopping mall, tourist attraction, etc.; feature extraction of sound wave signals may include extracting the amplitude, frequency, and duration of the sound, etc.; converting the sound wave signal into a spectrogram through a Fourier transform algorithm, analyzing the frequency distribution and timbre characteristics of the sound based on the spectrogram, determining the decibel value based on the sound wave signal, and thus determining the intensity or loudness of the sound; based on the sound wave signal, it may be detected whether the audio contains human voices or specific sounds, such as applause, coughs, doorbells, etc.

[0069] 203. Retrieve the user's audio usage information from the local storage of the audio device to obtain the user's historical data;

[0070] 204. Filter out a plurality of candidate preset information corresponding to a target user scenario from a preset device configuration information table, wherein the device configuration information table includes a plurality of preset states, and each preset state includes preset information of a plurality of different user scenarios;

[0071] The execution process of step 204 is similar to the execution process of step 102, and will not be described again here.

[0072] 205. Counting the scene relevance, the number of times the candidate preset information is played, and the number of times the corresponding preset state is selected based on the user history data;

[0073] The number of times each candidate preset information is played is filtered out from the user history data; the number of times the preset state corresponding to each candidate preset information is selected is determined based on the user history data, and the total number of times all preset information contained in each preset state is calculated; the scene relevance of each candidate preset information is calculated based on the number of times each candidate preset information is played and the corresponding total number of times.

[0074] For example, the preset state includes the first preset information, the second preset information, the third preset information and the fourth preset information, wherein the first playback number of the first preset information is 1000, the second playback number of the second preset information is 500, the third playback number of the third preset information is 200, and the fourth playback number of the fourth playback information is 300. Then the total playback number of all preset information contained in the preset state = the first playback number + the second playback number + the third playback number + the fourth playback number = 1000 + 500 + 200 + 300 = 2000. Then the first scene relevance of the first preset information = the first playback number / the total playback number = 1000 / 2000 = 0.5, the second scene relevance of the second preset information = the second playback number / the total playback number = 500 / 2000 = 0.25, the third scene relevance of the third preset information = the third playback number / the total playback number = 200 / 2000 = 0.1, and the fourth scene relevance of the fourth preset information = the fourth playback coefficient / the total playback number = 300 / 2000 = 0.15.

[0075] 206. Calculate the recommendation coefficient of each candidate preset information based on the scene relevance, the number of times it is played, and the number of times it is selected;

[0076] Configure corresponding weights for scene relevance, number of playbacks and number of selections; calculate a first coefficient, a second coefficient and a third coefficient according to the number of selections, the scene relevance and the number of playbacks and the corresponding weights; calculate a recommendation coefficient for each candidate preset information based on the first coefficient, the second coefficient and the third coefficient.

[0077] A first weight is set for the selected coefficient, a second weight is set for the scene relevance, and a third weight is set for the number of playbacks, the number of playbacks is normalized to obtain the playback coefficient, the first weight is multiplied by the number of selections to obtain the first coefficient, the second weight is multiplied by the scene relevance to obtain the second coefficient, the playback coefficient is multiplied by the third weight to obtain the third coefficient, the corresponding first coefficient, second coefficient and third coefficient are added together to obtain the recommendation coefficient of each candidate preset information.

[0078] For example, if the first weight is 0.6, the second weight is 0.3, and the third weight is 0.1, and each candidate preset information includes the fifth candidate preset information, the sixth candidate preset information, and the seventh candidate preset information, the fifth candidate preset information corresponds to the first preset state, the sixth candidate preset information corresponds to the second preset state, and the seventh candidate preset information corresponds to the third preset state, wherein the fifth scene relevance of the fifth candidate preset information is 0.8, the fifth playback number is 1000, and the first selection number of the first preset state is 5 times, the sixth scene relevance of the sixth candidate preset information is 0.4, the sixth playback number is 500 times, the second selection number of the second preset state is 2 times, and the seventh scene relevance of the seventh candidate preset information is 0.6 , the seventh playback number is 200, and the third selected number of the third preset state is 1 time, then the fifth playback number, the sixth playback number and the seventh playback number are added to obtain the target playback number, the target playback coefficient = 1000 + 500 + 200 = 1700, based on the fifth playback number and the target playback number, the first playback coefficient is obtained, the first playback coefficient = the fifth playback number / the target playback number = 1000 / 1700 = 0.6; based on the sixth playback number and the target playback number, the second playback coefficient is obtained, the second playback coefficient = the sixth playback number / the target playback number = 500 / 1700 = 0.3; based on the seventh playback number and the target playback number, the third playback coefficient is obtained. The third play coefficient = the seventh play count / target play coefficient = 200 / 1700 = 0.1; based on the first selection count, the second selection count and the third selection count, respectively, the first coefficient of each candidate preset information is calculated with the first weight, the first coefficient of the fifth candidate preset information = the first selection count * the first weight = 5 * 0.6 = 3, the first coefficient of the sixth candidate preset information = the second selection count * the first weight = 2 * 0.6 = 1, the first coefficient of the seventh candidate preset information = the third selection count * the first weight = 1 * 0.6 = 0.6; based on the fifth scene relevance, the sixth scene relevance and the seventh scene relevance, respectively, the second coefficient of each candidate preset information is calculated with the second weight , the second coefficient of the fifth candidate preset information = the fifth scene relevance * the second weight = 0.8 * 0.3 = 0.24, the second coefficient of the sixth candidate preset information = the sixth scene relevance * the second weight = 0.4 * 0.3 = 0.12, the second coefficient of the seventh candidate preset information = the seventh scene relevance * the second weight = 0.6 * 0.3 = 0.18; based on the first playback coefficient, the second playback coefficient and the third playback coefficient and the third weight, the third coefficient of each candidate preset information is calculated, the third coefficient of the fifth candidate preset information = the first playback coefficient * the third weight = 0.6 * 0.1 = 0.06, the third coefficient of the sixth candidate preset information = the second playback coefficient * the third weight = 0.3 * 0.1 = 0.03; the third coefficient of the seventh candidate preset information = the third playback coefficient * the third weight = 0.1 * 0.1 = 0.01, then the recommendation coefficient of the fifth candidate preset information = the first coefficient of the fifth candidate preset information + the second coefficient of the fifth candidate preset information + the third coefficient of the fifth candidate preset information = 3 + 0.24 + 0.06 = 3.3, the recommendation coefficient of the sixth candidate preset information = the first coefficient of the sixth candidate preset information + the second coefficient of the sixth candidate preset information + the third coefficient of the sixth candidate preset information = 1 + 0.12 + 0.03 = 1.15, the recommendation coefficient of the seventh candidate preset information = the first coefficient of the seventh candidate preset information + the second coefficient of the seventh candidate preset information + the third coefficient of the seventh candidate preset information = 0.6 + 0.18 + 0.01 = 0.79. .

[0079] 207. Determine target preset information from multiple candidate preset information according to the recommendation coefficient;

[0080] Arrange all recommendation coefficients and select the recommendation coefficient ranked first as the initialization recommendation coefficient; select the current recommendation coefficient and the initialization recommendation coefficient in the order of arrangement to compare, if the current recommendation coefficient is greater than the initialization recommendation coefficient, update the initialization recommendation coefficient until all recommendation coefficients are traversed to obtain the target recommendation coefficient, which is the final updated initialization recommendation coefficient; determine the target preset information from multiple candidate preset information based on the target recommendation coefficient.

[0081] For example, the recommendation coefficient includes four recommendation coefficients, and the four recommendation coefficients are arranged to obtain a first recommendation coefficient, a second recommendation coefficient, a third recommendation coefficient, and a fourth recommendation coefficient. The first recommendation coefficient is selected as the initialization recommendation coefficient, and the second recommendation coefficient is selected as the current recommendation coefficient to compare with the initialization recommendation coefficient. If the second recommendation coefficient is greater than the first recommendation coefficient, the initialization recommendation coefficient is updated to the second recommendation coefficient. If the second recommendation coefficient is not greater than the first recommendation coefficient, the first recommendation coefficient is kept as the initialization recommendation coefficient, and then the third recommendation coefficient is compared with the initialization recommendation coefficient, and so on, until the four recommendation coefficients are traversed, and the initialization recommendation coefficient after traversing the four recommendation coefficients is determined as the target recommendation coefficient.

[0082] 208. Adjust the playback parameters of the audio device based on the target preset information, and play the audio.

[0083] The playback parameters of the audio device are adjusted based on the target preset information to obtain the target playback parameters, the audio to be played is selected from the audio device, and the audio is played based on the target playback parameters.

[0084] After adjusting the playback parameters of the audio device based on the target preset information and playing the audio, the following steps are included:

[0085] The preset information of the audio device is synchronized to the device to be synchronized, where the device to be synchronized is an audio device connected to the audio device via wireless or protocol.

[0086] The target preset information can be synchronized to the device to be synchronized through a wireless connection method such as Bluetooth, Wi-Fi, etc., or the target preset information can be synchronized to the device to be synchronized through a communication protocol.

[0087] The execution steps of synchronizing the target preset information to other connected devices through the communication protocol are: receiving an update instruction, creating a synchronization message based on the update instruction and the target preset information, the synchronization message including the target preset information and identification information; publishing the synchronization message to a predetermined message queue so that the device to be synchronized synchronizes the synchronization message.

[0088] The target preset information is synchronized among multiple devices through the MQTT communication protocol: the preset information is stored in a cloud database based on the JSON format, the audio device and the device to be synchronized subscribe to the same MQTT topic, and when the preset information is updated, the update instruction is received, and a new MQTT message is constructed as a synchronization message based on the update instruction and the target preset information. The synchronization message contains the target preset information and identification information, and the identification information includes the device ID and timestamp, etc. The synchronization message is published to the predetermined MQTT topic, and the device to be synchronized receives the synchronization message and updates the local playback parameters according to the content of the synchronization message, thereby realizing the synchronization of the target preset information among multiple devices. Based on the HTTP communication model, the transmission of the playback control instruction is realized through the RESTful API, and the audio stream is transmitted using protocols such as DLNA or AirPlay.

[0089] The present invention uses JSON format to store preset information, which has good readability, scalability and cross-platform. The synchronization of preset information between multiple devices is achieved through the MQTT protocol, and device discovery and connection are achieved using protocols such as mDNS and UPnP. At the same time, the present invention uses RESTful API for playback control, follows the standard HTTP communication model, and has the advantages of simple interface and easy integration. In terms of audio streaming transmission, the present invention uses mature protocols such as DLNA and AirPlay to ensure low latency and high quality of audio playback between multiple devices.

[0090] The audio device also includes a smart button. After adjusting the playback parameters of the audio device based on the target preset information and playing the audio, it also includes: receiving a target instruction from the user to trigger the smart button; executing a corresponding preset function based on the target instruction, the preset functions including one-click audio playback, one-click switching of audio input sources, one-click switching of audio playback modes, one-click adjustment of audio playback sound effects, and one-click collection of audio content.

[0091] Among them, the execution steps of executing the corresponding preset function based on the target instruction are: parsing the target instruction and extracting key information; building a hash key based on the key information; searching for the corresponding preset function in the preset hash index based on the hash key, and executing the preset function.

[0092] Key information includes button number and trigger method, etc. The trigger method can be double-click, long press, short press, etc.

[0093] The key information can be one keyword or multiple keywords. When the key information is one keyword, the keyword is used as the hash value. When the key information is multiple keywords, a unique hash key can be generated based on the multiple keywords through a hash function. The hash index is a collection of key-value pairs, in which the key corresponds to the hash key and the value corresponds to the preset function. Therefore, after the hash key is generated based on the key information, the corresponding preset function can be found in the hash index according to the hash key.

[0094] The smart button can be used to achieve one-click playback between multiple devices, one-click switching of audio input sources, one-click change of playback mode, one-click switching of equalizer modes, and one-click collection of audio. Audio input sources include Bluetooth, Wi-Fi, etc., playback modes include sequential playback, random playback, etc., equalizer modes include pop, classical, rock and other sound effects, and one-click collection can save audio to favorites with one click for quick access later.

[0095] Through preset information settings, multi-device synchronization and smart button functions, a flexible, personalized, multi-device collaborative audio playback method is provided. Users can personalize presets according to user scenarios, and use the smart button to trigger the required playback mode and sound effect settings with one click, making cross-device use more convenient.

[0096] In an embodiment of the present invention, relevant data of the user's environment at the current moment is obtained through a preset sensor, the relevant data is analyzed based on a preset model to obtain a user scenario, the user's audio usage information is retrieved from the local storage of the audio device to obtain user history data, and multiple candidate preset information corresponding to the target user scenario is screened out from a preset device configuration information table, the device configuration information table includes multiple preset states, each preset state includes preset information of multiple different user scenarios, based on the user history data, the scene relevance, the number of times the corresponding preset state is selected for each candidate preset information is counted, based on the scene relevance, the number of times the play is played and the number of times the selection is made, the recommendation coefficient of each candidate preset information is calculated, the target preset information is determined from the multiple candidate preset information according to the recommendation coefficient, the playback parameters of the audio device are adjusted based on the target preset information, and the audio is played, thereby improving the adaptability and convenience of audio playback.

[0097] The above describes the audio playback method based on the user scenario in the embodiment of the present invention. The following describes the audio playback device based on the user scenario in the embodiment of the present invention. Figure 3 In one embodiment of the present invention, an audio playback device based on a user scenario includes:

[0098] Acquisition module 301, used to acquire the target user scenario and user history data of the user at the current moment;

[0099] A screening module 302 is used to screen out a plurality of candidate preset information corresponding to a target user scenario from a preset device configuration information table, wherein the device configuration information table includes a plurality of preset states, and each preset state includes preset information of a plurality of different user scenarios;

[0100] A statistics module 303 is used to count the scene relevance, the number of times the preset state is played, and the number of times the corresponding preset state is selected of each candidate preset information based on the user history data;

[0101] A calculation module 304, used to calculate the recommendation coefficient of each candidate preset information based on the scene relevance, the number of times it is played and the number of times it is selected;

[0102] A determination module 305, configured to determine target preset information from a plurality of candidate preset information according to a recommendation coefficient;

[0103] The processing module 306 is used to adjust the playing parameters of the audio device based on the target preset information and play the audio.

[0104] In an embodiment of the present invention, by obtaining the target user scenario and user history data of the user at the current moment, multiple candidate preset information corresponding to the target user scenario is screened out from a preset device configuration information table, the device configuration information table includes multiple preset states, each preset state includes preset information of multiple different user scenarios, based on the user history data, the scene relevance, the number of playbacks and the number of selections of the corresponding preset state of each candidate preset information are counted, based on the scene relevance, the number of playbacks and the number of selections, the recommendation coefficient of each candidate preset information is calculated, according to the recommendation coefficient, the target preset information is determined from the multiple candidate preset information, the playback parameters of the audio device are adjusted based on the target preset information, and the audio is played, thereby improving the adaptability and convenience of audio playback.

[0105] See also Figure 4 Another embodiment of the audio playback device based on the user scenario in the embodiment of the present invention includes:

[0106] Acquisition module 301, used to acquire the target user scenario and user history data of the user at the current moment;

[0107] A screening module 302 is used to screen out a plurality of candidate preset information corresponding to a target user scenario from a preset device configuration information table, wherein the device configuration information table includes a plurality of preset states, and each preset state includes preset information of a plurality of different user scenarios;

[0108] A statistics module 303 is used to count the scene relevance, the number of times the preset state is played, and the number of times the corresponding preset state is selected of each candidate preset information based on the user history data;

[0109] A calculation module 304, used to calculate the recommendation coefficient of each candidate preset information based on the scene relevance, the number of times it is played and the number of times it is selected;

[0110] A determination module 305, configured to determine target preset information from a plurality of candidate preset information according to a recommendation coefficient;

[0111] The processing module 306 is used to adjust the playing parameters of the audio device based on the target preset information and play the audio.

[0112] Optionally, the acquisition module 301 includes:

[0113] The acquisition unit 3011 is used to acquire relevant data of the user's environment at the current moment through a preset sensor;

[0114] An analysis unit 3012 is used to analyze relevant data based on a preset model to obtain a target user scenario;

[0115] The retrieval unit 3013 is used to retrieve the user's audio usage information from the local storage of the audio device to obtain the user's historical data.

[0116] Optionally, the acquiring unit 3011 may be specifically used for:

[0117] The brightness data of the ambient light at the user's current location is collected through the light sensor; the acceleration data of the audio device at the current moment is collected through the accelerometer; the geographical location information of the user at the current moment is collected through the locator; and the sound wave signal of the user's current location is collected through the audio detector.

[0118] Optionally, the analysis unit 3012 may be specifically configured to:

[0119] The feature information is obtained by extracting features from relevant data through a neural convolutional network. The feature information is input into a scene classification model, and the target user scene is predicted based on the classification rules of the scene classification model.

[0120] Optionally, the statistics module 303 may be specifically used for:

[0121] The number of times each candidate preset information is played is filtered out from the user history data; the number of times the preset state corresponding to each candidate preset information is selected is determined based on the user history data, and the total number of times all preset information contained in each preset state is calculated; the scene relevance of each candidate preset information is calculated based on the number of times each candidate preset information is played and the corresponding total number of times.

[0122] Optionally, the calculation module 304 includes:

[0123] A configuration unit 3041 is used to configure corresponding weights for scene relevance, number of playbacks, and number of selections;

[0124] A first calculation unit 3042 is used to calculate a first coefficient, a second coefficient and a third coefficient according to the number of selections, the scene relevance and the number of playbacks and the corresponding weights respectively;

[0125] The second calculation unit 3043 is used to calculate the recommendation coefficient of each candidate preset information based on the first coefficient, the second coefficient and the third coefficient.

[0126] Optionally, the first calculation unit 3042 may be specifically configured to:

[0127] The number of times of playing is normalized to obtain a playing coefficient; the first weight is multiplied by the number of times of selection to obtain a first coefficient; the second weight is multiplied by the scene relevance to obtain a second coefficient; the third weight is multiplied by the playing coefficient to obtain a third coefficient.

[0128] Optionally, the determination module 305 may be specifically configured to:

[0129] Arrange all recommendation coefficients and select the recommendation coefficient ranked first as the initialization recommendation coefficient; select the current recommendation coefficient and the initialization recommendation coefficient in the order of arrangement to compare, if the current recommendation coefficient is greater than the initialization recommendation coefficient, update the initialization recommendation coefficient until all recommendation coefficients are traversed to obtain the target recommendation coefficient, which is the final updated initialization recommendation coefficient; determine the target preset information from multiple candidate preset information based on the target recommendation coefficient.

[0130] Optionally, the audio playback device based on the user scenario further includes:

[0131] The synchronization module 307 is used to synchronize the target preset information to the device to be synchronized through the communication protocol.

[0132] Optionally, the synchronization module 307 may be specifically used for:

[0133] An update instruction is received, and a synchronization message is created based on the update instruction and the target preset information, wherein the synchronization message includes the target preset information and identification information; and the synchronization message is published to a predetermined message queue so that the device to be synchronized synchronizes the synchronization message.

[0134] Optionally, the audio playback device based on the user scenario further includes:

[0135] The receiving module 308 is used to receive a target instruction of a user triggering a smart button;

[0136] The execution module 309 is used to execute the corresponding preset functions based on the target instructions. The preset functions include one-key audio playback, one-key switching of audio input source, one-key switching of audio playback mode, one-key adjustment of audio playback sound effects and one-key collection of audio content.

[0137] Optionally, the execution module 309 may be specifically used for:

[0138] Parse the target instruction and extract key information; construct a hash key based on the key information; search for the corresponding preset function in the preset hash index based on the hash key, and execute the preset function.

[0139] In an embodiment of the present invention, relevant data of the user's environment at the current moment is obtained through a preset sensor, the relevant data is analyzed based on a preset model to obtain a user scenario, the user's audio usage information is retrieved from the local storage of the audio device to obtain user history data, and multiple candidate preset information corresponding to the target user scenario is screened out from a preset device configuration information table, the device configuration information table includes multiple preset states, each preset state includes preset information of multiple different user scenarios, based on the user history data, the scene relevance, the number of times the corresponding preset state is selected for each candidate preset information is counted, based on the scene relevance, the number of times the play is played and the number of times the selection is made, the recommendation coefficient of each candidate preset information is calculated, the target preset information is determined from the multiple candidate preset information according to the recommendation coefficient, the playback parameters of the audio device are adjusted based on the target preset information, and the audio is played, thereby improving the adaptability and convenience of audio playback.

[0140] above Figure 3 and Figure 4 The user scenario-based audio playback device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The user scenario-based audio playback device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0141] See also Figure 5As shown, the user scenario-based audio playback device includes a processor 500 and a memory 501 , wherein the memory 501 stores machine executable instructions that can be executed by the processor 500 , and the processor 500 executes the machine executable instructions to implement the above-mentioned user scenario-based audio playback method.

[0142] Further, Figure 5 The user scenario-based audio playback device shown further includes a bus 502 and a communication interface 503 , and the processor 500 , the communication interface 503 and the memory 501 are connected via the bus 502 .

[0143] Among them, the memory 501 may include a high-speed random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 502 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0144] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 500. The above processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501 , and the processor 500 reads the information in the memory 501 and completes the method steps of the above-mentioned embodiment in combination with its hardware.

[0145] The present invention also provides an audio playback device based on user scenarios, wherein the computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the audio playback method based on user scenarios in the above-mentioned embodiments.

[0146] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the user scenario-based audio playback method.

[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0149] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An audio playback method based on user scenarios, characterized in that: The audio playback method based on user scenarios includes: Get the target user scenario and user history data of the current user; Filtering out multiple candidate preset information corresponding to the target user scenario from a preset device configuration information table, wherein the device configuration information table includes multiple preset states, each preset state includes preset information of multiple different user scenarios, the preset state includes a home state, an outdoor state or a working state, and the user scenario includes a rest scene, a sports scene, a chat scene or a noisy scene, each preset state includes the above user scenarios, and each user scenario corresponds to one preset information; Based on the user history data, statistics are collected on the scene relevance, the number of times the preset state is played, and the number of times the corresponding preset state is selected for each candidate preset information; Calculating a recommendation coefficient of each candidate preset information based on a weighted sum of the scene relevance, the number of times played, and the number of times selected; Determining target preset information from the plurality of candidate preset information according to the recommendation coefficient; Adjusting the playback parameters of the audio device based on the target preset information, and playing the audio; Based on the user historical data, the scene relevance, the number of times the preset state of each candidate preset information is selected, and statistics are performed, including: when a preset scene in a preset state is selected for playback, the playback parameters of the audio device are adjusted based on the preset information corresponding to the preset scene, and the audio is played, and the number of times the preset state is selected + 1 is recorded; when a preset scene in a preset state is selected for playback, the number of times the preset information is played is determined according to the number of times the audio is played; the number of times each candidate preset information is played is screened out from the user historical data; the number of times the preset state corresponding to each candidate preset information is determined based on the user historical data, and the total number of times all the preset information contained in each preset state is played is calculated; the scene relevance of each candidate preset information is calculated according to the ratio of the number of times each candidate preset information is played and the corresponding total number of times it is played.

2. The audio playback method based on user scenarios according to claim 1, characterized in that: The obtaining of the target user scenario and user history data of the user at the current moment includes: Obtain relevant data about the user's current environment through preset sensors; Analyze the relevant data based on a preset model to obtain a target user scenario; Retrieve the user's audio usage information from the local storage of the audio device to obtain the user's historical data.

3. The audio playback method based on user scenarios according to claim 2, characterized in that: The method of obtaining relevant data of the user's environment at the current moment through a preset sensor includes: The light sensor collects the brightness data of the ambient light at the user's current location; Collecting acceleration data of the audio device at the current moment through an accelerometer; Collect the geographical location information of the user at the current moment through a locator; The sound wave signal of the user's location at the current moment is collected by the audio detector.

4. The audio playback method based on user scenarios according to claim 3 is characterized in that: The analyzing the relevant data based on the preset model to obtain the target user scenario includes: Extracting features from the relevant data through a neural convolutional network to obtain feature information; The feature information is input into a scene classification model, and a target user scene is predicted based on the classification rules of the scene classification model.

5. The audio playback method based on user scenarios according to any one of claims 1 to 4, characterized in that: The calculating the recommendation coefficient of each candidate preset information based on the weighted sum of the scene relevance, the number of times of playing and the number of times of being selected includes: Configuring corresponding weights for the scene relevance, the number of times played, and the number of times selected; Calculate a first coefficient, a second coefficient and a third coefficient according to the number of selections, the scene relevance and the number of playbacks and corresponding weights respectively; A recommendation coefficient of each candidate preset information is calculated based on the first coefficient, the second coefficient and the third coefficient.

6. The audio playback method based on user scenarios according to claim 5, wherein when the number of selections corresponds to a first weight, the scenario relevance corresponds to a second weight, and the number of playbacks corresponds to a third weight, The first coefficient, the second coefficient and the third coefficient are calculated according to the number of selections, the scene relevance and the number of playbacks and the corresponding weights, respectively, including: Normalizing the number of playbacks to obtain a playback coefficient; Multiplying the first weight by the number of selections to obtain a first coefficient; Multiplying the second weight and the scene relevance to obtain a second coefficient; The third weight is multiplied by the playback coefficient to obtain a third coefficient.

7. The audio playback method based on user scenarios according to claim 5, characterized in that: The step of determining target preset information from a plurality of candidate preset information according to the recommendation coefficient further includes: Arrange all the recommendation coefficients and select the first recommendation coefficient as the initialization recommendation coefficient; Select the current recommendation coefficient and compare it with the initialization recommendation coefficient in the order of arrangement. If the current recommendation coefficient is greater than the initialization recommendation coefficient, update the initialization recommendation coefficient until all recommendation coefficients are traversed to obtain the target recommendation coefficient, which is the final updated initialization recommendation coefficient; Target preset information is determined from the plurality of preset information candidates based on the target recommendation coefficient.

8. The audio playback method based on user scenarios according to claim 1, characterized in that: After adjusting the playing parameters of the audio device based on the target preset information and playing the audio, the method further includes: The target preset information is synchronized to the device to be synchronized through a communication protocol.

9. The audio playback method based on user scenarios according to claim 8, characterized in that: The step of synchronizing the target preset information to the device to be synchronized via a communication protocol includes: receiving an update instruction, and creating a synchronization message based on the update instruction and the target preset information, wherein the synchronization message includes the target preset information and identification information; The synchronization message is published to a predetermined message queue so that the device to be synchronized synchronizes the synchronization message.

10. The audio playback method based on user scenarios according to claim 1, characterized in that: The audio device includes a smart button, and after adjusting the playing parameters of the audio device based on the target preset information and playing the audio, further includes: Receive a target instruction from a user to trigger the smart button; Based on the target instruction, a corresponding preset function is executed, and the preset functions include one-key audio playback, one-key switching of audio input source, one-key switching of audio playback mode, one-key adjustment of audio playback sound effects, and one-key collection of audio content.

11. The audio playback method based on user scenarios according to claim 10, characterized in that: The executing a corresponding preset function based on the target instruction includes: Parsing the target instruction and extracting key information; Constructing a hash key based on the key information; Based on the hash key, the corresponding preset function is searched in the preset hash index, and the preset function is executed.

12. An audio playback device based on user scenarios, characterized in that: The audio playback device based on user scenarios includes: The acquisition module is used to obtain the target user scenario and user history data of the current user; A screening module, used to screen out multiple candidate preset information corresponding to the target user scenario from a preset device configuration information table, wherein the device configuration information table includes multiple preset states, each preset state includes preset information of multiple different user scenarios, the preset state includes a home state, an outdoor state or a working state, and the user scenario includes a rest scene, a sports scene, a chat scene or a noisy scene, each preset state includes the above user scenarios, and each user scenario corresponds to a preset information; A statistics module, used for collecting statistics on the scene relevance, the number of times the preset state is played, and the number of times the corresponding preset state is selected for each candidate preset information based on the user history data; A calculation module, used for calculating the recommendation coefficient of each candidate preset information based on the weighted sum of the scene relevance, the number of playbacks and the number of selections; A determination module, configured to determine target preset information from the plurality of candidate preset information according to the recommendation coefficient; A processing module, used to adjust the playing parameters of the audio device based on the target preset information and play the audio; The statistical module is specifically used for: when a preset scene in a preset state is selected for playback, adjusting the playback parameters of the audio device based on the preset information corresponding to the preset scene, playing the audio, and recording the number of times the preset state is selected + 1; when a preset scene in a preset state is selected for playback, the number of times the preset information is played is determined according to the number of times the audio is played; filtering out the number of times each candidate preset information is played from the user history data; determining the number of times the preset state corresponding to each candidate preset information is selected based on the user history data, and calculating the total number of times all preset information contained in each preset state is played; calculating the scene relevance of each candidate preset information according to the ratio of the number of times each candidate preset information is played to the corresponding total number of times.

13. An audio playback device based on user scenarios, characterized in that: The user scenario-based audio playback device includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instruction in the memory so that the user scenario-based audio playback device executes the user scenario-based audio playback method as described in any one of claims 1-11.

14. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, the user scenario-based audio playback method as described in any one of claims 1-11 is implemented.