CN108733765A - A kind of audio recommends method and terminal device - Google Patents

A kind of audio recommends method and terminal device Download PDF

Info

Publication number
CN108733765A
CN108733765A CN201810339238.5A CN201810339238A CN108733765A CN 108733765 A CN108733765 A CN 108733765A CN 201810339238 A CN201810339238 A CN 201810339238A CN 108733765 A CN108733765 A CN 108733765A
Authority
CN
China
Prior art keywords
beat
audio
prediction
default
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810339238.5A
Other languages
Chinese (zh)
Inventor
杨张宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810339238.5A priority Critical patent/CN108733765A/en
Publication of CN108733765A publication Critical patent/CN108733765A/en
Pending legal-status Critical Current

Links

Abstract

A kind of audio of offer of the embodiment of the present invention recommends method and terminal device, is applied to field of terminal technology, to solve the problems, such as that existing audio search procedure is inefficient and time-consuming long.This method includes:Terminal device is in the playing duration for playing audio, the shaking parameter of acquisition terminal equipment;The beat of the audio is predicted according to parameter is shaken, obtains the prediction beat information of the audio;The default beat information of the audio is compared with prediction beat information, if comparison result meets the first preset condition, recommends the audio for user.

Description

A kind of audio recommends method and terminal device
Technical field
The present embodiments relate to field of terminal technology more particularly to a kind of audio to recommend method and terminal device.
Background technology
With the development of terminal technology, terminal device has become a part indispensable in people's daily life.And And for individual demand and hobby, various prompt tones that user would generally give tacit consent to terminal device (e.g., incoming call prompting ringing tone, Short message ringing tone etc.) it is replaced with the segment for the audio oneself liked.
In the prior art, user is usually predominantly and searches and download from the mobile phone ringtone website or major music website The audio oneself liked, then, the segment for the audio that oneself is liked is as the prompt tone of oneself terminal device.
However, when user searches the audio oneself liked in mobile phone ringtone website or major music website, it usually needs It takes a significant amount of time and a large amount of audio of energy audition, it is not only inefficient and took so as to cause entire audio search procedure It is long.
Invention content
A kind of audio of offer of the embodiment of the present invention recommends method and terminal device, to solve existing audio search procedure Inefficient and time-consuming long problem.
In order to solve the above-mentioned technical problem, the embodiment of the present invention is realized in:
In a first aspect, an embodiment of the present invention provides a kind of audio recommendation method, this method includes:
Terminal device acquires the shaking parameter of the terminal device in the playing duration for playing audio;
The beat of the audio is predicted according to the shaking parameter, obtains the prediction beat information of the audio;
The default beat information of the audio is compared with the prediction beat information;
If comparison result meets the first preset condition, recommend the audio for user.
Second aspect, an embodiment of the present invention provides a kind of terminal device, which includes:
Acquisition module acquires the shaking ginseng of the terminal device for terminal device in the playing duration for playing audio Number;
Prediction module, the shaking parameter for being acquired according to the acquisition module carry out the beat of the audio pre- It surveys, obtains the prediction beat information of the audio;
Comparing module, the prediction section for predicting the default beat information of the audio and the prediction module Information is clapped to be compared;
Recommending module recommends institute if the comparison result for the comparing module meets the first preset condition for user State audio.
The third aspect an embodiment of the present invention provides a kind of terminal device, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor Step described in aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, realizes that audio as described in relation to the first aspect recommends method when which is executed by processor The step of.
In embodiments of the present invention, terminal device is in the playing duration for playing audio, by acquiring the terminal device Data are shaken to predict the prediction beat information of the audio, then, the default beat information of the audio and the prediction beat are believed Breath is compared, determine user shake mobile phone beat whether the beat match with the audio, to being determined according to user behavior Go out whether the audio is the favorite audio of user, and then be the favorite audio of user recommended user, whole process not only reduces User's operation behavior also improves audio search efficiency, increases the accuracy of audio recommendation.
Description of the drawings
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram that a kind of audio provided in an embodiment of the present invention recommends method;
Fig. 3 is a kind of one of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of second structural representation of terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The terms "and/or", only a kind of incidence relation of description affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle character "/", it is a kind of relationship of "or" to typically represent forward-backward correlation object.If being not added with explanation, " multiple " herein are Refer to two or more.
For the ease of clearly describing the technical solution of the embodiment of the present application, in embodiments herein, use " the One ", the printed words such as " second " distinguish function or the essentially identical identical entry of effect or similar item, and those skilled in the art can To understand that the printed words such as " first ", " second " are not defined quantity and execution order.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.In the embodiment of the present invention, " (English:Of) ", " corresponding (English: Corresponding, relevant) " and " corresponding (English:Corresponding it) " can use with sometimes, it should be pointed out that It is that, when not emphasizing its difference, meaning to be expressed is consistent.In the embodiment of the present invention the meaning of " plurality " is fingers Two or more.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super shifting Dynamic personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personal Computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specifically It is fixed.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating systems, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, introduces audio provided in an embodiment of the present invention and method is recommended to be applied Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system operation library layer and Inner nuclear layer (is specifically as follows Linux inner core), wherein:
Application layer includes that (including system application and third party answer for each application program in Android operation system With program).
Application framework layer is the frame of application program, and developer can be in the exploitation of the frame in accordance with application program In the case of principle, some application programs are developed based on application framework layer.
System operation library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour All kinds of resources needed for it are provided as system.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The system architecture of operating system, exploitation realize that audio provided in an embodiment of the present invention recommends the software program of method, so that The audio recommends method that can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can lead to It crosses and runs software program realization audio recommendation method provided in an embodiment of the present invention in Android operation system.
First embodiment:
The flow chart of method is recommended to recommend method to carry out the audio of the embodiment of the present invention with reference to audio shown in Fig. 2 Illustrate, Fig. 2 is that a kind of audio provided in an embodiment of the present invention recommends method flow schematic diagram, including S201 to S204:
S201, terminal device are in the playing duration for playing audio, the shaking parameter of acquisition terminal equipment.
In embodiments of the present invention, the shaking data of above-mentioned terminal device include terminal device in the broadcasting for playing audio The corresponding shaking data of shaking every time generated in duration.
In embodiments of the present invention, it refers to that terminal device moves on a certain path that terminal device, which shakes, displacement There is round-trip variation in direction.It should be noted that the path can when being moved on a certain path for terminal device in the embodiment of the present invention Be crooked route (for example, awave shake) can also straight line path, do not limit here, and terminal device position Reciprocal variation is not limited to essentially equal reciprocal of proper round-trip displacement, as long as the direction of displacement of terminal exists Round-trip variation, then it is assumed that reciprocal variation occurs for the position of terminal, that is, thinks that primary shake occurs for terminal device.
Optionally, in embodiments of the present invention, the shaking data of above-mentioned terminal device are included in the broadcasting for playing audio The shaking data shaken every time in the first duration continuously shaken are generated in duration.
Optionally, in embodiments of the present invention, the corresponding shaking data of the shaking every time of above-mentioned terminal device include but It is not limited to:Duration is shaken, the beginning and ending time is shaken, shakes direction, maximum shakes displacement, the real-time position information of terminal device and right Between seasonable.
Illustratively, the real-time position information of above-mentioned terminal device includes but not limited to:The shaking direction of terminal device, end Shaking displacement, the horizontal position information of terminal device, rotary position information and vertical position of the end equipment towards the shaking direction Confidence breath etc..Horizontal position information reflects a certain reference level line on terminal device relative to ground or perpendicular to the ground straight The displacement of the angle and terminal device of line in the horizontal direction.That is, it is assumed that in the screen of the terminal (such as mobile phone) Line as reference level line, the angle on the reference level line and ground or straight line perpendicular to the ground reflect the terminal in water Square upward inclined degree.Rotary position information then reflects the angular movement situation of the terminal to judge the movement shape of the terminal State.Vertical position information reflects the displacement of terminal in vertical direction.
Illustratively, terminal device can detect end according to installation inside the terminal device or external position sensor The location information of end equipment.The position sensor can be a horizontal position that can measure terminal, rotation position and The comprehensive alignment sensor of one of the location informations such as upright position, can also be by the horizontal position confidence for acquiring mobile terminal The gyro sensors of rotary position information of the breath with the gravity accelerometer of vertical position information, for acquiring mobile terminal The sensors such as device detect respectively, do not limit here.
In one possible implementation, terminal device is in the displacement for detecting that terminal device is moved towards a direction More than predetermined displacement, the then operation of the shaking parameter of triggering collection terminal device.
S202, terminal device predict the beat of audio according to the shaking parameter, obtain the prediction beat letter of audio Breath.
In embodiments of the present invention, when user hears oneself interested audio, it will usually be shaken with the beat of audio It leaves body, drives terminal device to shake therewith, i.e., user, which shakes the operation of terminal device, can directly embody user couple The interest level of this audio, therefore, terminal device determines the end according to collected shaking parameter in the embodiment of the present invention Then terminal device is shaken prediction result of the beat terminal device to the beat of the audio, i.e., by the shaking beat of end equipment Using the shaking beat of terminal device as the prediction beat of audio.
In embodiments of the present invention, the minimum time unit of an audio is beat, can include a variety of in an audio The beat length of beat, each beat is different.
The default beat information of audio is compared with prediction beat information for S203, terminal device.
If S204, comparison result meet the first preset condition, terminal device is that user recommends the audio.
Illustratively, if the default beat information of audio is matched with prediction beat information, then it is assumed that the shaking of terminal device Beat and the beat of audio match, and can be that user recommends the audio or marks the audio to prompt user at this time.If conversely, The default beat information of audio is mismatched with prediction beat information, then it is assumed that the shaking beat of terminal device and the beat of audio are not Matching, does not recommend the audio to user at this time.
In embodiments of the present invention, the default beat information of audio is being compared terminal device with prediction beat information Afterwards, however, it is determined that recommend the audio for user, can select temporarily to preserve the audio, can also the selected marker audio, can also Set the audio fragment in the audio or the audio to the prompt tone of terminal device, however, it is determined that do not recommend the audio for user, The audio can then be abandoned.
Optionally, in one possible implementation, the shaking parameter of above-mentioned terminal device acquisition includes terminal device The shaking data shaken every time in the first duration continuously shaken, above-mentioned prediction beat information packet are generated in playing duration Prediction beat information of the audio in the first duration is included, above-mentioned default beat information includes that audio is default in the first duration Beat information.
Illustratively, S202 specifically comprises the following steps:
S202a, terminal device predict beat of the audio in first duration according to data are shaken, and obtain sound Prediction beat information of the frequency in the first duration.
Illustratively, specifically comprise the following steps in conjunction with S202a, S203:
S203a, terminal device are pre- in the first duration by prediction beat information of the audio in the first duration and audio If beat information is compared.
S202 and S203 further alternative, state in realization, alternatively, when S202a and S203a, terminal device is main It can be realized by following two realization methods.
The first realization method:
Specifically, the shaking data every time shaken of the above-mentioned terminal device in the first duration include when shaking start-stop Between, the shaking beginning and ending time shaken every time includes that the shaking initial time shaken every time and shaking terminate time, difference between the two Value is to shake duration;Above-mentioned prediction beat information includes first set, which includes the section of each prediction beat Clap the beginning and ending time;Above-mentioned default beat information includes second set, which includes that the beat of each default beat rises The only time.Wherein, the beat beginning and ending time of above-mentioned prediction beat or default beat includes that beat initial time and beat terminate Time, difference between the two is beat duration.
Based on this, above-mentioned S202a or S202 specifically include step A1:
Step A1, the shaking beginning and ending time every time shaken of the terminal device by terminal device in the first duration, as pre- Survey the beat beginning and ending time of beat.
Based on step A1 and S203a or S203, above-mentioned S204 specifically includes step A2:
If matching degree step A2, between first set and second set is greater than or equal to the first predetermined threshold, terminal is set It is standby to recommend the audio for user.I.e. the first preset condition includes:Matching degree between first set and second set is more than or waits In the first predetermined threshold, when the matching degree between first set and second set meets the first preset condition, then it is assumed that terminal device Shaking beat and the beat of audio match, can be that user recommend the audio or mark the audio to prompt user at this time.
Conversely, if the matching degree between first set and second set is less than the first predetermined threshold, institute is not recommended for user Audio is stated, i.e., when the matching degree between first set and second set is unsatisfactory for the first preset condition, then it is assumed that the rolling of terminal device Dynamic beat and the beat of audio mismatch, and can not have to recommend the audio for user at this time.
In embodiments of the present invention, if including the beat beginning and ending time of M prediction beat, second set packet in first set Include the beat beginning and ending time of N number of default beat, M and N can it is equal can not also be equal, by M prediction section in first set The beat beginning and ending time of bat is compared with the beat beginning and ending time of N number of default beat in second set, if the two is identical The beat beginning and ending time accounts for all ratios for predicting all default beats in beats or second set in first set and is more than certain threshold It is worth (for example, 60% is identical), then it is assumed that the matching degree between first set and second set is greater than or equal to the first predetermined threshold, instead It, then it is assumed that the matching degree between first set and second set is less than the first predetermined threshold.
It should be noted that in order to avoid the erroneous judgement of terminal device, can in the beat beginning and ending time for comparing prediction beat and When the beat beginning and ending time of default beat, regular hour error is set, i.e. the time difference of the two is less than or equal to certain error When value, then it is assumed that the beat beginning and ending time of the two is identical.
Second of realization method:
Specifically, the shaking data every time shaken of the above-mentioned terminal device in the first duration include location information and right The time answered;Above-mentioned default beat information includes the data of the default beat curve of the audio, alternatively, the audio is at first The data of default beat curve in length, the default beat curve are used to characterize the beat beginning and ending time of each default beat and are somebody's turn to do The correspondence of intensity of sound in default beat;Above-mentioned prediction beat information includes the number of the prediction beat curve of the audio According to alternatively, the data of prediction beat curve of the audio in the first duration, the prediction beat curve is for characterizing each prediction The correspondence of the beat duration of beat and the intensity of sound in the prediction beat.
Based on this, above-mentioned S202a or S202 specifically include step B1:
Step B1, terminal device generates terminal and sets according to the correspondence of the location information shaken every time and corresponding time Standby rolling moving curve, and preset beat curve using the rolling moving curve as this.
Step B2 is specifically included based on step B1 and S203a or S203, S204:
If step B2, it is pre- to be greater than or equal to second for the default curves degree between beat curve and the prediction beat curve Determine threshold value, then terminal device is that user recommends the audio.I.e. the first preset condition includes:Default beat curve and prediction beat are bent Curves degree between line is greater than or equal to the second predetermined threshold, when default beat curve and predicts that the curve between beat curve is kissed The first preset condition of right satisfaction, then it is assumed that the shaking beat of terminal device and the beat of audio match, and can be to use at this time Recommend the audio or mark the audio to prompt user in family.
If conversely, the default curves degree between beat curve and the prediction beat curve is less than the second predetermined threshold, Then terminal device is not that user recommends the audio, i.e., when the curves degree between default beat curve and prediction beat curve is discontented The first preset condition of foot, then it is assumed that the beat mismatch for shaking beat and audio of terminal device can not have to be user at this time Recommend the audio.
In embodiments of the present invention, above-mentioned default beat curve can may be for line chart with prediction beat curve Curve graph, the present invention do not limit this.Above-mentioned curves degree is for embodying default beat curve and prediction beat curve Between similarity degree, for example, when default beat curve and predicting that the curves degree between beat curve is more than or equal to 80, it is determined that Recommend the audio for user.
In a kind of example, terminal device can select the default beat of the pre-loaded audio before playing the audio Curve can also preset the beat data of beat by extracting each of the audio, and generate the audio according to the beat data Corresponding default beat curve.Wherein, the beat data of above-mentioned default beat includes the signal strength and hair of the default beat The raw moment.
Audio provided in an embodiment of the present invention recommends method, and terminal device is in the playing duration for playing audio, by adopting Collect the shaking data of the terminal device to predict the prediction beat information of the audio, then, by the default beat information of the audio Be compared with the prediction beat information, determine user shake mobile phone beat whether the beat match with the audio, to root It determines whether the audio is the favorite audio of user according to user behavior, and then is the favorite audio of user recommended user, entirely Process not only reduces user's operation behavior, also improves audio search efficiency, increases the accuracy of audio recommendation.
In the prior art, the main source of the prompt tone in terminal device (incoming call prompting sound, short message prompt tones etc.) point Two kinds:One is users to download the tinkle of bells that others makes from ringing sound of cell phone website, and one is users according to the hobby of oneself The personal ring sound of self manufacture.However, either downloading the ringing tone or oneself self manufacture ringing tone that others makes, have Gymnastics is all time-consuming cumbersome, and the audio-frequency fragments that others cuts not necessarily are satisfied with the hobby of oneself, oneself makes again It needs constantly to debug to choose the audio-frequency fragments of oneself satisfaction, whole process needs take a significant amount of time and energy, efficiency are low Under.In embodiments of the present invention, above-mentioned prompt tone includes but not limited to:The prompt tones such as call reminding, short message, quarter-bell.
For this problem, in embodiments of the present invention, above-mentioned S204 specifically comprises the following steps:
If S204a, comparison result meet the first preset condition, comparison result in audio is met second in advance by terminal device If the audio fragment of condition is intercepted and is recommended.
Optionally, in embodiments of the present invention, the second above-mentioned preset condition includes:The first set of the audio fragment with Matching degree between second set is greater than or equal to third predetermined threshold, alternatively, the default beat curve of the audio fragment and prediction Curves degree between beat curve is greater than or equal to the 4th predetermined threshold.
It should be noted that the second above-mentioned preset condition can be identical as the first preset condition (for example, the predetermined threshold of third Value is identical as the first predetermined threshold, and the 4th predetermined threshold is identical as the second predetermined threshold), it can also be with the first preset condition not Together, specific condition setting can flexibly be set according to practical application scene.
It should be noted that in embodiments of the present invention, terminal device can also be to obtain the audio in the first duration Audio fragment, alternatively, the predetermined audio segment of the audio is recommended.
In embodiments of the present invention, the operation of user's shaking terminal device can directly embody sense of the user to this audio Level of interest can also directly determine the interested audio fragment of user, and therefore, terminal device can be directly by terminal device The audio fragment that time that generation is persistently shaken is played as prompt tone, make by the audio fragment that can also give tacit consent to audio For prompt tone.
Optionally, in embodiments of the present invention, it if terminal device is determined as user and recommends the video, directly will can select Audio fragment in the audio or the audio is set as prompt tone, and is named for the prompt tone, such as:Song title-date;Also may be used To obtain the lyrics of the audio fragment in the audio or the audio, if including predetermined keyword in the lyrics, by the audio or Audio fragment in the audio is set as prompt tone, and is named for the prompt tone, such as:Song title-keyword increases user couple The identification of prompt tone.
In this way, the embodiment of the present invention can quickly set the audio fragment of the interested audio of user as oneself terminal Standby prompt tone not only reduces the operating cost of user, also improves the search efficiency of prompt tone.
It should be noted that the first predetermined threshold value, the second predetermined threshold value, third predetermined threshold value in the embodiment of the present invention, Four predetermined threshold values can carry out flexible configuration according to practical application scene, and the present invention does not limit this.
Second embodiment:
A kind of possible structural schematic diagram of Fig. 3 terminal devices that embodiment provides to realize the present invention, as shown in figure 3, Terminal device 300 includes acquisition module 301, prediction module 302, comparing module 303 and recommending module 304, wherein:
Acquisition module 301, for terminal device in the playing duration for playing audio, the shaking of acquisition terminal equipment is joined Number.
Prediction module 302, the shaking parameter for being acquired according to acquisition module 301 predicts the beat of audio, obtains To the prediction beat information of audio.
Comparing module 303, the prediction beat information for predicting the default beat information of audio and prediction module 302 It is compared.
Recommending module 304 is recommended if the comparison result for comparing module 303 meets the first preset condition for user The audio.
Optionally, above-mentioned shaking parameter includes that terminal device is generated in playing duration in the first duration continuously shaken The shaking data shaken every time;Above-mentioned prediction beat information includes prediction beat information of the audio in the first duration;On The default beat information stated includes default beat information of the audio in the first duration;Prediction module 302 is specifically used for:According to adopting The shaking data that collection module 301 acquires predict beat of the audio in the first duration, obtain audio in the first duration Prediction beat information.
Further alternative, above-mentioned shaking data include shaking the beginning and ending time;Predict that beat information includes first set, The first set includes the beat beginning and ending time of each prediction beat;Above-mentioned default beat information includes second set, this Two set include the beat beginning and ending time of each default beat;Prediction module 302 is specifically used for:The shaking start-stop that will be shaken every time Time, the beat beginning and ending time as prediction beat;Recommending module 304 is specifically used for:If between first set and second set Matching degree is greater than or equal to the first predetermined threshold, then is user's recommendation of audio.
Further alternative, above-mentioned shaking data include location information and corresponding time;Above-mentioned default beat letter Breath includes the data of the default beat curve of audio, when which is used to characterize the beat start-stop of each default beat Between correspondence with the intensity of sound in default beat;Above-mentioned prediction beat information includes the prediction beat curve of audio Data, the prediction beat curve are used to characterize the beat duration and the intensity of sound in prediction beat that beat is preset in each prediction Correspondence;Prediction module 302 is specifically used for:According to the correspondence of the location information shaken every time and corresponding time, generate The rolling moving curve of terminal device, and moving curve will be shaken as default beat curve;Recommending module 304 is specifically used for:If default section The curves degree clapped between curve and default beat curve is greater than or equal to the second predetermined threshold, then is user's recommendation of audio.
It is further alternative, as shown in figure 3, terminal device 300 further includes:Acquisition module 305, wherein:
Acquisition module 305, for loading the corresponding default beat curve of audio;Alternatively, the default section of each of extraction audio The beat data of bat generates the corresponding default beat curve of the audio according to beat data;Wherein, above-mentioned beat data includes The signal strength of default beat and generation moment.
Optionally, recommending module 304 is specifically used for:Comparison result in audio is met to the audio fragment of the second preset condition It is intercepted and is recommended.
Terminal device provided in an embodiment of the present invention, the terminal device pass through acquisition in the playing duration for playing audio The shaking data of the terminal device predict the prediction beat information of the audio, then, by the default beat information of the audio with The prediction beat information is compared, determine user shake mobile phone beat whether the beat match with the audio, to basis User behavior determines whether the audio is the favorite audio of user, and then is the favorite audio of user recommended user, entire mistake Journey not only reduces user's operation behavior, also improves audio search efficiency, increases the accuracy of audio recommendation.
Terminal device provided in an embodiment of the present invention can realize that terminal device is realized each in above method embodiment Process, to avoid repeating, which is not described herein again.
3rd embodiment:
A kind of hardware architecture diagram of Fig. 4 terminal devices of each embodiment to realize the present invention, the terminal device 100 Including but not limited to:Radio frequency unit 101, audio output unit 103, input unit 104, sensor 105, is shown network module 102 Show the components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111. It will be understood by those skilled in the art that the structure of terminal device 100 shown in Fig. 4 does not constitute the restriction to terminal device, Terminal device 100 may include either combining certain components or different component cloth than illustrating more or fewer components It sets.In embodiments of the present invention, terminal device 100 include but not limited to mobile phone, tablet computer, laptop, palm PC, Car-mounted terminal, wearable device and pedometer etc..
Processor 110, for terminal device in the playing duration for playing audio, the shaking parameter of acquisition terminal equipment, The beat of audio is predicted according to parameter is shaken, the prediction beat information of audio is obtained, by the default beat information of audio It is compared with prediction beat information, if comparison result meets the first preset condition, recommends the audio for user.
Terminal device provided in an embodiment of the present invention, the terminal device pass through acquisition in the playing duration for playing audio The shaking data of the terminal device predict the prediction beat information of the audio, then, by the default beat information of the audio with The prediction beat information is compared, determine user shake mobile phone beat whether the beat match with the audio, to basis User behavior determines whether the audio is the favorite audio of user, and then is the favorite audio of user recommended user, entire mistake Journey not only reduces user's operation behavior, also improves audio search efficiency, increases the accuracy of audio recommendation.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by radio communication system and network and other set Standby communication.
Terminal device 100 has provided wireless broadband internet to the user by network module 102 and has accessed, and such as helps user Send and receive e-mail, browse webpage and access streaming video etc..
It is that audio output unit 103 can receive radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loud speaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 101 by being converted in the case of telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, it is (such as horizontal to can be used to identify terminal posture Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity Meter, thermometer, infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate and terminal device 100 User setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touch The type for touching event provides corresponding visual output on display panel 1061.Although in Fig. 4, touch panel 1071 and display Panel 1061 is to realize the function that outputs and inputs of terminal device 100 as two independent components, but in certain implementations In example, can touch panel 1071 and display panel 1061 be integrated and be realized the function that outputs and inputs of terminal device 100, tool Body does not limit herein.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Transmission data between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device 100, utilizes various interfaces and the entire terminal device of connection 100 various pieces, by running or executing the software program and/or module that are stored in memory 109, and calling storage Data in memory 109 execute the various functions and processing data of terminal device 100, to be carried out to terminal device 100 Integral monitoring.Processor 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110 In.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned function modules, details are not described herein.
Fourth embodiment:
Optionally, the embodiment of the present invention also provides a kind of terminal device, including processor, and memory is stored in memory Computer program that is upper and being run on the processor 110, the computer program realize above-mentioned sound when being executed by processor Frequency recommends each process of embodiment of the method, and can reach identical technique effect, and to avoid repeating, which is not described herein again.
5th embodiment:
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize that above-mentioned audio recommends each process of embodiment of the method, and energy when being executed by processor Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within the protection of the present invention.

Claims (12)

1. a kind of audio recommends method, which is characterized in that the method includes:
Terminal device acquires the shaking parameter of the terminal device in the playing duration for playing audio;
The beat of the audio is predicted according to the shaking parameter, obtains the prediction beat information of the audio;
The default beat information of the audio is compared with the prediction beat information;
If comparison result meets the first preset condition, recommend the audio for user.
2. according to the method described in claim 1, it is characterized in that,
The shaking parameter include the terminal device generated in the playing duration it is every in the first duration continuously shaken The shaking data of secondary shaking;The prediction beat information includes prediction beat information of the audio in first duration; The default beat information includes default beat information of the audio in first duration;
It is described that the beat of the audio is predicted according to the shaking parameter, the prediction beat information of the audio is obtained, Including:
Beat of the audio in first duration is predicted according to the shaking data, obtains the audio in institute State the prediction beat information in the first duration.
3. method according to claim 1 or 2, which is characterized in that
The shaking data include shaking the beginning and ending time;
The prediction beat information includes first set, and the first set includes the beat beginning and ending time of each prediction beat;
The default beat information includes second set, and the second set includes the beat beginning and ending time of each default beat;
It is described that the beat of the audio is predicted according to the shaking parameter, the prediction beat information of the audio is obtained, Including:The shaking beginning and ending time that will be shaken every time, the beat beginning and ending time as the prediction beat;
If the comparison result meets the first preset condition, recommend the audio for user, including:
If the matching degree between the first set and the second set is greater than or equal to the first predetermined threshold, recommend for user The audio.
4. method according to claim 1 or 2, which is characterized in that
The shaking data include location information and corresponding time;
The default beat information includes the data of the default beat curve of the audio, and the default beat curve is for characterizing The correspondence of the beat beginning and ending time and the intensity of sound in the default beat of each default beat;
The prediction beat information includes the data of the prediction beat curve of the audio, and the prediction beat curve is for characterizing The correspondence of the beat beginning and ending time of each prediction beat and the intensity of sound in the prediction beat;
It is described that the beat of the audio is predicted according to the shaking parameter, the prediction beat information of the audio is obtained, Including:According to the correspondence of the location information shaken every time and corresponding time, the shaking for generating the terminal device is bent Line, and using the rolling moving curve as the default beat curve;
If the comparison result meets the first preset condition, recommend the audio for user, including:
If the curves degree between the default beat curve and the prediction beat curve is greater than or equal to the second predetermined threshold, It is then that user recommends the audio.
5. according to the method described in claim 4, it is characterized in that, the default beat information by the audio with it is described pre- It surveys beat information to be compared, before determining whether the audio is target audio, the method further includes:
Load the corresponding default beat curve of the audio;
Alternatively, extracting the beat data that each of described audio presets beat, the audio pair is generated according to the beat data The default beat curve answered;Wherein, the beat data includes signal strength and the generation moment of the default beat.
6. according to the method described in claim 1, it is characterized in that, described recommend the audio for user, including:
The audio fragment that comparison result in the audio is met to the second preset condition is intercepted and is recommended.
7. a kind of terminal device, which is characterized in that including:
Acquisition module acquires the shaking parameter of the terminal device for terminal device in the playing duration for playing audio;
Prediction module, the shaking parameter for being acquired according to the acquisition module predict the beat of the audio, Obtain the prediction beat information of the audio;
Comparing module, the prediction beat for predicting the default beat information of the audio and the prediction module are believed Breath is compared;
Recommending module recommends the sound if the comparison result for the comparing module meets the first preset condition for user Frequently.
8. terminal device according to claim 7, which is characterized in that
The shaking parameter include the terminal device generated in the playing duration it is every in the first duration continuously shaken The shaking data of secondary shaking;The prediction beat information includes prediction beat information of the audio in first duration; The default beat information includes default beat information of the audio in first duration;
The prediction module is specifically used for:According to the shaking data of acquisition module acquisition to the audio described the Beat in one duration is predicted, prediction beat information of the audio in first duration is obtained.
9. terminal device according to claim 7 or 8, which is characterized in that
The shaking data include shaking the beginning and ending time;
The prediction beat information includes first set, and the first set includes the beat beginning and ending time of each prediction beat;
The default beat information includes second set, and the second set includes the beat beginning and ending time of each default beat;
The prediction module is specifically used for:The shaking beginning and ending time that will be shaken every time, the beat start-stop as the prediction beat Time;
The recommending module is specifically used for:If the matching degree between the first set and the second set is greater than or equal to first Predetermined threshold then recommends the audio for user.
10. terminal device according to claim 7 or 8, which is characterized in that
The shaking data include location information and corresponding time;
The default beat information includes the data of default beat curve of the audio in first duration, described default Beat curve is used to characterize the beat beginning and ending time pass corresponding with the intensity of sound in the default beat of each default beat System;
The prediction beat information includes the data of prediction beat curve of the audio in first duration, the prediction Beat curve is used to characterize the corresponding pass that the beat duration and the intensity of sound in the prediction beat of beat are preset in each prediction System;
The prediction module is specifically used for:According to the correspondence of the location information shaken every time and corresponding time, generate The rolling moving curve of the terminal device, and using the rolling moving curve as the default beat curve;
The recommending module is specifically used for:If the curves degree between the default beat curve and the prediction beat curve is big Then it is that user recommends the audio in or equal to the second predetermined threshold.
11. wanting the terminal device described in 10 according to right, which is characterized in that the terminal device further includes:
Acquisition module, for loading the corresponding default beat curve of the audio;Alternatively, extracting the default section of each of described audio The beat data of bat generates the corresponding default beat curve of the audio according to the beat data;
Wherein, the beat data includes signal strength and the generation moment of the default beat.
12. terminal device according to claim 7, which is characterized in that the recommending module is specifically used for:By the audio The audio fragment that middle comparison result meets the second preset condition is intercepted and is recommended.
CN201810339238.5A 2018-04-16 2018-04-16 A kind of audio recommends method and terminal device Pending CN108733765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810339238.5A CN108733765A (en) 2018-04-16 2018-04-16 A kind of audio recommends method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810339238.5A CN108733765A (en) 2018-04-16 2018-04-16 A kind of audio recommends method and terminal device

Publications (1)

Publication Number Publication Date
CN108733765A true CN108733765A (en) 2018-11-02

Family

ID=63938902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810339238.5A Pending CN108733765A (en) 2018-04-16 2018-04-16 A kind of audio recommends method and terminal device

Country Status (1)

Country Link
CN (1) CN108733765A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984855A (en) * 2019-05-24 2020-11-24 北京车和家信息技术有限公司 Information recommendation method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577114A (en) * 2009-06-18 2009-11-11 北京中星微电子有限公司 Method and device for implementing audio visualization
CN103092342A (en) * 2012-12-31 2013-05-08 北京金山安全软件有限公司 Processing method and device of mobile terminal
CN103544972A (en) * 2013-09-04 2014-01-29 张家港保税区润桐电子技术研发有限公司 Convenient audio playing method
CN103839538A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Music rhythm detection method and music rhythm detection device
CN104834642A (en) * 2014-02-11 2015-08-12 北京三星通信技术研究有限公司 Method, apparatus and device for changing music performance style
CN105931623A (en) * 2016-04-22 2016-09-07 成都涂鸦科技有限公司 Self-adaptive music generation method based on mobile phone shaking
CN106710610A (en) * 2016-12-29 2017-05-24 北京工业大学 Somatosensory interaction music player
CN106792014A (en) * 2016-11-25 2017-05-31 广州酷狗计算机科技有限公司 A kind of method of recommendation of audio, apparatus and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577114A (en) * 2009-06-18 2009-11-11 北京中星微电子有限公司 Method and device for implementing audio visualization
CN103839538A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Music rhythm detection method and music rhythm detection device
CN103092342A (en) * 2012-12-31 2013-05-08 北京金山安全软件有限公司 Processing method and device of mobile terminal
CN103544972A (en) * 2013-09-04 2014-01-29 张家港保税区润桐电子技术研发有限公司 Convenient audio playing method
CN104834642A (en) * 2014-02-11 2015-08-12 北京三星通信技术研究有限公司 Method, apparatus and device for changing music performance style
CN105931623A (en) * 2016-04-22 2016-09-07 成都涂鸦科技有限公司 Self-adaptive music generation method based on mobile phone shaking
CN106792014A (en) * 2016-11-25 2017-05-31 广州酷狗计算机科技有限公司 A kind of method of recommendation of audio, apparatus and system
CN106710610A (en) * 2016-12-29 2017-05-24 北京工业大学 Somatosensory interaction music player

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984855A (en) * 2019-05-24 2020-11-24 北京车和家信息技术有限公司 Information recommendation method and device

Similar Documents

Publication Publication Date Title
CN110472145A (en) A kind of content recommendation method and electronic equipment
CN108228882B (en) recommendation method and terminal device for song audition fragments
CN108509660A (en) A kind of broadcasting object recommendation method and terminal device
CN108966004A (en) A kind of method for processing video frequency and terminal
CN108449481A (en) A kind of associated person information recommends method and terminal
CN109032719A (en) A kind of object recommendation method and terminal
CN108920204A (en) A kind of interface display method and terminal device
CN109151176A (en) A kind of information acquisition method and terminal
CN109871246A (en) A kind of message display method and terminal device
CN109543099A (en) A kind of content recommendation method and terminal device
CN110046015A (en) Using sharing method and terminal
CN108469968A (en) A kind of applied program processing method and mobile terminal
CN108345474A (en) Startup method, starter and the mobile terminal of application program
CN108541009A (en) A kind of detection method and terminal device of communications status
CN108616448A (en) A kind of the path recommendation method and mobile terminal of Information Sharing
CN110099296A (en) A kind of information display method and terminal device
CN106873997A (en) Puzzle type task-cycle control method and device
CN108898040A (en) A kind of recognition methods and mobile terminal
CN108920054A (en) A kind of application recommended method and terminal
CN108874906A (en) A kind of information recommendation method and terminal
CN109324999A (en) A kind of method and electronic equipment executing operation based on download instruction
CN109885490A (en) A kind of picture control methods and device
CN109726303A (en) A kind of image recommendation method and terminal
CN108108338A (en) A kind of method for processing lyric, lyric display method, server and mobile terminal
CN109471524A (en) A kind of method and mobile terminal controlling motor vibrations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181102

RJ01 Rejection of invention patent application after publication