Signal processing method and device, readable storage medium and computer program product
By pattern recognition of the original signal and adjusting the high-pass filter parameters, the problem of signal intermodulation distortion in ultra-thin large amplitude speakers is solved, and the audio quality is improved without adding hardware, reducing costs.
Patent Information
- Application Number
- CN202510005277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, the signal output by the ultra-thin large amplitude speaker has severe nonlinear distortion, resulting in an increase in signal intermodulation distortion and affecting the audio quality.
By acquiring the original signal and performing signal pattern recognition, the recognition result is used to adjust the filter parameters of the high-pass filter and filter out the low-frequency signals in the original signal, thereby reducing the occurrence of signal intermodulation distortion.
It effectively reduces the occurrence of signal intermodulation distortion, improves audio quality, and is implemented at the software level, avoiding the need for additional hardware and reducing implementation costs.
Smart Images

Figure CN119946518A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a signal processing method, device, readable storage medium and computer program product. Background Art
[0002] As users pursue thinner and lighter devices, the space (including area and thickness) occupied by the acoustic system in the device has been significantly reduced. The thickness of the speaker unit in the acoustic system is getting thinner and thinner, and the amplitude is getting larger to obtain better low-frequency effects. However, the signal output by the ultra-thin large-amplitude speaker will have very serious nonlinear distortion, causing an increase in intermodulation distortion (IMD), resulting in turbid and unclear audio playback, the introduction of noise, and other problems that affect audio quality.
[0003] Therefore, how to reduce the generation of signal intermodulation distortion to improve audio quality is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The main purpose of the present application is to provide a signal processing method, device, readable storage medium and computer program product, aiming to solve the technical problem of how to reduce the generation of signal intermodulation distortion to improve audio quality.
[0005] To achieve the above object, the present application provides a signal processing method, the signal processing method comprising:
[0006] Acquire an original signal to be processed, and input the original signal into a high-pass filter;
[0007] Performing signal pattern recognition on the original signal to obtain a recognition result, wherein the recognition result is a result of characterizing whether intermodulation audio exists in the original signal;
[0008] The filter parameters of the high-pass filter are adjusted according to the recognition result, and the signal output by the high-pass filter is determined as the processing result.
[0009] In one embodiment, the step of performing signal pattern recognition on the original signal to obtain a recognition result includes:
[0010] Performing signal frequency detection on the original signal to obtain a detection result;
[0011] If the detection result is that the original signal contains a low-frequency signal and a high-frequency signal, determining that the original signal contains intermodulation audio is a recognition result;
[0012] If the detection result is that there is no low-frequency signal and / or no high-frequency signal in the original signal, determining that there is no intermodulation audio in the original signal is a recognition result;
[0013] Among them, the low-frequency signal is a signal whose signal frequency belongs to a preset low-frequency range, the high-frequency signal is a signal whose signal frequency belongs to a preset high-frequency range, and the upper limit value of the preset low-frequency range is less than or equal to the lower limit value of the preset high-frequency range.
[0014] In one embodiment, the step of performing signal pattern recognition on the original signal to obtain a recognition result includes:
[0015] The original signal is input into a pre-trained pattern recognition model to obtain a recognition result.
[0016] In one embodiment, the filter parameters include a cutoff frequency, and the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes:
[0017] If the recognition result indicates that intermodulation audio exists in the original signal, the cutoff frequency of the high-pass filter is adjusted to a first frequency, and the first frequency is greater than a lower limit value of a preset low-frequency range.
[0018] In one embodiment, the step of adjusting the filter parameters of the high-pass filter according to the recognition result comprises:
[0019] If the recognition result indicates that there is no intermodulation audio in the original signal, the cutoff frequency of the high-pass filter is adjusted to a second frequency, where the second frequency is less than the first frequency and the second frequency is less than an upper limit value of a preset low-frequency range.
[0020] In one embodiment, the filter parameters further include a filter order, and the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes:
[0021] If the recognition result indicates that intermodulation audio exists in the original signal, adjusting the filter order of the high-pass filter to a first order;
[0022] If the recognition result indicates that there is no intermodulation audio in the original signal, the filter order of the high-pass filter is adjusted to a second order, wherein the first order is greater than the second order.
[0023] In one embodiment, after the step of performing signal pattern recognition on the original signal to obtain a recognition result, the method further includes:
[0024] If the recognition result indicates that there is no intermodulation audio in the original signal, the high-pass filter is controlled to enter a dormant state, and the step of determining that the signal output by the high-pass filter is a processing result is performed.
[0025] In addition, to achieve the above-mentioned purpose, the present application also provides a signal processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal processing method as described above.
[0026] In addition, to achieve the above-mentioned purpose, the present application also provides a readable storage medium, which is a computer-readable storage medium, and a program for implementing the signal processing method is stored on the computer-readable storage medium. The program for implementing the signal processing method is executed by a processor to implement the steps of the signal processing method as described above.
[0027] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the signal processing method described above are implemented.
[0028] One or more technical solutions proposed in this application have at least the following technical effects:
[0029] The original signal to be processed is obtained, and the original signal is input into a high-pass filter; the original signal is subjected to signal pattern recognition to obtain a recognition result, and the filter parameters of the high-pass filter are adjusted according to the recognition result, wherein the recognition result is a result of characterizing whether there is intermodulation audio in the original signal; and the signal output by the high-pass filter is determined to be the processing result. Considering that the intermodulation distortion of the signal mainly comes from the modulation of the high-frequency signal by the low-frequency signal, based on this, in the embodiment of the present application, after the original signal to be processed is obtained, the original signal is subjected to signal pattern recognition, and the filter parameters of the high-pass filter are adjusted according to the recognition result, so that when the recognition result indicates that there is intermodulation audio in the original signal, the high-pass filter can filter out the low-frequency signal in the original signal by adjusting the filter parameters, thereby reducing or even avoiding the modulation of the high-frequency signal by the low-frequency signal, thereby reducing the generation of signal intermodulation distortion and improving audio quality. And from the embodiment of the present application, the reduction of intermodulation distortion is achieved from the software level, without the need to design additional circuits or add additional hardware devices to reduce intermodulation distortion, thereby reducing the implementation cost of reducing intermodulation distortion. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0032] Figure 1 This is a flow chart of the first embodiment of the signal processing method of the present application;
[0033] Figure 2 A brief flowchart of the signal processing method of this application;
[0034] Figure 3 This is a schematic diagram of a signal pattern recognition process involved in an embodiment of a signal processing method of the present application;
[0035] Figure 4 A schematic diagram of a cutoff frequency-normalized amplitude variation curve of a high-pass filter involved in an embodiment of a signal processing method of the present application;
[0036] Figure 5 A schematic diagram of a filter order-normalized amplitude variation curve of a high-pass filter involved in an embodiment of a signal processing method of the present application;
[0037] Figure 6 This is a schematic diagram of the structure of the signal processing device of the present application;
[0038] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the signal processing device in the embodiment of the present application.
[0039] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0041] With the development of extended reality technologies such as AR (Augmented Reality) and VR (Virtual Reality), the audio experience of head-mounted devices is increasingly valued by users. On the other hand, due to the pursuit of thinner and lighter devices, the space occupied by the acoustic system is increasingly tending to develop in the direction of large-area ultra-thin flattening, and the thickness of the speaker unit is getting thinner and the amplitude is getting larger to obtain better low-frequency effects. However, ultra-thin and large-amplitude speakers will have very serious nonlinear distortion, causing an increase in total harmonic distortion (THD) and intermodulation distortion (IMD), resulting in turbid and unclear audio playback, and introducing negative problems such as noise.
[0042] For head-mounted audio devices such as AR and VR, IMD is usually more likely to cause playback degradation. This is because intermodulation distortion comes from the modulation of high-frequency signals by low-frequency signals, which causes the entire high-frequency signal to have a low-frequency periodic envelope, causing the sound to tremble, resulting in turbidity and noise. Since these devices are close to the ear canal, low frequencies are easier to replay, and usually their low-frequency gain is larger, which also introduces more serious intermodulation distortion. Intermodulation distortion has exceeded the amplitude limit of the speaker and has become the biggest shortcoming that limits the performance of low frequencies.
[0043] Based on this, the main solution of the present application is: obtain the original signal to be processed, and input the original signal into a high-pass filter; perform signal pattern recognition on the original signal to obtain a recognition result, and adjust the filter parameters of the high-pass filter according to the recognition result, wherein the recognition result is a result that characterizes whether intermodulation audio exists in the original signal; and determine that the signal output by the high-pass filter is the processing result.
[0044] After acquiring the original signal to be processed, the present application performs signal pattern recognition on the original signal, and adjusts the filter parameters of the high-pass filter according to the recognition result, so that when the recognition result indicates that there is intermodulation audio in the original signal, the filter parameters can be adjusted so that the high-pass filter can filter out the low-frequency signal in the original signal, thereby reducing or even avoiding the modulation of the low-frequency signal on the high-frequency signal, thereby reducing the generation of signal intermodulation distortion and improving audio quality. In addition, the present application realizes the reduction of intermodulation distortion from the software level, without the need to design additional circuits or add additional hardware devices to reduce intermodulation distortion, thereby reducing the implementation cost of reducing intermodulation distortion.
[0045] It should be noted that the execution subject of each embodiment of the signal processing method of the present application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a signal processing device capable of realizing the above functions, such as an AR helmet, a VR helmet, AR glasses, VR glasses, headphones, etc. The embodiments of the signal processing method of the present application do not impose specific restrictions on this.
[0046] Based on this, the present application proposes a signal processing method of the first embodiment, please refer to Figure 1 , the signal processing method comprises steps S10 to S30:
[0047] Step S10, obtaining an original signal to be processed, and inputting the original signal into a high-pass filter;
[0048] It should be noted that, in order to facilitate the subsequent acquisition of duration, after acquiring the original signal, if the original signal is a frequency domain signal, the original signal in the frequency domain is converted to the time domain. Specifically, the frequency domain signal can be converted to the time domain by inverse Fourier transform, and subsequent processing is performed based on the original signal in the time domain.
[0049] After obtaining the original signal, the original signal can be input into a high-pass filter so that dynamic filtering of the original signal can be achieved by changing the filter parameters. Dynamic filtering of the original signal can be achieved through simple parameter adjustment, which is low-cost and easy to deploy in devices with lower computing power.
[0050] Step S20, performing signal pattern recognition on the original signal to obtain a recognition result, wherein the recognition result is a result indicating whether intermodulation audio exists in the original signal;
[0051] The original signal is subjected to signal pattern recognition to obtain a recognition result, and the recognition result is a result characterizing whether intermodulation audio exists in the original signal, that is, there are at least two different recognition results for signal pattern recognition, one of which indicates that intermodulation audio exists in the original signal, and the other indicates that intermodulation audio does not exist in the original signal. For example, in a specific embodiment, the recognition result may be 0 or 1, wherein 0 indicates that intermodulation audio does not exist in the original signal, and 1 indicates that intermodulation audio exists in the original signal.
[0052] As for the specific identification method of signal pattern recognition, as one implementation mode, the step of performing signal pattern recognition on the original signal to obtain a recognition result includes steps S201 to S203:
[0053] Step S201, the original signal is subjected to signal frequency detection to obtain a detection result;
[0054] The signal frequency detection is the detection of the frequency component composition in the original signal. Specifically, the signal frequency detection of the original signal can be performed using a known frequency component detection method, such as a spectrum analyzer, a frequency scanning method, a filter bank method, a Hilbert-Huang Transform (HHT), etc. This embodiment does not impose specific restrictions on this, and does not describe in detail the specific detection process of the signal frequency detection.
[0055] After the original signal is subjected to signal frequency detection, a detection result is obtained, and the detection result is used to indicate the frequency component composition of the original signal.
[0056] Step S202, if the detection result is that the original signal contains a low-frequency signal and a high-frequency signal, determining that the original signal contains intermodulation audio as a recognition result;
[0057] Step S203, if the detection result is that there is no low-frequency signal and / or no high-frequency signal in the original signal, determining that there is no intermodulation audio in the original signal is a recognition result;
[0058] Among them, the low-frequency signal is a signal whose signal frequency belongs to a preset low-frequency range, the high-frequency signal is a signal whose signal frequency belongs to a preset high-frequency range, and the upper limit value of the preset low-frequency range is less than or equal to the lower limit value of the preset high-frequency range.
[0059] Intermodulation distortion requires multi-audio excitation of multiple frequencies at the same time to be generated. Intermodulation distortion will not be generated when only low frequency or high frequency exists. Based on this, when it is detected that there are low-frequency signals and high-frequency signals in the original signal, it is determined that there is intermodulation audio in the original signal as the recognition result. When it is detected that there is no low-frequency signal and / or no high-frequency signal in the original signal, it is determined that there is no intermodulation audio in the original signal as the recognition result.
[0060] A low-frequency signal is a signal whose signal frequency belongs to a preset low-frequency range, and a high-frequency signal is a signal whose signal frequency belongs to a preset high-frequency range. It should be noted that relevant personnel can set the preset low-frequency range and the preset high-frequency range based on experience or experimental measurement. Generally speaking, when a signal includes both a low-frequency signal with a frequency belonging to the preset low-frequency range and a high-frequency signal belonging to the preset high-frequency range, the probability of the signal generating intermodulation distortion is greater than a certain value (the certain value can be set by relevant personnel based on actual needs, such as when the audio quality requirements are high, a smaller value can be set, and when the audio quality requirements are low, a larger value can be set). For example, in a specific embodiment, the preset low-frequency range is less than or equal to 200 Hz, and the preset high-frequency range is 200 Hz to 1200 Hz.
[0061] As another implementation, the step of performing signal pattern recognition on the original signal to obtain a recognition result includes step S204:
[0062] Step S204: input the original signal into a pre-trained pattern recognition model to obtain a recognition result.
[0063] The pattern recognition model may specifically be a classification model, such as a support vector machine (SVM) model, a logistic regression (LR) model, a decision tree (DT) model, a neural network model, etc., and this embodiment does not impose any specific limitation on this.
[0064] For the training of the pattern recognition model, specifically, the relevant personnel can prepare the relevant label data set in advance to train the pattern recognition model. Among them, the label data set includes multiple signals and the label corresponding to each signal, and each label can specifically be the presence of intermodulation audio or the absence of intermodulation audio. Specifically, the label of each signal can be annotated by the relevant personnel.
[0065] By performing pattern recognition on the original signal through a pre-trained pattern recognition model, on the one hand, the recognition efficiency of signal pattern recognition can be improved; on the other hand, based on the good generalization ability of the model, the stability and accuracy of the pattern recognition results can also be improved.
[0066] It should be noted that the above are only two feasible implementation methods of the signal pattern recognition provided by this embodiment, and this embodiment does not specifically limit the specific implementation methods of the signal pattern recognition.
[0067] Step S30, adjusting the filter parameters of the high-pass filter according to the recognition result, and determining the signal output by the high-pass filter as the processing result.
[0068] Initially, the filter parameters of the high-pass filter can be set to preset initial parameter values. Relevant personnel can set the initial values of the filter parameters according to actual needs, that is, relevant personnel can set preset initial parameter values according to actual needs, and this embodiment does not make any specific restrictions on this.
[0069] The filter parameters include but are not limited to the cutoff frequency, and may also include the filter order. The cutoff frequency refers to the frequency at which the filter starts to significantly attenuate (reduce) the signal strength from allowing the signal to pass. It is a key parameter to describe the performance of the filter and determines the frequency range that the filter can pass. The order of the filter refers to the number of independent energy storage elements (such as capacitors, inductors, delay units, etc.) in the differential equation, transfer function or frequency response characteristics used in the filter design, or equivalently, it refers to the highest power of the denominator polynomial that constitutes the filter transfer function. The order of the filter determines the complexity and filtering characteristics of the filter, including the sharpness of its frequency response (i.e., the width of the transition band) and the attenuation rate in the stop band.
[0070] It should be noted that in order to realize the adjustable filter parameters of the high-pass filter, the high-pass filter can be a digital filter or an analog filter with adjustable parameters. The digital filter is a system that uses digital signal processing technology to realize the filtering function. It processes the digital signal to reduce or eliminate unwanted frequency components. Specifically, it can be implemented by software on a digital signal processor (DSP) or a microprocessor. An analog filter is an electronic filter that is used to process analog signals, i.e., continuously changing voltage or current signals. Its main function is to allow signals within a specific frequency range to pass while suppressing or reducing signals of other frequencies. Analog filters are usually composed of passive components such as resistors, capacitors, inductors, or active components such as operational amplifiers.
[0071] Further, in order to make the high-pass filter filter out the low-frequency signal in the original signal when intermodulation audio exists in the original signal to reduce the generation of signal intermodulation distortion, the filter parameters include a cutoff frequency, and the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes:
[0072] Step S301: If the recognition result indicates that intermodulation audio exists in the original signal, the cutoff frequency of the high-pass filter is adjusted to a first frequency, and the first frequency is greater than a lower limit value of a preset low-frequency range.
[0073] The preset low-frequency range is the same range as the above-mentioned preset low-frequency range. Preferably, the first frequency is greater than or equal to the upper limit value of the preset low-frequency range. In this way, after the original signal passes through the high-pass filter, the low-frequency signal in the preset low-frequency range can be partially or even completely filtered out (theoretically completely filtered out, but in reality it may not achieve the ideal effect), thereby achieving the maximum filtering effect on the low-frequency signal in the original signal.
[0074] Considering that intermodulation distortion causes changes in the amplitude envelope of the high-frequency signal, its envelope period is equal to half of the low-frequency period. When the low-frequency signal frequency is low, the envelope frequency is also lower, which is easier to be detected by the human ear. When the low-frequency signal frequency is high, the envelope frequency is larger, and the faster "jitter" is difficult for the human ear to detect. When the envelope frequency is greater than 220Hz, the human ear cannot detect the "jitter" of the sound, and thus cannot perceive the intermodulation distortion. Based on this, when the recognition result indicates that there is intermodulation audio in the original signal, the low-frequency signal in the original signal is filtered out to eliminate the low-frequency signal, thereby avoiding the modulation of the higher-frequency high-frequency signal by the lower-frequency low-frequency signal, thereby avoiding the human ear's perception of intermodulation distortion.
[0075] Among them, the amplitude envelope (AE) refers to the amplitude change curve of an audio signal or a modulated signal over a period of time. It describes the change of signal strength over time. The envelope frequency refers to the frequency of the signal envelope (i.e. the changing profile of the signal amplitude). In many cases, especially when the signal is an amplitude modulated (AM) signal, the envelope will change over time, and the rate of this change is the envelope frequency.
[0076] In addition, considering that the intermodulation distortion is mainly generated from the continuous low-frequency signal, it will cause the existence of a continuous amplitude envelope in the mid-high frequency, which is easy to be perceived by the human ear; while the bursty low-frequency signal will only produce an instantaneous amplitude envelope, and it is difficult for the human ear to feel this kind of audio "jitter" in the changing audio, and when the energy of the high-frequency signal is higher, their interaction in the nonlinear system is stronger, which is also more likely to produce intermodulation distortion. Based on this, if the recognition result indicates that there is no intermodulation audio in the original signal, the duration of the low-frequency signal in the original signal can be further detected, or the signal energy of the high-frequency signal in the original signal can be detected. If the signal energy of the high-frequency signal is greater than the preset threshold, or the duration of the low-frequency signal is greater than the preset duration, the low-frequency signal in the original signal is filtered out by a high-pass filter, the same below, and no further explanation will be given later). If the signal energy of the high-frequency signal is less than or equal to the preset threshold and the duration of the low-frequency signal is less than or equal to the preset duration, the low-frequency signal in the original signal is retained to further reduce the intermodulation distortion phenomenon, thereby improving the audio quality.
[0077] In this embodiment, the original signal to be processed is obtained, and the original signal is input into a high-pass filter; the original signal is subjected to signal pattern recognition to obtain a recognition result, and the filter parameters of the high-pass filter are adjusted according to the recognition result, wherein the recognition result is a result of characterizing whether there is intermodulation audio in the original signal; and the signal output by the high-pass filter is determined as the processing result. Considering that the intermodulation distortion of the signal mainly comes from the modulation of the high-frequency signal by the low-frequency signal, based on this, in this embodiment, after the original signal to be processed is obtained, the original signal is subjected to signal pattern recognition, and the filter parameters of the high-pass filter are adjusted according to the recognition result, so that when the recognition result indicates that there is intermodulation audio in the original signal, the high-pass filter can filter out the low-frequency signal in the original signal by adjusting the filter parameters, thereby reducing or even avoiding the modulation of the high-frequency signal by the low-frequency signal, thereby reducing the generation of signal intermodulation distortion and improving audio quality. In addition, this embodiment realizes the reduction of intermodulation distortion from the software level, without the need to design additional circuits or add additional hardware devices to reduce intermodulation distortion, thereby reducing the implementation cost of reducing intermodulation distortion.
[0078] In order to solve the problem of intermodulation distortion, the usual method is to add a high-pass filter with a cutoff frequency greater than 110Hz to filter out the low-frequency signal in the signal. This is because intermodulation distortion causes the amplitude envelope of the high frequency, and its envelope period is equal to half of the low-frequency period. When the low-frequency signal frequency is low, the envelope frequency is also lower, which is easier to be detected by the human ear. When the low-frequency signal frequency is high, the envelope frequency is larger, and the faster "jitter" is difficult for the human ear to detect. According to psychoacoustic research, when the envelope frequency is greater than 220Hz, the human ear cannot detect the "jitter" of the sound, and thus cannot perceive intermodulation distortion. Adding a high-pass filter with a cutoff frequency greater than 110Hz eliminates low-frequency signals below the cutoff frequency, thereby avoiding the modulation of the higher-frequency high-frequency signal by the lower-frequency low-frequency signal, and thus avoiding the human ear's perception of intermodulation distortion.
[0079] However, the above operation will also introduce negative effects. From a subjective listening point of view, the frequency of 40 Hz to 80 Hz will significantly affect the diving depth and atmosphere of low-frequency drum beats. There are also a lot of low-frequency components from 80 Hz to 110 Hz. Adding a high-pass filter with a cutoff frequency greater than 110 Hz will significantly affect the low-frequency performance of the signal. It can be said that in order to solve the problem of intermodulation distortion, you can only choose between low-frequency volume and distortion, and it is difficult to have both.
[0080] Based on this and the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and no further description will be given later. On this basis, the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes:
[0081] Step A10: If the recognition result indicates that there is no intermodulation audio in the original signal, the cutoff frequency of the high-pass filter is adjusted to a second frequency, where the second frequency is less than the first frequency and the second frequency is less than an upper limit value of a preset low-frequency range.
[0082] The second frequency is less than the first frequency, and the second frequency is less than the upper limit of the preset low frequency range to ensure that the low frequency signal can be retained after passing through the high pass filter. Preferably, the second frequency can be less than or equal to the lower limit of the preset low frequency range and greater than or equal to zero to retain as much low frequency signal as possible (theoretically, it is completely retained at this time) to improve the low frequency volume.
[0083] In this embodiment, if the recognition result indicates that there is no intermodulation audio in the original signal, the low-frequency signal in the original signal is retained. Specifically, the original signal may not be processed in any way, or the cutoff frequency of the high-pass filter may be lowered to retain part or all of the low-frequency signal. In this way, when there is no intermodulation audio in the original signal, the low-frequency signal in the original signal is retained, which can improve the low-frequency volume of the signal. When the presence of intermodulation audio in the original signal is identified, the low-frequency signal in the original signal is filtered out, which can reduce intermodulation distortion, thereby achieving both low-frequency volume and reduced intermodulation distortion.
[0084] In a possible implementation manner, after the step of performing signal pattern recognition on the original signal to obtain a recognition result, the method further includes:
[0085] Step B10: If the recognition result indicates that there is no intermodulation audio in the original signal, the high-pass filter is controlled to enter a dormant state, and the step of determining that the signal output by the high-pass filter is a processing result is performed.
[0086] It should be noted that the sleep state refers to the state in which the high-pass filter is not working, that is, the high-pass filter is not started. At this time, the high-pass filter can be understood as a data transmission channel, and no processing is performed on the input data. In this embodiment, no processing is performed on the original signal.
[0087] If the recognition result indicates that there is no intermodulation audio in the original signal, the high-pass filter is controlled to enter a sleep state. In this way, the next time the duration of the low-frequency signal in the original signal is detected to be greater than the preset duration, the high-pass filter can be directly started without updating the filter parameters of the high-pass filter again, thereby reducing the number of times the filter parameters of the high-pass filter are updated.
[0088] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments can be referred to the above description, and will not be described in detail later. On this basis, the filter parameters also include the filter order, and the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes:
[0089] Step C10, if the recognition result indicates that intermodulation audio exists in the original signal, adjusting the filter order of the high-pass filter to a first order;
[0090] Step C20: If the recognition result indicates that there is no intermodulation audio in the original signal, the filter order of the high-pass filter is adjusted to a second order, wherein the first order is greater than the second order.
[0091] It is understandable that a high-order filter with a higher filter order has a sharper cutoff characteristic. This means that near the cutoff frequency, the filter can drop from the passband to the stopband faster, providing better frequency selectivity, while a low-order filter with a lower filter order has a relatively flat cutoff characteristic, and a wider transition area between the passband and the stopband. In this way, when the pattern recognizes that there is intermodulation audio in the original signal, adjusting the filter order of the high-pass filter to a higher first order can better filter out the low-frequency signal in the original signal to further reduce the generation of intermodulation distortion.
[0092] For example, to help understand the technical concept or technical principle of the signal processing method after the present embodiment is combined with the first embodiment, the second embodiment and the third embodiment, please refer to Figure 2 As shown, the signal processing flow is:
[0093] Get the original signal ( Figures 2 to 3 After the input signal shown in the figure is obtained, the original signal is copied to obtain two copies of the original signal, one of which is input into the high-pass filter, and the other is input into the signal detector. The signal detector performs pattern recognition on the original signal according to the signal characteristics to obtain a recognition result, and determines an adjustment strategy for the filter parameters based on the recognition result according to the set logic, so as to adjust the filter parameters of the high-pass filter based on the adjustment strategy, and filter the signal through the high-pass filter to achieve the purpose of reducing or eliminating intermodulation distortion.
[0094] Specifically, refer to Figures 3 to 5As shown, the signal detector is used to increase the cutoff frequency Fc and the stopband attenuation rate of the high-pass filter (by dynamically adjusting the filter order) to filter out the low-frequency signal in the original signal if the signal pattern recognition result indicates that intermodulation audio exists in the original signal. If the signal pattern recognition result indicates that intermodulation audio does not exist in the original signal, the cutoff frequency and the filter order of the high-pass filter are reduced or the high-pass filter is not started to retain the low-frequency signal in the original signal.
[0095] Furthermore, Figure 4 This is a curve diagram of the change of the normalized amplitude of the high-pass filter with the cutoff frequency. The horizontal axis represents the frequency and the vertical axis represents the normalized amplitude of the filter. Figure 5 This is a curve of the change of the normalized amplitude of the high-pass filter with the stopband attenuation rate (that is, the filter order). The horizontal axis represents the frequency and the vertical axis represents the normalized amplitude of the filter. Among them, the normalized amplitude of the filter is a relative measure, which is used to describe the response of the filter to signals of different frequencies, rather than using absolute amplitude units (such as volts or decibels). At the cutoff frequency Fc and above Fc, the normalized amplitude of the filter is 1 (or 0dB), which means that the output amplitude is equal to the input amplitude. Below the cutoff frequency, the normalized amplitude is less than 1 (or a negative decibel value), indicating that the signal is attenuated.
[0096] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the signal processing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0097] In addition, the present application also provides a signal processing device, referring to Figure 6 As shown, the signal processing device includes:
[0098] An acquisition module 10 is used to acquire an original signal to be processed and input the original signal into a high-pass filter;
[0099] The recognition module 20 is used to perform signal pattern recognition on the original signal to obtain a recognition result, wherein the recognition result is a result indicating whether intermodulation audio exists in the original signal;
[0100] The adjustment module 30 is used to adjust the filter parameters of the high-pass filter according to the recognition result, and determine the signal output by the high-pass filter as the processing result.
[0101] In one embodiment, the identification module 20 is further used for:
[0102] Performing signal frequency detection on the original signal to obtain a detection result;
[0103] If the detection result is that the original signal contains a low-frequency signal and a high-frequency signal, determining that the original signal contains intermodulation audio is a recognition result;
[0104] If the detection result is that there is no low-frequency signal and / or no high-frequency signal in the original signal, determining that there is no intermodulation audio in the original signal is a recognition result;
[0105] Among them, the low-frequency signal is a signal whose signal frequency belongs to a preset low-frequency range, the high-frequency signal is a signal whose signal frequency belongs to a preset high-frequency range, and the upper limit value of the preset low-frequency range is less than or equal to the lower limit value of the preset high-frequency range.
[0106] In one embodiment, the identification module 20 is further used for:
[0107] The original signal is input into a pre-trained pattern recognition model to obtain a recognition result.
[0108] In one embodiment, the filter parameters include a cutoff frequency, and the adjustment module 30 is further configured to:
[0109] If the recognition result indicates that intermodulation audio exists in the original signal, the cutoff frequency of the high-pass filter is adjusted to a first frequency, and the first frequency is greater than a lower limit value of a preset low-frequency range.
[0110] In one embodiment, the adjustment module 30 is further used for:
[0111] If the recognition result indicates that there is no intermodulation audio in the original signal, the cutoff frequency of the high-pass filter is adjusted to a second frequency, where the second frequency is less than the first frequency and the second frequency is less than an upper limit value of a preset low-frequency range.
[0112] In one embodiment, the filter parameters further include a filter order, and the adjustment module 30 is further configured to:
[0113] If the recognition result indicates that intermodulation audio exists in the original signal, adjusting the filter order of the high-pass filter to a first order;
[0114] If the recognition result indicates that there is no intermodulation audio in the original signal, the filter order of the high-pass filter is adjusted to a second order, wherein the first order is greater than the second order.
[0115] In one embodiment, the signal processing device further includes a sleep module, and the sleep module is used to:
[0116] If the recognition result indicates that there is no intermodulation audio in the original signal, the high-pass filter is controlled to enter a dormant state.
[0117] In addition, an embodiment of the present application also proposes a signal processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal processing method as described above.
[0118] In addition, reference Figure 7 , which shows a schematic diagram of the structure of a signal processing device suitable for implementing an embodiment of the present application. The signal processing device in the embodiment of the present application may also include but is not limited to mobile terminals such as AR helmets, VR helmets, headphones, AR glasses, VR glasses, mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The signal processing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0119] like Figure 7 As shown, the signal processing device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the signal processing device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the signal processing device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a signal processing device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0120] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0121] The signal processing device provided in the embodiment of the present application adopts the signal processing method in the above embodiment to solve the problem of how to reduce the generation of signal intermodulation distortion to improve the audio quality. Compared with the prior art, the beneficial effects of the signal processing device provided in the present application are the same as the beneficial effects of the signal processing method provided in the above embodiment, and other technical features in the signal processing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0122] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0123] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0124] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the signal processing method in the above-mentioned embodiment.
[0125] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0126] The computer-readable storage medium may be included in the signal processing device; or may exist independently without being assembled into the signal processing device.
[0127] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a signal processing device, the signal processing device: obtains an original signal to be processed, and inputs the original signal into a high-pass filter; performs signal pattern recognition on the original signal to obtain a recognition result, wherein the recognition result is a result that characterizes whether intermodulation audio exists in the original signal; adjusts the filter parameters of the high-pass filter according to the recognition result, and determines that the signal output by the high-pass filter is the processing result.
[0128] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0129] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0130] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0131] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned signal processing method, and can solve how to reduce the generation of signal intermodulation distortion to improve audio quality. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the signal processing method provided by the above-mentioned embodiment, and will not be repeated here.
[0132] In addition, an embodiment of the present application further proposes a computer program product, including a signal processing program, which implements the steps of the signal processing method described above when executed by a processor.
[0133] The specific implementation of the computer program product of the present application is basically the same as the above-mentioned signal processing method embodiments, and will not be repeated here.
[0134] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0135] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software sensor, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0137] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A signal processing method, characterized in that: The signal processing method comprises the following steps: Acquire an original signal to be processed, and input the original signal into a high-pass filter; Performing signal pattern recognition on the original signal to obtain a recognition result, wherein the recognition result is a result of characterizing whether intermodulation audio exists in the original signal; The filter parameters of the high-pass filter are adjusted according to the recognition result, and the signal output by the high-pass filter is determined as the processing result.
2. The signal processing method according to claim 1, characterized in that: The step of performing signal pattern recognition on the original signal to obtain a recognition result comprises: Performing signal frequency detection on the original signal to obtain a detection result; If the detection result is that the original signal contains a low-frequency signal and a high-frequency signal, determining that the original signal contains intermodulation audio is a recognition result; If the detection result is that there is no low-frequency signal and / or no high-frequency signal in the original signal, determining that there is no intermodulation audio in the original signal is a recognition result; Among them, the low-frequency signal is a signal whose signal frequency belongs to a preset low-frequency range, the high-frequency signal is a signal whose signal frequency belongs to a preset high-frequency range, and the upper limit value of the preset low-frequency range is less than or equal to the lower limit value of the preset high-frequency range.
3. The signal processing method according to claim 1, characterized in that: The step of performing signal pattern recognition on the original signal to obtain a recognition result comprises: The original signal is input into a pre-trained pattern recognition model to obtain a recognition result.
4. The signal processing method according to claim 1, characterized in that: The filter parameters include a cutoff frequency, and the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes: If the recognition result indicates that intermodulation audio exists in the original signal, the cutoff frequency of the high-pass filter is adjusted to a first frequency, and the first frequency is greater than a lower limit value of a preset low-frequency range.
5. The signal processing method according to claim 4, characterized in that: The step of adjusting the filter parameters of the high-pass filter according to the recognition result comprises: If the recognition result indicates that there is no intermodulation audio in the original signal, the cutoff frequency of the high-pass filter is adjusted to a second frequency, where the second frequency is less than the first frequency and the second frequency is less than an upper limit value of a preset low-frequency range.
6. The signal processing method according to claim 4, characterized in that: The filter parameters also include a filter order, and the step of adjusting the filter parameters of the high-pass filter according to the recognition result includes: If the recognition result indicates that intermodulation audio exists in the original signal, adjusting the filter order of the high-pass filter to a first order; If the recognition result indicates that there is no intermodulation audio in the original signal, the filter order of the high-pass filter is adjusted to a second order, wherein the first order is greater than the second order.
7. The signal processing method according to any one of claims 1 to 6, characterized in that: After the step of performing signal pattern recognition on the original signal to obtain a recognition result, the method further includes: If the recognition result indicates that there is no intermodulation audio in the original signal, the high-pass filter is controlled to enter a dormant state, and the step of determining that the signal output by the high-pass filter is a processing result is performed.
8. A signal processing device, characterized in that: The signal processing device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal processing method according to any one of claims 1 to 7.
9. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the signal processing method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the signal processing method according to any one of claims 1 to 7 are implemented.