CN107749306B - Vibration optimization method and mobile terminal - Google Patents
Vibration optimization method and mobile terminal Download PDFInfo
- Publication number
- CN107749306B CN107749306B CN201711044796.0A CN201711044796A CN107749306B CN 107749306 B CN107749306 B CN 107749306B CN 201711044796 A CN201711044796 A CN 201711044796A CN 107749306 B CN107749306 B CN 107749306B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- measurement parameter
- audio signal
- preset
- vibration
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000005457 optimization Methods 0.000 title claims abstract description 19
- 238000005259 measurement Methods 0.000 claims abstract description 90
- 230000005236 sound signal Effects 0.000 claims abstract description 76
- 238000012545 processing Methods 0.000 claims abstract description 29
- 238000004519 manufacturing process Methods 0.000 claims abstract description 9
- 230000001133 acceleration Effects 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 13
- 238000003860 storage Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 3
- 230000002708 enhancing effect Effects 0.000 claims 1
- 238000000605 extraction Methods 0.000 claims 1
- 230000006870 function Effects 0.000 description 11
- 230000035807 sensation Effects 0.000 description 7
- 238000001914 filtration Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000001629 suppression Effects 0.000 description 4
- 229910000831 Steel Inorganic materials 0.000 description 3
- 230000002238 attenuated effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 239000010959 steel Substances 0.000 description 3
- 238000006073 displacement reaction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0316—Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
- G10L21/0324—Details of processing therefor
- G10L21/034—Automatic adjustment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6008—Substation equipment, e.g. for use by subscribers including speech amplifiers in the transmitter circuit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6016—Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a vibration optimization method and a mobile terminal, wherein the method comprises the following steps: when the mobile terminal is in a sound production mode, obtaining a first measurement parameter of vibration strength generated when the mobile terminal produces sound; and when the first measurement parameter is larger than a preset threshold value, performing attenuation processing on a part, which is in a preset low-frequency range, in the audio signal generated when the mobile terminal generates sound. The invention achieves the purpose of reducing the vibration intensity generated when the mobile terminal sounds by carrying out attenuation processing on the part, which is in the preset low-frequency range, in the audio signal generated when the mobile terminal sounds.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for vibration optimization and a mobile terminal.
Background
Mobile terminals are currently being sounded through speakers, receivers, or through piezoelectric ceramic vibrations or other vibrators, and the like. The general loudspeaker comprises a bracket, magnetic steel, a coil and a vibrating diaphragm. The magnetic steel is fixed with the bracket, the coil is arranged in a magnetic gap formed by the magnetic steel, and the vibrating diaphragm is fixed on the coil. The coil generates Lorentz force in magnetic field to drive the coil to vibrate along with current signal, and the coil drives the vibrating diaphragm to vibrate to make sound. The mobile terminal adopts the vibrator to produce sound, the magnet is pushed to vibrate through the counterforce, the magnet pushes the shell to vibrate through the elastic sheet, and the vibration is transmitted to the shell and the screen to produce sound. However, in the prior art, due to the enhancement of waterproof performance, airtight performance, etc. of the mobile terminal, the mobile terminal is generating audio signals, such as: when music is played or a call is made, the air flow of the loudspeaker or the receiver impacts the battery cover, so that the battery cover vibrates. Then, through the mobile terminal with the vibrator to generate sound, the vibrator needs to push the whole machine to vibrate to generate sound, so that the whole machine vibrates obviously, and the experience effect of a user is influenced.
Disclosure of Invention
The invention provides a vibration optimization method, a mobile terminal and a computer readable storage medium, which aim to solve the problem that the vibration generated when the mobile terminal produces sound is too strong in the prior art.
In a first aspect, an embodiment of the present invention provides a method for vibration optimization, which is applied to a mobile terminal, and the method includes:
when the mobile terminal is in a sound production mode, obtaining a first measurement parameter of vibration strength generated when the mobile terminal produces sound;
and when the first measurement parameter is larger than a preset threshold value, performing attenuation processing on a part, which is in a preset low-frequency range, in the audio signal generated when the mobile terminal generates sound.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a first measurement parameter of vibration strength generated when the mobile terminal sounds when the mobile terminal is in a sound production mode;
and the attenuation module is used for attenuating the part, which is in a preset low-frequency range, of the audio signal generated when the mobile terminal produces the sound when the first measurement parameter is greater than a preset threshold value.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for vibration optimization as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the vibration optimization method as described above.
In the embodiment of the invention, when the mobile terminal generates sound, the first measurement parameter of the vibration strength when the mobile terminal generates the vibration is obtained, namely the vibration strength degree which represents that the user side feels the vibration generated when the mobile terminal generates the sound. And when the first measurement parameter is larger than a preset threshold value, namely the vibration sensation strength indicating that the user side feels that the mobile terminal generates vibration during sounding reaches a preset state, filtering the part in the preset low-frequency range in the audio signal generated during sounding of the mobile terminal to attenuate the part in the preset low-frequency range in the audio signal, so that the vibration strength generated by the mobile terminal is reduced, and the vibration sensation of the user side is further reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced 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 that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows one of the flow charts of a method of vibration optimization of an embodiment of the present invention;
FIG. 2 illustrates a second flow chart of a method of vibration optimization according to an embodiment of the present invention;
FIG. 3 shows one of the block diagrams of a mobile terminal of an embodiment of the invention;
fig. 4 shows a second block diagram of a mobile terminal according to an embodiment of the invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for vibration optimization, which is applied to a mobile terminal, where the method includes:
and step 11, when the mobile terminal is in a sound production mode, obtaining a first measurement parameter of the vibration intensity generated when the mobile terminal produces sound.
Specifically, when the mobile terminal produces sound, the intensity of the vibration generated by the mobile terminal can be represented by parameters such as displacement, speed and acceleration. Preferably, the measured parameter is acceleration.
As an implementation manner, the step of obtaining a first measurement parameter of the vibration strength generated when the mobile terminal generates sound includes: acquiring an acceleration value of vibration generated when the mobile terminal sounds, which is acquired by an acceleration sensor of the mobile terminal; and taking the acceleration value as a first measurement parameter of the vibration strength generated when the mobile terminal produces sound.
In this embodiment, an acceleration sensor of the mobile terminal is used as a vibration sensor, and an acceleration value (how fast a vibration speed changes) when the mobile terminal generates vibration is acquired to represent the strength of the vibration generated by the mobile terminal, that is, to represent the degree of the vibration sense strength when the user side senses the mobile terminal when the mobile terminal generates sound and generates vibration.
And step 12, when the first measurement parameter is larger than a preset threshold value, performing attenuation processing on a part, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal generates sound.
In this embodiment, the mobile terminal is preset with a plurality of filters with different attenuation intensities, and is used for performing attenuation processing on a part, which is in a preset low frequency range, of an audio signal generated when the mobile terminal generates sound at different degrees. Preferably, the portion in the preset low frequency range may be set to be lower than 800 Hz. When the first measurement parameter is larger than the preset threshold value, namely the vibration sensation intensity indicating that the user side feels that the mobile terminal generates vibration during sounding reaches a preset state, filtering processing is performed on the part, which is in the preset low-frequency range, in the audio signal through a filter with preset attenuation intensity so as to attenuate the part, which is in the preset low-frequency range, in the audio signal, so that the vibration intensity of the mobile terminal is reduced, and the vibration sensation of the user side is further reduced.
Referring to fig. 2, the steps of the method of vibration optimization of another embodiment of the present invention include:
and 21, when the mobile terminal is in a sound production mode, obtaining a first measurement parameter of the vibration intensity generated when the mobile terminal produces sound.
Specifically, when the mobile terminal produces sound, the intensity of the vibration generated by the mobile terminal can be represented by parameters such as displacement, speed and acceleration. Preferably, the measured parameter is acceleration.
In this embodiment, an acceleration sensor of the mobile terminal is used as a vibration sensor, and an acceleration value (how fast a vibration speed changes) when the mobile terminal generates vibration is acquired to represent the strength of the vibration generated by the mobile terminal, that is, to represent the degree of the vibration sense strength when the user side senses the mobile terminal when the mobile terminal generates sound and generates vibration.
And step 22, acquiring a second measurement parameter of the sound loudness when the mobile terminal sounds.
Specifically, the step of obtaining a second measurement parameter of the loudness of sound when the mobile terminal sounds includes:
acquiring audio data collected by a microphone of the mobile terminal; determining an audio signal generated when the mobile terminal sounds in the audio data; and acquiring the audio signal intensity of the audio signal as the second measurement parameter.
And obtaining the vibration amplitude of the audio signal as the intensity of the audio signal, and representing the sound loudness (unit: decibel) of the mobile terminal during sound production.
In the embodiment, when determining the audio signal generated when the mobile terminal sounds according to the audio data, detecting whether the mobile terminal is in a noise scene; and if the mobile terminal is in a noise scene, extracting an audio signal generated when the mobile terminal sounds in the audio data.
Specifically, when the mobile terminal is in a noise scene, the audio data includes an audio signal generated when the mobile terminal sounds and a noise signal in an environment where the mobile terminal is located; the noise signals are all audio signals except the audio signals generated when the mobile terminal generates sound in the audio data. Detecting whether the audio data contains a noise signal; and when the audio data contains the noise signal, analyzing the audio data, and extracting the audio signal generated when the mobile terminal produces the sound in the audio data.
In addition, if the mobile terminal is in a noise-free environment, the audio data collected by the microphone of the mobile terminal only includes the audio signal generated when the mobile terminal sounds. In this way, the microphone can be directly used as a sound sensor, and the audio signal collected by the microphone can be used as the audio signal generated by the mobile terminal.
And step 23, when the measurement parameter is greater than a preset threshold, performing attenuation processing on a part, which is in a preset low-frequency range, of the audio signal generated when the mobile terminal generates sound until the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is less than a preset ratio threshold.
Specifically, as can be seen from the equal loudness curve, the human body's perception of loudness (audio signal intensity) is relatively sensitive in the middle and high frequency regions and relatively weak in the low frequency region. As can be seen from the equal vibration intensity curves, human body's perception of vibration intensity is relatively sensitive in the low frequency region and relatively weak in the high frequency region.
Therefore, when the first measurement parameter of the vibration intensity generated by the mobile terminal is greater than the preset threshold value, namely the vibration intensity of the vibration generated by the mobile terminal during sounding is expressed by the user side to reach the preset state, the part in the preset low-frequency range in the audio signal generated during sounding of the mobile terminal is subjected to attenuation processing until the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is less than the preset ratio threshold value, so that the part in the preset low-frequency range in the audio signal generated during sounding of the mobile terminal is ensured to be attenuated, and the vibration intensity of the mobile terminal is reduced under the condition that the influence on the sound loudness of the sounding of the mobile terminal is small, and the vibration sensation of the user side is further reduced, thereby realizing the optimization processing of the vibration generated by the mobile terminal.
As an implementation manner, when the first measurement parameter is greater than a preset threshold, according to a predetermined attenuation intensity step length, gradually increasing the attenuation intensity of a portion, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal is sounded until a ratio between a variation of the first measurement parameter and a variation of the second measurement parameter is less than a preset proportional threshold.
Specifically, the mobile terminal is preset with filters with different attenuation intensities, wherein the attenuation intensity difference between the filters with adjacent attenuation intensities is the same. In this way, when the first measurement parameter of the intensity of the vibration generated by the mobile terminal is greater than the preset threshold (at this time, the first measurement parameter is recorded as a1 and the second measurement parameter is recorded as B1), the first filter with the minimum preset attenuation intensity is used to attenuate the part in the preset low frequency range in the audio signal generated when the mobile terminal sounds. After obtaining the attenuation processing, a first measurement parameter of the intensity of the vibration generated when the mobile terminal sounds is A2 and a second measurement parameter of the loudness of the sound when the mobile terminal sounds is B2.
Whether the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is smaller than a preset ratio threshold can be represented by the following formula (1):
wherein P represents a preset proportional threshold.
If the formula (1) is satisfied, it indicates that after the part in the preset low frequency range in the audio signal generated when the mobile terminal sounds is attenuated, the intensity of the vibration generated by the mobile terminal is optimally suppressed under the condition that the degree of suppression on the intensity of the audio signal (the loudness of sound when the mobile terminal sounds) is ensured to be small.
If the formula (1) is not met, filtering the part of the audio signal in the preset low-frequency range by using a second filter with the attenuation intensity larger than that corresponding to the first filter according to the sequence that the preset attenuation intensity step length is sequentially increased until the condition of the formula (1) is met, so that the vibration intensity generated by the mobile terminal is optimally suppressed under the condition that the suppression degree of the audio signal intensity is small.
As another implementation manner, when the first measurement parameter is greater than a preset threshold, according to a predetermined frequency step, gradually increasing a low-frequency range of a portion, which is within a preset low-frequency range, of an audio signal generated when the mobile terminal generates sound until a ratio between a variation of the first measurement parameter and a variation of the second measurement parameter is less than a preset ratio threshold.
Specifically, when a first measurement parameter of the intensity of vibration generated by the mobile terminal is greater than a preset threshold (at this time, the first measurement parameter is recorded as a1 and the second measurement parameter is recorded as B1), a filter with a preset attenuation intensity is used to attenuate a part (for example, lower than 800Hz) of an audio signal generated when the mobile terminal emits sound, which is within a preset low-frequency range. After obtaining the attenuation processing, a first measurement parameter of the intensity of the vibration generated when the mobile terminal sounds is A2 and a second measurement parameter of the loudness of the sound when the mobile terminal sounds is B2.
If the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is detected to satisfy formula (1), the method indicates that after the part in the preset low-frequency range in the audio signal generated when the mobile terminal produces sound is attenuated, the vibration intensity generated by the mobile terminal is optimally suppressed under the condition of ensuring that the suppression degree of the audio signal intensity is small.
If the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is detected not to satisfy the formula (1), increasing the low-frequency range of the part in the preset low-frequency range in the audio signal according to the preset frequency step, and performing attenuation processing on the part (such as lower than 820Hz) in the audio signal generated by the mobile terminal during sounding after the step length is adjusted by adopting a filter with preset attenuation strength until the condition of the formula (1) is satisfied, so that the vibration strength generated by the mobile terminal is optimally suppressed under the condition of ensuring that the suppression degree of the audio signal strength is small.
It should be noted that, the setting range of the portion of the audio signal within the preset low frequency range and the specific value of the frequency step in the above embodiment are only exemplary, and the invention is not limited thereto.
Referring to fig. 3 and 4, an embodiment of the present invention provides a mobile terminal, where the mobile terminal 300 includes:
an obtaining module 310, configured to obtain a first measurement parameter of a vibration strength generated when the mobile terminal sounds when the mobile terminal is in a sound production mode.
And the attenuation module 320 is configured to, when the first measurement parameter is greater than a preset threshold, perform attenuation processing on a portion, within a preset low-frequency range, of an audio signal generated when the mobile terminal generates a sound.
Wherein the obtaining module 310 includes:
the first obtaining submodule 311 is configured to obtain an acceleration value of vibration generated when the mobile terminal sounds, where the acceleration value is collected by an acceleration sensor of the mobile terminal.
And the processing sub-module 312 is configured to use the acceleration value as a first measurement parameter of the vibration strength generated when the mobile terminal sounds.
Wherein the attenuation module 320 comprises:
the second obtaining submodule 321 is configured to obtain a second measurement parameter of the loudness of the sound when the mobile terminal makes a sound.
And the attenuation submodule 322 is configured to, when the first measurement parameter is greater than a preset threshold, attenuate a portion, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal generates sound until a ratio between a variation of the first measurement parameter and a variation of the second measurement parameter is less than a preset ratio threshold.
Wherein the second obtaining sub-module 321 includes:
the first obtaining unit 3211 is configured to obtain audio data collected by a microphone of the mobile terminal.
The processing unit 3212 is configured to acquire an audio signal generated when the mobile terminal generates a sound in the audio data.
A second obtaining unit 3213, configured to obtain an audio signal strength of the audio signal as the second measurement parameter.
Wherein, the processing unit 3212 includes:
a detecting subunit 32121 is configured to detect whether the mobile terminal is in a noise scene.
The extracting subunit 32122 is configured to, if the mobile terminal is in a noise scene, extract an audio signal generated when the mobile terminal sounds in the audio data.
When the mobile terminal is in a noise scene, the audio data comprises an audio signal generated when the mobile terminal produces sound and a noise signal in the environment where the mobile terminal is located.
Wherein the attenuation submodule 322 comprises:
the attenuating unit 3221 is configured to, when the first measurement parameter is greater than a preset threshold, gradually increase the attenuation intensity of a portion, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal is sounded according to a predetermined attenuation intensity step length until a ratio between a variation of the first measurement parameter and a variation of the second measurement parameter is smaller than a preset proportional threshold.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the above solution, the mobile terminal 300 obtains the measurement parameter of the vibration intensity of the vibration generated when the mobile terminal generates the sound, that is, the vibration intensity degree of the vibration generated when the mobile terminal generates the sound is sensed by the user side. And when the measurement parameter is larger than a preset threshold value, namely the vibration sense intensity indicating that the user side feels that the mobile terminal generates vibration during sounding reaches a preset state, filtering the part in the preset low-frequency range in the audio signal to attenuate the part in the preset low-frequency range in the audio signal, so that the vibration intensity generated by the mobile terminal is reduced, and the vibration sense of the user side is further reduced.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to, when the mobile terminal is in a sounding mode, obtain a first measurement parameter of a vibration strength generated when the mobile terminal sounds; and when the first measurement parameter is larger than a preset threshold value, performing attenuation processing on a part, which is in a preset low-frequency range, in the audio signal generated when the mobile terminal generates sound.
In the above solution, the mobile terminal 500 obtains the first measurement parameter of the vibration intensity of the vibration generated when the mobile terminal generates the sound, that is, the vibration intensity degree of the vibration generated when the mobile terminal generates the sound is sensed by the user side. And when the first measurement parameter is larger than a preset threshold value, namely the vibration sensation strength indicating that the user side feels that the mobile terminal generates vibration during sounding reaches a preset state, filtering the part in the preset low-frequency range in the audio signal generated during sounding of the mobile terminal to attenuate the part in the preset low-frequency range in the audio signal, so that the vibration strength generated by the mobile terminal is reduced, and the vibration sensation of the user side is further reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the above method for optimizing vibration, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the vibration optimization method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A method for vibration optimization, applied to a mobile terminal, is characterized in that the method comprises:
when the mobile terminal is in a sound production mode, obtaining a first measurement parameter of vibration strength generated when the mobile terminal produces sound;
when the first measurement parameter is larger than a preset threshold value, performing attenuation processing on a part, which is in a preset low-frequency range, in an audio signal generated when the mobile terminal generates sound;
when the first measurement parameter is larger than a preset threshold value, the step of performing attenuation processing on a part, within a preset low-frequency range, of an audio signal generated when the mobile terminal generates sound comprises the following steps:
acquiring a second measurement parameter of sound loudness when the mobile terminal sounds;
when the first measurement parameter is larger than a preset threshold value, performing attenuation processing on a part, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal generates sound until the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is smaller than a preset ratio threshold value;
when the first measurement parameter is greater than a preset threshold, performing attenuation processing on a part, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal generates sound until a ratio between a variation of the first measurement parameter and a variation of the second measurement parameter is less than a preset ratio threshold, including:
and when the first measurement parameter is larger than a preset threshold, gradually increasing the attenuation intensity of a part in a preset low-frequency range in an audio signal generated when the mobile terminal is sounded according to a preset attenuation intensity step length until the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is smaller than a preset proportional threshold.
2. The method for vibration optimization according to claim 1, wherein the step of obtaining the first measurement parameter of the intensity of the vibration generated when the mobile terminal sounds comprises:
acquiring an acceleration value of vibration generated when the mobile terminal sounds, which is acquired by an acceleration sensor of the mobile terminal;
and taking the acceleration value as a first measurement parameter of the vibration strength generated when the mobile terminal produces sound.
3. The method for vibration optimization according to claim 1, wherein the step of obtaining a second measurement parameter of loudness of sound when the mobile terminal is sounding comprises:
acquiring audio data collected by a microphone of the mobile terminal;
determining an audio signal generated when the mobile terminal sounds in the audio data;
and acquiring the audio signal intensity of the audio signal as the second measurement parameter.
4. The method of claim 3, wherein the step of determining the audio signal generated by the mobile terminal during the utterance in the audio data comprises:
detecting whether the mobile terminal is in a noise scene;
if the mobile terminal is in a noise scene, extracting an audio signal generated when the mobile terminal sounds in the audio data;
when the mobile terminal is in a noise scene, the audio data comprises an audio signal generated when the mobile terminal produces sound and a noise signal in the environment where the mobile terminal is located.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a first measurement parameter of vibration strength generated when the mobile terminal sounds when the mobile terminal is in a sound production mode;
the attenuation module is used for attenuating the part, which is in a preset low-frequency range, of the audio signal generated when the mobile terminal produces sound when the first measurement parameter is larger than a preset threshold value;
the attenuation module includes:
the second obtaining submodule is used for obtaining a second measurement parameter of sound loudness when the mobile terminal sounds;
the attenuation submodule is used for attenuating a part, which is in a preset low-frequency range, of an audio signal generated when the mobile terminal produces sound when the first measurement parameter is larger than a preset threshold value until the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is smaller than a preset proportional threshold value;
the attenuation submodule includes:
and the attenuation unit is used for gradually enhancing the attenuation intensity of a part in a preset low-frequency range in the audio signal generated when the mobile terminal is sounded according to a preset attenuation intensity step length when the first measurement parameter is larger than a preset threshold value until the ratio of the variation of the first measurement parameter to the variation of the second measurement parameter is smaller than a preset proportional threshold value.
6. The mobile terminal of claim 5, wherein the obtaining module comprises:
the first acquisition submodule is used for acquiring an acceleration value of vibration generated when the mobile terminal sounds, which is acquired by an acceleration sensor of the mobile terminal;
and the processing submodule is used for taking the acceleration value as a first measurement parameter of the vibration strength generated when the mobile terminal produces sound.
7. The mobile terminal of claim 5, wherein the second obtaining sub-module comprises:
the first acquisition unit is used for acquiring audio data acquired by a microphone of the mobile terminal;
the processing unit is used for acquiring an audio signal generated when the mobile terminal sounds in the audio data;
a second obtaining unit, configured to obtain an audio signal intensity of the audio signal as the second measurement parameter.
8. The mobile terminal of claim 7, wherein the processing unit comprises:
the detection subunit is used for detecting whether the mobile terminal is in a noise scene;
the extraction subunit is used for extracting an audio signal generated when the mobile terminal sounds in the audio data if the mobile terminal is in a noise scene;
when the mobile terminal is in a noise scene, the audio data comprises an audio signal generated when the mobile terminal produces sound and a noise signal in the environment where the mobile terminal is located.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method of vibration optimization according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of vibration optimization according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711044796.0A CN107749306B (en) | 2017-10-31 | 2017-10-31 | Vibration optimization method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711044796.0A CN107749306B (en) | 2017-10-31 | 2017-10-31 | Vibration optimization method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107749306A CN107749306A (en) | 2018-03-02 |
CN107749306B true CN107749306B (en) | 2020-01-21 |
Family
ID=61252785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711044796.0A Active CN107749306B (en) | 2017-10-31 | 2017-10-31 | Vibration optimization method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107749306B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108646971B (en) * | 2018-05-17 | 2020-07-24 | Oppo广东移动通信有限公司 | Screen sounding control method and device and electronic device |
CN108683761B (en) * | 2018-05-17 | 2020-01-14 | Oppo广东移动通信有限公司 | Sound production control method and device, electronic device and computer readable medium |
CN109003622B (en) * | 2018-09-11 | 2021-06-04 | 广州小鹏汽车科技有限公司 | Noise reduction processing method and device, radio and vehicle |
CN109951602B (en) * | 2019-02-26 | 2020-10-27 | 维沃移动通信有限公司 | Vibration control method and mobile terminal |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09289699A (en) * | 1996-04-24 | 1997-11-04 | Sony Corp | Speaker device |
JP2001275184A (en) * | 2000-03-24 | 2001-10-05 | Mitsubishi Electric Engineering Co Ltd | Mfb speaker system |
FR2828327B1 (en) * | 2000-10-03 | 2003-12-12 | France Telecom | ECHO REDUCTION METHOD AND DEVICE |
US7372966B2 (en) * | 2004-03-19 | 2008-05-13 | Nokia Corporation | System for limiting loudspeaker displacement |
US9767817B2 (en) * | 2008-05-14 | 2017-09-19 | Sony Corporation | Adaptively filtering a microphone signal responsive to vibration sensed in a user's face while speaking |
JP5321263B2 (en) * | 2009-06-12 | 2013-10-23 | ソニー株式会社 | Signal processing apparatus and signal processing method |
JP2012186676A (en) * | 2011-03-07 | 2012-09-27 | Sony Corp | Signal processing device and signal processing method |
JP2012186675A (en) * | 2011-03-07 | 2012-09-27 | Sony Corp | Signal processing device and signal processing method |
CN102395077B (en) * | 2011-11-23 | 2014-05-07 | 河南科技大学 | Anti-interference earphone |
-
2017
- 2017-10-31 CN CN201711044796.0A patent/CN107749306B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107749306A (en) | 2018-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107749306B (en) | Vibration optimization method and mobile terminal | |
CN108289270B (en) | Loudspeaker and mobile terminal | |
CN111385714B (en) | Method for determining voice coil temperature of loudspeaker, electronic device and storage medium | |
CN108196815B (en) | Method for adjusting call sound and mobile terminal | |
CN108681413B (en) | Control method of display module and mobile terminal | |
CN110012143B (en) | Telephone receiver control method and terminal | |
CN109788402B (en) | Audio signal processing method and audio signal processing device | |
CN107785027B (en) | Audio processing method and electronic equipment | |
CN108848267B (en) | Audio playing method and mobile terminal | |
CN107786751A (en) | A kind of method for broadcasting multimedia file and mobile terminal | |
CN111182118B (en) | Volume adjusting method and electronic equipment | |
CN111093137B (en) | Volume control method, volume control equipment and computer readable storage medium | |
CN111124346B (en) | Electronic equipment and volume adjusting method thereof | |
CN109451146B (en) | Vibration processing method and terminal | |
CN110995921A (en) | Call processing method, electronic device and computer readable storage medium | |
CN108540642B (en) | Mobile terminal and operation method thereof | |
CN110677770B (en) | Sound production control method, electronic device, and medium | |
CN109451154B (en) | Method for setting multimedia file and terminal equipment | |
CN110839108A (en) | Noise reduction method and electronic equipment | |
CN108430025B (en) | Detection method and mobile terminal | |
CN108418961B (en) | Audio playing method and mobile terminal | |
CN107743174B (en) | Clipping judgment method of sound signal and mobile terminal | |
CN110764650A (en) | Key trigger detection method and electronic equipment | |
CN111176606B (en) | Electronic equipment and volume adjusting method thereof | |
CN110012386B (en) | Volume adjusting method of terminal and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |