CN105847592B - Method for starting vibration mode and mobile terminal - Google Patents

Method for starting vibration mode and mobile terminal Download PDF

Info

Publication number
CN105847592B
CN105847592B CN201610357030.7A CN201610357030A CN105847592B CN 105847592 B CN105847592 B CN 105847592B CN 201610357030 A CN201610357030 A CN 201610357030A CN 105847592 B CN105847592 B CN 105847592B
Authority
CN
China
Prior art keywords
mobile terminal
pulse code
code modulation
vibration mode
modulation value
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.)
Active
Application number
CN201610357030.7A
Other languages
Chinese (zh)
Other versions
CN105847592A (en
Inventor
王怀利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610357030.7A priority Critical patent/CN105847592B/en
Publication of CN105847592A publication Critical patent/CN105847592A/en
Application granted granted Critical
Publication of CN105847592B publication Critical patent/CN105847592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • 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
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

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

Abstract

The invention provides a method for starting a vibration mode and a mobile terminal, wherein the method for starting the vibration mode comprises the following steps: the method comprises the steps of obtaining characteristic change information of sound emitted by a loudspeaker, judging whether the characteristic change information meets a preset condition for starting a vibration mode of the mobile terminal, and starting the vibration mode of the mobile terminal when the characteristic change information meets the preset condition. The method for starting the vibration mode can determine whether to start the vibration mode of the mobile terminal or not by means of the sound emitted by the loudspeaker, not only increases the means for starting the vibration mode, but also improves the identification precision, namely the vibration mode of the mobile terminal can be started under the condition that the sound reminding is blocked.

Description

Method for starting vibration mode and mobile terminal
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method for starting a vibration mode and a mobile terminal.
Background
The vibration mode is a common reminding information mode in the current mobile terminal, and under some special conditions, for example, in a noisy environment or a loudspeaker is blocked, the vibration mode can play a more effective reminding effect compared with a sound reminding mode.
Specifically, in the method for currently starting the vibration mode, besides manual starting by a user, the environment where the mobile terminal is located can be judged by using the distance sensor and the light sensor, so that the vibration mode of the mobile terminal is automatically started when the environment where the mobile terminal is located is dark or is attached to an object.
However, the conventional means for turning on the vibration mode is too simple and the recognition is not accurate. For example, when a mobile terminal is placed on a desktop, the mobile terminal may turn on a vibration mode as long as something covers a distance sensor or a light sensor, and in this case, the vibration mode is not required to be turned on.
Disclosure of Invention
The embodiment of the invention provides a method for starting a vibration mode and a mobile terminal, and aims to solve the problems that the existing means for starting the vibration mode is too single and the identification is not accurate enough.
In one aspect, an embodiment of the present invention provides a method for starting a vibration mode, which is applied to a mobile terminal having a microphone, and includes:
acquiring characteristic change information of sound emitted by the loudspeaker;
judging whether the characteristic change information meets a preset condition for starting a vibration mode of the mobile terminal;
and if the characteristic change information meets the preset condition, starting a vibration mode of the mobile terminal.
In another aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring the characteristic change information of the sound emitted by the loudspeaker;
the judging module is used for judging whether the characteristic change information acquired by the acquiring module meets the preset condition for starting the vibration mode of the mobile terminal;
and the starting module is used for starting the vibration mode of the mobile terminal when the judging module judges that the characteristic change information meets the preset condition.
In this way, the method for starting the vibration mode according to the embodiment of the present invention determines whether the characteristic change information satisfies the preset condition for starting the vibration mode of the mobile terminal by obtaining the characteristic change information of the sound emitted by the speaker, and starts the vibration mode of the mobile terminal when the characteristic change information satisfies the preset condition, and can determine whether to start the vibration mode of the mobile terminal by using the sound emitted by the speaker, so that not only is a means for starting the vibration mode added, but also the recognition accuracy is improved, that is, the vibration mode of the mobile terminal can be started when the sound prompt is blocked.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 shows a flow chart of a method of initiating a vibration mode according to a first embodiment of the invention.
Fig. 2A shows a flow chart of a method of initiating a vibration mode according to a second embodiment of the present invention.
Fig. 2B is a diagram showing impedance characteristics of a speaker according to a second embodiment of the present invention.
Fig. 3A shows a flow chart of a method of initiating a vibration mode according to a third embodiment of the present invention.
Fig. 3B shows a flow chart of another method of initiating a vibration mode according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of another mobile terminal according to a fourth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of another mobile terminal according to a fourth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
First embodiment
Referring to fig. 1, an embodiment of the present invention provides a method for starting a vibration mode, which is applied to a mobile terminal having a speaker, and includes steps 101 to 103, which are described in detail below.
Step 101: and acquiring the characteristic change information of the sound emitted by the loudspeaker.
In the embodiment of the present invention, the characteristic change information may be related information used for determining whether the sound emitted by the speaker can be normally transmitted outside the mobile terminal, or may be related information used for determining whether the mobile terminal is in a noisy environment, which is not limited to this.
The mobile terminal is, for example, a mobile phone with an intelligent power amplification function, an iPad and the like, and can perform information reminding by using a vibration mode.
Step 102: and judging whether the characteristic change information meets a preset condition for starting a vibration mode of the mobile terminal.
In the embodiment of the present invention, according to the characteristic change information obtained in step 101, it can be determined whether the sound emitted by the speaker can be transmitted out of the mobile terminal normally, or whether the mobile terminal is in a noisy environment, or the like, that is, whether the sound prompt of the mobile terminal is blocked is determined, so as to determine whether to start the vibration mode of the mobile terminal.
Specifically, when the sound that the speaker sent can not normally spread out outside the mobile terminal, perhaps the mobile terminal is in noisy environment, whether mobile terminal's sound is reminded and is blocked, characteristic change information satisfies and opens mobile terminal's vibration mode's preset condition.
Step 103: and if the characteristic change information meets the preset condition, starting a vibration mode of the mobile terminal.
That is to say, when the characteristic change information meets the preset condition for starting the vibration mode of the mobile terminal, the mobile terminal automatically starts the vibration mode so as to utilize vibration to remind information and enhance the reminding effect.
According to the method for starting the vibration mode, whether the characteristic change information meets the preset condition for starting the vibration mode of the mobile terminal is judged by acquiring the characteristic change information of the sound emitted by the loudspeaker, the vibration mode of the mobile terminal is started when the characteristic change information meets the preset condition, whether the vibration mode of the mobile terminal needs to be started can be determined by means of the sound emitted by the loudspeaker, a means for starting the vibration mode is added, the identification precision is improved, and the vibration mode of the mobile terminal can be started under the condition that the sound reminding is blocked.
Second embodiment
Referring to fig. 2A, an embodiment of the present invention further provides a method for starting a vibration mode, which is applied to a mobile terminal having a speaker, and includes steps 201 to 206, which are described in detail below.
Step 201: and acquiring frequency information of the sound emitted by the loudspeaker.
In the embodiment of the invention, when the mobile terminal has the incoming call, unread information or messages, the mobile terminal can send out sound to remind through the loudspeaker according to the terminal setting. The frequency information obtained in step 201 is the frequency information of the sound emitted by the speaker in the current state.
Step 202: and determining an impedance characteristic curve of the loudspeaker according to the frequency information.
Specifically, the voice coil of the loudspeaker is a coil formed by winding enameled wires, and the voice coil not only has certain direct current resistance, but also has inductance of the voice coil. The voice coil moves in the magnetic air gap, cuts magnetic lines of force, and is a generator, which induces an induced voltage opposite to the voice signal, and attenuates the voice signal current in the voice coil, so that the impedance of the voice coil increases, and the increase becomes larger and larger along with the increase of the frequency of the voice signal.
The impedance characteristic of the loudspeaker refers to a rule that the impedance of a loudspeaker system changes along with the frequency change of a sound signal, and an impedance-frequency coordinate graph describing the impedance characteristic of the loudspeaker is an impedance characteristic curve.
In the embodiment of the invention, after the frequency information of the sound emitted by the loudspeaker is acquired, the current impedance characteristic curve of the loudspeaker can be determined. A specific impedance characteristic curve can be seen in fig. 2B, for example.
Step 203: and determining the resonant frequency value of the loudspeaker according to the impedance characteristic curve.
Specifically, the loudspeaker has a natural resonant frequency point, FO for short, in a low frequency band, and the frequency value at the FO is the resonant frequency value of the loudspeaker. The resonant frequency value of the speaker can be obtained from the impedance characteristic curve of the speaker, and is a frequency value corresponding to the impedance value when the impedance value reaches a maximum value (i.e., an impedance peak) in the impedance characteristic curve for the first time.
Thus, after determining the current impedance characteristic of the loudspeaker in step 202, the value of the resonant frequency of the loudspeaker in the current state can be determined.
Step 204: and calculating a first difference value of the resonant frequency value and a preset resonant frequency value.
The resonant frequency values of the speakers are different due to different types of the speakers and different installation modes of the speakers in the mobile terminal. Moreover, if the loudspeaker is blocked, the sound pressure of the cavity of the loudspeaker is increased, so that the sound cannot be normally radiated, the impedance characteristic curve of the loudspeaker is influenced, and the resonant frequency value of the loudspeaker is increased.
In the embodiment of the present invention, the preset resonant frequency value is a frequency value corresponding to the maximum impedance value in the impedance characteristic curve when the speaker (the model and the installation mode are fixed) in the mobile terminal is not blocked in the normal state, for example, FO in fig. 2B0The corresponding frequency value.
The resonant frequency value determined in step 203 is, for example, the frequency value corresponding to FO' in fig. 2B, and is the corresponding resonant frequency value when the speaker is in the blocking state.
In an embodiment of the present invention, the characteristic change information is a difference value between the resonant frequency value and a preset resonant frequency value, that is, a first difference value.
Step 205: and judging whether the first difference value is larger than or equal to a preset threshold value.
In the embodiment of the present invention, the preset threshold value may be obtained through multiple tests, and is a maximum offset amount that the preset resonant frequency value is allowed to increase in order to ensure normal operation of the speaker when the speaker is in the blocking state, that is, an increase amount of the preset resonant frequency value cannot exceed the preset threshold value. Whether the vibration mode of the mobile terminal is to be started or not can be determined by judging whether the first difference value is larger than or equal to the preset threshold value or not.
That is to say, when the difference (i.e., the first difference) between the resonant frequency value and the preset resonant frequency value is greater than or equal to the preset threshold, it indicates that the speaker is in the blocking state and the sound cannot be normally emitted, and the vibration mode of the mobile terminal needs to be turned on.
Step 206: and if the first difference is larger than or equal to the preset threshold, starting a vibration mode of the mobile terminal.
In the embodiment of the present invention, the preset condition for starting the vibration mode of the mobile terminal is as follows: the first difference is greater than or equal to the preset threshold.
Thus, when the first difference is greater than or equal to the preset threshold, the vibration mode of the mobile terminal may be turned on. Otherwise, the vibration mode of the mobile terminal is not required to be started.
According to the method for starting the vibration mode, the frequency information of the sound emitted by the loudspeaker is obtained, the impedance characteristic curve of the loudspeaker is determined according to the frequency information, the resonant frequency value of the loudspeaker is determined according to the impedance characteristic curve, the first difference value between the resonant frequency value and the preset resonant frequency value is calculated, whether the first difference value is larger than or equal to a preset threshold value or not is judged, the vibration mode of the mobile terminal is started when the first difference value is larger than or equal to the preset threshold value, the vibration mode of the mobile terminal can be started when the loudspeaker is in a blocking state and the sound cannot be normally discharged, the means for starting the vibration mode is added, and the identification precision is improved.
Third embodiment
Referring to fig. 3A, an embodiment of the present invention further provides a method for starting a vibration mode, which is applied to a mobile terminal having a speaker, and includes steps 301 to 306, which are described in detail below.
Step 301: a first pulse code modulation value of a preset volume of sound emitted by the loudspeaker at a first moment is acquired.
Specifically, Pulse Code Modulation (PCM) is a technique for converting sound from an analog signal to a digital signal. Briefly, the principle of PCM is to sample an analog signal at a fixed frequency, the sampled signal looks like a series of consecutive pulses with different amplitudes on the waveform, the amplitudes of the pulses are quantized with a certain precision, and the quantized values are continuously output, transmitted, processed or recorded in a storage medium and converted into digital signals. These quantized values are pulse code modulation values, referred to as PCM values for short.
In this embodiment of the present invention, the first PCM value obtained in step 301 is a PCM value of a preset volume of a sound emitted by a speaker, and is only related to a terminal setting, and if the volume set by the terminal is changed, the corresponding PCM value is also changed.
Step 302: and recording the sound emitted by the loudspeaker through a microphone.
In the embodiment of the invention, the sound emitted by the loudspeaker needs to be recorded by a microphone to judge whether the sound emitted by the loudspeaker can be normally transmitted out of the mobile terminal or not, or whether the mobile terminal is in a noisy environment or not.
Step 303: a second pulse code modulation value of the volume of the recorded sound at a second time is obtained.
In the embodiment of the present invention, after the sound emitted from the speaker is recorded, PCM processing may be performed on the recorded sound to obtain a PCM value of the volume of the recorded sound.
Specifically, due to hardware delay, the recording time of the microphone is generally later than the emission time of the speaker for the same sound, and the time difference between the two is fixed and constant. In the embodiment of the present invention, the fixed time difference may be preset, for example, the fixed time difference is used as a preset time offset.
In this way, the difference between the second time and the first time is equal to the preset time offset, so as to ensure that the same sound is aimed at in the subsequent processing process.
Step 304: when the first pulse code modulation value is greater than the second pulse code modulation value, calculating a second difference value between the first pulse code modulation value and the second pulse code modulation value.
In this embodiment of the present invention, the characteristic change information is a difference between the first pulse code modulation value and the second pulse code modulation value, that is, a second difference, and is used to determine whether the speaker is in a blocking state and sound cannot be normally played.
Step 305: and judging whether the second difference value is greater than or equal to a first preset pulse code modulation value or not.
In an embodiment of the present invention, the first preset pulse code modulation value is obtained through a plurality of tests, and is a critical value of a difference between the first pulse code modulation value and the second pulse code modulation value, that is, the difference between the first pulse code modulation value and the second pulse code modulation value cannot exceed the first preset pulse code modulation value, in order to ensure normal operation of the speaker when the speaker is in a blocking state. Whether the vibration mode of the mobile terminal needs to be started or not can be determined by judging whether the second difference value is larger than or equal to the first preset pulse code modulation value or not.
For example, for the same sound, the first time t1Obtaining a first PCM value of a preset volume at a second time t2Recording the sound emitted by the loudspeaker through the microphone, wherein the corresponding PCM value is a second PCM value, and t2And t1Is equal to a predetermined time offset t0(i.e. t)2-t1﹦t0) (ii) a And when the difference value (second difference value) between the first PCM value and the second PCM value is greater than or equal to the first preset PCM value, it indicates that the speaker is in a blocking state and the sound cannot be normally played, and the vibration mode of the mobile terminal needs to be started.
Step 306: and if the second difference value is greater than or equal to the first preset pulse code modulation value, starting a vibration mode of the mobile terminal.
In the embodiment of the present invention, the preset condition for starting the vibration mode of the mobile terminal is as follows: the second difference is greater than or equal to the first preset pulse code modulation value.
In this way, when the second difference is greater than or equal to the first preset pulse code modulation value, the vibration mode of the mobile terminal may be turned on. Otherwise, the vibration mode of the mobile terminal is not required to be started.
In the embodiment of the present invention, referring to fig. 3B, on the basis of steps 301 to 303, the method for starting the vibration mode may further include steps 307 and 309, which are described in detail below.
Step 307: when the second pulse code modulation value is greater than the first pulse code modulation value, calculating a third difference value between the second pulse code modulation value and the first pulse code modulation value.
In the embodiment of the present invention, the characteristic change information is a difference between the second pulse code modulation value and the first pulse code modulation value, that is, a third difference, and is used to determine whether the speaker is in a noisy environment and a sound reminding effect is not obvious.
Step 308: and judging whether the third difference value is greater than or equal to a second preset pulse code modulation value.
In the embodiment of the present invention, the second preset pulse code modulation value may also be obtained through multiple tests, and in order to ensure normal operation of a speaker when the mobile terminal is in a noisy environment, a critical value of a difference between the second pulse code modulation value and the first pulse code modulation value is allowed, that is, the difference between the second pulse code modulation value and the first pulse code modulation value cannot exceed the second preset pulse code modulation value. And determining whether to start the vibration mode of the mobile terminal by judging whether the third difference value is greater than or equal to the second preset pulse code modulation value.
For example, for the same sound, the first time t1Obtaining a first PCM value of a preset volume at a second time t2Recording the sound emitted by the loudspeaker through the microphone, wherein the corresponding PCM value is a second PCM value, and t2And t1Is equal to a predetermined time offset t0(i.e. t)2-t1﹦t0) (ii) a And when the difference value (third difference value) between the second PCM value and the first PCM value is greater than or equal to the second preset PCM value, the mobile terminal is in a noisy environment, the sound reminding effect is not obvious, and the vibration mode of the mobile terminal needs to be started.
Step 309: and if the third difference is greater than or equal to the second preset pulse code modulation value, starting a vibration mode of the mobile terminal.
In the embodiment of the present invention, the preset condition for starting the vibration mode of the mobile terminal is as follows: the third difference is greater than or equal to the second preset pulse code modulation value.
In this way, when the third difference is greater than or equal to the second preset pulse code modulation value, the vibration mode of the mobile terminal may be turned on. Otherwise, the vibration mode of the mobile terminal is not required to be started.
The method for starting the vibration mode of the embodiment of the invention obtains the first pulse code modulation value of the preset volume of the sound emitted by the loudspeaker at the first moment, recording the sound emitted by the loudspeaker through a microphone, acquiring a second pulse code modulation value of the volume of the recorded sound at a second moment, when the first pulse code modulation value is larger than the second pulse code modulation value, calculating a second difference value between the first pulse code modulation value and the second pulse code modulation value, judging whether the second difference value is larger than or equal to a first preset pulse code modulation value or not, when the second difference value is greater than or equal to the first preset pulse code modulation value, the vibration mode of the mobile terminal is started, and when the loudspeaker is in a blocking state and sound cannot be normally played out, the vibration mode of the mobile terminal can be started; and simultaneously when the second pulse code modulation value is greater than the first pulse code modulation value, calculating the second pulse code modulation value and the third difference value of the first pulse code modulation value, judging whether the third difference value is greater than or equal to the second preset pulse code modulation value, and opening the vibration mode of the mobile terminal when the third difference value is greater than or equal to the second preset pulse code modulation value, so that the vibration mode of the mobile terminal can be opened when the loudspeaker is in a noisy environment and the sound reminding effect is not obvious, the means for starting the vibration mode is increased, and the identification precision is also improved.
Fourth embodiment
Referring to fig. 4, an embodiment of the present invention further provides a mobile terminal with a speaker, which corresponds to the method for starting a vibration mode shown in fig. 1, and includes an obtaining module 41, a determining module 42, and a starting module 43.
The obtaining module 41 is configured to obtain characteristic change information of the sound emitted by the speaker.
The determining module 42 is configured to determine whether the characteristic change information acquired by the acquiring module 41 meets a preset condition for starting a vibration mode of the mobile terminal.
The starting module 43 is configured to start the vibration mode of the mobile terminal when the determining module 42 determines that the characteristic change information meets the preset condition.
In the embodiment of the present invention, referring to fig. 5, the obtaining module 41 includes a frequency information obtaining unit 411, an impedance characteristic curve determining unit 412, a resonant frequency value determining unit 413, and a first calculating unit 414.
The frequency information acquiring unit 411 is configured to acquire frequency information of sound emitted by the speaker.
The impedance characteristic curve determining unit 412 is configured to determine an impedance characteristic curve of the speaker according to the frequency information acquired by the frequency information acquiring unit 411.
The resonant frequency value determining unit 413 is configured to determine the resonant frequency value of the speaker according to the impedance characteristic curve determined by the impedance characteristic curve determining unit 412.
The first calculating unit 414 is configured to calculate a first difference between the resonant frequency value determined by the resonant frequency value determining unit 413 and a preset resonant frequency value.
Specifically, referring to fig. 5, the determining module 42 includes a first determining unit 421.
The first determining unit 421 is configured to determine whether the first difference calculated by the first calculating unit 414 is greater than or equal to a preset threshold;
wherein the preset conditions are as follows: the first difference is greater than or equal to the preset threshold.
In the embodiment of the present invention, referring to fig. 6, the obtaining module 41 includes a first obtaining unit 415, an entry unit 416, a second obtaining unit 417, and a second calculating unit 418.
The first obtaining unit 415 is configured to obtain a first pulse code modulation value of a preset volume of a sound emitted by the speaker at a first time.
The recording unit 416 is configured to record the sound emitted by the speaker through a microphone.
The second obtaining unit 417 is configured to obtain a second pulse code modulation value of the volume of the sound recorded by the recording unit 416 at a second time.
The second calculating unit 418 is configured to calculate a second difference between the first pulse code modulation value and the second pulse code modulation value when the first pulse code modulation value is greater than the second pulse code modulation value.
And the difference value between the second moment and the first moment is equal to a preset time offset.
Specifically, referring to fig. 6, the determining module 42 includes a second determining unit 422.
The second determining unit 422 is configured to determine whether the second difference calculated by the second calculating unit 418 is greater than or equal to a first preset pulse code modulation value;
wherein the preset conditions are as follows: the second difference is greater than or equal to the first preset pulse code modulation value.
Referring to fig. 6, the acquiring module further comprises a third calculating unit 419.
The third calculating unit 419 is configured to calculate a third difference between the second pulse code modulation value and the first pulse code modulation value when the second pulse code modulation value is greater than the first pulse code modulation value.
Specifically, the judging module includes a third judging unit 423.
The third judging unit 423 is configured to judge whether the third difference calculated by the third calculating unit 419 is greater than or equal to a second preset pulse code modulation value;
wherein the preset conditions are as follows: the third difference is greater than or equal to the second preset pulse code modulation value.
The mobile terminal according to the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3B, and is not described herein again to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, the characteristic change information of the sound emitted by the loudspeaker is acquired, whether the characteristic change information meets the preset condition for starting the vibration mode of the mobile terminal is judged, when the characteristic change information meets the preset condition, the vibration mode of the mobile terminal is started, and whether the vibration mode of the mobile terminal needs to be started can be determined by means of the sound emitted by the loudspeaker, so that not only is a means for starting the vibration mode increased, but also the recognition precision is improved, namely, the vibration mode of the mobile terminal can be started under the condition that the sound reminding is blocked.
Fifth embodiment
Fig. 7 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention. The mobile terminal 700 shown in fig. 7 includes: at least one processor 701, a memory 702, at least one network interface 704, and a user interface 703. The various components in the mobile terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, a touch screen, or the like, and may also include a speaker or a microphone, which is not limited in the present invention.
It is to be understood that the memory 702 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 702 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022, the processor 701 is configured to obtain characteristic change information of a sound emitted by the speaker, determine whether the characteristic change information satisfies a preset condition for starting a vibration mode of the mobile terminal, and start the vibration mode of the mobile terminal when the characteristic change information satisfies the preset condition.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 701 is specifically configured to: acquiring frequency information of sound emitted by the loudspeaker, determining an impedance characteristic curve of the loudspeaker according to the frequency information, determining a resonant frequency value of the loudspeaker according to the impedance characteristic curve, and calculating a first difference value between the resonant frequency value and a preset resonant frequency value.
Optionally, the processor 701 is specifically configured to: judging whether the first difference value is greater than or equal to a preset threshold value; wherein the preset conditions are as follows: the first difference is greater than or equal to the preset threshold.
Optionally, the processor 701 is specifically configured to: acquiring a first pulse code modulation value of preset volume of sound emitted by a loudspeaker at a first moment, recording the sound emitted by the loudspeaker through a microphone, acquiring a second pulse code modulation value of the volume of the recorded sound at a second moment, and calculating a second difference value between the first pulse code modulation value and the second pulse code modulation value when the first pulse code modulation value is larger than the second pulse code modulation value; and the difference value between the second moment and the first moment is equal to a preset time offset.
Optionally, the processor 701 is specifically configured to: judging whether the second difference value is larger than or equal to a first preset pulse code modulation value or not; wherein the preset conditions are as follows: the second difference is greater than or equal to the first preset pulse code modulation value.
Optionally, the processor 701 is specifically configured to: when the second pulse code modulation value is greater than the first pulse code modulation value, calculating a third difference value between the second pulse code modulation value and the first pulse code modulation value.
Optionally, the processor 701 is specifically configured to: judging whether the third difference value is larger than or equal to a second preset pulse code modulation value or not; wherein the preset conditions are as follows: the third difference is greater than or equal to the second preset pulse code modulation value.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
According to the mobile terminal 700 of the embodiment of the invention, by acquiring the characteristic change information of the sound emitted by the loudspeaker, whether the characteristic change information meets the preset condition for starting the vibration mode of the mobile terminal is judged, when the characteristic change information meets the preset condition, the vibration mode of the mobile terminal is started, and whether the vibration mode of the mobile terminal needs to be started can be determined by means of the sound emitted by the loudspeaker, so that not only is a means for starting the vibration mode increased, but also the recognition precision is improved, namely, the vibration mode of the mobile terminal can be started under the condition that the sound reminding is blocked.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. A method for initiating a vibration mode for use in a mobile terminal having a speaker, the method comprising:
acquiring characteristic change information of sound emitted by the loudspeaker;
judging whether the characteristic change information meets a preset condition for starting a vibration mode of the mobile terminal;
if the characteristic change information meets the preset condition, starting a vibration mode of the mobile terminal;
the characteristic change information is used for judging whether the mobile terminal is in a noisy environment or not; the acquiring of the characteristic change information of the sound emitted by the speaker includes:
acquiring a first pulse code modulation value of preset volume of sound emitted by a loudspeaker at a first moment;
recording the sound emitted by the loudspeaker through a microphone;
acquiring a second pulse code modulation value of the volume of the recorded sound at a second moment;
when the second pulse code modulation value is greater than the first pulse code modulation value, calculating a third difference value between the second pulse code modulation value and the first pulse code modulation value.
2. The method according to claim 1, wherein the step of determining whether the characteristic change information satisfies a preset condition for turning on the vibration mode of the mobile terminal comprises:
judging whether the third difference value is larger than or equal to a second preset pulse code modulation value or not;
wherein the preset conditions are as follows: the third difference is greater than or equal to the second preset pulse code modulation value.
3. A mobile terminal having a speaker, comprising:
the acquisition module is used for acquiring the characteristic change information of the sound emitted by the loudspeaker;
the judging module is used for judging whether the characteristic change information acquired by the acquiring module meets the preset condition for starting the vibration mode of the mobile terminal;
the starting module is used for starting the vibration mode of the mobile terminal when the judging module judges that the characteristic change information meets the preset condition;
the characteristic change information is used for judging whether the mobile terminal is in a noisy environment or not; the acquisition module includes:
the first acquisition unit is used for acquiring a first pulse code modulation value of preset volume of sound emitted by the loudspeaker at a first moment;
the recording unit is used for recording the sound emitted by the loudspeaker through a microphone;
a second acquisition unit configured to acquire a second pulse code modulation value of the volume of the sound entered by the entry unit at a second time;
a third calculating unit, configured to calculate a third difference between the second pulse code modulation value and the first pulse code modulation value when the second pulse code modulation value is greater than the first pulse code modulation value.
4. The mobile terminal of claim 3, wherein the determining module comprises:
a third judging unit, configured to judge whether the third difference calculated by the third calculating unit is greater than or equal to a second preset pulse code modulation value;
wherein the preset conditions are as follows: the third difference is greater than or equal to the second preset pulse code modulation value.
CN201610357030.7A 2016-05-25 2016-05-25 Method for starting vibration mode and mobile terminal Active CN105847592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610357030.7A CN105847592B (en) 2016-05-25 2016-05-25 Method for starting vibration mode and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610357030.7A CN105847592B (en) 2016-05-25 2016-05-25 Method for starting vibration mode and mobile terminal

