Specific embodiment
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 description, 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, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
It is the flow chart of lamp light control method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, which answers
For mobile terminal, as shown in Figure 1, comprising the following steps:
Step 101, the acceleration value of acceleration transducer detection is obtained.
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, according to the variation feelings of 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 value, to know
The situation of change of acceleration.
Step 102, if acceleration value meets preset condition, audio signal is acquired.
In the step, the content of above-mentioned preset condition can be configured according to actual needs, for example, preset condition can be with
It include: that acceleration value is greater than the first preset value;Alternatively, it is default greater than second to determine that mobile terminal rocks number according to acceleration value
Value;Alternatively, determining that mobile terminal rocks amplitude greater than third preset value according to acceleration value.
In the present embodiment, it can determine whether mobile terminal rocks according to the situation of change of above-mentioned acceleration value, rock
In the process, meet acceleration value greater than the first preset value, rock number and be greater than the greater than the second preset value and the amplitude rocked
Any one of three preset values or two Xiang Junke are with automatic trigger mobile terminal acquisition audio signal.Specifically, can control
Mobile terminal opens the audio signal around voice acquisition module (such as microphone) acquisition.
Step 103, the audio-frequency fingerprint in audio signal is extracted.
The step can carry out the extraction of audio-frequency fingerprint, specifically using preset extracting mode to the audio signal of acquisition
, the mode for extracting audio-frequency fingerprint can be configured according to actual needs, be not further limited herein.
Step 104, the audio-frequency fingerprint of extraction is compared with preset database, determines whether audio-frequency fingerprint meets sound
Happy feature.
In the step, musical features are stored in above-mentioned database, whether audio-frequency fingerprint meets musical features for identification,
If audio-frequency fingerprint meets musical features, it can determine that user is in default campaign item, which can wrap
Include the art activities that concert, company's annual meeting, birthday party etc. have singing sow.Specifically, above-mentioned database can store
On mobile terminals, it can also be stored on external server, determining sound is interacted by mobile terminal and external server
Whether frequency fingerprint meets musical features.
Step 105, it if audio-frequency fingerprint meets musical features, is lighted according to the light of predetermined manner triggering mobile terminal.
It, can be according to predetermined manner automatic trigger mobile terminal if audio-frequency fingerprint meets musical features in the step
Light is lighted, to reach the function of light prompting.Wherein, triggering mode that the light of mobile terminal is lighted can be according to reality
It needs to be configured, is always on, can also be flashed according to certain frequency for example, can control light.Specifically, the controlling party of light
Formula is not further herein to be limited.
In this way, obtaining the acceleration value of acceleration transducer detection in the embodiment of the present invention;If acceleration value meets default
Condition acquires audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction and preset database are carried out
It compares, determines whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, triggers and move according to predetermined manner
The light of terminal is lighted.Due to judging whether user is in the deduction activity with singing sow by rocking directly triggering,
It determines whether the control of unlatching light, and then is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve
The intelligence degree of mobile terminal.
Second embodiment
Further, referring to Fig. 2, in the lamp light control method that second embodiment of the invention provides, with first embodiment
Difference be in the present embodiment, whether mobile terminal further can have default campaign item to the position being presently in
Further judged, so that the accuracy for whether being in default campaign item judgement to user improved, to avoid maloperation.
As shown in Fig. 2, above-mentioned steps 105 include:
Step 1051, if the audio-frequency fingerprint meets musical features, the location information of mobile terminal is obtained.
The step can trigger mobile terminal and further obtain shifting after determining whether audio-frequency fingerprint meets musical features
The current location information of dynamic terminal.The location information obtain mode can be configured according to actual needs, do not do herein into
The restriction of one step, specifically, the location information that positioning function obtains mobile terminal can be opened.
Step 1052, inquiry request is sent to preset server according to location information, inquiry request is used for inquiring position
Information whether there is default campaign item within a preset period of time.
In the step, above-mentioned preset server can be the platform dedicated for inquiring default campaign item, can also be with
It is the service platform that third party provides, it is not further herein to be limited;Specifically, being stored in preset server above-mentioned
Default campaign item.The preset server can be one at the same time, or multiple.The above-mentioned preset period can
The front and back for thinking transmission inquiry request corresponding time point for a period of time, is also possible to the period (example carried in inquiry request
As mobile terminal generates a period according to current time point).
Whether preset server is after receiving inquiry request, it will inquired in preset time period and deposited according to inquiry request
In default campaign item, corresponding query result is then sent to mobile terminal.The content for wherein presetting campaign item can root
It is configured according to actual needs, such as the default campaign item may include that concert, company's annual meeting, birthday party etc. have song
Sing the art activities of performance.
Step 1053, the query result of server is received.
In the present embodiment, the query result that server is sent may include location information within a preset period of time in the presence of default
Default campaign item is not present in campaign item and location information within a preset period of time.Specifically, when default campaign item includes
When concert, if 00 30 dividing when dividing to 2016 2 months 15 days 21 when the time of concert is 2016 2 months 15 days 19, place is
A.If user is with being located at B, 00 divides and rock at 2016 2 months 15 days 18 using mobile terminal, and acceleration meet it is above-mentioned default
Condition, the query result that server returns at this time are that default campaign item is not present in location information within a preset period of time.If with
Family with being located at A, using mobile terminal 00 is divided and is rocked at 2016 2 months 15 days 16, and acceleration meets above-mentioned preset condition, this
When server return query result be location information default campaign item is not present within a preset period of time.If user is located at A
Ground 00 is divided and is rocked at 2016 2 months 15 days 18 using mobile terminal, and acceleration meets above-mentioned preset condition, services at this time
The query result that device returns is that default campaign item is not present in location information within a preset period of time.
Step 1054, if query result is that location information has default campaign item within a preset period of time, according to default
The light that mode triggers mobile terminal is lighted.
Optionally, due to the light type that is arranged on mobile terminal can there are many, can to different light into
Row control, Lai Shixian light prompting.For example, above-mentioned light may include flash lamp, screen and breath light.Specifically, above-mentioned press
The step of being lighted according to the light that predetermined manner triggers mobile terminal, comprising:
Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;
Alternatively, being flashed according to the breath light of predetermined manner triggering mobile terminal.
It should be noted that flash lamp, screen and breath light flashing can also be controlled simultaneously in other embodiments, or
Alternately control flash lamp, screen and breath light flashing etc., will not enumerate herein.Wherein, above-mentioned flash lamp is usually postposition
Flash lamp, and be arranged close to camera;In addition, partial movement terminal is additionally provided with preposition flash lamp, above-mentioned light may be
The preposition flash lamp.The position of above-mentioned breath light can be configured according to actual needs, for example, can be set in mobile terminal
The back side, as shown in figure 3, the back side of mobile terminal be equipped with LOGO breath light.
Specifically, the specific implementation of above-mentioned predetermined manner can be configured according to actual needs, it below will be with not
The light of same type is arranged different predetermined manners and is described in detail:
For example, above-mentioned trigger according to predetermined manner is moved when being controlled using flash lamp or screen as above-mentioned light
The step of flash lamp of dynamic terminal or screen flicker, comprising:
The size control flash lamp of amplitude or the brightness size of screen are rocked according to mobile terminal;
Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
In the present embodiment, when the amplitude that mobile terminal rocks is bigger, then the brighter display of light or screen can control;Together
When be also possible to that acceleration value is bigger, the brightness for controlling flash lamp or screen is bigger.
When being controlled using breath light as above-mentioned light, if breath light includes two light groups, according to predetermined manner
The step of triggering the breath light flashing of mobile terminal, comprising:
Direction, which is rocked, according to mobile terminal triggers corresponding light group flashing.
Specifically, first group of light is in illuminating state when rocking to the left, 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, since different display states can be entered according to the state control light that rocks of mobile terminal,
Therefore the interest of signal light control is improved, to improve the Experience Degree of user.
Further, referring to Fig. 4, the different flicker frequency of light can be set for different music, so that lamp
The flashing 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 being lighted according to the light of predetermined manner triggering mobile terminal, this method further include:
Step 106, it identifies musical designation, determines music style.
In the step, above-mentioned music style is mainly distinguished from music rhythm, such as may include the fast music of rhythm
The slow music with rhythm, can also distinguish from other modes certainly, and multiple rhythm ranks also can be set, do not do herein
It is further to limit.
Specifically, can be classified according to musical designation to music, the result of classification can be stored in mobile terminal
It is local;It is also possible to be 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 mobile terminal local, can be improved mobile whole
The response speed at end can reduce the demand to mobile terminal memory if the result of classification is stored in external server.
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, such as the music that rhythm is fast
Corresponding flicker frequency is higher, and the corresponding flicker frequency of the slow music of rhythm is lower.It, can be to music due in the present embodiment
Title is identified, and determines music style, selects the frequency of light flash, according to music style so as to enhance user's
Experience, while can be with the music atmosphere at significantly more efficient active scene.It is understood that if the name of music can not be recognized
Claim, then the frequency of light flash in predetermined manner can be set as to the frequency of default.
Fourth embodiment
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, it is real can be realized the first to the second
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, comparison module 504 and control module 505, in which:
Acceleration obtains module 501, for obtaining the acceleration value of acceleration transducer detection;
Audio collection module 502 acquires audio signal if meeting preset condition for acceleration value;
Extraction module 503, for extracting the audio-frequency fingerprint in audio signal;
Comparison module 504 determines that audio-frequency fingerprint is for the audio-frequency fingerprint of extraction to be compared with preset database
It is no to meet musical features;
Control module 505, if meeting musical features for audio-frequency fingerprint, according to the light of predetermined manner triggering mobile terminal
It lights.
Optionally, referring to Fig. 6, control module 505 further include:
Position acquisition unit 5051, for obtaining the location information of mobile terminal;
Transmission unit 5052, for sending inquiry request to preset server according to location information, inquiry request is used for
Inquiring position information whether there is default campaign item within a preset period of time;
Receiving unit 5053, for receiving the query result of server;
Control unit 5054, if being that the location information has default live within a preset period of time for the query result
Dynamic project, is lighted according to the light that predetermined manner triggers the mobile terminal.
Optionally, preset condition includes:
Acceleration value is greater than the first preset value;
Alternatively, determining that mobile terminal rocks number greater than the second preset value according to acceleration value;
Alternatively, determining that mobile terminal rocks amplitude greater than third preset value according to acceleration value.
Optionally, control module 505 is specifically used for: dodging according to the flash lamp or screen of predetermined manner triggering mobile terminal
It is bright;Alternatively, being flashed according to the breath light of predetermined manner triggering mobile terminal.
Optionally, control module 505 is specifically used for: the size control flash lamp or screen of amplitude are rocked according to mobile terminal
Brightness size;Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
Optionally, breath light includes two light groups, and control module 505 is specifically used for: rocking direction touching according to mobile terminal
Flashing of sending out light group corresponding.
Optionally, referring to Fig. 7, mobile terminal 500 further include:
Identification module 506, musical designation, determines music style for identification;
Setting module 507, for setting the frequency of light flash in predetermined manner according to music style.
In the embodiment of the present invention, the acceleration value of acceleration transducer detection is obtained;If acceleration value meets preset condition,
Acquire audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with preset 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 whether user is in the deduction activity with singing sow by rocking directly triggering, thus
Determine whether the control of unlatching light, and then is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve shifting
The intelligence degree of dynamic terminal.
Fourth embodiment
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, it is real can be realized the first to the second
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.Various components in mobile terminal 800
It is coupled by bus system 805.It is understood that bus system 805 is for realizing the connection communication between these components.Always
Linear system system 805 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.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 may 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,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(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 is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 8022 includes 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 or instruction of calling memory 802 to store, specifically, can be application
The program or instruction stored in program 8022, processor 801 are used for: obtaining the acceleration value of acceleration transducer detection;If plus
Velocity amplitude meets preset condition, acquires audio signal;Extract the audio-frequency fingerprint in audio signal;By the audio-frequency fingerprint of extraction and in advance
If database be compared, 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 disclose can be applied in processor 801, or be realized by processor 801.
Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable GateArray, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (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 executing the application function or combinations thereof.
For software implementations, the skill of this paper can be realized by executing the module (such as process, function etc.) of this paper function
Art.Software code is storable in memory and is executed by processor.Memory can in the processor or outside the processor
It realizes in portion.
Optionally, processor 801 is also used to: if the audio-frequency fingerprint meets musical features, obtaining the mobile terminal
Location information;Inquiry request is sent to preset server according to the positional information, the inquiry request is described for inquiring
Location information whether there is default campaign item within a preset period of time;Receive the query result of the server;If described look into
It askes result and there is default campaign item within a preset period of time for the location information, it is described mobile whole according to predetermined manner triggering
The light at end is lighted.
Optionally, preset condition includes: that acceleration value is greater than the first preset value;It is moved alternatively, being determined according to acceleration value
Terminal rocks number greater than the second preset value;Alternatively, it is default greater than third to determine that mobile terminal rocks amplitude according to acceleration value
Value.
Optionally, processor 801 is also used 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 also used to: according to mobile terminal rock amplitude size control flash lamp or screen it is bright
Spend size;Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
Optionally, breath light includes two light groups, and processor 801 is also used to: rocking direction triggering pair according to mobile terminal
The light group flashing answered.
Optionally, processor 801 is also used 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 value of acceleration transducer detection is obtained;If acceleration value meets preset condition,
Acquire audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with preset 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 whether user is in the deduction activity with singing sow by rocking directly triggering, thus
Determine whether the control of unlatching light, and then is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve shifting
The intelligence degree of dynamic terminal.
5th embodiment
Referring to Fig. 9, Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention, the first to the second can be realized
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 unit 930, display unit 940, processor 950, audio
Circuit 960, communication module 970 and power supply 980 further include camera (not shown).
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 950 is given again, and can be received order that processor 950 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit
930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 950 is sent to determine the type of touch event, is followed by subsequent processing device
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, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage
Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus 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 are used for: obtaining the acceleration value of acceleration transducer detection;If accelerating
Angle value meets preset condition, acquires audio signal;Extract the audio-frequency fingerprint in audio signal;By the audio-frequency fingerprint of extraction and preset
Database be compared, 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 also used to: if the audio-frequency fingerprint meets musical features, obtaining the mobile terminal
Location information;Inquiry request is sent to preset server according to the positional information, the inquiry request is described for inquiring
Location information whether there is default campaign item within a preset period of time;Receive the query result of the server;If described look into
It askes result and there is default campaign item within a preset period of time for the location information, it is described mobile whole according to predetermined manner triggering
The light at end is lighted.
Optionally, preset condition includes: that acceleration value is greater than the first preset value;It is moved alternatively, being determined according to acceleration value
Terminal rocks number greater than the second preset value;Alternatively, it is default greater than third to determine that mobile terminal rocks amplitude according to acceleration value
Value.
Optionally, processor 950 is also used 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 also used to: according to mobile terminal rock amplitude size control flash lamp or screen it is bright
Spend size;Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
Optionally, breath light includes two light groups, and processor 950 is also used to: rocking direction triggering pair according to mobile terminal
The light group flashing answered.
Optionally, processor 950 is also used 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 value of acceleration transducer detection is obtained;If acceleration value meets preset condition,
Acquire audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with preset 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 whether user is in the deduction activity with singing sow by rocking directly triggering, thus
Determine whether the control of unlatching light, and then is not necessarily to 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 may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
If function is realized in the form of SFU software functional unit and when sold or used as an independent product, can store
In a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing
Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer
Software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal meter
Calculation machine, server or network equipment etc.) execute all or part of the steps of each embodiment method of the present invention.And it is above-mentioned
Storage medium includes: the various media that can store program code such as USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all cover
Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.