Content of the invention
The invention provides a kind of method and device of recommendation of audio file, for solving in prior art in special scenes
Cannot recommend down to meet the problem of the audio file of user's particular demands.
According to an aspect of the invention, it is provided a kind of method of recommendation of audio file, the method is applied to a terminal,
The method includes:After receiving the instruction running audio player, judge whether user is moved;If it is,
Audio file for user's recommendation and/broadcasting preset kind.
Wherein, judge whether user is moved, including:Judge whether current point in time is in preset time range
Interior;Judge whether the current body temperature of user is in preset temperature range;If above judged result be it is determined that user just
Moved.
Further, said method also includes:After judging that user is kept in motion, judging distance user preset scope
Whether interior sound exceeds preset sound size, if it is, recommend/play the audio file of preset kind for user, otherwise,
Do not execute the operation of the audio file recommending/play preset kind for user.
Wherein, judge whether user is moved, including:Determined according to the exercise data that motion sensor gets
Whether user is moved.
Further, said method also includes:After determining that user is moved, obtain the geography residing for user
Position;According to geographical position, determine whether user is in open air;If user is in open air, obtains distance users and preset model
Voice data in enclosing;
Determined whether noisy around user according to voice data, if the sound size in distance users preset range exceeds
Preset sound size is it is determined that noisy around user;If noisy around user, execute and recommend/play preset kind for user
Audio file, the step otherwise not executing the audio file recommending/play preset kind for user.
According to the second aspect of the invention, there is provided a kind of device of recommendation of audio file, this device is applied to one eventually
End, this device includes:Just whether the first judge module, for, after receiving the instruction running audio player, judging user
Moved;Recommending module, for the judged result in judge module in the case of being, being that user recommends and/broadcasting is pre-
If the audio file of type.
Wherein, above-mentioned first judge module, including:First judging unit, pre- for judging whether current point in time is in
If in time range;Second judging unit, for judging whether the current body temperature of user is in preset temperature range;Determine single
Unit, if being for above judged result is it is determined that user is moved.
Further, said apparatus also include:Second judge module, for, after judging that user is kept in motion, sentencing
Whether sound in the range of user preset for the turn-off exceeds preset sound size;First performing module, for judging mould second
The judged result of block is in the case of being, then recommending/playing for user the audio file of preset kind, otherwise, not executing is use
The operation of the audio file of preset kind is recommended/is play at family.
Wherein, above-mentioned first judge module specifically for:User is determined according to the exercise data that motion sensor gets
Whether moved.
Further, said apparatus also include:First acquisition module, after being moved in determination user,
Obtain the geographical position residing for user;First determining module, for according to geographical position, determining whether user is in open air;The
Two acquisition modules, if being in open air for user, obtain the voice data in distance users preset range;Second determination mould
Whether block is noisy around user for being determined according to voice data, if the sound size in distance users preset range exceeds
Preset sound size is it is determined that noisy around user;Second performing module, if for noisy around user, executed as user
The step recommending/play the audio file of preset kind, otherwise, does not execute the audio frequency literary composition recommending/play preset kind for user
Part.Step.
The present invention listens according to user the intelligence that actual conditions during music carry out song to play and recommends, to a certain extent
Decrease the necessary manual selection of user, relatively improve the intelligence degree of playback terminal, meanwhile, user can make according to it
Flexibly arranged so that user is easy to use with custom, to user's while the novelty increasing music and interesting property
Work and life bring great convenience.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of not making creative work all its
His embodiment, broadly falls into the scope of protection of the invention.
First embodiment
Present embodiments provide a kind of method of recommendation of audio file, the method is applied to a terminal, the method can be by
Executing it is also possible to be executed by audio player, Fig. 1 is the flow chart of the method to terminal, as shown in figure 1, the method includes
Following steps:
Step 101:After receiving the instruction running audio player, judge whether user is moved;
The application software that in the present embodiment, involved audio player can be disposed in terminal is it is also possible to refer to
There is the hardware of entity, the instruction running the instruction operation that can be terminal execute according to user of audio player and generating.
In the present embodiment, judge whether user is moving and specifically can include following processing method:
Judge whether current point in time is in preset time range;Judge whether the current body temperature of user is in preset temperature
In the range of;If it is it is determined that user is moved that above judged result is.It should be noted that wherein, during judgement
Between put and whether be in preset time range and judge whether the current body temperature of user is in two steps of preset temperature range
Execution sequencing is not specifically limited in the present embodiment.After judging that user is kept in motion, can also sentence further
Whether sound in the range of user preset for the turn-off exceeds preset sound size, if it is, recommending/playing default class for user
The audio file of type, otherwise, does not execute the operation of the audio file recommending/play preset kind for user.It should be noted that
Because when user is kept in motion, user may wear earphone/bluetooth earphone, so, in the present embodiment or
When only judging that user is kept in motion, as user recommends and plays audio file, and, any ear is not worn for user
The situation of machine, then be applied to determine whether whether noisy around user, only noisy around user in the case of just be user
Recommend and play the mode of respective audio file.
Further, it is also possible to determine whether user is moved according to the exercise data that motion sensor gets, base
In this, after determining that user is moved, following judgement can also be carried out, and then determine whether again to recommend to refer to for user
Determine the audio file of type:Obtain the geographical position residing for user;According to geographical position, determine whether user is in open air;As
Fruit user is in open air, then obtain the voice data in distance users preset range;Being determined around user according to voice data is
No noisy, if the sound size in distance users preset range exceeds preset sound size it is determined that noisy around user;As
Noisy around fruit user, execute the audio file recommending/play preset kind for user, otherwise do not execute and recommend/broadcast for user
The step putting the audio file of preset kind.
Step 102:If it is, recommend/play the audio file of preset kind for user.
In the present invention, involved audio file specifically can include, music or song etc..
It should be noted that preset time range involved in the present embodiment, preset temperature range, preset sound
The information such as size and geographical position can be specifically that user passes through terminal sets itself or terminal by user
Obtained from custom data is acquired, counts.
Second embodiment
The method that the present embodiment provides is roughly the same with the method that above-mentioned first embodiment provides, and difference is,
The method execution judges the data storage of operation institute foundation in cloud storage, and, the method needs to judge three conditions, and meets
On the basis of this three conditions, just recommend music/song to user, the method includes processing as follows:
Open after music player carries out music in user, (can in this cloud storage data according to cloud storage data
To include, default time range, the parameter such as default temperature range and default sound magnitude range) determine whether to use
The special exercise time at family, (this time can be configured the time it is also possible to be moved by terminal-pair user by user
Carry out statistics to draw), if it is, continuing through the motion conditions that temperature sensor judges user, if temperature sensor sense
When knowing that user's body temperature reaches a certain particular value, judge whether user surrounding environment is noisy by sound transducer, if three
In the case that condition is satisfied by, judge that user carries out intensity movements under more noisy environment, then recommend for user and play section
Play strong, the larger music of sound (volume).
3rd embodiment
The method that the present embodiment provides is roughly the same with the method that above-mentioned second embodiment provides, and difference is, should
Method judges that the judgment mode whether user is kept in motion is different, and the method also needs to judge whether user is in family
Outward, just execute the step recommending music for user, the method includes operating as follows:
In the starting up of terminal of user, and when opening music player and carrying out music, judge to work as according to cloud storage data
Front be whether user specific run duration, if it is not, then judging whether user is kept in motion by motion sensor,
If it is, judging whether user is in open air by GPS, if it is, continuing to judge surrounding environment according to sound transducer,
If meeting user to be kept in motion and be under noisy outdoor environment, recommend and play rhythm to user by force, sound
Big music.
The program has made further judgement on the basis of above-mentioned second embodiment, can more accurately know use
The motion state at family and residing scene, so that the audio frequency recommended for user is more accurate, further increase user's
Experience.
Fourth embodiment
The present embodiment is provided on the basis of the method that above-mentioned second embodiment provides, and increased user and is not in motion shape
Under state, the operation how to be processed, the method includes processing as follows:
In the starting up of terminal of user, and when opening music player and carrying out music, judged according to cloud storage data be
The no specific run duration for user, if it is not, then judging whether user is kept in motion by motion sensor, if
In the case of non-athletic time and non-athletic, then normal play music;If the non-athletic time, it is under motion conditions but to be not at family
Under external environment, then normal play music;If the non-athletic time, it is under motion conditions, is under outdoor environment, but surrounding not noise
In the case of miscellaneous, then normal play music.
5th embodiment
Present embodiments provide a kind of device of recommendation of audio file, this device is applied to a terminal, and this device can set
Put in intelligent terminal, this device is used for realizing the method that above-mentioned first embodiment to fourth embodiment is provided, and Fig. 2 is this device
Structured flowchart, as shown in Fig. 2 this device 20 includes following part:
First judge module 21, for, after receiving the instruction running audio player, judging whether user enters
Row motion;
Recommending module 22, for the judged result in judge module in the case of being, being that user recommends/play default class
The audio file of type.
Wherein, above-mentioned first judge module 21, specifically can include:First judging unit, for judging current point in time
Whether it is in preset time range;Second judging unit, for judging whether the current body temperature of user is in preset temperature range
Interior;Determining unit, if being for above judged result is it is determined that user is moved.
Wherein, said apparatus 20 can also include:Second judge module, for after judging that user is kept in motion,
Whether the sound in the range of judging distance user preset exceeds preset sound size;First performing module, in the second judgement
The judged result of module be in the case of, then recommend/play the audio file of preset kind for user, otherwise, do not execute and be
User recommends/plays the operation of the audio file of preset kind.
Wherein, above-mentioned first judge module specifically for:
Determine whether user is moved according to the exercise data that motion sensor gets.
Further, said apparatus 20 can also include:First acquisition module, for determining that user is moved
Afterwards, obtain the geographical position residing for user;First determining module, for according to geographical position, determining whether user is in family
Outward;Second acquisition module, if being in open air for user, obtains the voice data in distance users preset range;Second
Determining module, whether noisy around user for being determined according to voice data, if the sound in distance users preset range is big
Little beyond preset sound size it is determined that noisy around user;Second performing module, if for noisy around user, execution
The step recommending/play the audio file of preset kind for user, otherwise, does not execute and recommends/play preset kind for user
Audio file.Step.
The present invention listens according to user the intelligence that actual conditions during music carry out song to play and recommends, to a certain extent
Decrease the necessary manual operation of people, relatively improve the intelligence degree of playback terminal, meanwhile, user can be according to its use
Custom is flexibly arranged, easy to use, the work to user and life while the novelty increasing music and interesting property
Bring great convenience.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all answer
It is included within the scope of the present invention.Therefore, protection scope of the present invention with described scope of the claims should be
Accurate.