Publications (2)

Publication Number Publication Date
CN105847592A CN105847592A (en) 2016-08-10
CN105847592B true CN105847592B (en) 2020-05-01

Family

ID=56594623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610357030.7A Active CN105847592B (en) 2016-05-25 2016-05-25 Method for starting vibration mode and mobile terminal

Country Status (1)

Country Link
CN (1) CN105847592B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106959838A (en) * 2017-03-03 2017-07-18 广东欧珀移动通信有限公司 Audio control method, audio control apparatus and electronic installation
GB2561020B (en) * 2017-03-30 2020-04-22 Cirrus Logic Int Semiconductor Ltd Apparatus and methods for monitoring a microphone
US11769510B2 (en) 2017-09-29 2023-09-26 Cirrus Logic Inc. Microphone authentication
GB2567018B (en) 2017-09-29 2020-04-01 Cirrus Logic Int Semiconductor Ltd Microphone authentication
CN108563418A (en) * 2017-12-28 2018-09-21 珠海市君天电子科技有限公司 A kind of audio volume adjusting method, device, electronic equipment and storage medium
CN111323785A (en) * 2018-12-13 2020-06-23 青岛海尔多媒体有限公司 Obstacle recognition method and laser television

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577942A (en) * 2016-02-02 2016-05-11 广东欧珀移动通信有限公司 Instant messaging notification method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201406171A (en) * 2012-07-27 2014-02-01 Primax Electronics Ltd Microphone inspection method
CN102946483B (en) * 2012-11-15 2014-11-26 小米科技有限责任公司 Method for controlling reminding mode and device
CN103501375B (en) * 2013-09-16 2017-04-19 华为终端有限公司 Method and device for controlling sound effect
CN105208190B (en) * 2015-05-28 2019-03-05 维沃移动通信有限公司 Notification signal reminding method and terminal
CN105244018A (en) * 2015-10-22 2016-01-13 上海斐讯数据通信技术有限公司 Acoustic levitation system, method and apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577942A (en) * 2016-02-02 2016-05-11 广东欧珀移动通信有限公司 Instant messaging notification method and device

