CN107690026B - Signal processing method and mobile terminal - Google Patents

Signal processing method and mobile terminal Download PDF

Info

Publication number
CN107690026B
CN107690026B CN201710698180.9A CN201710698180A CN107690026B CN 107690026 B CN107690026 B CN 107690026B CN 201710698180 A CN201710698180 A CN 201710698180A CN 107690026 B CN107690026 B CN 107690026B
Authority
CN
China
Prior art keywords
audio signal
clipping distortion
amplitude
original
wave band
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
CN201710698180.9A
Other languages
Chinese (zh)
Other versions
CN107690026A (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 CN201710698180.9A priority Critical patent/CN107690026B/en
Publication of CN107690026A publication Critical patent/CN107690026A/en
Application granted granted Critical
Publication of CN107690026B publication Critical patent/CN107690026B/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
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • 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
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a signal processing method and a mobile terminal, wherein the method comprises the following steps: detecting whether a first audio signal has clipping distortion or not, wherein the first audio signal is an audio signal to be played; if clipping distortion occurs, determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band; acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal; and correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal. The original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.

Description

Signal processing method and mobile terminal
Technical Field
The present invention relates to the field of signal processing technologies, and in particular, to a signal processing method and a mobile terminal.
Background
The terminal plays multimedia files such as songs, audio books, broadcasts and the like for a user through an audio player and a loudspeaker. When the amplitude of the audio signal to be played is small, the audio signal is drowned in the noise floor of the loudspeaker, and the user cannot hear the played sound. In order to solve the above problem, in the prior art, an audio signal is amplified and then output.
In the practical application process, the maximum output capacity of the terminal loudspeaker is limited, and when the amplitude of the audio signal amplified by the audio player exceeds the maximum output of the loudspeaker, the situation of clipping distortion of the audio signal can be caused, and finally the audio signal is lost, and noise is generated.
Disclosure of Invention
The invention provides a signal processing method and a mobile terminal, which aim to solve the problem of noise generation caused by clipping distortion of an audio signal in the prior art.
In order to solve the above problem, the present invention discloses a signal processing method, including: detecting whether a first audio signal has clipping distortion or not, wherein the first audio signal is an audio signal to be played; if clipping distortion occurs, determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band; acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal; and correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal.
In order to solve the above problem, the present invention also discloses a mobile terminal, which includes: the device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting whether clipping distortion occurs to a first audio signal, and the first audio signal is an audio signal to be played; the first determining module is used for determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band if clipping distortion occurs; the acquisition module is used for acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal; and the replacing module is used for correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal.
In order to solve the above problem, the present invention also discloses a mobile terminal, comprising: a memory, a processor and a signal processing program stored on the memory and executable on the processor, the signal processing program, when executed by the processor, implementing the steps of the signal processing method.
In order to solve the above problem, the present invention also discloses a computer readable storage medium having stored thereon a signal processing program, which when executed by a processor implements the steps of the signal processing method.
Compared with the prior art, the invention has the following advantages:
the signal processing scheme provided by the embodiment of the invention detects the audio signal to be played, judges whether clipping distortion occurs, and determines the clipping distortion wave band for playing the audio signal and the time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. According to the signal processing scheme provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a signal processing method according to a first embodiment of the present invention;
FIG. 2 is a waveform signal with clipping distortion according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a signal processing method according to a second embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating steps of a signal processing method according to a first embodiment of the present invention is shown.
The signal processing method provided by the embodiment of the invention comprises the following steps:
step 101: it is detected whether clipping distortion of the first audio signal occurs.
The first audio signal is an audio signal to be played. Specifically, the detection of the first audio signal is detected by an FPGA (Field-Programmable Gate Array) processing unit, an audio decoding chip, and a processor in the mobile terminal.
At present, an audio signal to be played is an output signal after an original signal is subjected to algorithm processing, and clipping distortion does not exist in an original waveform. After some algorithms or effects are processed, because the maximum amplitude of the digital signal is 0dB, when the processed audio signal is output, a part of the band of the audio signal is cut off, and a signal waveform as shown in fig. 2 appears, because the signal to the power amplifier is subjected to clipping distortion, the sound played by the electroacoustic device finally has noise.
In the embodiment of the invention, in order to effectively solve the problem of clipping distortion of the audio signal to be played, when the audio signal needs to be played, the audio signal of the audio to be played is firstly detected, and whether the clipping distortion occurs in the audio signal with the playing is judged.
One preferred detection method is: detecting whether the amplitudes of the digital audio signals of the continuous sampling points are all 0 dB; if continuous 0dB signals appear, it indicates that clipping distortion appears in the audio signal to be played; otherwise, it is determined that the audio signal to be played has no clipping distortion.
Step 102: if clipping distortion occurs, a clipping distortion band in the first audio signal and a time period corresponding to the clipping distortion band are determined.
As shown in FIG. 2, when it is determined that clipping distortion occurs in the audio signal to be played, the band corresponding to the t-period as shown in the figure and the time intersection t of the 0dB amplitude band continuously occurring and the X-axis0And t1The time period in between.
Step 103: an original band in the second audio signal corresponding to the time period is obtained.
Wherein the second audio signal is an original audio signal.
As shown in FIG. 2, the time period is a time intersection t of the continuous occurrence of the 0dB amplitude band and the X-axis0And t1The time period in between, according to which the time t in the original audio signal corresponding to this band is determined in the original audio signal0-t and t1-t, wherein t is the time delay between the original audio signal and the audio signal to be played.
Step 104: and correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal.
As shown in FIG. 2, the original audio signal and t in the second audio signal are used0-t and t1-a band at time t, corresponding to t in the first audio signal0And t1The band of time of day.
The signal processing method provided by the embodiment of the invention comprises the steps of detecting an audio signal to be played, judging whether clipping distortion occurs, and determining a clipping distortion wave band for playing the audio signal and a time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. By the signal processing method provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
Example two
Referring to fig. 3, a flowchart illustrating steps of a signal processing method according to a second embodiment of the present invention is shown.
The signal processing method provided by the embodiment of the invention comprises the following steps:
step 201: detecting whether a plurality of continuous amplitude values exist as preset amplitude values or not for each amplitude value of the first audio signal; if so, go to step 202, otherwise go to step 209.
Wherein the preset amplitude may be set to 0 dB.
Specifically, the detection of the first audio signal is detected by an FPGA (Field-programmable gate Array) processing unit, an audio decoding chip, and a processor in the mobile terminal.
Step 202: if so, it is determined that clipping distortion has occurred in the first audio signal.
Wherein the preset amplitude is 0 dB. Detecting each amplitude of an audio signal to be played, detecting whether each amplitude is a preset amplitude or not because the audio signal to be played is a positive sine wave and each time t corresponds to one amplitude, if the audio signal to be played has no clipping distortion, setting two amplitudes as the preset amplitudes in the time period of the audio signal to be played, and determining that the clipping distortion occurs in the audio signal to be played when a plurality of continuous amplitudes are the preset amplitudes.
Step 203: a clipping distortion band in the first audio signal and a time period corresponding to the clipping distortion band are determined.
As shown in FIG. 2, when it is determined that clipping distortion occurs in the audio signal to be played, the band corresponding to the t-period as shown in the figure and the time intersection t of the 0dB amplitude band continuously occurring and the X-axis0And t1The time period in between.
Step 204: an original band in the second audio signal corresponding to the time period is obtained.
Wherein the second audio signal is an original audio signal.
As shown in FIG. 2, the time period is a time intersection t of the continuous occurrence of the 0dB amplitude band and the X-axis0And t1The time period in between, according to which the time t in the original audio signal corresponding to this band is determined in the original audio signal0-t and t1-t, wherein ^ t is the time delay between the original audio signal and the audio signal to be played.
Step 205: and correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal.
And replacing the acquired clipping distortion wave band by adopting an original wave band, so that the clipping distortion signal is perfected, and further, the noise generated in the playing process of the third audio signal is avoided, and the user experience is not influenced.
Step 206: the amplitude of each peak and the amplitude of each valley in the third audio signal are determined.
A plurality of wave crests and wave troughs exist in the third audio signal; each peak corresponds to a band and each valley corresponds to a band. In the implementation of the invention, the amplitude of the wave band corresponding to each wave peak and wave trough is adjusted subsequently.
Step 207: for each amplitude, a difference between the amplitude and a preset amplitude is determined.
For example: and when the preset amplitude is 0dB, obtaining a difference value a by subtracting the obtained amplitude of each peak and the obtained amplitude of each trough from the preset amplitude.
Step 208: and amplifying each amplitude in the wave band corresponding to the amplitude according to the difference.
Will be the time period t0To t1And increasing the integral amplitude of the waveform within the time period by a to enable the amplitude of each wave peak and each wave trough to be a preset amplitude, and finishing the amplification of the third audio signal.
Preferably, the detection of clipping distortion is performed again on the amplified audio signal after step 208 is performed, until it is ensured that no clipping distortion is present in the signal.
The signal processing flow is thus ended.
Step 209: if not, the first audio signal is determined not to have clipping distortion.
If the clipping distortion does not occur in the first audio signal, the first audio signal is played without replacing the clipping distortion wave band of the audio signal.
The signal processing method provided by the embodiment of the invention comprises the steps of detecting an audio signal to be played, judging whether clipping distortion occurs, and determining a clipping distortion wave band for playing the audio signal and a time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. By the signal processing method provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
EXAMPLE III
Referring to fig. 4, 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: a detecting module 301, configured to detect whether clipping distortion occurs in a first audio signal, where the first audio signal is an audio signal to be played; a first determining module 302, configured to determine, if clipping distortion occurs, a clipping distortion band in the first audio signal and a time period corresponding to the clipping distortion band; an obtaining module 303, configured to obtain an original band corresponding to the time period in a second audio signal, where the second audio signal is an original audio signal; a replacing module 304, configured to replace the clipping distortion band in the first audio signal with the original band, so as to generate a third audio signal.
The mobile terminal provided by the embodiment of the invention detects the audio signal to be played, judges whether clipping distortion occurs, and determines the clipping distortion wave band of the audio signal to be played and the time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. By using the mobile terminal provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
Example four
Referring to fig. 5, 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: a detecting module 401, configured to detect whether clipping distortion occurs in a first audio signal, where the first audio signal is an audio signal to be played; a first determining module 402, configured to determine, if clipping distortion occurs, a clipping distortion band in the first audio signal and a time period corresponding to the clipping distortion band; an obtaining module 403, configured to obtain an original band corresponding to the time period in a second audio signal, where the second audio signal is an original audio signal; a replacing module 404, configured to replace the clipping distortion band in the first audio signal with the original band, so as to generate a third audio signal.
Preferably, the mobile terminal further includes: a second determining module 405, configured to generate a third audio signal after the replacing module replaces the clipping distortion band in the first audio signal with the original band, and determine amplitudes of peaks and troughs in the third audio signal; and a target audio signal generating module 406, configured to amplify the third audio signal according to the amplitude of each peak, the amplitude of each trough, and a preset amplitude, so as to generate a target audio signal.
Preferably, the target audio signal generating module 406 includes: a difference determining submodule 4061, configured to determine, for each amplitude, a difference between the amplitude and the preset amplitude; the amplifying submodule 4062 is configured to amplify each amplitude in the band corresponding to the amplitude according to the difference.
Preferably, the detection module 401 includes: the detection submodule 4011 is configured to detect, for each amplitude of the first audio signal, whether a plurality of consecutive amplitudes are preset amplitudes; a first determining sub-module 4012, configured to determine that clipping distortion has occurred in the first audio signal if the first audio signal is the first audio signal; a second determining sub-module 4013, configured to determine that clipping distortion does not occur in the first audio signal if the first audio signal is not clipped.
The mobile terminal provided by the embodiment of the invention detects the audio signal to be played, judges whether clipping distortion occurs, and determines the clipping distortion wave band of the audio signal to be played and the time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. By using the mobile terminal provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
EXAMPLE five
Referring to fig. 6, a block diagram of a mobile terminal according to an embodiment of the present invention is shown.
The mobile terminal 800 of the embodiment of the present invention includes: at least one processor 801, memory 802, at least one network interface 804, and other user interfaces 803. The various components in the mobile terminal 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 6.
The user interface 803 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 802 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 802 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 8021 and application programs 8022.
The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing a method according to an embodiment of the present invention may be included in application program 8022.
In the embodiment of the present invention, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application program 8022, the processor 801 is configured to: detecting whether a first audio signal has clipping distortion or not, wherein the first audio signal is an audio signal to be played; if clipping distortion occurs, determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band; acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal; and correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this embodiment of the invention may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this embodiment of the invention. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 801 is further configured to: after the step of generating a third audio signal by correspondingly replacing the clipping distortion band in the first audio signal with the original band, the method further comprises: determining the amplitude of each peak and the amplitude of each trough in the third audio signal; and amplifying the third audio signal according to the amplitude of each peak, the amplitude of each trough and a preset amplitude to generate a target audio signal.
Optionally, the processor 801 is further configured to: amplifying the third audio signal according to the amplitude of each peak, the amplitude of each trough and a preset amplitude to generate a target audio signal, wherein the step comprises the following steps of: for each amplitude value, determining a difference value between the amplitude value and the preset amplitude value; and amplifying each amplitude in the wave band corresponding to the amplitude according to the difference.
Optionally, the processor 801 is further configured to: the step of detecting whether clipping distortion occurs in the first audio signal comprises: detecting whether a plurality of continuous amplitude values exist as preset amplitude values or not for each amplitude value of the first audio signal; if so, determining that clipping distortion of the first audio signal occurs; if not, determining that the first audio signal has no clipping distortion.
The mobile terminal 800 can implement each process implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
The mobile terminal provided by the embodiment of the invention detects the audio signal to be played, judges whether clipping distortion occurs, and determines the clipping distortion wave band of the audio signal to be played and the time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. By using the mobile terminal provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
EXAMPLE six
Referring to fig. 7, a block diagram of a mobile terminal according to an embodiment of the present invention is shown.
The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal of fig. 7 includes a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a processor 960, an audio circuit 970, a wifi (wireless fidelity) module 980, and a power supply 990.
The input unit 930 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (for example, a user may operate the touch panel 931 by using a finger, a stylus pen, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, 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 it to touch point coordinates, and sends the touch point coordinates to the processor 960, where the touch controller can receive and execute commands sent by the processor 960. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, and the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among them, the display unit 940 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 940 may include a display panel 941, and the display panel 941 may be optionally configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 931 may overlay the display panel 941 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen transmits the touch operation to the processor 960 to determine the type of the touch event, and then the processor 960 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 960 is a control center of the mobile terminal, connects various parts of the entire mobile phone 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 first memory 921 and calling data stored in the second memory 922, thereby performing overall monitoring of the mobile terminal. Optionally, processor 960 may include one or more processing units.
In an embodiment of the present invention, processor 960 is configured to, by invoking a software program and/or module stored in first memory 921 and/or data in second memory 922: detecting whether a first audio signal has clipping distortion or not, wherein the first audio signal is an audio signal to be played; if clipping distortion occurs, determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band; acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal; and correspondingly replacing the clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal.
Optionally, the processor 960 is further configured to: after the step of generating a third audio signal by correspondingly replacing the clipping distortion band in the first audio signal with the original band, the method further comprises: determining the amplitude of each peak and the amplitude of each trough in the third audio signal; and amplifying the third audio signal according to the amplitude of each peak, the amplitude of each trough and a preset amplitude to generate a target audio signal.
Optionally, the processor 960 is further configured to: amplifying the third audio signal according to the amplitude of each peak, the amplitude of each trough and a preset amplitude to generate a target audio signal, wherein the step comprises the following steps of: for each amplitude value, determining a difference value between the amplitude value and the preset amplitude value; and amplifying each amplitude in the wave band corresponding to the amplitude according to the difference.
Optionally, the processor 960 is further configured to: the step of detecting whether clipping distortion occurs in the first audio signal comprises: detecting whether a plurality of continuous amplitude values exist as preset amplitude values or not for each amplitude value of the first audio signal; if so, determining that clipping distortion of the first audio signal occurs; if not, determining that the first audio signal has no clipping distortion.
The mobile terminal provided by the embodiment of the invention detects the audio signal to be played, judges whether clipping distortion occurs, and determines the clipping distortion wave band of the audio signal to be played and the time period corresponding to the clipping distortion wave band when the clipping distortion occurs; and acquiring an original waveband corresponding to the time period in the original audio signal, and replacing the waveband with clipping distortion by adopting the original waveband to generate a third audio signal. By using the mobile terminal provided by the embodiment of the invention, the original audio is used for correspondingly replacing the wave band with clipping distortion, so that the problem of the clipping distortion of the audio signal can be effectively avoided, the problem of noise caused by the clipping distortion of the audio signal is avoided, and the use experience of a user can be improved.
A mobile terminal, comprising: a memory, a processor and a signal processing program stored on the memory and executable on the processor, the signal processing program, when executed by the processor, implementing the steps of the signal processing method.
A computer-readable storage medium having stored thereon a signal processing program which, when executed by a processor, implements the steps of the signal processing method.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The signal processing methods provided herein are not inherently related to any particular computer, virtual machine system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the processing method of signal processing according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

Claims (6)

1. A method of signal processing, the method comprising:
detecting whether a first audio signal has clipping distortion or not, wherein the first audio signal is an audio signal to be played;
if clipping distortion occurs, determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band;
acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal;
correspondingly replacing a clipping distortion wave band in the first audio signal by adopting the original wave band to generate a third audio signal;
the step of detecting whether clipping distortion occurs in the first audio signal comprises:
detecting whether a plurality of continuous amplitude values exist as preset amplitude values or not for each amplitude value of the first audio signal;
if so, determining that clipping distortion of the first audio signal occurs;
if not, determining that the first audio signal has no clipping distortion;
wherein, after the step of generating a third audio signal by correspondingly replacing the clipping distortion band in the first audio signal with the original band, the method further comprises:
determining the amplitude of each peak and the amplitude of each trough in the third audio signal;
amplifying the third audio signal according to the amplitude of each peak, the amplitude of each trough and a preset amplitude to generate a target audio signal; wherein the target audio signal is free of clipping distortion conditions;
the first audio signal is an audio signal to be played, and the audio signal to be played is a signal output after an original audio signal is subjected to algorithm processing; the waveform of the original audio signal is free from clipping distortion.
2. The method of claim 1, wherein the step of amplifying the third audio signal according to the amplitude of each peak, the amplitude of each valley and a preset amplitude to generate a target audio signal comprises:
for each amplitude value, determining a difference value between the amplitude value and the preset amplitude value;
and amplifying each amplitude in the wave band corresponding to the amplitude according to the difference.
3. A mobile terminal, characterized in that the mobile terminal comprises:
the device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting whether clipping distortion occurs to a first audio signal, and the first audio signal is an audio signal to be played;
the first determining module is used for determining a clipping distortion wave band in the first audio signal and a time period corresponding to the clipping distortion wave band if clipping distortion occurs;
the acquisition module is used for acquiring an original waveband corresponding to the time period in a second audio signal, wherein the second audio signal is an original audio signal;
a replacing module, configured to replace a clipping distortion band in the first audio signal with the original band, so as to generate a third audio signal;
the detection module comprises:
the detection submodule is used for detecting whether a plurality of continuous amplitude values exist as preset amplitude values or not according to each amplitude value of the first audio signal;
a first determining submodule, configured to determine that clipping distortion has occurred in the first audio signal if the first audio signal is a non-clipping audio signal;
the second determining submodule is used for determining that the first audio signal has no clipping distortion if the first audio signal does not have the clipping distortion; wherein the mobile terminal further comprises:
a second determining module, configured to generate a third audio signal after the replacing module replaces the clipping distortion band in the first audio signal with the original band, and determine amplitudes of peaks and troughs in the third audio signal;
the target audio signal generation module is used for amplifying the third audio signal according to the amplitude of each peak, the amplitude of each trough and a preset amplitude to generate a target audio signal; wherein the target audio signal is free of clipping distortion conditions;
the first audio signal is an audio signal to be played, and the audio signal to be played is a signal output after an original audio signal is subjected to algorithm processing; the waveform of the original audio signal is free from clipping distortion.
4. The mobile terminal of claim 3, wherein the target audio signal generation module comprises:
a difference determination submodule for determining, for each amplitude, a difference between the amplitude and the preset amplitude;
and the amplification submodule is used for amplifying each amplitude in the wave band corresponding to the amplitude according to the difference.
5. A mobile terminal, comprising: memory, a processor and a signal processing program stored on the memory and executable on the processor, the signal processing program, when executed by the processor, implementing the steps of the signal processing method according to any one of claims 1 to 2.
6. A computer-readable storage medium, having stored thereon a signal processing program which, when executed by a processor, implements the steps of the signal processing method according to any one of claims 1 to 2.
CN201710698180.9A 2017-08-15 2017-08-15 Signal processing method and mobile terminal Active CN107690026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710698180.9A CN107690026B (en) 2017-08-15 2017-08-15 Signal processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710698180.9A CN107690026B (en) 2017-08-15 2017-08-15 Signal processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107690026A CN107690026A (en) 2018-02-13
CN107690026B true CN107690026B (en) 2020-10-27

Family

ID=61153365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710698180.9A Active CN107690026B (en) 2017-08-15 2017-08-15 Signal processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107690026B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600915B (en) * 2018-08-09 2024-02-06 歌尔科技有限公司 Audio output method and device, harmonic distortion filtering equipment and terminal
CN109893163B (en) * 2019-01-23 2021-07-02 苏州美糯爱医疗科技有限公司 Method for automatically positioning and repairing clipping distortion waveform of electronic stethoscope
CN114403866B (en) * 2022-01-28 2022-08-19 广东工业大学 Noninvasive blood sugar prediction device based on near-infrared light wavelength conversion
CN117998254A (en) * 2024-04-07 2024-05-07 腾讯科技(深圳)有限公司 Broken sound restoration method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005136544A (en) * 2003-10-29 2005-05-26 Nec Corp Distorted speech restoring device and restoring method
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
CN104469607A (en) * 2013-09-20 2015-03-25 恩智浦有限公司 An audio and ultrasound signal processing circuit and an ultrasound signal processing circuit, and associated methods
CN106024035A (en) * 2016-05-04 2016-10-12 珠海市魅族科技有限公司 Audio processing method and terminal
CN106847307A (en) * 2016-12-21 2017-06-13 广州酷狗计算机科技有限公司 Signal detecting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005136544A (en) * 2003-10-29 2005-05-26 Nec Corp Distorted speech restoring device and restoring method
CN104469607A (en) * 2013-09-20 2015-03-25 恩智浦有限公司 An audio and ultrasound signal processing circuit and an ultrasound signal processing circuit, and associated methods
CN103746668A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Sound volume control method and system
CN106024035A (en) * 2016-05-04 2016-10-12 珠海市魅族科技有限公司 Audio processing method and terminal
CN106847307A (en) * 2016-12-21 2017-06-13 广州酷狗计算机科技有限公司 Signal detecting method and device

Also Published As

Publication number Publication date
CN107690026A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN107690026B (en) Signal processing method and mobile terminal
CN107171874B (en) Voice engine switching method, mobile terminal and server
US9851898B2 (en) Method for changing display range and electronic device thereof
CN107526492B (en) Interface display method of application program and mobile terminal
US9104303B2 (en) Computer device with touch screen and method for operating the same
CN107562345B (en) Information storage method and mobile terminal
KR102171803B1 (en) Method for detecting an input and an electronic device thereof
CN106993097B (en) Music playing method and mobile terminal
CN107277268B (en) Audio playing method and mobile terminal
CN107507621B (en) Noise suppression method and mobile terminal
US20140086434A1 (en) Method and apparatus for customizing audio signal processing for a user
CN106095250B (en) Application icon layout method and mobile terminal
CN107506130B (en) Character deleting method and mobile terminal
CN106446180B (en) Song identification method and mobile terminal
US9692384B2 (en) System and method for audio volume control
CN107221347B (en) Audio playing method and terminal
CN107547738B (en) Prompting method and mobile terminal
CN106161776B (en) Volume adjusting method and mobile terminal
CN106780314B (en) Jigsaw previewing method and mobile terminal
CN106775378B (en) Method for determining candidate words of input method and mobile terminal
WO2019019970A1 (en) Split-screen display method and terminal
CN106303841B (en) Audio playing mode switching method and mobile terminal
CN106991150B (en) Webpage data display method and mobile terminal
CN106686249B (en) Voice communication method and mobile terminal
CN106934052B (en) Media text processing 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