CN105744056A - Volume adjusting method and volume adjusting device - Google Patents

Volume adjusting method and volume adjusting device Download PDF

Info

Publication number
CN105744056A
CN105744056A CN201610038369.0A CN201610038369A CN105744056A CN 105744056 A CN105744056 A CN 105744056A CN 201610038369 A CN201610038369 A CN 201610038369A CN 105744056 A CN105744056 A CN 105744056A
Authority
CN
China
Prior art keywords
knocking
terminal
sample
volume
volume adjusting
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
CN201610038369.0A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610038369.0A priority Critical patent/CN105744056A/en
Publication of CN105744056A publication Critical patent/CN105744056A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a volume adjusting method and a volume adjusting device. The volume adjusting method comprises the following steps: receiving a knock signal of a user on a terminal when the terminal listens to an audio signal output from a headphone; looking for a preset knock signal sample corresponding to the knock signal in a preset database; if a preset knock signal sample corresponding to the knock signal is found in the preset database, acquiring a volume adjusting instruction corresponding to the knock signal sample; adjusting the output volume of the audio signal according to the volume adjusting instruction. According to the volume adjusting method and the volume adjusting device, as the output volume of a terminal is adjusted conveniently and quickly through a knock signal, the processing efficiency and the quality of user service are improved.

Description

