CN107743174B - Clipping judgment method of sound signal and mobile terminal - Google Patents

Clipping judgment method of sound signal and mobile terminal Download PDF

Info

Publication number
CN107743174B
CN107743174B CN201710958792.7A CN201710958792A CN107743174B CN 107743174 B CN107743174 B CN 107743174B CN 201710958792 A CN201710958792 A CN 201710958792A CN 107743174 B CN107743174 B CN 107743174B
Authority
CN
China
Prior art keywords
sound signal
compensation
energy value
clipping
compensated
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
CN201710958792.7A
Other languages
Chinese (zh)
Other versions
CN107743174A (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 CN201710958792.7A priority Critical patent/CN107743174B/en
Publication of CN107743174A publication Critical patent/CN107743174A/en
Application granted granted Critical
Publication of CN107743174B publication Critical patent/CN107743174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H17/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves, not provided for in the preceding groups

Landscapes

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

Abstract

The invention provides a clipping judgment method of a sound signal and a mobile terminal, wherein the method comprises the following steps: performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal; comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation; and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result. When the sound signal is zoomed, the invention can more accurately judge whether the sound signal generates clipping or not, thereby improving the accuracy of the clipping judgment result.

Description

Clipping judgment method of sound signal and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a clipping determination method for a sound signal and a mobile terminal.
Background
As the requirement of users for the sound quality of mobile terminals is higher and higher, the sound quality has become an important performance index of the mobile terminals. Clipping of sound mainly refers to a phenomenon that a peak portion in a sound waveform is clipped and flattened to cause sound distortion, and the clipping commonly exists in various application scenes of a mobile terminal such as: in a telephone call, a video conference, listening to music or watching a video, etc., a slight clipping phenomenon easily causes noise and noises to be mixed in the sound, and a severe clipping phenomenon easily causes the sound to be dull or harsh, which seriously affects the user experience, so that it is necessary to monitor the clipping phenomenon of the sound in real time.
For the clipping monitoring of sound, the current practice generally adopted in the industry is to determine by detecting the data size of the time domain of the sound signal (the time domain reflects the situation that the sound signal changes with time, the X axis in the time domain represents time, and the Y axis represents amplitude), for example, collecting the maximum amplitude value of the sound signal within a certain time period, and when the maximum amplitude value is greater than a preset value, determining that the signal is clipped. However, when the clipping determination is performed by using this method, if the sound signal is zoomed, for example, the clipping occurs in the sound signal, so that the peak of the sound signal is clipped and flattened, and the maximum amplitude value in the flattened sound waveform is smaller than the preset value, no matter how the time domain data is collected for the determination, the clipping is not generated in the determination structure, and the determination result at this time obviously does not conform to the actual situation.
Therefore, as can be seen from the above, when the sound signal is scaled, the time domain data size is used to determine whether or not clipping occurs, which tends to result in an inaccurate determination result.
Disclosure of Invention
The embodiment of the invention provides a clipping judgment method of a sound signal and a mobile terminal, and aims to solve the problem that when the sound signal is zoomed, whether clipping occurs is judged by adopting the size of time domain data, and the judgment result is not accurate enough.
In order to solve the technical problem, the invention is realized as follows: a clipping determination method for a sound signal, comprising:
performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal;
comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation;
and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result.
In a first aspect, an embodiment of the present invention provides a method for determining clipping of a sound signal, including:
performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal;
comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation;
and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the compensation module is used for performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal;
the comparison module is used for comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation;
and the judging module is used for judging whether clipping exists in the sound signal according to the comparison result to obtain a judgment result.
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 in the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the method for determining clipping of a sound signal.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the clipping determination method for a sound signal.
In the embodiment of the invention, the compensated sound signal is obtained by performing signal compensation processing on the acquired sound signal; comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation; and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result. The relation between the energy values of the sound signals before and after compensation is related to whether the sound signals are clipped or not, but is unrelated to whether the sound signals are scaled or not, so that when the sound signals are scaled, whether the sound signals are clipped or not can be judged more accurately, and the accuracy of clipping judgment results can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a clipping determination method for a sound signal according to an embodiment of the present invention;
fig. 2 is an exemplary diagram of a clipping determination method for a sound signal according to an embodiment of the present invention;
fig. 3 is a second example of a clipping determination method for a sound signal according to an embodiment of the present invention;
fig. 4 is a flowchart of a clipping determination method for a sound signal according to another embodiment of the present invention;
fig. 5 is one of the structural diagrams of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a clipping determination method for a sound signal according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, performing signal compensation processing on the obtained sound signal to obtain a compensated sound signal;
step 102, comparing the energy value of the compensated sound signal with the energy value of the sound signal before compensation;
and 103, judging whether the sound signal has clipping according to the comparison result to obtain a judgment result.
In the embodiment of the present invention, the obtained sound signal may be a sound signal acquired by the device itself, or may also be a sound signal transmitted by another system, apparatus, or device, and the like. The signal compensation processing may be processing capable of restoring the sound signal that has been clipped to a state in which the sound signal has not been clipped.
And the energy value of the sound signal can be characterized by the sum of squares of the signal amplitude values of each point. The comparing of the energy value of the compensated audio signal with the energy value of the audio signal before compensation may be directly comparing the magnitude relationship between the energy value of the compensated audio signal and the energy value of the audio signal before compensation, or comparing the magnitude relationship between the difference between the energy value of the compensated audio signal and the energy value of the audio signal before compensation and a preset threshold. Judging whether the sound signal has clipping according to the comparison result, wherein the clipping can be judged when the comparison result is that the energy value of the compensated sound signal is larger than that of the sound signal before compensation; or judging that clipping exists in the sound signal when the comparison result is that the difference value between the energy value of the sound signal after compensation and the energy value of the sound signal before compensation is larger than or equal to a preset threshold value.
To describe the energy values of the sound signals before and after compensation intuitively, a sound signal with clipping is taken as an example, please refer to fig. 2 and fig. 3, fig. 2 is a diagram of the sound signal before the sound signal is subjected to signal compensation processing, and fig. 3 is a diagram of the sound signal after the sound signal is subjected to signal compensation processing. It can be seen that, after the sound signal is processed by signal compensation, the flat top caused by clipping is restored to a normal peak, and the energy before and after compensation is different because the compensated sound signal has more energy than the sound signal before compensation, so that whether the sound signal has clipped can be judged by comparing the energy values of the sound signals before and after compensation.
The clipping determination method of the sound signal in the embodiment of the present invention may be applied to a mobile terminal, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
According to the clipping judgment method of the sound signal, the sound signal after compensation is obtained by performing signal compensation processing on the obtained sound signal; comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation; and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result. The acquired sound signal is subjected to signal compensation processing, and the relation between the energy values of the sound signal before and after compensation is related to whether the sound signal is clipped or not, but is unrelated to whether the sound signal is zoomed or not, so that when the sound signal is zoomed or not, whether the sound signal is clipped or not can be judged more accurately, and the accuracy of a clipping judgment result can be improved; in addition, for the sound signal with clipping, the wave crest of the sound signal is restored to a certain extent by the signal compensation processing, so that the noise or the noise caused by clipping distortion can be reduced, and the quality of the sound signal is improved.
Referring to fig. 4, fig. 4 is a flowchart of a clipping determination method for a sound signal according to another embodiment of the present invention, as shown in fig. 4, including the following steps:
step 401, filtering the obtained sound signal through an all-pass filter to obtain the compensated sound signal;
step 402, comparing the energy value of the compensated sound signal with the energy value of the sound signal before compensation;
and 403, judging whether the sound signal has clipping according to the comparison result to obtain a judgment result.
In the embodiment of the present invention, the all-pass filter may be a filter capable of correcting the phase frequency to a certain extent without changing the amplitude-frequency response of the signal. The obtained sound signal may be a sound signal obtained by collecting itself, or may be a sound signal obtained by receiving a related file sent by another system, device, equipment, or the like, and the embodiment of the present invention is not limited thereto.
The explanation of step 402 and step 403 may refer to the explanation of the corresponding parts in the above embodiments, and therefore, the detailed description is omitted here.
In this way, because the acquired sound signal is filtered by the all-pass filter, and the relation between the energy values of the sound signal before and after compensation is related to whether the sound signal is clipped or not, but is unrelated to whether the sound signal is zoomed or not, when the sound signal is zoomed or not, whether the sound signal is clipped or not can be more accurately judged, and the accuracy of the clipping judgment result can be improved; in addition, for the sound signal with clipping, the wave crest of the sound signal is restored to a certain extent by filtering processing, so that the noise or noise caused by clipping distortion can be reduced, and the quality of the sound signal is improved.
Optionally, in some embodiments of the present invention, the step of comparing the energy value of the compensated sound signal with the energy value of the sound signal before compensation includes:
acquiring the difference value between the energy value of the sound signal after compensation and the energy value of the sound signal before compensation;
the step of determining whether clipping is present in the sound signal based on the comparison result includes:
and when the comparison result shows that the difference value is greater than or equal to a preset threshold value, judging that the clipping exists in the sound signal.
In an embodiment of the present invention, the obtaining of the energy value of the compensated audio signal and the difference between the energy values of the compensated audio signal and the audio signal before compensation may be performed by first calculating the energy value of the audio signal before compensation and the energy value of the compensated audio signal, and then subtracting the energy value of the audio signal before compensation from the energy value of the compensated audio signal to obtain the difference.
Therefore, whether the sound signal is clipped or not is judged by comparing the relation between the difference value of the energy value of the sound signal after compensation and the energy value of the sound signal before compensation and the preset threshold value, the judgment standard of clipping is improved, the influence of other factors except clipping on the comparison result of the energy values of the sound signal before and after compensation can be reduced, and the judgment result of clipping can be more accurate.
Optionally, in some embodiments of the present invention, after the step of determining whether clipping exists in the sound signal according to the comparison result, the method further includes:
and outputting the judgment result.
In an embodiment of the present invention, the outputting the determination result may be reporting the determination result to a relevant processor.
In this way, by outputting the determination result, the relevant processor can be made aware of the determination result, and can perform corresponding processing according to the determination result.
The clipping determination method of the sound signal in the embodiment of the present invention may be applied to a mobile terminal, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
According to the clipping judgment method of the sound signal, the obtained sound signal is filtered through an all-pass filter, and the compensated sound signal is obtained; comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation; and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result. The acquired sound signal is filtered through the all-pass filter, and the relation between the energy values of the sound signal before and after compensation is related to whether the sound signal is clipped or not, but is unrelated to whether the sound signal is zoomed or not, so that when the sound signal is zoomed, whether the sound signal is clipped or not can be judged more accurately, and the accuracy of a clipping judgment result can be improved; in addition, for the sound signal with clipping, the wave crest of the sound signal is restored to a certain extent by filtering processing, so that the noise or noise caused by clipping distortion can be reduced, and the quality of the sound signal is improved.
Referring to fig. 5, fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the mobile terminal 500 includes:
the compensation module 501 is configured to perform signal compensation processing on the obtained sound signal to obtain a compensated sound signal;
a comparing module 502, configured to compare an energy value of the compensated sound signal with an energy value of the sound signal before compensation;
and a determining module 503, configured to determine whether clipping exists in the sound signal according to the comparison result, so as to obtain a determination result.
Optionally, the compensation module 501 is an all-pass filter, and the all-pass filter is configured to perform filtering processing on the obtained sound signal to obtain the compensated sound signal.
Optionally, the comparing module 502 is configured to obtain a difference between the energy value of the compensated sound signal and the energy value of the sound signal before compensation;
the determining module 503 is configured to determine that clipping exists in the sound signal when the comparison result is that the difference is greater than or equal to a preset threshold.
Optionally, as shown in fig. 6, the mobile terminal 500 further includes an output module 504, configured to output the determination result.
The mobile terminal 500 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
The mobile terminal 500 of the embodiment of the present invention can more accurately determine whether the sound signal generates clipping when the sound signal is zoomed, and can further improve the accuracy of the clipping determination result.
Figure 7 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 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.
Wherein, the processor 710 is configured to:
performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal;
comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation;
and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result.
Optionally, the step of performing, by the processor 710, signal compensation processing on the acquired sound signal to obtain a compensated sound signal includes:
and filtering the acquired sound signal through an all-pass filter to obtain the compensated sound signal.
Optionally, the step of comparing the energy value of the compensated sound signal with the energy value of the sound signal before compensation performed by the processor 710 includes:
acquiring the difference value between the energy value of the sound signal after compensation and the energy value of the sound signal before compensation;
the step of determining whether clipping of the sound signal is present based on the comparison performed by the processor 710 includes:
and when the comparison result shows that the difference value is greater than or equal to a preset threshold value, judging that the clipping exists in the sound signal.
Optionally, the processor 710 is further configured to: and outputting the judgment result.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
The mobile terminal 700 of the embodiment of the present invention performs signal compensation processing on the obtained sound signal to obtain a compensated sound signal; comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation; and judging whether the sound signal has clipping or not according to the comparison result to obtain a judgment result. Therefore, when the sound signal is zoomed, whether the sound signal generates clipping can be judged more accurately, and the accuracy of the clipping judgment result is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 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 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 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 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 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 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 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 705 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 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 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 707 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 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 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 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. 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 708 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 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 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 709 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 710 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 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 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 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned method for determining clipping of a sound signal, and can achieve the same technical effect, and is not described herein again to avoid repetition.
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 above-mentioned method for determining clipping of a sound signal, and can achieve the same technical effect, and in order to avoid repetition, the computer program is not described herein again. 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 (6)

1. A method for determining clipping of a sound signal, comprising:
performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal;
comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation;
judging whether clipping exists in the sound signal according to the comparison result to obtain a judgment result;
the step of performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal includes:
filtering the obtained sound signal through an all-pass filter to obtain the compensated sound signal;
the comparing the energy value of the compensated sound signal with the energy value of the sound signal before compensation includes:
comparing the magnitude relation between the energy value of the sound signal after compensation and the energy value of the sound signal before compensation;
the determining whether clipping exists in the sound signal according to the comparison result to obtain a determination result includes:
when the comparison result shows that the energy value of the sound signal after compensation is larger than the energy value of the sound signal before compensation, the clipping of the sound signal before compensation is judged;
alternatively, the first and second electrodes may be,
the comparing the energy value of the compensated sound signal with the energy value of the sound signal before compensation includes:
comparing the magnitude relation between the difference value of the energy value of the sound signal after compensation and the energy value of the sound signal before compensation and a preset threshold value;
the determining whether clipping exists in the sound signal according to the comparison result to obtain a determination result includes:
and judging that clipping exists in the sound signal before compensation when the comparison result is that the difference value between the energy value of the sound signal after compensation and the energy value of the sound signal before compensation is larger than or equal to a preset threshold value.
2. The method of claim 1, wherein the step of determining whether clipping is present in the sound signal based on the comparison further comprises:
and outputting the judgment result.
3. A mobile terminal, comprising:
the compensation module is used for performing signal compensation processing on the acquired sound signal to obtain a compensated sound signal;
the comparison module is used for comparing the energy value of the sound signal after compensation with the energy value of the sound signal before compensation;
the judging module is used for judging whether clipping exists in the sound signal according to the comparison result to obtain a judgment result;
the compensation module is an all-pass filter, and the all-pass filter is used for filtering the acquired sound signal to obtain the compensated sound signal;
the comparison module is specifically configured to compare a magnitude relationship between the energy value of the compensated sound signal and the energy value of the sound signal before compensation;
the judgment module is specifically configured to judge that clipping exists in the sound signal before compensation when the comparison result indicates that the energy value of the sound signal after compensation is greater than the energy value of the sound signal before compensation;
alternatively, the first and second electrodes may be,
the comparison module is specifically configured to compare a magnitude relationship between a difference between the energy value of the compensated sound signal and the energy value of the sound signal before compensation and a preset threshold;
the judgment module is specifically configured to judge that clipping exists in the sound signal before compensation when the comparison result is that the difference between the energy value of the sound signal after compensation and the energy value of the sound signal before compensation is greater than or equal to a preset threshold.
4. The mobile terminal of claim 3, further comprising an output module configured to output the determination result.
5. 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 method of clipping determination of a sound signal as claimed in any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, realizes the steps of the method for determining clipping of a sound signal according to any one of claims 1 to 2.
CN201710958792.7A 2017-10-16 2017-10-16 Clipping judgment method of sound signal and mobile terminal Active CN107743174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710958792.7A CN107743174B (en) 2017-10-16 2017-10-16 Clipping judgment method of sound signal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710958792.7A CN107743174B (en) 2017-10-16 2017-10-16 Clipping judgment method of sound signal and mobile terminal

Publications (2)

Publication Number Publication Date
CN107743174A CN107743174A (en) 2018-02-27
CN107743174B true CN107743174B (en) 2020-04-14

Family

ID=61237622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710958792.7A Active CN107743174B (en) 2017-10-16 2017-10-16 Clipping judgment method of sound signal and mobile terminal

Country Status (1)

Country Link
CN (1) CN107743174B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109893163B (en) * 2019-01-23 2021-07-02 苏州美糯爱医疗科技有限公司 Method for automatically positioning and repairing clipping distortion waveform of electronic stethoscope
CN112259121B (en) * 2020-10-26 2024-06-11 西安讯飞超脑信息科技有限公司 Method, system, electronic device and storage medium for processing clipping voice signal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1798852A2 (en) * 2005-12-15 2007-06-20 Harman International Industries, Incorporated Distortion compensation
CN103077727A (en) * 2013-01-04 2013-05-01 华为技术有限公司 Method and device used for speech quality monitoring and prompting
CN103632680A (en) * 2012-08-24 2014-03-12 华为技术有限公司 Speech quality assessment method, network element and system
CN106782613A (en) * 2016-12-22 2017-05-31 广州酷狗计算机科技有限公司 Signal detecting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1798852A2 (en) * 2005-12-15 2007-06-20 Harman International Industries, Incorporated Distortion compensation
CN103632680A (en) * 2012-08-24 2014-03-12 华为技术有限公司 Speech quality assessment method, network element and system
CN103077727A (en) * 2013-01-04 2013-05-01 华为技术有限公司 Method and device used for speech quality monitoring and prompting
CN106782613A (en) * 2016-12-22 2017-05-31 广州酷狗计算机科技有限公司 Signal detecting method and device

Also Published As

Publication number Publication date
CN107743174A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN109078319B (en) Game interface display method and terminal
CN108494030B (en) Wireless charging method, terminal and transmitting terminal equipment
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN109215683B (en) Prompting method and terminal
CN109788402B (en) Audio signal processing method and audio signal processing device
CN107785027B (en) Audio processing method and electronic equipment
CN108289270B (en) Loudspeaker and mobile terminal
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN108848267B (en) Audio playing method and mobile terminal
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN111464428A (en) Audio processing method, server, electronic device, and computer-readable storage medium
CN111182118B (en) Volume adjusting method and electronic equipment
CN111614329A (en) Power amplifier, electronic equipment, voltage control method and device
CN108345421B (en) Icon display method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN107743174B (en) Clipping judgment method of sound signal and mobile terminal
CN108319440B (en) Audio output method and mobile terminal
CN110740265B (en) Image processing method and terminal equipment
CN108924319B (en) Proximity detection method and mobile terminal
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN108418961B (en) Audio playing method and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN108089799B (en) Control method of screen edge control and mobile terminal
CN111443968A (en) Screenshot method and electronic equipment

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