Nothing Special   »   [go: up one dir, main page]

CN109963235B - Sound signal processing method and mobile terminal - Google Patents

Sound signal processing method and mobile terminal Download PDF

Info

Publication number
CN109963235B
CN109963235B CN201910199721.2A CN201910199721A CN109963235B CN 109963235 B CN109963235 B CN 109963235B CN 201910199721 A CN201910199721 A CN 201910199721A CN 109963235 B CN109963235 B CN 109963235B
Authority
CN
China
Prior art keywords
amplitude
signal
analog gain
sound signal
mobile terminal
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
CN201910199721.2A
Other languages
Chinese (zh)
Other versions
CN109963235A (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 CN201910199721.2A priority Critical patent/CN109963235B/en
Publication of CN109963235A publication Critical patent/CN109963235A/en
Application granted granted Critical
Publication of CN109963235B publication Critical patent/CN109963235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a sound signal processing method and a mobile terminal, wherein the method comprises the following steps: collecting environmental sound signals within a preset time length; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.

Description

Sound signal processing method and mobile terminal
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a sound signal processing method and a mobile terminal.
Background
With the advent of the information sharing era, people can show themselves in various ways to share happiness, and the voice is used as a main tool for people to people communication and also embodies the value of the people from various aspects. For example, a large number of live broadcast platforms are emerging, and the birth of various online friend-making platforms can not participate in voice.
At present, people use various terminals to record sound, and the recorded environment is also diversified, for example, recording in high-sound-pressure environments such as KTV, concerts and the like, and when recording in the environment with seasonal noisy or extremely high wind noise, processing is usually performed at a digital end, and an automatic gain control circuit is used for performing dynamic control on digital gain so as to ensure that digital signals are not distorted.
Because the existing processing means keeps fixed analog gain, when the analog gain is set to be lower, the amplitude of an analog signal is smaller when a low-sound-pressure scene is recorded, the signal-to-noise ratio of a digital signal obtained after analog-to-digital conversion is lower, and the noise is larger; when the analog gain is set to be high, the amplitude of an analog signal is too large when a high-sound-pressure scene is recorded, nonlinear distortion is generated, and the digital signal obtained after analog-to-digital conversion still has distortion, so that the recorded sound noise is large, and the use experience of a user is influenced.
Disclosure of Invention
The embodiment of the invention provides a sound signal processing method and a mobile terminal, and aims to solve the problem of noise in the sound recording process in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a sound signal processing method, where the method includes: collecting environmental sound signals within a preset time length; detecting a maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values; and processing the environmental sound signal according to the first analog gain value.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: the acquisition module is used for acquiring environmental sound signals within a preset time length; a first detection module for detecting a maximum amplitude of the ambient sound signal; the determining module is used for determining a first analog gain value corresponding to a first amplitude range under the condition that the maximum amplitude is in the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values; and the processing module is used for processing the environmental sound signal according to the first analog gain 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 sound signal processing method.
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 sound signal processing method.
In the embodiment of the invention, the environmental sound signals within a preset time length are collected; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a sound signal processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for processing an audio signal according to a second embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to a fifth 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.
Example one
Referring to fig. 1, a flowchart illustrating steps of a sound signal processing method according to a first embodiment of the present invention is shown.
The sound signal processing method provided by the embodiment of the invention comprises the following steps:
step 101: and collecting the environmental sound signals within a preset time length.
It should be noted that, a person skilled in the art sets the preset time length according to an actual situation, where the preset time length may be set to 5s, 6s, 7s, and the like, and the embodiment of the present invention is not limited in this respect.
Step 102: the maximum amplitude of the ambient sound signal is detected.
And detecting the maximum amplitude of each sound of the environment sound signal collected within the preset time length, wherein the environment sound signal has amplitude change. And comparing the amplitudes of the sounds to determine the maximum amplitude of the environmental functional sound.
Step 103: in the case where the maximum amplitude is within a first amplitude range, a first analog gain value corresponding to the first amplitude range is determined.
Wherein the different amplitude ranges correspond to different analog gain values.
Comparing the maximum amplitude with different amplitude ranges preset by the mobile terminal, determining the amplitude range in which the maximum amplitude is positioned, determining a first analog gain value corresponding to the first amplitude range when the maximum amplitude is in the first amplitude range due to the different amplitude ranges corresponding to different analog gain values, and determining a second analog gain value corresponding to the second amplitude range when the maximum amplitude is in the second amplitude range.
It should be noted that the analog gain value mainly adjusts the signal intensity of the linear amplification input, the value of the output audio power directly influenced by the analog gain value is within a certain range, and a larger input value is beneficial to improving the output signal-to-noise ratio and also increases the output power in a same ratio.
In the step, different analog gain values are set in different amplitude ranges, so that sound distortion is avoided, wherein the distortion is the deviation of a signal in the transmission process compared with the original signal or standard.
Step 104: and processing the environmental sound signal according to the first analog gain value.
The maximum amplitude of the processed ambient sound signal should be 0db, so that the processed sound is not distorted, and a better signal-to-noise ratio is ensured, so that the recorded sound reduces noise.
In the embodiment of the invention, the environmental sound signals within a preset time length are collected; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a sound signal processing method according to a second embodiment of the present invention is shown.
The sound signal processing method provided by the embodiment of the invention comprises the following steps:
step 201: detecting whether a recording event exists.
Step 202: and if the recording event exists, acquiring an environmental sound signal within a preset time length.
When a recording event is detected, acquiring an environmental sound signal within a preset time duration, wherein a person skilled in the art sets the preset time duration according to an actual situation, and the preset time duration may be set to 5s, 6s, 7s, and the like, which is not specifically limited in the embodiment of the present invention.
And when the recording event is not detected, processing the environmental sound signal information according to a preset analog gain value.
Step 203: the maximum amplitude of the ambient sound signal is detected.
Step 204: in the case where the maximum amplitude is within a first amplitude range, a first analog gain value corresponding to the first amplitude range is determined.
Wherein the different amplitude ranges correspond to different analog gain values.
The relation between the amplitude of the environmental sound signal and the analog gain is set in the mobile terminal, because the digital signal is generally the amplitude of maximum 0dB, the analog gain value required when the analog signal of one set of recording equipment is changed into the maximum digital signal of 0dB can be obtained through testing, namely the amplitude of the analog signal sent by the microphone is assumed to be a, the analog gain value is b, finally a is converted into the digital signal by the analog-to-digital converter after the amplification of the analog gain value of b, and the amplitude of the signal a is changed into 0 dB. For example, the microphone receives the maximum amplitude a1 when the signal is subjected to fast critical distortion, at this time, the a1 is subjected to an analog gain value b1, the signal is amplified and converted into a digital signal by an analog-to-digital converter, and the maximum amplitude of the digital signal is 0dB, so that an analog gain value b1 is obtained. Setting the analog gain value to m levels, increasing the levels by c steps to obtain the levels of the analog gain values b1, b1+ c and b1+2c … … bm respectively (bm is the maximum analog gain value), dividing the environmental sound signal received by the microphone into m intervals by using d as a step amplitude value, and corresponding the interval with the minimum environmental signal received by the microphone to the amplitude with the maximum analog gain.
Step 205: respective first amplitudes of the captured ambient sound signals are determined.
Step 206: and aiming at each first amplitude, processing each first amplitude according to the first analog gain value.
And in the processed environment sound signals, the maximum signal amplitude is 0 db.
According to the first analog gain value, the environmental sound signal is processed to avoid distortion and reduce noise.
Step 207: and converting the processed environment sound signal into a digital signal.
Step 208: and determining second amplitudes corresponding to the sub-signals in the processed environment sound signal.
Step 209: each second amplitude is compared to a preset amplitude.
Step 210: and deleting the sub-signals corresponding to the second amplitude smaller than the preset amplitude under the condition that the second amplitude is smaller than the preset amplitude.
And determining each second amplitude of the recorded environment sound signal, and deleting the sound smaller than the preset amplitude so as to reduce the input of noise and avoid noise.
It should be noted that, the preset amplitude is set by those skilled in the art according to actual situations.
Step 211: and amplifying the environmental sound information subjected to the noise elimination processing to generate a target signal and storing the target signal.
In the embodiment of the invention, the environmental sound signals within a preset time length are collected; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown,
the mobile terminal provided by the embodiment of the invention comprises: the acquisition module 301 is configured to acquire an environmental sound signal within a preset time duration; a first detection module 302 for detecting a maximum amplitude of the ambient sound signal; a determining module 303, configured to determine a first analog gain value corresponding to a first amplitude range when the maximum amplitude is within the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values; a processing module 304, configured to process the ambient sound signal according to the first analog gain value.
In the embodiment of the invention, the environmental sound signals within a preset time length are collected; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: the acquisition module 401 is configured to acquire an ambient sound signal within a preset time duration; a first detecting module 402 for detecting a maximum amplitude of the ambient sound signal; a determining module 403, configured to determine a first analog gain value corresponding to a first amplitude range when the maximum amplitude is within the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values; a processing module 404, configured to process the ambient sound signal according to the first analog gain value.
Preferably, the processing module 404 includes: a first determining submodule 4041, configured to determine first amplitudes of the acquired ambient sound signals; and the adjusting submodule 4042 is configured to, for each first amplitude, process each first amplitude according to the first analog gain value, where a maximum signal amplitude of the processed ambient sound signal is 0 db.
Preferably, the mobile terminal further includes: a second detecting module 405, configured to detect whether a recording event exists before the acquiring module 401 acquires the environmental sound signal within a preset time period; the acquisition module 401 is specifically configured to: and if the recording event exists, acquiring an environmental sound signal within a preset time length.
Preferably, the mobile terminal further includes: a conversion module 406, configured to, after the processing module processes the ambient sound signal according to the first analog gain value, convert the processed ambient sound signal into a digital signal; and the generating module 407 is configured to generate and store a target signal after performing denoising and amplification processing on the digital information signal.
Preferably, the generating module 407 comprises: a second determining submodule 4071, configured to determine each second amplitude corresponding to each sub-signal in the processed environmental sound signal; a comparison submodule 4072 configured to compare each of the second amplitudes with a preset amplitude; the deleting submodule 4073 is configured to delete the sub-signal corresponding to the second amplitude smaller than the preset amplitude when the second amplitude is smaller than the preset amplitude.
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 embodiment of the invention, the environmental sound signals within a preset time length are collected; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
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.
A processor 510, configured to collect an ambient sound signal within a preset time duration; detecting a maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values; and processing the environmental sound signal according to the first analog gain value.
In the embodiment of the invention, the environmental sound signals within a preset time length are collected; detecting the maximum amplitude of the ambient sound signal; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the maximum amplitude; the environmental sound signal is processed according to the first analog gain value, the analog gain amplification can be dynamically adjusted according to the amplitude of the signal, the noise is minimized, the analog signal sent to the processor by the microphone has a good enough signal-to-noise ratio under the condition of low sound pressure, the analog signal sent to the processor by the microphone is not distorted under the condition of high sound pressure, and the use experience of a user is improved.
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 foregoing sound signal processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 computer program implements each process of the foregoing sound signal processing method embodiment, 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 (9)

1. A sound signal processing method is applied to a mobile terminal, and is characterized by comprising the following steps:
collecting environmental sound signals within a preset time length;
detecting a maximum amplitude of the ambient sound signal;
comparing the maximum amplitude with different amplitude ranges preset by the mobile terminal, and determining the amplitude range of the maximum amplitude;
under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values;
the analog gain value for each different amplitude range is: the analog gain value required when the analog signal is changed into the maximum digital signal of 0 dB;
processing the environmental sound signal according to the first analog gain value;
the step of processing the ambient sound signal according to the first analog gain value includes:
determining first amplitudes of the acquired ambient sound signals;
and processing each first amplitude according to the first analog gain value aiming at each first amplitude, wherein the maximum signal amplitude in the processed environment sound signals is 0 db.
2. The method of claim 1, wherein prior to the step of collecting the ambient sound signal for a preset time period, the method further comprises:
detecting whether a recording event exists;
the collection presets the interior ambient sound signal of duration, includes:
and if the recording event exists, acquiring an environmental sound signal within a preset time length.
3. The method of claim 1, wherein after the step of processing the ambient sound signal in accordance with the first analog gain value, the method further comprises:
converting the processed environment sound signal into a digital signal;
and generating and storing a target signal after denoising and amplifying the digital signal.
4. The method of claim 3, wherein the step of subjecting the digital signal to noise cancellation processing comprises:
determining second amplitudes corresponding to the sub-signals in the processed environment sound signal;
comparing each second amplitude with a preset amplitude;
and deleting the sub-signals corresponding to the second amplitude smaller than the preset amplitude under the condition that the second amplitude is smaller than the preset amplitude.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the acquisition module is used for acquiring environmental sound signals within a preset time length;
a first detection module for detecting a maximum amplitude of the ambient sound signal;
the determining module is used for comparing the maximum amplitude with different amplitude ranges preset by the mobile terminal and determining the amplitude range of the maximum amplitude; under the condition that the maximum amplitude is in a first amplitude range, determining a first analog gain value corresponding to the first amplitude range; wherein, different amplitude ranges correspond to different analog gain values;
the analog gain value for each different amplitude range is: the analog gain value required when the analog signal is changed into the maximum digital signal of 0 dB;
the processing module is used for processing the environmental sound signal according to the first analog gain value;
the processing module comprises:
a first determining submodule for determining respective first amplitudes of the acquired ambient sound signals;
and the adjusting submodule is used for processing each first amplitude according to the first analog gain value aiming at each first amplitude, wherein the maximum signal amplitude in the processed environment sound signals is 0 db.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the second detection module is used for detecting whether a recording event exists before the acquisition module acquires the environmental sound signals within the preset time length;
the acquisition module is specifically configured to: and if the recording event exists, acquiring an environmental sound signal within a preset time length.
7. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the conversion module is used for converting the processed environment sound signal into a digital signal after the processing module processes the environment sound signal according to the first analog gain value;
and the generating module is used for generating and storing a target signal after the digital signal is subjected to denoising and amplification processing.
8. The mobile terminal of claim 7, wherein the generating module comprises:
the second determining submodule is used for determining each second amplitude corresponding to each sub-signal in the processed environment sound signal;
the comparison submodule is used for comparing each second amplitude with a preset amplitude;
and the deleting submodule is used for deleting the sub-signals corresponding to the second amplitude smaller than the preset amplitude under the condition that the second amplitude is smaller than the preset amplitude.
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, the computer program, when executed by the processor, implementing the steps of the sound signal processing method according to any one of claims 1 to 4.
CN201910199721.2A 2019-03-15 2019-03-15 Sound signal processing method and mobile terminal Active CN109963235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910199721.2A CN109963235B (en) 2019-03-15 2019-03-15 Sound signal processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910199721.2A CN109963235B (en) 2019-03-15 2019-03-15 Sound signal processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109963235A CN109963235A (en) 2019-07-02
CN109963235B true CN109963235B (en) 2021-12-28

Family

ID=67024411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910199721.2A Active CN109963235B (en) 2019-03-15 2019-03-15 Sound signal processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109963235B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113993028B (en) * 2021-11-01 2024-02-13 苏州敏芯微电子技术股份有限公司 Signal processing circuit and method and bone conduction earphone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501988A (en) * 2006-08-09 2009-08-05 杜比实验室特许公司 Audio-peak limiting in slow and fast stages
JP2010204382A (en) * 2009-03-03 2010-09-16 Canon Inc Processor and its control method
CN105871348A (en) * 2016-05-12 2016-08-17 中国电子科技集团公司第四十研究所 Low-noise and wide-pressure audio-signal conditioning circuit based on self-calibration and dynamic gain adjustment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110075861A1 (en) * 2008-06-12 2011-03-31 Zoran Corporation Method and Apparatus for Controlling Audio Input Amplitude
CN101577848B (en) * 2009-03-12 2013-12-11 无锡中星微电子有限公司 Supper bass boosting method and system
CN101800520B (en) * 2010-02-25 2013-05-22 青岛海信移动通信技术股份有限公司 Realization method and realization system for automatic gain control
CN102932704A (en) * 2012-10-26 2013-02-13 北京昆腾微电子有限公司 Audio emission chip, audio receiving chip and wireless microphone system
GB2532015B (en) * 2014-11-04 2018-12-26 Cirrus Logic Int Semiconductor Ltd Improved analogue-to-digital convertor
CN106448712B (en) * 2016-10-20 2019-06-25 广州视源电子科技股份有限公司 Automatic gain control method and device for audio signal
CN106714038B (en) * 2016-12-27 2019-07-26 维沃移动通信有限公司 A kind of control method and mobile terminal of sound intensity
CN107104650A (en) * 2017-03-30 2017-08-29 歌尔丹拿音响有限公司 Gain adjusting method therefore, device, audio coder and stereo set
GB2563092A (en) * 2017-06-02 2018-12-05 Cirrus Logic Int Semiconductor Ltd Audio amplifiers
CN107247574A (en) * 2017-07-17 2017-10-13 中科创达软件股份有限公司 A kind of audio output control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501988A (en) * 2006-08-09 2009-08-05 杜比实验室特许公司 Audio-peak limiting in slow and fast stages
JP2010204382A (en) * 2009-03-03 2010-09-16 Canon Inc Processor and its control method
CN105871348A (en) * 2016-05-12 2016-08-17 中国电子科技集团公司第四十研究所 Low-noise and wide-pressure audio-signal conditioning circuit based on self-calibration and dynamic gain adjustment

Also Published As

Publication number Publication date
CN109963235A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN109905907B (en) Network searching method and mobile terminal
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN109078319B (en) Game interface display method and terminal
CN109994111B (en) Interaction method, interaction device and mobile terminal
CN109905812B (en) Input power control method and device and terminal equipment
CN111049972B (en) Audio playing method and terminal equipment
CN110012143B (en) Telephone receiver control method and terminal
CN108540243B (en) Radio frequency channel detection method and mobile terminal
CN108848267B (en) Audio playing method and mobile terminal
CN110636530B (en) Method for processing adjacent channel interference and terminal equipment
CN111614329A (en) Power amplifier, electronic equipment, voltage control method and device
CN109873894B (en) Volume adjusting method and mobile terminal
CN109041190B (en) Power control method and terminal
CN111182118A (en) Volume adjusting method and electronic equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN110730013B (en) Method for improving transmission stray and mobile terminal
CN110995302B (en) Gain stage adjusting method and electronic equipment
CN109963235B (en) Sound signal processing method and mobile terminal
CN110493432B (en) Spectrum analysis method and terminal equipment
CN110740265B (en) Image processing method and terminal equipment
CN110058837B (en) Audio output method and terminal
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN107743174B (en) Clipping judgment method of sound signal and mobile terminal
CN108418961B (en) Audio playing method and mobile 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