Volume adjusting method and device
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of volume adjusting method and device.
Background technology
When current user uses earphone to carry out conversing or listening song, mainly by the entity volume adjusting key in terminal or on earphone band entity volume adjusting key regulate volume.
Time particularly out of doors, terminal is generally placed in bag by user, if regulating volume by the entity volume key in terminal, bringing inconvenience to user, and it is just convenient a lot of to adjust volume by earphone, but some earphones are also not provided with entity volume adjusting key, even if being provided with entity volume adjusting key, after long between when deployed, it is easy to loss causes malfunctioning, the mode of visible existing volume adjusting is comparatively laborious, and treatment effeciency is low.
Summary of the invention
The embodiment of the present invention provides a kind of volume adjusting method and device, and the volume adjusting mode to solve existing terminal is comparatively laborious, and treatment effeciency is low, reduces the technical problem of QoS of customer.
For solving the problems referred to above, technical scheme provided by the invention is as follows:
The embodiment of the present invention provides a kind of volume adjusting method, comprising:
When terminal monitoring to earphone exists audio signal output, receive user's knocking in terminal;
Presetting database is searched the default knocking sample corresponding with described knocking;
If finding the default knocking sample corresponding with described knocking in described presetting database, obtain the volume adjusting instruction corresponding with described knocking sample;
According to described volume adjusting instruction, the output volume of described audio signal is adjusted.
The embodiment of the present invention also provides for a kind of volume adjustment device, comprising:
Receiver module, for when terminal monitoring to earphone exists audio signal output, receiving user's knocking in terminal;
Search module, for searching the default knocking sample corresponding with described knocking in presetting database;
Acquisition module, for when finding the default knocking sample corresponding with described knocking in described presetting database, obtaining the volume adjusting instruction corresponding with described knocking sample;
Adjustment module, for being adjusted the output volume of described audio signal according to described volume adjusting instruction.
Compared to prior art, the volume adjusting method of the present embodiment and device, when listening to earphone and there is audio signal output, by receiving user's knocking in terminal;Presetting database is searched the default knocking sample corresponding with this knocking;Obtain the volume adjusting instruction corresponding with this knocking sample;According to this volume adjusting instruction, the output volume of this audio signal is adjusted;It is achieved thereby that adjust the output volume of terminal conveniently and efficiently, easy and simple to handle, improve treatment effeciency.
Accompanying drawing explanation
The flow chart of the volume adjusting method that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of the volume adjusting method that Fig. 2 provides for the embodiment of the present invention two;
The flow chart of the volume adjusting method that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the volume adjustment device that Fig. 4 provides for the embodiment of the present invention four.
Detailed description of the invention
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 clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Refer to the flow chart of the volume adjusting method that Fig. 1, Fig. 1 provide for the embodiment of the present invention one.
The volume adjusting method of this preferred embodiment, including:
Step S101, when terminal monitoring to earphone exists audio signal output, receives user's knocking in terminal;
Such as, when terminal monitoring uses earphone call to user or listens song or play other audio signals, whether detection user knocks in terminal with hands, to obtain this knocking, such as, mike, receiver or the speaker that terminal can be carried by terminal, detects this knocking, and this terminal can be the equipment such as mobile phone, panel computer.
Step S102, searches the default knocking sample corresponding with this knocking in presetting database;
Such as, terminal is previously provided with data base, and this database purchase has multiple default knocking sample;Terminal searches the default knocking sample mated with this knocking in this data base;Without finding the default knocking sample mated with this knocking, then perform step S103;If finding the default knocking sample mated with this knocking, then perform step S104;This default knocking sample can be preset times sample.
Step S103, when not finding the default knocking sample corresponding with this knocking in this presetting database, does not deal with.
Such as, if terminal is in this presetting database, it does not have when finding the default knocking sample mated with this knocking, volume is not adjusted, for the ease of reminding user, all right display reminding information of terminal is invalid with the knocking reminding user current.
Step S104, when finding the default knocking sample corresponding with this knocking in this presetting database, obtains the volume adjusting instruction corresponding with this knocking sample;
Such as, this presetting database is provided with default knocking sample and the preset instructions corresponding with this default knocking sample;If terminal is in this presetting database, when finding the default knocking sample mated with this knocking, using preset instructions corresponding for this default knocking sample as this volume adjusting instruction;
Certainly, the step of the volume adjusting instruction that this acquisition is corresponding with this knocking sample may also include that
Obtain the adjustment direction corresponding with this knocking sample.
Such as, wherein each default knocking sample corresponding regulates direction, and terminal obtains the volume adjusting direction that this default knocking sample is corresponding, and this volume adjusting direction is for tuning up or turning down.
Step S105, is adjusted the output volume of this audio signal according to this volume adjusting instruction.
Such as, the volume of this earphone is tuned up or turns down by terminal step by step;Or carry out tuning up or turning down according to predetermined amplitude.
The volume adjusting method of this preferred embodiment, knocks operation by user in terminal, generates regulating command, so that volume quickly to be regulated, so that user uses convenient, improve QoS of customer.
Refer to the flow chart of the volume adjusting method that Fig. 2, Fig. 2 provide for the embodiment of the present invention two.
The volume adjusting method of this preferred embodiment, including:
Step S201, when terminal monitoring to earphone exist audio signal output time, receive user's knocking in terminal;
Such as, when terminal monitoring uses earphone call to user or listens song or play other audio signals, whether detection user knocks in terminal with hands, to obtain this knocking, here the position knocked not being limited, such as, user can knock in any position of terminal, as long as terminal can detect this knocking, this terminal can be the equipment such as mobile phone, panel computer.
Certainly, in order to user operation is convenient, user can knock on the mike of earphone, and afterwards, terminal obtains this knocking by the mike of earphone.
Certainly, avoiding maloperation to improve, the step of this reception user knocking on the terminal can also include:
(1) vibration signal in this terminal is obtained;
(2) judge whether this vibration signal is that user passes through to knock the vibration signal that this terminal produces;
(3) if it is, determine that this vibration signal is for this knocking.
Such as, in the present embodiment user knock can for click directly on terminal with finger, it is also possible to be utilize other hard things, such as with penholder, key etc., click terminal.
Owing to the hammer action time is very of short duration, and propagated by the solid of equipment, therefore, terminal is subject to user, and to knock the vibration signal of generation be a kind of special vibration signal, itself and terminal are subject to the vibration signal that other active forces produce, or the vibration signal that the outside vibration source of terminal transmission produces differs.Analyze the vibration signal knocking generation from electrical point, such as will hit against the vibration signal of generation and convert digital signal to, this digital signal is carried out digital processing analysis, it can be deduced that analysis below result:
From signal time, this signal duration duration very short (millisecond rank);From signal amplitude size relatively, the level of this digital signal is relatively large, and (owing to vibration signal is that solid is propagated, and by terminal own propagation), the signal of the digital signal more corresponding than General Oscillation signal is strong bigger;From the frequency spectrum of signal, the whole digital signal frequency range of frequency coverage, and the amplitude difference of each frequency is little.
Therefore, it can the feature of the digital signal corresponding based on above-mentioned vibration signal or feature, identify or judge that whether the vibration signal got is that terminal is subject to user and knocks the vibration signal of generation;That is, step " judging whether described vibration signal is that user passes through to knock the vibration signal that described terminal produces " may include that
This vibration signal is converted to the vibration digital signal of correspondence;
Obtain the key feature information of this vibration digital signal;
Judge that whether this vibration signal is that this terminal is subject to user and knocks the vibration signal of generation according to this key feature information.
The mike, receiver or the speaker that carry as by terminal convert this vibration signal to analog electrical signal, then, this analog electrical signal is carried out analog digital conversion (such as, changed by analog-digital converter), obtain vibration digital signal, this vibration data signal is carried out digital processing (DSP), to obtain this vibration digital signal, key feature information, then, judge that whether this vibration signal is that this terminal is subject to user and knocks the vibration signal of generation according to key feature information.For the ease of judging, the present embodiment is after obtaining analog electrical signal, before carrying out analog digital conversion, can also be amplified analog electrical signal processing, it is amplified processing to this analog electrical signal as by PGA amplifier, wherein, the process of digital signal can be performed by dsp chip.
Wherein, the key feature information of vibration digital signal may include that at least one in frequency information (including frequency distribution, bandwidth etc.), amplitude information (including average amplitude), temporal information (signal period), it is, of course, also possible to include other characteristic informations.
In the present embodiment, judge according to key feature information or identify that whether vibration signal is that terminal is subject to the mode of the vibration signal that user knocks generation and has multiple, such as, judge whether key feature information meets pre-conditioned, if, then judge that this vibration signal is terminal and is subject to user and knocks the vibration signal of generation, otherwise, it is determined that this vibration signal is not subject to user for terminal knocks the vibration signal of generation.
Such as, include in key feature information: when frequency information, amplitude information, temporal information, judge whether this frequency information meets predeterminated frequency condition respectively, whether this amplitude information meets is preset amplitude perturbations, whether this temporal information meets Preset Time condition, wherein, predeterminated frequency condition, preset amplitude perturbations, Preset Time condition can respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information is arranged, and this preset number signal is that terminal is subject to user and knocks the digital signal that the vibration signal of generation is corresponding.At needs, the present embodiment judges whether multiple key feature information meets pre-conditioned, when identifying the vibration signal knocking generation, such as, said frequencies information, amplitude information, temporal information judges for three times, can identify based on judged result repeatedly, such as, when three judged results be time, just determine that vibration signal is the vibration signal knocking generation, or, when multiple judged results there being certain several judged result for being, determine that vibration signal is the vibration signal knocking generation, these all can set according to practical situation, the situation that judged result is yes is more many, accuracy of identification is more high.
Step S202, obtain the number of taps of this knocking;
Such as, when terminal detects knocking, obtain the number of taps of this knocking;Namely detection user has knocked several times in terminal.
In order to improve the treatment effeciency of terminal, the step of the number of taps of this this knocking of acquisition includes:
Obtain this knocking number of taps in preset duration.Such as, terminal obtains the number of taps that user is total in terminal in 5 seconds.This preset duration can set based on experience value.
In order to obtain the accuracy of number of taps, the step of the number of taps of this this knocking of acquisition includes:
A, obtain this knocking knock intensity;
B, judge that whether this knocks intensity more than preset strength threshold value;
If it is determined that C this knock intensity more than this preset strength threshold value, then record the number of taps of this knocking;
If it is determined that D this knock intensity less than or equal to this preset strength threshold value, then generate information showing.
Such as, when terminal receives when repeatedly knocking operation of user's input, what acquisition was knocked every time knocks intensity, it is judged that whether this knocks intensity more than preset strength threshold value;This preset strength threshold value can set based on experience value;If it is determined that this knocks intensity more than this preset strength threshold value, then it is judged to effective knocking, this is knocked and counts in total number of taps, otherwise, be used as invalid knocking, knock by this and be not counted in total number of taps, of course for being easy to remind user, it is also possible to when knocking intensity less than preset strength threshold value, generate information and show, this information not can recognise that for the operation of knocking pointing out user current, if again knocks.
Specifically, user is when listening song with earphone, terminal has first been knocked in Preset Time, receiving call request afterwards, the display screen clicking again terminal receives calls, for terminal, receive two-time vibration signal, but owing to the intensity of clicking operation is less than the intensity knocked, therefore this clicking operation is not counted in number of taps by terminal, namely terminal statistics obtains total number of taps is 1 time;Improve the accuracy judging knocking.
Such as, when user knocks terminal continuous three times, terminal obtains corresponding knocking, and identify that whether the intensity of this knocking is more than preset strength threshold value, if, then the final number of taps obtained is 3, if wherein once the intensity of knocking is less than or equal to this preset strength threshold value, then the number of taps that terminal finally obtains is 2.
Step S203, the preset times sample that lookup is corresponding with this number of taps in this presetting database;
Such as, terminal searches the preset times sample mated with this number of taps in presetting database;Namely this default knocking sample is preset times sample;
Such as, terminal is provided with multiple preset times sample and the preset instructions corresponding with this preset times sample in presetting database;If terminal does not find the preset times sample of correspondence, then perform step S204;If terminal finds the preset times sample of correspondence, then perform step S205;
If step S204 does not have to search the preset times sample corresponding with this number of taps in this presetting database, then do not deal with;
Such as, if terminal is in this presetting database, when not finding the default knocking sample mated with this knocking, the volume of earphone is not adjusted, for the ease of reminding user, terminal can also display reminding information or send cue, invalid with the knocking reminding user current.
It is assumed that the number of taps that terminal obtains is 3 times, owing to being provided only with the preset times sample that number of times is 1,2 in presetting database, so there is no the preset times sample mated with 3 times, now volume is not adjusted by terminal.
If step S205 searches the preset times sample corresponding with this number of taps in this presetting database, obtain the preset instructions corresponding with this preset times sample;
Such as, terminal is provided with multiple preset times sample and the preset instructions corresponding with this preset times sample in presetting database;
Such as, this preset instructions is such as tune up or to turn down predetermined amplitude by volume, and this preset times sample includes 1 time, 2 times;The preset instructions corresponding when being 1 time of number of taps is to turn volume down one-level;The preset instructions corresponding when being 2 times of number of taps is that volume is tuned up one-level;Often knock corresponding number of times more afterwards, the size of volume is correspondingly regulated.Certainly, the amplitude of accommodation of volume or progression can also be arranged in terminal in advance by user, such as when user's number of taps is 1 time by volume young waiter in a wineshop or an inn's level.
Assume, the number of taps that terminal obtains is 2 times, owing to being provided only with the preset times sample that number of times is 1,2 in presetting database, therefore there is the preset times sample mated for 2 times with user's number of taps, the volume adjusting instruction that now terminal obtains is for tune up one-level by volume;
Step S206, according to this volume adjusting instruction, the output volume of this audio signal is adjusted.
Such as, the volume adjusting instruction that step S205 terminal obtains is for tune up one-level by volume, and now volume is tuned up one-level by terminal, if the user while user has knocked again twice after preset duration, then volume is tuned up one-level by terminal again.Namely this output volume is adjusted predetermined amplitude by terminal to this adjustment direction.
The volume adjusting method of this preferred embodiment, on the basis of first embodiment, obtain the number of taps of knocking, and search the preset times sample mated with number of taps, according to this preset times sample acquisition volume adjusting instruction, thus improve treatment effeciency and the QoS of customer of terminal.
Refer to the flow chart of the volume adjusting method that Fig. 3, Fig. 3 provide for the embodiment of the present invention three.
The volume adjusting method of this preferred embodiment, including:
Step S301, when smart mobile phone listen to earphone exist audio signal output time, receive user's knocking on smart mobile phone;
Such as, smart mobile phone monitors user and uses earphone call or listen song or when playing other audio signals, whether detection user knocks on smart mobile phone with hands, to obtain this knocking, here the position knocked is not limited, such as, user can knock in any position of smart mobile phone, as long as smart mobile phone can detect this knocking.
Step S302, smart mobile phone obtain the number of taps of this knocking;
Such as, smart mobile phone obtains the number of taps in preset duration, user's number of taps on smart mobile phone in such as obtaining 5 seconds.
Step S303, smart mobile phone search the preset times sample corresponding with this number of taps in this presetting database;
Such as, smart mobile phone is provided with following preset times sample in data base: preset times is 1 time, preset times is 2 times;This external data base is additionally provided with the preset instructions corresponding with this preset times sample;Preset times is 1 time, and corresponding preset instructions volume turns one-level down;Preset times is 2 times, and corresponding preset instructions volume tunes up one-level;Assuming that the number of taps that smart mobile phone obtains is 3 times, smart mobile phone searches whether the preset times sample that number of times is 3 in this data base;
If step S304 smart mobile phone does not have to search the preset times sample corresponding with this number of taps in this presetting database, then do not deal with;
Assuming that the number of taps that smart mobile phone obtains is 3 times, owing to being only provided with the preset times sample of 1 time and 2 times in data base, when therefore can not find the preset times sample of correspondence, therefore volume is not adjusted by smart mobile phone.
If step S305 searches the preset times sample corresponding with this number of taps in this presetting database, smart mobile phone obtains the preset instructions corresponding with this preset times sample;
Assume that the number of taps that smart mobile phone obtains is 2 times, owing to data base being provided with the preset times sample of 1 time and 2 times, when therefore can find the preset times sample of correspondence, when therefore the default number of taps of smart mobile phone acquisition is 2 times, corresponding volume adjusting instruction is for tune up 1 grade by volume.
The output volume of this audio signal is adjusted by step S306, smart mobile phone according to this volume adjusting instruction.
Such as, the volume adjusting instruction that step S305 smart mobile phone obtains is for tune up 1 grade by volume, and now volume is tuned up 1 grade by smart mobile phone.Certainly if the user while after preset duration user knocked again twice, then volume is tuned up one-level by smart mobile phone again.
The volume adjusting method of this preferred embodiment, when smart mobile phone receives knocking, obtain the number of taps of knocking, and search the preset times sample mated with number of taps, according to this preset times sample acquisition volume adjusting instruction, thus improve treatment effeciency and the QoS of customer of smart mobile phone.
Refer to the structural representation of the volume adjustment device that Fig. 4, Fig. 4 provide for the embodiment of the present invention four.The volume adjustment device 40 of this preferred embodiment includes: receiver module 41, lookup module 42, acquisition module 43, adjustment module 44;
Receiver module 41, for when terminal monitoring to earphone exists audio signal output, receiving user's knocking in terminal;
Such as, receiver module 41 monitors user and uses earphone call or listen song or when playing other audio signals, whether detection user knocks in terminal with hands, to obtain this knocking, here the position knocked is not limited, such as, user can knock in any position of terminal, as long as receiver module 41 can detect this knocking.
This receiver module 41, specifically for: by this knocking of the microphones on this earphone.
Such as, in order to user operation is convenient, user can knock on the mike of earphone, and afterwards, terminal obtains this knocking by the mike of earphone.
Search module 42, for searching the default knocking sample corresponding with this knocking in presetting database;
Such as, terminal is previously provided with data base, and this database purchase has multiple default knocking sample;Terminal searches the default knocking sample mated with this knocking in this data base;This default knocking sample can be preset times sample.
This lookup module 42 includes: obtains submodule 421 and searches submodule 422;
Obtain submodule 421, for obtaining the number of taps of this knocking;
Such as, when receiver module 41 detects knocking, obtain submodule 421 and obtain the number of taps of this knocking;Namely obtain submodule 421 to detect user and knocked several times in terminal.
This acquisition submodule 421, specifically for:
Obtain this number of taps in this preset duration.
Such as, obtain submodule 421 and obtain the number of taps that in 5 seconds, user is total in terminal.This preset duration can set based on experience value.
Search submodule 422, for searching the preset times sample corresponding with this number of taps in this presetting database;
Such as, search submodule 422 in presetting database, search the preset times sample mated with this number of taps;Namely this default knocking sample is preset times sample;Such as, in presetting database, multiple preset times sample and the preset instructions corresponding with this preset times sample it are provided with in advance;
Acquisition module 43, specifically for obtaining the preset instructions corresponding with this preset times sample, using as this volume adjusting instruction.
Such as, in presetting database, multiple preset times sample and the preset instructions corresponding with this preset times sample it are provided with in advance;This preset instructions is such as tune up or to turn down predetermined amplitude by volume, and this preset times sample includes 1 time, 2 times;The preset instructions corresponding when being 1 time of number of taps is to turn volume down one-level;The preset instructions corresponding when being 2 times of number of taps is that volume is tuned up one-level;Often knock corresponding number of times more afterwards, the size of volume is correspondingly regulated.Certainly, the amplitude of accommodation of volume or progression can also be arranged in terminal in advance by user, such as when user's number of taps is 1 time by volume young waiter in a wineshop or an inn's level.
Assume, the number of taps obtaining submodule 421 acquisition is 2 times, owing to presetting database being provided only with the preset times sample that number of times is 1,2, therefore searching submodule 422 and find the preset times sample mated for 2 times with user's number of taps, the volume adjusting instruction that now acquisition module 43 obtains is for tune up one-level by volume;
Acquisition module 43, for when finding the default knocking sample corresponding with this knocking in this presetting database, obtaining the volume adjusting instruction corresponding with this knocking sample;
Such as, this presetting database is provided with default knocking sample and the preset instructions corresponding with this default knocking sample;If searching module 42 in this presetting database, when finding the default knocking sample mated with this knocking, using preset instructions corresponding for this default knocking sample as this volume adjusting instruction;
Certainly, this acquisition module 43, specifically for: obtain the adjustment direction corresponding with this knocking sample;
Such as, wherein each default knocking sample corresponding regulates direction, and terminal obtains the volume adjusting direction that this default knocking sample is corresponding, and this adjustment direction is for tuning up or turning down.
Adjustment module 44, for being adjusted the output volume of this audio signal according to this volume adjusting instruction.
Such as, the volume adjusting instruction that acquisition module 43 obtains is for tune up 1 grade by volume, and now volume is tuned up 1 grade by adjustment module 44, if the user while user has knocked again twice after preset duration, then volume is tuned up one-level by adjustment module 44 again.When this acquisition module 43 obtains the adjustment direction corresponding with this knocking sample;This adjustment module 44, specifically for: this output volume is adjusted to this adjustment direction predetermined amplitude.
Described receiver module 41 specifically for:
Obtain the vibration signal in described terminal;
Judge whether described vibration signal is that user passes through to knock the vibration signal that described terminal produces;
If it is determined that described vibration signal is user when passing through to knock the vibration signal that described terminal produces, it is determined that described vibration signal is described knocking.
Such as, in the present embodiment user knock can for click directly on terminal with finger, it is also possible to be utilize other hard things, such as with penholder, key etc., click terminal.
Owing to the hammer action time is very of short duration, and propagated by the solid of equipment, therefore, receiver module 41 is subject to user, and to knock the vibration signal of generation be a kind of special vibration signal, itself and terminal are subject to the vibration signal that other active forces produce, or the vibration signal that the outside vibration source of terminal transmission produces differs.Analyze the vibration signal knocking generation from electrical point, such as receiver module 41 will hit against the vibration signal of generation and converts digital signal to, and this digital signal is carried out digital processing analysis, it can be deduced that analysis below result:
From signal time, this signal duration duration very short (millisecond rank);From signal amplitude size relatively, the level of this digital signal is relatively large, and (owing to vibration signal is that solid is propagated, and by terminal own propagation), the signal of the digital signal more corresponding than General Oscillation signal is strong bigger;From the frequency spectrum of signal, the whole digital signal frequency range of frequency coverage, and the amplitude difference of each frequency is little.
Therefore, it can the feature of the digital signal corresponding based on above-mentioned vibration signal or feature, identify or judge that whether the vibration signal got is that terminal is subject to user and knocks the vibration signal of generation;That is, receiver module 41, specifically for:
This vibration signal is converted to the vibration digital signal of correspondence;
Obtain the key feature information of this vibration digital signal;
Judge that whether this vibration signal is that this terminal is subject to user and knocks the vibration signal of generation according to this key feature information.
Mike, receiver or speaker that such as receiver module 41 is carried by terminal convert this vibration signal to analog electrical signal, then, this analog electrical signal is carried out analog digital conversion (such as, changed by analog-digital converter), obtain vibration digital signal, this vibration data signal is carried out digital processing (DSP), to obtain this vibration digital signal, key feature information, then, judge that whether this vibration signal is that this terminal is subject to user and knocks the vibration signal of generation according to key feature information.For the ease of judging, the present embodiment is after obtaining analog electrical signal, before carrying out analog digital conversion, can also be amplified analog electrical signal processing, it is amplified processing to this analog electrical signal as by PGA amplifier, wherein, the process of digital signal can be performed by dsp chip.
Wherein, the key feature information of vibration digital signal may include that at least one in frequency information (including frequency distribution, bandwidth etc.), amplitude information (including average amplitude), temporal information (signal period), it is, of course, also possible to include other characteristic informations.
In the present embodiment, receiver module 41 judges according to key feature information or identifies that whether vibration signal is that terminal is subject to the mode of the vibration signal that user knocks generation and has multiple, such as, it is pre-conditioned that receiver module 41 judges whether key feature information meets, if, then judge that this vibration signal is terminal and is subject to user and knocks the vibration signal of generation, otherwise, it is determined that this vibration signal is not subject to user for terminal knocks the vibration signal of generation.
Such as, include in key feature information: when frequency information, amplitude information, temporal information, judge whether this frequency information meets predeterminated frequency condition respectively, whether this amplitude information meets is preset amplitude perturbations, whether this temporal information meets Preset Time condition, wherein, predeterminated frequency condition, preset amplitude perturbations, Preset Time condition can respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information is arranged, and this preset number signal is that terminal is subject to user and knocks the digital signal that the vibration signal of generation is corresponding.At needs, the present embodiment judges whether multiple key feature information meets pre-conditioned, when identifying the vibration signal knocking generation, such as, said frequencies information, amplitude information, temporal information judges for three times, can identify based on judged result repeatedly, such as, when three judged results be time, receiver module 41 just determines that vibration signal is the vibration signal knocking generation, or, when multiple judged results there being certain several judged result for being, receiver module 41 determines that vibration signal is the vibration signal knocking generation, these all can set according to practical situation, the situation that judged result is yes is more many, accuracy of identification is more high.
The volume adjustment device of this preferred embodiment, by obtaining the number of taps of knocking, and search the preset times sample mated with number of taps, according to this preset times sample acquisition volume adjusting instruction, thus improve treatment effeciency and the QoS of customer of terminal.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by the hardware that program carrys out instruction relevant and completes, this program can be stored in a computer-readable recording medium, storage medium may include that read only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc..
A kind of the volume adjusting method above embodiment of the present invention provided and device are described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (12)

