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 is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
First embodiment
Referring to Fig. 1, Fig. 1 is the flow chart of lamp light control method provided in an embodiment of the present invention, and the lamp light control method should
For mobile terminal, as shown in figure 1, comprising the following steps:
Step 101, obtains the acceleration magnitude of acceleration transducer detection.
The step, above-mentioned mobile terminal can be the intelligent electronic devices such as mobile phone, pad, be built-in with add in the terminal
Velocity sensor.The acceleration transducer is used to obtain the acceleration of gravity of mobile terminal, the change feelings according to acceleration of gravity
Condition can know whether mobile terminal rocks.In the present embodiment, acceleration transducer can be with the current acceleration of gravity of real-time detection
Value, therefore can in real time or every Preset Time gap obtain acceleration transducer detection acceleration magnitude, so as to know
The situation of change of acceleration.
Step 102, if acceleration magnitude meets pre-conditioned, gathers audio signal.
In the step, above-mentioned pre-conditioned content can be configured according to actual needs, for example, pre-conditioned can be with
Including:Acceleration magnitude is more than the first preset value;Or, determine that mobile terminal rocks number of times and preset more than second according to acceleration magnitude
Value;Or, determine that mobile terminal rocks amplitude more than the 3rd preset value according to acceleration magnitude.
In the present embodiment, can determine whether mobile terminal rocks according to the situation of change of above-mentioned acceleration magnitude, rock
During, meet acceleration magnitude more than the first preset value, rock number of times more than the second preset value and the amplitude rocked more than the
Any one of three preset values or two can automatically trigger mobile terminal collection audio signal.Specifically, can control
Mobile terminal opens the audio signal around voice acquisition module (such as microphone) collection.
Step 103, extracts the audio-frequency fingerprint in audio signal.
The step, can carry out the extraction of audio-frequency fingerprint, specifically using default extracting mode to the audio signal for gathering
, the mode for extracting audio-frequency fingerprint can be configured according to actual needs, not be further limited herein.
Step 104, the audio-frequency fingerprint of extraction is compared with default database, determines whether audio-frequency fingerprint meets sound
Happy feature.
In the step, musical features are stored in above-mentioned database, for recognizing whether audio-frequency fingerprint meets musical features,
If audio-frequency fingerprint meets musical features, can determine that user is in default campaign item, the default campaign item can be wrapped
Include the art activities with singing sow such as concert, company's annual meeting, birthday party.Specifically, above-mentioned database can be stored
On mobile terminals, it is also possible to be stored on external server, determination sound is interacted by mobile terminal and external server
Whether frequency fingerprint meets musical features.
Step 105, if audio-frequency fingerprint meets musical features, lights according to the light of predetermined manner triggering mobile terminal.
In the step, if audio-frequency fingerprint meets musical features, mobile terminal can be automatically triggered according to predetermined manner
Light is lighted, so as to reach the function of light prompting.Wherein, the mode that the light of triggering mobile terminal is lighted can be according to reality
Needs are configured, for example, can control light Chang Liang, can also be flashed according to certain frequency.Specifically, the controlling party of light
Formula is not limited further herein.
So, in the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets default
Condition, gathers audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is carried out with default database
Compare, determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, triggered according to predetermined manner and moved
The light of terminal is lighted.Due to judging whether user is in the deduction activity with singing sow by rocking directly triggering,
The control of unlatching light is determined whether, and then without the manually opened signal light control to mobile terminal of user, therefore improve
The intelligence degree of mobile terminal.
Second embodiment
Further, reference picture 2, in the lamp light control method that second embodiment of the invention is provided, with first embodiment
Difference be that in the present embodiment, whether mobile terminal further can have default campaign item to the position that is presently in
Further judged, so that whether improve to user in the accuracy that campaign item judges is preset, to avoid maloperation.
As shown in Fig. 2 above-mentioned steps 105 include:
Step 1051, if the audio-frequency fingerprint meets musical features, obtains the positional information of mobile terminal.
The step, after it is determined that whether audio-frequency fingerprint meets musical features, can trigger mobile terminal and further obtain shifting
The current positional information of dynamic terminal.The positional information obtain mode can be configured according to actual needs, do not do herein into
The restriction of one step, specifically, the positional information that positioning function obtains mobile terminal can be opened.
Step 1052, inquiry request is sent according to positional information to default server, and inquiry request is used for inquiring position
Information is in preset time period with the presence or absence of default campaign item.
In the step, above-mentioned default server can be dedicated for the platform of the default campaign item of inquiry, it is also possible to
It is the service platform of third party's offer, is not limited further herein;Specifically, being stored in default server above-mentioned
Default campaign item.At the same time the default server can be one, or multiple.The above-mentioned default time period can
Think the time period (example carried in the front and rear a period of time, or inquiry request for sending inquiry request corresponding time point
As mobile terminal generates a time period according to current time point).
Whether default server is after inquiry request is received, it will inquired about according to inquiry request and deposited in preset time period
In default campaign item, corresponding Query Result is then sent to mobile terminal.The content for wherein presetting campaign item can be with root
It is configured according to being actually needed, for example the default campaign item there can be song including concert, company's annual meeting, birthday party etc.
Sing the art activities of performance.
Step 1053, the Query Result of the reception server.
In the present embodiment, it is default that the Query Result that server sends can include that positional information exists in preset time period
Campaign item and positional information are in preset time period in the absence of default campaign item.Specifically, when default campaign item includes
During concert, if the time of concert be 2016 2 months 15 days 19 when 00 point to 2016 2 months 15 days 21 when 30 points, place is
A.If user is located at B ground, rocked for 00 point at 2016 2 months 15 days 18 using mobile terminal, and acceleration meets above-mentioned default
Condition, the Query Result that now server is returned does not exist default campaign item for positional information in preset time period.If with
Family is located at A ground, is rocked for 00 point at 2016 2 months 15 days 16 using mobile terminal, and acceleration meets above-mentioned pre-conditioned, this
When the Query Result that returns of server for positional information in preset time period in the absence of default campaign item.If user is located at A
Ground, is rocked for 00 point at 2016 2 months 15 days 18 using mobile terminal, and acceleration meets above-mentioned pre-conditioned, now services
The Query Result that device is returned does not exist default campaign item for positional information in preset time period.
Step 1054, if Query Result is positional information has default campaign item in preset time period, according to default
The light that mode triggers mobile terminal is lighted.
Optionally, because the light type set on mobile terminal can have various, therefore different light can be entered
Row controls to realize light prompting.For example, above-mentioned light can include flash lamp, screen and breath light.Specifically, above-mentioned press
The step of light according to predetermined manner triggering mobile terminal is lighted, including:
Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;
Or, flashed according to the breath light of predetermined manner triggering mobile terminal.
It should be noted that can also simultaneously control flash lamp, screen and breath light to flash in other embodiments, or
Alternately control flash lamp, screen and breath light flicker etc., will not enumerate herein.Wherein, above-mentioned flash lamp is usually rearmounted
Flash lamp, and set near camera;Additionally, part mobile terminal is additionally provided with preposition flash lamp, above-mentioned light can also be
The preposition flash lamp.The position of above-mentioned breath light can be configured according to actual needs, for example, mobile terminal can be arranged on
The back side, as shown in figure 3, being provided with LOGO breath lights at the back side of mobile terminal.
Specifically, the specific implementation of above-mentioned predetermined manner can be configured according to actual needs, below will be with not
The light of same type sets different predetermined manners and is described in detail:
For example, when being controlled as above-mentioned light using flash lamp or screen, above-mentioned triggering according to predetermined manner is moved
The step of flash lamp of dynamic terminal or screen flicker, including:
The size control flash lamp of amplitude or the brightness size of screen are rocked according to mobile terminal;
Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
In the present embodiment, when the amplitude that mobile terminal rocks is bigger, then the brighter display of light or screen can be controlled;Together
When can also be that acceleration magnitude is bigger, control flash lamp or screen brightness it is bigger.
When being controlled as above-mentioned light using breath light, if breath light includes two light groups, according to predetermined manner
The step of breath light for triggering mobile terminal flashes, including:
Direction is rocked according to mobile terminal and triggers corresponding light group flicker.
Specifically, when rocking to the left, first group of light is in illuminating state, second group of light is in OFF state;When
When rocking to the right, first group of light is in OFF state, and second group of light is in illuminating state.For example, the LOGO of mobile terminal
Breath light includes four letters, and first group of light is two letters on the left side, and second group of light is two letters on the right.
In the present embodiment, due to different dispaly states can be entered according to the state control light that rocks of mobile terminal,
Therefore the interest of signal light control is improve, so as to improve the Experience Degree of user.
Further, reference picture 4, can set the different flicker frequency of light, so that lamp for different music
The flicker rhythm of light is consistent with the rhythm of music, improves the intelligence degree of mobile terminal.Specifically, as shown in figure 4, above-mentioned
Before the step of light according to predetermined manner triggering mobile terminal is lighted, the method also includes:
Step 106, recognizes musical designation, determines music style.
In the step, above-mentioned music style mainly makes a distinction from music rhythm, for example, can include the fast music of rhythm
The music slow with rhythm, can also make a distinction from other modes certainly, it is also possible to set multiple rhythm ranks, do not do herein
It is further to limit.
Specifically, can be classified to music according to musical designation, the result of classification can be stored in mobile terminal
Locally;Can also be previously stored in external server, mobile terminal can be interacted with external server so that it is determined that the sound
What the corresponding music style of happy title is.If the result of classification is stored in into mobile terminal locally, can improve mobile whole
The response speed at end, if the result of classification is stored in external server, can reduce the demand to mobile terminal internal memory.
Step 107, the frequency of light flash in predetermined manner is set according to music style.
In the present embodiment, the frequency of the corresponding light flash of different music styles is also different, the fast music of such as rhythm
Corresponding flicker frequency is higher, and the corresponding flicker frequency of the slow music of rhythm is relatively low.Due in the present embodiment, can be to music
Title is identified, and determines music style, the frequency of light flash is selected according to music style, such that it is able to strengthen user's
Experience, while can be with the music atmosphere at significantly more efficient active scene.If it is understood that name of the None- identified to music
Claim, then can by the frequency setting of light flash in predetermined manner be acquiescence frequency.
Fourth embodiment
Referring to Fig. 5, Fig. 5 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize that the first to the second is real
The details of lamp light control method in example is applied, and reaches identical effect.As shown in figure 5, mobile terminal 500 is obtained including acceleration
Module 501, audio collection module 502, extraction module 503, comparing module 504 and control module 505, wherein:
Acceleration acquisition module 501, the acceleration magnitude for obtaining acceleration transducer detection;
Audio collection module 502, if meeting pre-conditioned for acceleration magnitude, gathers audio signal;
Extraction module 503, for extracting the audio-frequency fingerprint in audio signal;
Comparing module 504, for the audio-frequency fingerprint of extraction to be compared with default database, determines that audio-frequency fingerprint is
It is no to meet musical features;
Control module 505, if meeting musical features for audio-frequency fingerprint, the light of mobile terminal is triggered according to predetermined manner
Light.
Optionally, reference picture 6, control module 505 also includes:
Position acquisition unit 5051, the positional information for obtaining mobile terminal;
Transmitting element 5052, for sending inquiry request to default server according to positional information, inquiry request is used for
Inquiring position information is in preset time period with the presence or absence of default campaign item;
Receiving unit 5053, for the Query Result of the reception server;
Control unit 5054, if being that the positional information has default work in preset time period for the Query Result
Dynamic project, the light for triggering the mobile terminal according to predetermined manner is lighted.
Optionally, it is pre-conditioned including:
Acceleration magnitude is more than the first preset value;
Or, determine that mobile terminal rocks number of times more than the second preset value according to acceleration magnitude;
Or, determine that mobile terminal rocks amplitude more than the 3rd preset value according to acceleration magnitude.
Optionally, control module 505 specifically for:Flash lamp or screen according to predetermined manner triggering mobile terminal dodge
It is bright;Or, flashed according to the breath light of predetermined manner triggering mobile terminal.
Optionally, control module 505 specifically for:Flash lamp or screen are controlled according to the size that mobile terminal rocks amplitude
Brightness size;Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
Optionally, breath light include two light groups, control module 505 specifically for:Direction is rocked according to mobile terminal to touch
Flicker of sending out light group corresponding.
Optionally, reference picture 7, mobile terminal 500 also includes:
Identification module 506, for recognizing musical designation, determines music style;
Setting module 507, the frequency for setting light flash in predetermined manner according to music style.
In the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets pre-conditioned,
Collection audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with default database,
Determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, mobile terminal is triggered according to predetermined manner
Light light.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, so that
Determine whether the control of unlatching light, and then without the manually opened signal light control to mobile terminal of user, therefore improve shifting
The intelligence degree of dynamic terminal.
Fourth embodiment
Referring to Fig. 8, Fig. 8 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize that the first to the second is real
The details of lamp light control method in example is applied, and reaches identical effect.As shown in figure 8, mobile terminal 800 includes:At least one
Processor 801, memory 802, at least one network interface 804 and user interface 803.Each component in mobile terminal 800
It is coupled by bus system 805.It is understood that bus system 805 is used to realize the connection communication between these components.Always
Linear system unites 805 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But in order to clear
For the sake of Chu's explanation, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball
(track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 8022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program for calling memory 802 to store or instruction, specifically, can be application
The program stored in program 8022 or instruction, processor 801 are used for:Obtain the acceleration magnitude of acceleration transducer detection;If plus
Velocity amplitude meets pre-conditioned, gathers audio signal;Extract the audio-frequency fingerprint in audio signal;Will extract audio-frequency fingerprint with it is pre-
If database compare, determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, according to pre-
If the light that mode triggers mobile terminal is lighted.
The method that the embodiments of the present invention are disclosed can apply in processor 801, or be realized by processor 801.
Processor 801 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 801 or software form.Above-mentioned treatment
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable GateArray, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 802, processor 801 reads the information in memory 802, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing the application function or its combination.
Realized for software, can be by the skill that performs the module (such as process, function etc.) of this paper functions to realize this paper
Art.Software code is storable in memory and by computing device.Memory can be within a processor or outside processor
Realize in portion.
Optionally, processor 801 is additionally operable to:If the audio-frequency fingerprint meets musical features, the mobile terminal is obtained
Positional information;Inquiry request is sent to default server according to the positional information, the inquiry request is used to inquire about described
Positional information is in preset time period with the presence or absence of default campaign item;Receive the Query Result of the server;If described look into
Ask result and there is default campaign item in preset time period for the positional information, it is described mobile whole according to predetermined manner triggering
The light at end is lighted.
Optionally, it is pre-conditioned including:Acceleration magnitude is more than the first preset value;Or, determined to move according to acceleration magnitude
Terminal rocks number of times more than the second preset value;Or, determine that mobile terminal rocks amplitude and preset more than the 3rd according to acceleration magnitude
Value.
Optionally, processor 801 is additionally operable to:Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;Or
Person, flashes according to the breath light of predetermined manner triggering mobile terminal.
Optionally, processor 801 is additionally operable to:According to mobile terminal rock amplitude size control flash lamp or screen it is bright
Degree size;Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
Optionally, breath light includes two light groups, and processor 801 is additionally operable to:Direction triggering is rocked according to mobile terminal right
The light group answered flashes.
Optionally, processor 801 is additionally operable to:Identification musical designation, determines music style;It is default according to music style setting
The frequency of light flash in mode.
In the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets pre-conditioned,
Collection audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with default database,
Determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, mobile terminal is triggered according to predetermined manner
Light light.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, so that
Determine whether the control of unlatching light, and then without the manually opened signal light control to mobile terminal of user, therefore improve shifting
The intelligence degree of dynamic terminal.
5th embodiment
Fig. 9 is referred to, Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize the first to the second
The details of lamp light control method in embodiment, and reach identical effect.As shown in figure 9, mobile terminal 900 includes radio frequency
(Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, processor 950, audio
Circuit 960, communication module 970 and power supply 980, also including camera (not shown).
Wherein, input block 930 can be used to receive the numeral or character information of user input, and produce and mobile terminal
900 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 930 can
With including contact panel 931.Contact panel 931, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 931 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 950 again, and the order sent of receiving processor 950 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block
930 can also include other input equipments 932, and other input equipments 932 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 940 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 950 is sent to determine the type of touch event, with preprocessor
950 provide corresponding visual output according to the type of touch event in touch display screen.
Wherein processor 950 is the control centre of mobile terminal 900, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in first memory 921, and call storage
Data in second memory 922, perform the various functions and processing data of mobile terminal 900, so as to mobile terminal 900
Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, processor 950 is used for:Obtain the acceleration magnitude of acceleration transducer detection;If accelerating
Angle value meets pre-conditioned, gathers audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint that will be extracted with it is default
Database compare, determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, according to default
The light that mode triggers mobile terminal is lighted.
Optionally, processor 950 is additionally operable to:If the audio-frequency fingerprint meets musical features, the mobile terminal is obtained
Positional information;Inquiry request is sent to default server according to the positional information, the inquiry request is used to inquire about described
Positional information is in preset time period with the presence or absence of default campaign item;Receive the Query Result of the server;If described look into
Ask result and there is default campaign item in preset time period for the positional information, it is described mobile whole according to predetermined manner triggering
The light at end is lighted.
Optionally, it is pre-conditioned including:Acceleration magnitude is more than the first preset value;Or, determined to move according to acceleration magnitude
Terminal rocks number of times more than the second preset value;Or, determine that mobile terminal rocks amplitude and preset more than the 3rd according to acceleration magnitude
Value.
Optionally, processor 950 is additionally operable to:Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;Or
Person, flashes according to the breath light of predetermined manner triggering mobile terminal.
Optionally, processor 950 is additionally operable to:According to mobile terminal rock amplitude size control flash lamp or screen it is bright
Degree size;Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
Optionally, breath light includes two light groups, and processor 950 is additionally operable to:Direction triggering is rocked according to mobile terminal right
The light group answered flashes.
Optionally, processor 950 is additionally operable to:Identification musical designation, determines music style;It is default according to music style setting
The frequency of light flash in mode.
In the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets pre-conditioned,
Collection audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with default database,
Determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, mobile terminal is triggered according to predetermined manner
Light light.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, so that
Determine whether the control of unlatching light, and then without the manually opened signal light control to mobile terminal of user, therefore improve shifting
The intelligence degree of dynamic terminal.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of unit, is only one kind
Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication connection of device or unit by some interfaces,
Can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit
Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks
On unit.Some or all of unit therein can be according to the actual needs selected to realize the mesh of embodiment of the present invention scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can store
In a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words to existing
Having part that technology contributes or the part of the technical scheme can be embodied in the form of software product, the computer
Software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be personal meter
Calculation machine, server, or network equipment etc.) perform all or part of step of each embodiment method of the invention.And it is foregoing
Storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
More than, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all cover
Within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.