CPC G06F 3/165 (2013.01) [G01J 1/4204 (2013.01); G01P 15/08 (2013.01)] | 14 Claims |
1. A user scenario-based audio playback method, comprising:
obtaining a target user scenario that a user is currently in and user historical data;
determining a plurality of pieces of candidate preset information corresponding to the target user scenario from a preset device configuration information table, wherein the device configuration information table comprises a plurality of preset states, each preset state comprises preset information of a plurality of different user scenarios; each preset state comprises a home state, an outdoor state or a work state; the user scenarios comprise a rest scenario, an exercise scenario, a chatting scenario or a noisy scenario; each preset state comprises all the user scenarios, and each scenario corresponds to one piece of preset information; wherein the plurality of pieces of candidate preset information is determined from pieces of preset information in the preset device configuration information table;
calculating, based on the user historical data, a degree of scenario relevance, a quantity of playbacks and a quantity of selected times of a corresponding preset state of each candidate preset information;
calculating a recommendation coefficient of each candidate preset information based on a weighted sum of the degree of scenario relevance, the quantity of playbacks and the quantity of selected times;
determining target preset information from the plurality of pieces of candidate preset information according to the recommendation coefficient; and
adjusting a playback parameter of an audio device based on the target preset information and playing an audio;
wherein calculating based on the user historical data the degree of scenario relevance, the quantity of playbacks and the quantity of selected times of the corresponding preset state of each candidate preset information comprises:
determining the quantity of playbacks of each candidate preset information from the user historical data; wherein the user historical data comprises quantities of playbacks of the pieces of preset information, and a quantity of playbacks of each preset information is determined in following manner: selecting a preset scenario within the preset state for playback; in response to selecting the preset scenario within the preset state for playback, determining the quantity of playbacks of each preset information by the quantity of times the audio is played;
determining the quantity of selected times of the preset state corresponding to each candidate preset information based on the user historical data, and calculating a total quantity of playbacks of all preset information within each preset state; wherein the user historical data comprises quantities of selected times of the pieces of preset information, and a quantity of selected times of each preset information is determined in following manner: selecting the preset scenario within the preset state for playback; in response to selecting the preset scenario within the preset state for playback, adjusting the playback parameter of the audio device based on each preset information corresponding to the preset scenario, playing the audio, and recording an increment of 1 in the quantity of selected times of the preset state; and
calculating the degree of scenario relevance of each candidate preset information based on a ratio of the quantity of playbacks of each candidate preset information to the corresponding total quantity of playbacks.
|