1. a volume adjusting method, it is characterised in that including:
When terminal monitoring to earphone exists audio signal output, receive user's knocking in terminal;
Presetting database is searched the default knocking sample corresponding with described knocking;
If finding the default knocking sample corresponding with described knocking in described presetting database, obtain the volume adjusting instruction corresponding with described knocking sample;
According to described volume adjusting instruction, the output volume of described audio signal is adjusted.
2. volume adjusting method according to claim 1, it is characterised in that when described default knocking sample is preset times sample, the described step searching the default knocking sample corresponding with described knocking in presetting database includes:
Obtain the number of taps of described knocking;
Described presetting database is searched the preset times sample corresponding with described number of taps;
The step of the volume adjusting instruction that described acquisition is corresponding with described knocking sample includes: obtain the preset instructions corresponding with described preset times sample, using as described volume adjusting instruction.
3. volume adjusting method according to claim 2, it is characterised in that the step of the number of taps of the described knocking of described acquisition includes:
Obtain the described number of taps in described preset duration.
4. volume adjusting method according to claim 1, it is characterised in that the step of the volume adjusting instruction that described acquisition is corresponding with described knocking sample includes:
Obtain the adjustment direction corresponding with described knocking sample;
The described step output volume of described audio signal being adjusted according to described volume adjusting instruction includes: described output volume adjusts predetermined amplitude to described adjustment direction.
5. volume adjusting method according to claim 1, it is characterised in that the step of described reception user knocking in terminal includes:
By knocking described in the microphones on described earphone.
6. the volume adjusting method according to any one of claim 1-5, it is characterised in that the step of described reception user knocking in described terminal includes:
Obtain the vibration signal in described terminal;
Judge whether described vibration signal is that user passes through to knock the vibration signal that described terminal produces;
If it is determined that described vibration signal is user when passing through to knock the vibration signal that described terminal produces, it is determined that described vibration signal is described knocking.
7. a volume adjustment device, it is characterised in that including:
Receiver module, for when terminal monitoring to earphone exists audio signal output, receiving user's knocking in terminal;
Search module, for searching the default knocking sample corresponding with described knocking in presetting database;
Acquisition module, for when finding the default knocking sample corresponding with described knocking in described presetting database, obtaining the volume adjusting instruction corresponding with described knocking sample;
Adjustment module, for being adjusted the output volume of described audio signal according to described volume adjusting instruction.
8. volume adjustment device according to claim 7, it is characterised in that when described default knocking sample is preset times sample, described lookup module includes: obtain submodule and search submodule;
Described acquisition submodule, for obtaining the number of taps of described knocking;
Described lookup submodule, for searching the preset times sample corresponding with described number of taps in described presetting database;
Described acquisition module, specifically for obtaining the preset instructions corresponding with described preset times sample, using as described volume adjusting instruction.
9. volume adjustment device according to claim 8, it is characterised in that described acquisition submodule, specifically for:
Obtain the described number of taps in described preset duration.
10. volume adjustment device according to claim 7, it is characterised in that
Described acquisition module, specifically for obtaining the adjustment direction corresponding with described knocking sample;
Described adjustment module, specifically for adjusting predetermined amplitude by described output volume to described adjustment direction.
11. volume adjustment device according to claim 7, it is characterised in that described receiver module, specifically for:
By knocking described in the microphones on described earphone.
12. according to the volume adjustment device described in any one of claim 7-11, it is characterised in that described receiver module specifically for:
Obtain the vibration signal in described terminal;
Judge whether described vibration signal is that user passes through to knock the vibration signal that described terminal produces;
If it is determined that described vibration signal is user when passing through to knock the vibration signal that described terminal produces, it is determined that described vibration signal is described knocking.
CN201610038369.0A 2016-01-20 2016-01-20 Volume adjusting method and volume adjusting device Pending CN105744056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610038369.0A CN105744056A (en) 2016-01-20 2016-01-20 Volume adjusting method and volume adjusting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610038369.0A CN105744056A (en) 2016-01-20 2016-01-20 Volume adjusting method and volume adjusting device