Also Published As

Publication number Publication date
CN105847592A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN105847592B (en) Method for starting vibration mode and mobile terminal
KR101981878B1 (en) Control of electronic devices based on direction of speech
US9787273B2 (en) Smart volume control of device audio output based on received audio input
US10579327B2 (en) Speech recognition device, speech recognition method and storage medium using recognition results to adjust volume level threshold
EP3146705B1 (en) Noise-sensitive alert presentation
EP3424228B1 (en) A piezoelectric mems device for producing a signal indicative of detection of an acoustic stimulus
US6336091B1 (en) Communication device for screening speech recognizer input
US20110150202A1 (en) Automatic disconnection system and method of a communication device
CN101795323B (en) Electronic alarm operation method, electronic alarm and mobile communication terminal
CN110992962B (en) Wake-up adjusting method and device for voice equipment, voice equipment and storage medium
CN106775569B (en) Device position prompting system and method
EP3671271A2 (en) Near ultrasound based proximity sensing for mobile devices
CN102354499A (en) Method and equipment for reducing noise
KR20170093491A (en) Method for voice detection and electronic device using the same
CN110603804A (en) Interference generation
US9148501B2 (en) Systems and methods for hands-off control of a mobile communication device
US9681005B2 (en) Mobile communication device and prompting method thereof
US9118292B2 (en) Bell sound outputting apparatus and method thereof
CN108833688B (en) Position reminding method and device, storage medium and electronic equipment
CN105376385A (en) Volume adjusting method and user terminal
CN112214194B (en) Volume adjustment method, volume adjustment device, electronic equipment and computer readable storage medium
CN104581538A (en) Noise eliminating method and device
US10845479B1 (en) Movement and presence detection systems and methods using sonar
US20110223978A1 (en) Communication device and method for answering incoming phone calls
JP2015087446A (en) Information processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant