[go: up one dir, main page]

CN107749306B - A vibration optimization method and mobile terminal - Google Patents

A vibration optimization method and mobile terminal Download PDF

Info

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
Application number
CN201711044796.0A
Other languages
Chinese (zh)
Other versions
CN107749306A (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 CN201711044796.0A priority Critical patent/CN107749306B/en
Publication of CN107749306A publication Critical patent/CN107749306A/en
Application granted granted Critical
Publication of CN107749306B publication Critical patent/CN107749306B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech 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/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • G10L21/034Automatic adjustment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6008Substation equipment, e.g. for use by subscribers including speech amplifiers in the transmitter circuit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6016Substation 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

一种振动优化的方法及移动终端A vibration optimization method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种振动优化的方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to a vibration optimization method and a mobile terminal.

背景技术Background technique

目前移动终端是通过扬声器、受话器,或者通过压电陶瓷振动或者其它振动器的等发出声音的。一般的扬声器包含支架、磁钢、线圈、振膜。其中磁钢和支架固定,线圈在磁钢组成的磁间隙中,振膜固定于线圈上。其中通电线圈在磁场中产生洛伦兹力,推动线圈跟随电流信号振动,线圈带动振膜振动,而发出声音。移动终端采用振动器发声,是通过反作用力推动磁铁震动,磁铁通过弹片推动外壳振动,把振动传递到机壳、屏幕以发出声音的。但是,现有技术中,由于移动终端的防水性能、气密性能等的增强,导致移动终端在产生音频信号,如:播放音乐或者通话时,扬声器或者受话器的气流冲击到电池盖,造成电池盖振动。再而通过振动器发声的移动终端,振动器需要推动整机振动进行发声,导致整机振动明显,影响用户的体验效果。At present, mobile terminals emit sound through speakers, receivers, or through piezoelectric ceramic vibrations or other vibrators. General speakers include brackets, magnets, coils, and diaphragms. The magnetic steel and the bracket are fixed, the coil is in the magnetic gap composed of the magnetic steel, and the diaphragm is fixed on the coil. The energized coil generates a Lorentz force in the magnetic field, which pushes the coil to vibrate with the current signal, and the coil drives the diaphragm to vibrate to produce sound. The mobile terminal uses a vibrator to make sound, which pushes the magnet to vibrate through the reaction force, and the magnet pushes the shell to vibrate through the shrapnel, and transmits the vibration to the casing and the screen to make sound. However, in the prior art, due to the enhancement of the waterproof performance and air tightness of the mobile terminal, when the mobile terminal generates an audio signal, for example, when playing music or making a call, the airflow from the speaker or the receiver impacts the battery cover, causing the battery cover to be damaged. vibration. Furthermore, in a mobile terminal that emits sound through a vibrator, the vibrator needs to push the whole machine to vibrate to make sound, which causes the whole machine to vibrate significantly and affects the user's experience effect.

发明内容SUMMARY OF THE INVENTION

本发明提供了一种振动优化的方法、移动终端及计算机可读存储介质,以解决现有技术中移动终端发声时所产生的振动过强的问题。The present invention provides a vibration optimization method, a mobile terminal and a computer-readable storage medium, so as to solve the problem of excessive vibration generated when the mobile terminal emits sound in the prior art.

第一方面,本发明实施例提供了一种振动优化的方法,应用于移动终端,所述方法包括:In a first aspect, an embodiment of the present invention provides a vibration optimization method, which is applied to a mobile terminal, and the method includes:

在所述移动终端处于发声模式时,获取所述移动终端发声时所产生的振动强弱的第一测量参数;When the mobile terminal is in a sounding mode, acquiring a first measurement parameter of the intensity of vibration generated when the mobile terminal is sounding;

在所述第一测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。When the first measurement parameter is greater than a preset threshold, attenuate the part of the audio signal generated when the mobile terminal emits sound within a preset low frequency range.

第二方面,本发明实施例还提供了一种移动终端,所述移动终端包括:In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:

获取模块,用于在所述移动终端处于发声模式时,获取所述移动终端发声时所产生的振动强弱的第一测量参数;an acquisition module, configured to acquire, when the mobile terminal is in a sounding mode, a first measurement parameter of the vibration intensity generated by the mobile terminal when sounding;

衰减模块,用于在所述第一测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。An attenuation module, configured to perform attenuation processing on a part of the audio signal generated when the mobile terminal emits sound within a preset low frequency range when the first measurement parameter is greater than a preset threshold.

第三方面,本发明实施例还提供了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的振动优化的方法的步骤。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 running on the processor, the computer program being executed by the processor The steps of the method for implementing vibration optimization as described above when executed.

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的振动优化的方法的步骤。In a fourth aspect, an 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 above-mentioned vibration optimization method is implemented A step of.

在本发明实施例中,通过在移动终端发声时,获取移动终端发声产生振动时的振动强弱的第一测量参数,即表示用户侧感受到移动终端在发声时产生振动的振感强弱程度。并在第一测量参数大于预设阈值,即表示用户侧感受到移动终端在发声时产生振动的振感强度达到预设状态时,对移动终端发声时生成的音频信号中处于预设低频范围内的部分进行滤波处理,以衰减音频信号中处于预设低频范围内的部分,从而降低移动终端产生振动的强度,进而降低用户侧的振感。In this embodiment of the present invention, when the mobile terminal emits sound, the first measurement parameter of the vibration intensity when the mobile terminal emits sound is obtained, that is, the user side feels the vibration intensity of the mobile terminal when the sound is emitted. . And when the first measurement parameter is greater than the preset threshold, that is, when the user side feels that the vibration intensity of the vibration generated by the mobile terminal when sounding reaches the preset state, the audio signal generated when the mobile terminal is sounding is within the preset low frequency range. The part of the audio signal is filtered to attenuate the part of the audio signal in the preset low frequency range, so as to reduce the intensity of vibration generated by the mobile terminal, thereby reducing the vibration sense on the user side.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1表示本发明实施例的振动优化的方法的流程图之一;FIG. 1 shows one of the flow charts of the vibration optimization method according to the embodiment of the present invention;

图2表示本发明实施例的振动优化的方法的流程图之二;FIG. 2 shows the second flow chart of the vibration optimization method according to the embodiment of the present invention;

图3表示本发明实施例的移动终端的框图之一;FIG. 3 shows one of the block diagrams of the mobile terminal according to the embodiment of the present invention;

图4表示本发明实施例的移动终端的框图之二;FIG. 4 shows the second block diagram of the mobile terminal according to the embodiment of the present invention;

图5表示本发明实施例的移动终端的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

参见图1,本发明实施例提供了一种振动优化的方法,应用于移动终端,其中所述方法包括:Referring to FIG. 1, an embodiment of the present invention provides a vibration optimization method, which is applied to a mobile terminal, wherein the method includes:

步骤11,在所述移动终端处于发声模式时,获取所述移动终端发声时所产生的振动强弱的第一测量参数。Step 11: When the mobile terminal is in a sounding mode, acquire a first measurement parameter of the intensity of vibration generated by the mobile terminal when sounding.

具体的,移动终端发声时,移动终端所产生的振动强弱的可以用位移、速度和加速度等参数表征。优选地,所述测量参数为加速度。Specifically, when the mobile terminal emits sound, the strength of the vibration generated by the mobile terminal can be characterized by parameters such as displacement, velocity and acceleration. Preferably, the measurement parameter is acceleration.

作为一种实现方式,获取所述移动终端发声时所产生的振动强弱的第一测量参数的步骤,包括:获取所述移动终端的加速度传感器采集的所述移动终端发声时所产生振动的加速度值;将所述加速度值作为所述移动终端发声时产生的振动强弱的第一测量参数。As an implementation manner, the step of acquiring the first measurement parameter of the vibration intensity generated when the mobile terminal emits sound includes: acquiring the acceleration of the vibration generated by the mobile terminal when the mobile terminal emits sound collected by an acceleration sensor of the mobile terminal value; the acceleration value is used as the first measurement parameter of the vibration intensity generated when the mobile terminal emits sound.

该实施例中,以移动终端的加速度传感器作为振动传感器,采集移动终端产生振动时的振动时的加速度值(振动速度的变化快慢)表征移动终端所产生的振动强弱,即表示用户侧感受到移动终端在发声产生振动时的振感强弱程度。In this embodiment, the acceleration sensor of the mobile terminal is used as the vibration sensor, and the acceleration value (the change speed of the vibration speed) when the mobile terminal vibrates is collected to represent the strength of the vibration generated by the mobile terminal, which means that the user side feels the vibration. The degree of vibration of the mobile terminal when the sound is generated to vibrate.

步骤12,在所述第一测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。Step 12: When the first measurement parameter is greater than a preset threshold, attenuate a part of the audio signal generated when the mobile terminal emits sound within a preset low frequency range.

该实施例中,移动终端预设有多个不同衰减强度的滤波器,用于不同程度的对移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。优选的,处于预设低频范围内的部分可以设置为低于800Hz。在第一测量参数大于预设阈值,即表示用户侧感受到移动终端在发声时产生振动的振感强度达到预设状态时,通过预设衰减强度的滤波器对音频信号中处于预设低频范围内的部分进行滤波处理,以衰减音频信号中处于预设低频范围内的部分,从而降低移动终端产生振动的强度,进而降低用户侧的振感。In this embodiment, the mobile terminal is preset with a plurality of filters with different attenuation intensities, which are used to attenuate the part within the preset low frequency range of the audio signal generated when the mobile terminal emits sound to different degrees. Preferably, the part within the preset low frequency range can be set to be lower than 800 Hz. When the first measurement parameter is greater than the preset threshold, which means that the user side feels that the vibration intensity of the vibration generated by the mobile terminal when the sound is produced reaches the preset state, the filter with the preset attenuation intensity is used to determine that the audio signal is in the preset low frequency range. The part within the audio signal is filtered to attenuate the part of the audio signal within the preset low frequency range, thereby reducing the intensity of the vibration generated by the mobile terminal, thereby reducing the vibration sensation on the user side.

参见图2,本发明的另一实施例的振动优化的方法的步骤,包括:Referring to FIG. 2 , the steps of the vibration optimization method according to another embodiment of the present invention include:

步骤21,在所述移动终端处于发声模式时,获取所述移动终端发声时所产生的振动强弱的第一测量参数。Step 21: When the mobile terminal is in a sounding mode, acquire a first measurement parameter of the intensity of vibration generated by the mobile terminal when sounding.

具体的,移动终端发声时,移动终端所产生的振动强弱的可以用位移、速度和加速度等参数表征。优选地,所述测量参数为加速度。Specifically, when the mobile terminal emits sound, the strength of the vibration generated by the mobile terminal can be characterized by parameters such as displacement, velocity and acceleration. Preferably, the measurement parameter is acceleration.

该实施例中,以移动终端的加速度传感器作为振动传感器,采集移动终端产生振动时的振动时的加速度值(振动速度的变化快慢)表征移动终端所产生的振动强弱,即表示用户侧感受到移动终端在发声产生振动时的振感强弱程度。In this embodiment, the acceleration sensor of the mobile terminal is used as the vibration sensor, and the acceleration value (the change speed of the vibration speed) when the mobile terminal vibrates is collected to represent the strength of the vibration generated by the mobile terminal, which means that the user side feels the vibration. The degree of vibration of the mobile terminal when the sound is generated to vibrate.

步骤22,获取所述移动终端发声时声音响度的第二测量参数。Step 22: Acquire a second measurement parameter of the sound loudness when the mobile terminal emits sound.

具体的,获取所述移动终端发声时声音响度的第二测量参数的步骤,包括:Specifically, the step of acquiring the second measurement parameter of the sound loudness when the mobile terminal emits sound includes:

获取所述移动终端的麦克风采集的音频数据;确定所述音频数据中所述移动终端发声时生成的音频信号;获取所述音频信号的音频信号强度,作为所述第二测量参数。Acquiring audio data collected by the microphone of the mobile terminal; determining an audio signal in the audio data generated when the mobile terminal emits sound; acquiring the audio signal strength of the audio signal as the second measurement parameter.

其中,获取所述音频信号的振动幅值作为音频信号强度,表征移动终端发声时的声音响度(单位:分贝)。Wherein, the vibration amplitude of the audio signal is obtained as the audio signal strength, which represents the sound loudness (unit: decibel) when the mobile terminal emits sound.

该实施例中,在根据音频数据确定所述移动终端发声时生成的音频信号时,检测所述移动终端是否处于噪声场景;若移动终端处于噪声场景,则提取所述音频数据中所述移动终端发声时生成的音频信号。In this embodiment, when determining the audio signal generated when the mobile terminal emits sound according to the audio data, it is detected whether the mobile terminal is in a noise scene; if the mobile terminal is in a noise scene, the mobile terminal in the audio data is extracted. Audio signal generated when sound is emitted.

具体的,在所述移动终端处于噪声场景时,所述音频数据包括所述移动终端发声时生成的音频信号和所述移动终端所处环境中的噪音信号;其中所述噪音信号为所述音频数据中除移动终端发声时生成的音频信号之外的全部音频信号。检测所述音频数据中是否包含有噪音信号;在所述音频数据中包含有所述噪音信号时,对所述音频数据进行解析处理,提取所述音频数据中移动终端发声时生成的音频信号。Specifically, when the mobile terminal is in a noise scene, the audio data includes an audio signal generated when the mobile terminal emits sound and a noise signal in the environment where the mobile terminal is located; wherein the noise signal is the audio All audio signals in the data except the audio signals generated when the mobile terminal sounds. Detecting whether the audio data contains a noise signal; when the audio data contains the noise signal, performing analysis processing on the audio data, and extracting the audio signal generated by the mobile terminal in the audio data.

此外,若移动终端处于无噪声环境,则通过移动终端的麦克风采集到的音频数据中只包括有所述移动终端发声时生成的音频信号。这样,可以直接通过麦克风作为声音传感器,并将麦克风采集得到的音频信号作为移动终端所产生的音频信号。In addition, if the mobile terminal is in a noise-free environment, the audio data collected through the microphone of the mobile terminal only includes the audio signal generated when the mobile terminal makes a sound. 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.

步骤23,在所述测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理,直至所述第一测量参数的变化量与所述第二测量参数的变化量之间的比值小于预设比例阈值。Step 23: When the measurement parameter is greater than a preset threshold, attenuate the part of the audio signal that is generated when the mobile terminal emits sound within the preset low frequency range, until the amount of change of the first measurement parameter is the same as that of the first measurement parameter. The ratio between the changes of the second measurement parameter is smaller than the preset ratio threshold.

具体的,通过等响度曲线可知,人体对响度(音频信号强度)的感知在中高频部分比较敏感,在低频部分相对较弱。通过等振动强度曲线可知,人体对振动强度的感知在低频部分比较敏感,在高频部分相对较弱。Specifically, it can be known from the equal loudness curve that the human body's perception of loudness (audio signal strength) is relatively sensitive in the middle and high frequency parts, and relatively weak in the low frequency part. It can be seen from the equal vibration intensity curve that the human body's perception of vibration intensity is more sensitive in the low frequency part and relatively weak in the high frequency part.

这样,在移动终端所产生振动强弱的第一测量参数大于预设阈值,即表示用户侧感受到移动终端在发声时产生振动的振感强度达到预设状态时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理,直至所述第一测量参数的变化量与所述第二测量参数的变化量之间的比值小于预设比例阈值,以保证通过衰减移动终端发声时生成的音频信号中处于预设低频范围内的部分,对移动终端发声时的声音响度影响较小的情况下,降低移动终端的振动强度,进而降低用户侧的振感,从而实现移动终端所产生振动的最优化处理。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, it means that when the user side feels that the intensity of the vibration generated by the mobile terminal when the mobile terminal emits sound reaches the preset state, when the mobile terminal emits sound The part of the generated audio signal in the preset low frequency range is attenuated until the ratio between the variation of the first measurement parameter and the variation of the second measurement parameter is less than the preset ratio threshold to ensure that the Attenuate the part of the audio signal generated by the mobile terminal that is within the preset low frequency range, and reduce the vibration intensity of the mobile terminal when the impact on the sound loudness of the mobile terminal is small, thereby reducing the vibration on the user side. The optimal processing of vibration generated by the mobile terminal is realized.

作为一种实现方式,在所述第一测量参数大于预设阈值时,按照预定的衰减强度步长,逐步增强对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分的衰减强度,直至所述第一测量参数的变化量与所述第二测量参数的变化量之间的比值小于预设比例阈值。As an implementation manner, when the first measurement parameter is greater than a preset threshold, step by step according to a predetermined attenuation intensity step, the part of the audio signal that is generated when the mobile terminal is uttered within a preset low frequency range is gradually enhanced. The intensity is attenuated until the ratio between the variation of the first measurement parameter and the variation of the second measurement parameter is less than a preset ratio threshold.

具体的,移动终端预设有不同衰减强度的滤波器,其中相邻衰减强度的滤波器之间的衰减强度差相同。这样,在移动终端所产生振动强弱的第一测量参数大于预设阈值时(此时记录第一测量参数为A1和第二测量参数为B1),采用预设的衰减强度最小的第一滤波器对移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。获取衰减处理之后,移动终端发声时所产生的振动强弱的第一测量参数为A2以及移动终端发声时声音响度的第二测量参数为B2。Specifically, the mobile terminal is preset with filters with different attenuation strengths, wherein the attenuation strength difference between adjacent filters with attenuation strengths is the same. In this way, when the first measurement parameter of the vibration intensity generated by the mobile terminal is greater than the preset threshold (the first measurement parameter is recorded as A1 and the second measurement parameter as B1), the preset first filter with the smallest attenuation intensity is used. The device attenuates the part in the preset low frequency range of the audio signal generated when the mobile terminal emits sound. After the attenuation process is obtained, the first measurement parameter of the vibration intensity when the mobile terminal emits sound is A2, and the second measurement parameter of the sound loudness when the mobile terminal emits sound is B2.

检测第一测量参数的变化量与第二测量参数的变化量之间的比值,是否小于预设比例阈值,可以通过以下公式(1)表示:Detecting whether the ratio between the variation of the first measurement parameter and the variation of the second measurement parameter is less than the preset ratio threshold can be represented by the following formula (1):

Figure BDA0001452000400000051
Figure BDA0001452000400000051

其中,P表示预设比例阈值。Among them, P represents the preset ratio threshold.

若满足公式(1),则表示对移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减后,在保证对音频信号强度(移动终端发声时的声音响度)的抑制程度较小的情况下,对移动终端所产生的振动强度达到最优化抑制。If the formula (1) is satisfied, it means that after attenuating the part of the audio signal generated by the mobile terminal that is within the preset low frequency range, the degree of suppression of the audio signal strength (sound loudness when the mobile terminal is sounding) is guaranteed to be relatively low. In a small case, the vibration intensity generated by the mobile terminal can be optimally suppressed.

若不满足公式(1),则按照预定的衰减强度步长依次递增的顺序,以大于第一滤波器对应的衰减强度的第二滤波器对所述音频信号处于预设低频范围内的部分进行滤波处理,直至满足公式(1)的条件,从而保证对音频信号强度的抑制程度较小的情况下,对移动终端所产生的振动强度达到最优化抑制。If the formula (1) is not satisfied, the part of the audio signal in the preset low frequency range is subjected to a second filter whose attenuation strength is greater than the attenuation strength corresponding to the first filter in the order of increasing the predetermined attenuation strength step size. The filtering process is performed until the condition of formula (1) is satisfied, so as to ensure that the vibration intensity generated by the mobile terminal can be 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, gradually increase the low frequency of the part within the preset low frequency range in the audio signal generated when the mobile terminal emits sound according to a predetermined frequency step range until the ratio between the variation of the first measurement parameter and the variation of the second measurement parameter is less than a preset ratio threshold.

具体的,在移动终端所产生振动强弱的第一测量参数大于预设阈值时(此时记录第一测量参数为A1和第二测量参数为B1),采用预定衰减强度的滤波器对移动终端发声时生成的音频信号中处于预设低频范围内的部分(如:低于800Hz)进行衰减处理。获取衰减处理之后,移动终端发声时所产生的振动强弱的第一测量参数为A2以及移动终端发声时声音响度的第二测量参数为B2。Specifically, when the first measurement parameter of the vibration intensity generated by the mobile terminal is greater than the preset threshold (the first measurement parameter is recorded as A1 and the second measurement parameter is B1), a filter with a predetermined attenuation intensity is used to measure the mobile terminal The part in the preset low frequency range (eg lower than 800Hz) of the audio signal generated when the sound is produced is attenuated. After the attenuation process is obtained, the first measurement parameter of the vibration intensity when the mobile terminal emits sound is A2, and the second measurement parameter of the sound loudness when the mobile terminal emits sound is B2.

若检测到第一测量参数的变化量与第二测量参数的变化量之间的比值,满足公式(1),则表示对移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减后,在保证对音频信号强度的抑制程度较小的情况下,对移动终端所产生的振动强度达到最优化抑制。If the ratio between the variation of the first measurement parameter and the variation of the second measurement parameter is detected and satisfies the formula (1), it means that the audio signal generated by the mobile terminal when the sound is generated is within the preset low frequency range. After attenuation, the vibration intensity generated by the mobile terminal can be optimally suppressed under the condition that the suppression degree of the audio signal intensity is ensured to be small.

若检测到第一测量参数的变化量与第二测量参数的变化量之间的比值,不满足公式(1),则按照预定的频率步长,增加所述音频信号中处于预设低频范围内的部分的低频范围,并采用预定衰减强度的滤波器对移动终端发声时生成的音频信号中调整步长后的处于预设低频范围内的部分(如:低于820Hz)进行衰减处理,直至满足公式(1)的条件,从而保证对音频信号强度的抑制程度较小的情况下,对移动终端所产生的振动强度达到最优化抑制。If it is detected that the ratio between the change amount of the first measurement parameter and the change amount of the second measurement parameter does not satisfy the formula (1), increase the frequency within the preset low frequency range in the audio signal according to the predetermined frequency step. The low frequency range of the part of the frequency range, and use a filter with a predetermined attenuation strength to attenuate the part in the preset low frequency range (for example: lower than 820Hz) after adjusting the step size in the audio signal generated when the mobile terminal emits sound, until it satisfies Condition of formula (1), so as to ensure that the vibration intensity generated by the mobile terminal can be optimally suppressed under the condition that the suppression degree of the audio signal intensity is small.

需要说明的是,上述实施例中的所述音频信号中处于预设低频范围内的部分的设置范围以及频率步长的具体数值仅为示例性说明,本发明不以此为限。It should be noted that, the setting range and the specific numerical value of the frequency step of the audio signal in the audio signal in the preset low frequency range in the above-mentioned embodiments are only exemplary, and the present invention is not limited thereto.

参见图3和图4,本发明实施例提供了一种移动终端,所述移动终端300包括:Referring to FIG. 3 and FIG. 4 , an embodiment of the present invention provides a mobile terminal, and the mobile terminal 300 includes:

获取模块310,用于在所述移动终端处于发声模式时,获取所述移动终端发声时所产生的振动强弱的第一测量参数。The obtaining module 310 is configured to obtain, when the mobile terminal is in a sounding mode, a first measurement parameter of the intensity of vibration generated by the mobile terminal when sounding.

衰减模块320,用于在所述第一测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。The attenuation module 320 is configured to, when the first measurement parameter is greater than a preset threshold, perform attenuation processing on a part of the audio signal generated when the mobile terminal emits sound within a preset low frequency range.

其中,所述获取模块310包括:Wherein, the obtaining module 310 includes:

第一获取子模块311,用于获取所述移动终端的加速度传感器采集的所述移动终端发声时所产生振动的加速度值。The first acquisition sub-module 311 is configured to acquire the acceleration value of the vibration generated by the mobile terminal when the mobile terminal emits sound collected by the acceleration sensor of the mobile terminal.

处理子模块312,用于将所述加速度值作为所述移动终端发声时产生的振动强弱的第一测量参数。The processing sub-module 312 is configured to use the acceleration value as a first measurement parameter of the vibration intensity generated when the mobile terminal emits sound.

其中,所述衰减模块320包括:Wherein, the attenuation module 320 includes:

第二获取子模块321,用于获取所述移动终端发声时声音响度的第二测量参数。The second obtaining sub-module 321 is configured to obtain the second measurement parameter of the sound loudness when the mobile terminal emits sound.

衰减子模块322,用于在所述第一测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理,直至所述第一测量参数的变化量与所述第二测量参数的变化量之间的比值小于预设比例阈值。Attenuation sub-module 322, configured to attenuate the part of the audio signal generated when the mobile terminal emits sound that is within the preset low frequency range when the first measurement parameter is greater than a preset threshold, until the first measurement The ratio between the variation of the parameter and the variation of the second measurement parameter is smaller than the preset ratio threshold.

其中,所述第二获取子模块321包括:Wherein, the second acquisition sub-module 321 includes:

第一获取单元3211,用于获取所述移动终端的麦克风采集的音频数据。The first acquiring unit 3211 is configured to acquire audio data collected by the microphone of the mobile terminal.

处理单元3212,用于获取所述音频数据中所述移动终端发声时生成的音频信号。The processing unit 3212 is configured to acquire the audio signal in the audio data generated when the mobile terminal emits sound.

第二获取单元3213,用于获取所述音频信号的音频信号强度,作为所述第二测量参数。The second acquiring unit 3213 is configured to acquire the audio signal strength of the audio signal as the second measurement parameter.

其中,所述处理单元3212包括:Wherein, the processing unit 3212 includes:

检测子单元32121,用于检测移动终端是否处于噪声场景。The detection subunit 32121 is used to detect whether the mobile terminal is in a noise scene.

提取子单元32122,用于若移动终端处于噪声场景,则提取所述音频数据中所述移动终端发声时生成的音频信号。The extraction subunit 32122 is configured to extract, if the mobile terminal is in a noise scene, an audio signal generated when the mobile terminal makes a sound in the audio data.

其中,在所述移动终端处于噪声场景时,所述音频数据包括所述移动终端发声时生成的音频信号和所述移动终端所处环境中的噪音信号。Wherein, when the mobile terminal is in a noise scene, the audio data includes an audio signal generated when the mobile terminal makes a sound and a noise signal in the environment where the mobile terminal is located.

其中,所述衰减子模块322包括:Wherein, the attenuation sub-module 322 includes:

衰减单元3221,用于在所述第一测量参数大于预设阈值时,按照预定的衰减强度步长,逐步增强对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分的衰减强度,直至所述第一测量参数的变化量与所述第二测量参数的变化量之间的比值小于预设比例阈值。The attenuation unit 3221 is configured to gradually enhance the part of the audio signal that is within the preset low frequency range in the audio signal generated when the mobile terminal is uttered according to a predetermined attenuation intensity step when the first measurement parameter is greater than the preset threshold. The intensity is attenuated until the ratio between the variation of the first measurement parameter and the variation of the second measurement parameter is less than a preset ratio threshold.

本发明实施例提供的移动终端能够实现图1至图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。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 to avoid repetition, details are not described here.

上述方案中的移动终端300,通过在移动终端发声时,获取移动终端发声时产生振动的振动强弱的测量参数,即表示用户侧感受到移动终端在发声时产生振动的振感强弱程度。并在测量参数大于预设阈值,即表示用户侧感受到移动终端在发声时产生振动的振感强度达到预设状态时,对音频信号中处于预设低频范围内的部分进行滤波处理,以衰减音频信号中处于预设低频范围内的部分,从而降低移动终端产生振动的强度,进而降低用户侧的振感。The mobile terminal 300 in the above solution obtains the measurement parameter of the vibration intensity of the mobile terminal when the mobile terminal emits sound, that is, the user side feels the vibration intensity of the mobile terminal when the sound is generated. And when the measurement parameter is greater than the preset threshold, that is, when the user side feels that the vibration intensity of the vibration generated by the mobile terminal when sounding reaches the preset state, the part of the audio signal in the preset low frequency range is filtered to attenuate. The part of the audio signal within the preset low frequency range, thereby reducing the intensity of vibration generated by the mobile terminal, thereby reducing the vibration sensation on the user side.

图5为实现本发明各个实施例的一种移动终端的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.

该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。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 Power 511 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 5 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器510,用于在所述移动终端处于发声模式时,获取所述移动终端发声时所产生的振动强弱的第一测量参数;在所述第一测量参数大于预设阈值时,对所述移动终端发声时生成的音频信号中处于预设低频范围内的部分进行衰减处理。Wherein, the processor 510 is configured to acquire, when the mobile terminal is in a sounding mode, a first measurement parameter of the vibration intensity generated by the mobile terminal when sounding; when the first measurement parameter is greater than a preset threshold, Attenuation processing is performed on the part of the audio signal that is generated when the mobile terminal emits sound, which is within a preset low frequency range.

上述方案中的移动终端500,通过在移动终端发声时,获取移动终端发声时产生振动的振动强弱的第一测量参数,即表示用户侧感受到移动终端在发声时产生振动的振感强弱程度。并在第一测量参数大于预设阈值,即表示用户侧感受到移动终端在发声时产生振动的振感强度达到预设状态时,对移动终端发声时生成的音频信号中处于预设低频范围内的部分进行滤波处理,以衰减音频信号中处于预设低频范围内的部分,从而降低移动终端产生振动的强度,进而降低用户侧的振感。The mobile terminal 500 in the above solution obtains the first measurement parameter of the vibration intensity when the mobile terminal generates vibration when the mobile terminal emits sound, which means that the user side feels the vibration intensity of the mobile terminal when the sound is generated. degree. And when the first measurement parameter is greater than the preset threshold, that is, when the user side feels that the vibration intensity of the vibration generated by the mobile terminal when sounding reaches the preset state, the audio signal generated when the mobile terminal is sounding is within the preset low frequency range. The part of the audio signal is filtered to attenuate the part of the audio signal in the preset low frequency range, so as to reduce the intensity of vibration generated by the mobile terminal, thereby reducing the vibration sense on the user side.

应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 501 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; The uplink data is sent to the base station. Generally, the 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 the network and other devices through a wireless communication system.

移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the network module 502, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。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 audio signals 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 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.

输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 506 . The image frames processed by the graphics 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 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.

移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and the proximity sensor when the mobile terminal 500 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 505 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。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.

用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive input numerical or character information, and generate key signal input 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 . The touch panel 5071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 5071). operate). The touch panel 5071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 510, the command sent by the processor 510 is received and executed. In addition, the touch panel 5071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 5071 , the user input unit 507 may also include other input devices 5072 . Specifically, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 can be covered on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event, and then the processor 510 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on display panel 5061. Although in FIG. 5, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.

接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。The interface unit 508 is an interface for connecting an external device to the mobile terminal 500 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 508 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 500 or may be used between the mobile terminal 500 and the external Transfer data between devices.

存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, 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.

处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 509, and calls the data stored in the memory 509. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 510.

移动终端500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 500 may also include a power supply 511 (such as a battery) for supplying power to various components. Preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.

另外,移动终端500包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 500 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述振动优化的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 510, a memory 509, and a computer program stored in the memory 509 and running on the processor 510, when the computer program is executed by the processor 510 The various processes of the above-mentioned vibration optimization method embodiments can achieve the same technical effect, and in order to avoid repetition, they will not be repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述振动优化的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above vibration optimization method embodiment can be achieved, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

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.
CN201711044796.0A 2017-10-31 2017-10-31 A vibration optimization method and mobile terminal Active CN107749306B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711044796.0A CN107749306B (en) 2017-10-31 2017-10-31 A 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 A 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 A vibration optimization method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107749306B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683761B (en) * 2018-05-17 2020-01-14 Oppo广东移动通信有限公司 Sound production control method and device, electronic device and computer readable medium
CN108646971B (en) * 2018-05-17 2020-07-24 Oppo广东移动通信有限公司 Screen sound control method, device and electronic device
CN109003622B (en) * 2018-09-11 2021-06-04 广州小鹏汽车科技有限公司 Noise reduction processing method, device, radio and vehicle
CN109951602B (en) * 2019-02-26 2020-10-27 维沃移动通信有限公司 A vibration control method and mobile terminal
CN115479662B (en) * 2021-06-16 2025-06-10 北京小米移动软件有限公司 Method and device for determining vibration quantity, terminal equipment and storage medium
CN115835083A (en) * 2022-12-14 2023-03-21 深圳市豪恩声学股份有限公司 Earphone low-frequency vibration regulation and control method and device, computer equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107749306A (en) 2018-03-02

Similar Documents

Publication Publication Date Title
CN107749306B (en) A vibration optimization method and mobile terminal
CN111385714B (en) Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN112261202B (en) Electronic equipment and control method and control device thereof
CN108551631A (en) A kind of sound quality compensation method and mobile terminal
CN107800821B (en) One kind preventing motor and shake sub-resonance method and mobile terminal
CN109086027B (en) Audio signal playing method and terminal
CN108551534B (en) Method and device for multi-terminal voice call
CN108848267B (en) Audio playback method and mobile terminal
CN108008858B (en) A terminal control method and mobile terminal
CN108289270B (en) Loudspeaker and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN111182118B (en) A kind of volume adjustment method and electronic device
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN108063999A (en) A kind of dust-proof network detecting method, mobile terminal
CN109451146B (en) A vibration processing method and terminal
CN108430004B (en) Loudspeaker amplitude adjusting device, adjusting method and mobile terminal
CN110062083A (en) A noise canceling method and mobile terminal
CN107705804A (en) A kind of audible device condition detection method and mobile terminal
CN110995921A (en) Call processing method, electronic device and computer-readable storage medium
CN110677770B (en) Sound production control method, electronic device, and medium
CN108305638B (en) Signal processing method, signal processing device and terminal equipment
CN112261203B (en) Electronic equipment and control method and control device thereof
CN108650392A (en) A kind of call recording method and mobile terminal
CN108418961B (en) A kind of audio playback method and mobile terminal
CN110839108A (en) Noise reduction method and electronic device

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