Publications (1)

Publication Number Publication Date
CN105744056A true CN105744056A (en) 2016-07-06

Family

ID=56246385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610038369.0A Pending CN105744056A (en) 2016-01-20 2016-01-20 Volume adjusting method and volume adjusting device

Country Status (1)

Country Link
CN (1) CN105744056A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686207A (en) * 2016-11-17 2017-05-17 维沃移动通信有限公司 Volume adjusting method and mobile terminal
CN108519871A (en) * 2018-03-30 2018-09-11 广东欧珀移动通信有限公司 Acoustic signal processing method and Related product
CN109285098A (en) * 2018-12-12 2019-01-29 广东小天才科技有限公司 A kind of study householder method and study auxiliary client, e-learning equipment
CN110134361A (en) * 2019-05-06 2019-08-16 上海幻电信息科技有限公司 Volume adjusting method, computer equipment and the computer readable storage medium of equipment
CN110415506A (en) * 2019-07-31 2019-11-05 歌尔科技有限公司 A kind of wireless headset and its control method and device
CN110891235A (en) * 2019-12-26 2020-03-17 惠州市锦好医疗科技股份有限公司 Finger-knocking body detection method for behind-the-ear hearing aid
CN112817227A (en) * 2020-12-31 2021-05-18 联想(北京)有限公司 Information processing method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202131A (en) * 2010-03-26 2011-09-28 索尼爱立信移动通讯有限公司 Vibration-based application activation of portable electronic equipment
KR20150145671A (en) * 2014-06-21 2015-12-30 박미경 An input method using microphone and the apparatus therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202131A (en) * 2010-03-26 2011-09-28 索尼爱立信移动通讯有限公司 Vibration-based application activation of portable electronic equipment
KR20150145671A (en) * 2014-06-21 2015-12-30 박미경 An input method using microphone and the apparatus therefor

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686207A (en) * 2016-11-17 2017-05-17 维沃移动通信有限公司 Volume adjusting method and mobile terminal
CN108519871A (en) * 2018-03-30 2018-09-11 广东欧珀移动通信有限公司 Acoustic signal processing method and Related product
CN109285098A (en) * 2018-12-12 2019-01-29 广东小天才科技有限公司 A kind of study householder method and study auxiliary client, e-learning equipment
CN110134361A (en) * 2019-05-06 2019-08-16 上海幻电信息科技有限公司 Volume adjusting method, computer equipment and the computer readable storage medium of equipment
CN110134361B (en) * 2019-05-06 2022-08-19 上海幻电信息科技有限公司 Volume adjusting method of device, computer device and computer-readable storage medium
CN110415506A (en) * 2019-07-31 2019-11-05 歌尔科技有限公司 A kind of wireless headset and its control method and device
CN110891235A (en) * 2019-12-26 2020-03-17 惠州市锦好医疗科技股份有限公司 Finger-knocking body detection method for behind-the-ear hearing aid
CN112817227A (en) * 2020-12-31 2021-05-18 联想(北京)有限公司 Information processing method and electronic equipment
CN112817227B (en) * 2020-12-31 2022-05-31 联想(北京)有限公司 Information processing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN105744056A (en) Volume adjusting method and volume adjusting device
US7983222B2 (en) Wireless channel selection techniques and devices
US8314720B2 (en) Terminal and method for executing function using human body communication
EP3621068A1 (en) Portable smart voice interaction control device, method and system
CN103546617B (en) A kind of method that sound regulates and terminal
CN107966910B (en) Voice processing method, intelligent sound box and readable storage medium
KR20080103802A (en) Method for measuring a state of a plurality of channels and apparatus, method for selecting idle channel and apparatus therefor
CN105632144A (en) Intelligent equipment control method and device
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
CN104092502B (en) A kind of radio station searching method and device
CN105049636A (en) Detection method and device for main microphone hole of terminal
CN105719672A (en) Recording scene mode switching method and recording scene mode switching mode device
US20200296534A1 (en) Sound playback device and output sound adjusting method thereof
CN105704839A (en) Bluetooth connection method and device
CN109495635A (en) Volume adjusting method and device
CN105472172B (en) Switching method, device and the computer readable storage medium of call mode
CN105577863A (en) Sound recording method and apparatus
CN108962259B (en) Processing method and first electronic device
CN105491246A (en) Photographing processing method and device
CN105739850A (en) Multimedia progress processing method and device
CN105721676A (en) Terminal processing method and terminal processing device
CN105721710A (en) Recording method and apparatus, and electronic device
CN104954947A (en) Sound box, audio playing system and audio playing method
US11798577B2 (en) Methods and apparatus to fingerprint an audio signal
US20180184356A1 (en) Wireless microphone system

Legal Events

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

Application publication date: 20160706