The content of the invention
For the deficiencies in the prior art, the present invention provides a kind of voice awakening method and shifting based on mikeDynamic terminal.
The technical purpose of the present invention is realized by following technological means:
A kind of voice awakening method based on mike, is applied to mobile terminal, wherein, including:
Step S1, it is under standby mode in the mobile terminal, control detector unit is predetermined every firstInterval time is acquired to being presently in environment, and forms a detection signal;
Step S2, control computing unit are counted to the signal in the second predetermined space of the detection signalCalculate, and form a result of calculation;
Step S3, the result of calculation is compared with a threshold signal, in the result of calculation institute is less thanWhen stating threshold signal, execution step S1;
Step S4, one voice wakeup unit of activation, control the voice wakeup unit acquisition and are presently in ringThe wake-up signal in border, and the control signal that output matches with the wake-up signal.
Preferably, the above-mentioned voice awakening method based on mike, wherein, in step S1,First predetermined space is 10 milliseconds.
Preferably, the above-mentioned voice awakening method based on mike, wherein, in step S2,Second predetermined space is 1 millisecond.
Preferably, the above-mentioned voice awakening method based on mike, wherein, in step S1,Also specifically include:
Step S11, arranges the threshold signal of the detector unit.
Preferably, the above-mentioned voice awakening method based on mike, wherein, in step S4,Specifically include:
Step S40, the activation voice wakeup unit, control the voice wakeup unit acquisition and are presently inThe wake-up signal of environment,
Step S41, judge that the wake-up signal is whether comprising effective voice signal;In the wake-up signalComprising under effective voice signal state, execution step S42 does not include described in the wake-up signalEfficient voice signal condition, execution step S1,
Step S42, controls the control signal that the wakeup unit output matches with the wake-up signal.
Preferably, the above-mentioned voice awakening method based on mike, wherein, in step S4,Specifically include:
Step S40:Define and do not include the number of times of the efficient voice signal condition in the wake-up signal and beI, wherein I=0;
Step S41, the activation voice wakeup unit, control the voice wakeup unit acquisition and are presently inThe wake-up signal of environment,
Step S42, judge that the wake-up signal is whether comprising effective voice signal;In the wake-up signalComprising under effective voice signal state, execution step S43 does not include described in the wake-up signalEfficient voice signal condition, execution step S46,
Step S43, I=I++
Step S44, judge whether I≤5 are true;When I≤5, execution step S1;
Step S45, when I is not less than 5, improves the threshold signal of the detector unit, and performsStep S1;
Step S46, controls the control signal that the wakeup unit output matches with the wake-up signal.
Preferably, the above-mentioned voice awakening method based on mike, wherein, in step S2, alsoSpecifically include:
Step S20, arranges the collection frequency domain of the detector unit;
Specifically include:
Step S21:The frequency domain of presently described detection signal is detected,
Step S22:The collection frequency domain of the detector unit is adjusted, with the collection frequency domain modelEnclose the matching frequency domain.
A kind of mobile terminal, wherein, an including mike, the mike is specifically included:
Detection means, is under standby mode, every the first predetermined interval to working as in the mobile terminalFront local environment is acquired, and forms a detection signal;
Computing unit, calculates the signal in the second predetermined space of the detection signal, and forms oneResult of calculation;
Comparing unit, compares to the result of calculation with a threshold signal, and in the result of calculation institute is more thanWhen stating threshold signal, a wake-up signal is exported;
Voice wakeup unit, controls the voice wakeup unit and obtains presently described wake-up signal, and export withThe control signal that the wake-up signal matches.
Preferably, above-mentioned mobile terminal, wherein, also including an adjustment unit, to adjust the detectionThe threshold signal of unit, so that the threshold signal matches the presently described environment of the mobile terminal.
Preferably, above-mentioned mobile terminal, wherein, the adjustment unit is also to adjust the detector unitFrequency domain so that the frequency domain matches the frequency domain of the wake-up signal.
Compared with prior art, it is an advantage of the invention that:
In the application, detector unit is acquired every 10 milliseconds to being presently in environment, and forms an inspectionSurvey signal;Without mobile terminal detector unit be constantly in and await orders in the state of, reduce detector unitUsage frequency, control computing unit and 1 millisecond of the detection signal of signal calculated, and shapeInto a result of calculation, only detection judgement is carried out to 1 millisecond of information, without the institute to 10 millisecondsThere is information to be judged, make lower power consumption 90%.
Specific embodiment
Below in conjunction with the accompanying drawings the invention will be further described with specific embodiment, but not as the present invention'sLimit.
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 outClearly and completely describe, it is clear that described embodiment is only a part of embodiment of the invention, andIt is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are without workThe every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that the embodiment and the spy in embodiment in the case where not conflicting, in the present inventionLevying to be mutually combined.
Below in conjunction with the accompanying drawings the invention will be further described with specific embodiment, but not as the present invention'sLimit.
As shown in figure 1, the voice awakening method based on mike, is applied to mobile terminal, wherein, bagInclude:
Step S1, in the mobile terminal be in standby mode under, control detector unit it is pre- every firstDetermine to be acquired to being presently in environment interval time, and form a detection signal;Further, it is describedFirst predetermined space is 10 milliseconds.
Step S2, control computing unit are carried out to the signal in the second predetermined space of the detection signalCalculate, and form a result of calculation;Further, second predetermined space is 1 millisecond.
Step S3, the result of calculation is compared with a threshold signal, in the result of calculation institute is less thanWhen stating threshold signal, execution step S1;
Step S4, one voice wakeup unit of activation, control the voice wakeup unit acquisition and are presently in ringThe wake-up signal in border, and the control signal that output matches with the wake-up signal.
In the application, control detector unit is adopted every the first predetermined interval to being presently in environmentCollection, and form a detection signal;Further, first predetermined space is 10 milliseconds, rather than is movedDynamic terminal is constantly in the state of awaiting orders, such as in 60 second time, using the present invention, mobile terminal is onlyNeed at most detect 6 times, and the mobile terminal of prior art needs detection 60 seconds, using work(of the present inventionConsumption is substantially reduced.Then control computing unit to enter the signal in the second predetermined space of the detection signalRow is calculated, and forms a result of calculation;Further, second predetermined space is 1 millisecond.This ShenPlease in, only detection judgement is carried out to 1 millisecond of information, enter without all information to 10 millisecondsRow judgement, makes lower power consumption 90%, but this kind of mode has a shortcoming, may exactly lose 90%Effective information, but the sound propagation velocity of people is relatively slow, and the loss of 9 milliseconds of data message is notAffect whole wake-up system.The result of calculation is compared with a threshold signal, in the result of calculationDuring less than the threshold signal, illustrate to be presently in environment no presence of effective wake-up signal, it is mobile wholeEnd is continued to operate under holding state, continues gathered data information, when the result of calculation is more than the thresholdDuring value signal;Illustrate to be presently in the presence of effective wake-up signal in environment, activate a voice wakeup unit,Control the voice wakeup unit and obtain the wake-up signal for being presently in environment, and export and the wake-up letterNumber control signal for matching.
In the application, detector unit is acquired every 10 milliseconds to being presently in environment, and forms an inspectionSurvey signal;Without mobile terminal detector unit be constantly in and await orders in the state of, reduce detector unitUsage frequency, control computing unit and 1 millisecond of the detection signal of signal calculated, and shapeInto a result of calculation, only detection judgement is carried out to 1 millisecond of information, without the institute to 10 millisecondsThere is information to be judged, make lower power consumption 90%.
As further preferred embodiment, the above-mentioned voice awakening method based on mike, wherein, inIn step S1, also specifically include:
Step S11, arranges the threshold signal of the detector unit.When the detection letter that detector unit is obtainedNumber mismatch threshold signal when, mobile terminal will not be activated, otherwise then be activated.Avoid detector unitWhen getting any acoustical signal (invalid acoustical signal), mobile terminal is activated.
As shown in Fig. 2 as further preferred embodiment, the above-mentioned voice wake-up side based on mikeMethod, wherein, in step S4, specifically include:
Step S40, the activation voice wakeup unit, control the voice wakeup unit acquisition and are presently inThe wake-up signal of environment,
Step S41, judge that the wake-up signal is whether comprising effective voice signal;In the wake-up signalComprising under effective voice signal state, execution step S42 does not include described in the wake-up signalEfficient voice signal condition, execution step S1,
Step S42, controls the control signal that the wakeup unit output matches with the wake-up signal.
As shown in figure 3, as further preferred embodiment, the above-mentioned voice wake-up side based on mikeMethod, wherein, in step S4, specifically include:
Step S40:Define and do not include the number of times of the efficient voice signal condition in the wake-up signal and beI, wherein I=0;
Step S41, the activation voice wakeup unit, control the voice wakeup unit acquisition and are presently inThe wake-up signal of environment,
Step S42, judge the wake-up signal whether comprising effective voice signal;In the wake-up signal bagContaining under effective voice signal state, execution step S43, not including in the wake-up signal described hasEffect voice signal state, execution step S46,
Step S43, I=I++
Step S44, judge whether I≤5 are true;When I≤5, execution step S1;
Step S45, when I is not less than 5, improves the threshold signal of the detector unit, and performsStep S1;
Step S46, controls the control signal that the wakeup unit output matches with the wake-up signal.
Above-mentioned steps, it mainly provides the method for adjusting threshold signal.
When user is among noisy environment, to avoid mobile terminal from being activated by " accident ", threshold value is adjustedSignal (heightens threshold value), when mobile terminal is activated more than 5 times by " accident ", that is, heightens threshold signal,This time 5 times is only a kind of way of example, and user could be arranged to other quantity.
As further preferred embodiment, the above-mentioned voice awakening method based on mike, wherein, inStep S2, also specifically includes:
Step S20, arranges the collection frequency domain of the detector unit;
Specifically include:
Step S21:The frequency domain of presently described detection signal is detected,
Step S22:The collection frequency domain of the detector unit is adjusted, with the collection frequency domain modelEnclose the matching frequency domain.
The scope of above-mentioned regulation frequency domain, to be set to frequency domain most to connect with user voice signalNear state, because the sound of each user there are different difference, is provided with frequency domain, keeps awayExempt from the acoustical signal activation mobile terminal that other sound sources send.
As shown in figure 4, present invention simultaneously provides a kind of mobile terminal, wherein, including a mike, it is describedMike is specifically included:
Detection means, is under standby mode, every the first predetermined interval to working as in the mobile terminalFront local environment is acquired, and forms a detection signal;
Computing unit, calculates the signal in the second predetermined space of the detection signal, and forms oneResult of calculation;
Comparing unit, compares to the result of calculation with a threshold signal, and in the result of calculation institute is more thanWhen stating threshold signal, a wake-up signal is exported;
Voice wakeup unit, controls the voice wakeup unit and obtains presently described wake-up signal, and export withThe control signal that the wake-up signal matches.
As further preferred embodiment, above-mentioned mobile terminal, wherein, also including an adjustment unit,To the threshold signal for adjusting the detector unit, so that the threshold signal matches the mobile terminal and works asThe front environment.
As further preferred embodiment, above-mentioned mobile terminal, wherein, the adjustment unit also toThe frequency domain of the detector unit is adjusted, so that the frequency domain matches the frequency domain of the wake-up signal.
A kind of mobile terminal, its operation principle with based on mike voice awakening method operation principle phaseSeemingly, here is omitted.
More than above are only preferred embodiments of the present invention, not thereby limit embodiments of the present invention andProtection domain, to those skilled in the art, should can appreciate that all utilization description of the inventionAnd the equivalent done by diagramatic content and the scheme obtained by obvious change, should includeWithin the scope of the present invention.