Audio signal processing method, apparatus, device, and storage medium
By acquiring the characteristic parameters of the audio signal and the electroacoustic transducer, calculating the distortion value, and suppressing noise signals based on the amplitude and distortion value, the problem of low sound playback quality in the existing technology is solved, and higher quality audio signal processing is achieved.
Patent Information
- Application Number
- CN202310647785.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-05-31
AI Technical Summary
Existing technologies cannot effectively suppress noise signals in audio signals, resulting in low sound playback quality.
By acquiring the characteristic parameters of the audio signal and the electroacoustic transducer, the distortion value is calculated, and noise signals are suppressed based on the amplitude and distortion value.
It effectively suppresses noise signals in audio signals and improves sound playback quality.
Smart Images

Figure CN116709123B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to audio signal processing methods, apparatus, devices, and storage media. Background Technology
[0002] Small loudspeakers are prone to noise in various scenarios used in the end-market, such as when the diaphragm speed is high or the vibration is large. In addition, the airflow inside the small loudspeaker cavity can also cause airflow noise when it rubs against the sound outlet. Therefore, how to effectively suppress noise signals in audio signals is an urgent problem to be solved. At present, the commonly used suppression method is dynamic suppression. However, the above method only identifies and suppresses the input audio signal without considering the actual cause of the noise. This results in a loss of audio signal quality and listening experience during the suppression process. In addition, the suppression degree of the above method is relatively small and cannot effectively suppress noise signals in the audio signal, ultimately resulting in low sound playback quality.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide an audio signal processing method, apparatus, device, and storage medium, aiming to solve the technical problem that the prior art cannot effectively suppress noise signals in audio signals, resulting in low sound playback quality.
[0005] To achieve the above objectives, the present invention provides an audio signal processing method, the audio signal processing method comprising the following steps:
[0006] Acquire the audio signal to be processed and the characteristic parameters of the electroacoustic transducer that inputs the audio signal to be processed;
[0007] When the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated according to the characteristic parameters.
[0008] Obtain the amplitude of the audio signal to be processed;
[0009] The noise signal in the audio signal to be processed is suppressed based on the amplitude and the distortion value.
[0010] Optionally, the acquisition of the audio signal to be processed and the characteristic parameters of the electroacoustic transducer inputting the audio signal to be processed include:
[0011] Acquire the audio signal to be processed;
[0012] Identify the electroacoustic transducer that inputs the audio signal to be processed, and obtain the basic attribute parameters of the electroacoustic transducer;
[0013] The characteristic parameters of the electroacoustic transducer are obtained by identifying the basic attribute parameters.
[0014] Optionally, before calculating the distortion value of the electroacoustic transducer based on the characteristic parameters when determining that the type of the audio signal to be processed is a preset signal type, the method further includes:
[0015] Feature extraction is performed on the audio signal to be processed to obtain the target audio signal features;
[0016] The target audio signal features are identified using a target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane.
[0017] When the relative position is such that the audio signal to be processed is above the target interval hyperplane, the type of the audio signal to be processed is determined to be a preset signal type.
[0018] Optionally, before identifying the features of the target audio signal using a target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane, the method further includes:
[0019] Acquire a number of audio signals of preset signal types;
[0020] Distortion features are extracted from the audio signals of the aforementioned number of preset signal types to obtain a number of distortion features;
[0021] The relative positions of the audio signals of the preset signal types to the target spacing hyperplane are determined based on the aforementioned number of distortion characteristics.
[0022] A target distortion recognition model is trained by using a preset deep learning algorithm based on the relative positions of a number of preset signal types of audio signals with the target spacing hyperplane.
[0023] Optionally, when determining that the type of the audio signal to be processed is a preset signal type, calculating the distortion value of the electroacoustic transducer based on the characteristic parameters includes:
[0024] Establish a system of target linear equations for calculating the degree of distortion;
[0025] When the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system.
[0026] Optionally, establishing the target linear equation system for calculating the distortion level includes:
[0027] Obtain characteristic parameters of several types of electroacoustic transducers;
[0028] Determine the constant solution set based on the characteristic parameters of the aforementioned types of electroacoustic transducers;
[0029] The initial system of linear equations used to calculate the distortion level is solved based on the constant solution set to obtain the linear equation constants;
[0030] Based on the linear equation constants and the initial linear equation set, a target linear equation set is established to calculate the distortion value.
[0031] Optionally, the step of suppressing noise signals in the audio signal to be processed based on the amplitude and the distortion level value includes:
[0032] The distortion level value is mapped according to the target mapping strategy to obtain the distortion control level value;
[0033] The noise signal in the audio signal to be processed is suppressed according to the amplitude and the distortion control level value.
[0034] Furthermore, to achieve the above objectives, the present invention also proposes an audio signal processing apparatus, the audio signal processing apparatus comprising:
[0035] The acquisition module is used to acquire the audio signal to be processed and the characteristic parameters of the electroacoustic transducer that inputs the audio signal to be processed;
[0036] The calculation module is used to calculate the distortion value of the electroacoustic transducer based on the characteristic parameters when the type of the audio signal to be processed is determined to be a preset signal type.
[0037] The acquisition module is also used to determine the signal amplitude of the audio signal to be processed;
[0038] The suppression module is used to suppress noise signals in the audio signal to be processed based on the amplitude and the distortion level value.
[0039] Furthermore, to achieve the above objectives, the present invention also proposes an audio signal processing device, the audio signal processing device comprising: a memory, a processor, and an audio signal processing program stored in the memory and executable on the processor, the audio signal processing program being configured to implement the audio signal processing method as described above.
[0040] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing an audio signal processing program, which, when executed by a processor, implements the audio signal processing method as described above.
[0041] The audio signal processing method proposed in this invention acquires the audio signal to be processed and the characteristic parameters of the electroacoustic transducer inputting the audio signal; when the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters; the amplitude of the audio signal to be processed is acquired; and noise signals in the audio signal to be processed are suppressed based on the amplitude and the distortion value. Through the above method, after acquiring the audio signal to be processed, it is determined whether the type of the audio signal to be processed is a preset signal type. If so, the distortion value of the electroacoustic transducer is calculated, and then the amplitude is combined to suppress noise signals in the audio signal to be processed, thereby effectively suppressing noise signals in the audio signal and improving sound playback quality. Attached Figure Description
[0042] Figure 1 This is a schematic diagram of the structure of the audio signal processing device in the hardware operating environment involved in the embodiments of the present invention;
[0043] Figure 2 This is a flowchart illustrating the first embodiment of the audio signal processing method of the present invention;
[0044] Figure 3 This is a schematic diagram illustrating the principle of the SVM (Support Vector Machine) classifier algorithm in an embodiment of the audio signal processing method of the present invention.
[0045] Figure 4 This is a flowchart illustrating the second embodiment of the audio signal processing method of the present invention;
[0046] Figure 5 This is a schematic diagram of the functional modules of the first embodiment of the audio signal processing device of the present invention.
[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0048] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0049] Reference Figure 1 , Figure 1 This is a schematic diagram of the audio signal processing device structure of the hardware operating environment involved in the embodiments of the present invention.
[0050] like Figure 1As shown, the audio signal processing device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0051] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the audio signal processing device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0052] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and an audio signal processing program.
[0053] exist Figure 1 In the audio signal processing device shown, the network interface 1004 is mainly used for data communication with the network integrated platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the audio signal processing device of the present invention can be set in the audio signal processing device, and the audio signal processing device calls the audio signal processing program stored in the memory 1005 through the processor 1001 and executes the audio signal processing method provided in the embodiment of the present invention.
[0054] Based on the above hardware structure, an embodiment of the audio signal processing method of the present invention is proposed.
[0055] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the audio signal processing method of the present invention.
[0056] In a first embodiment, the audio signal processing method includes the following steps:
[0057] Step S10: Obtain the audio signal to be processed and the characteristic parameters of the electroacoustic transducer that inputs the audio signal to be processed.
[0058] It should be noted that the execution subject in this embodiment is an audio signal processing device, but it can also be other devices that can achieve the same or similar functions, such as a signal processing controller. This embodiment does not limit this, and in this embodiment, a signal processing controller is used as an example for explanation.
[0059] It should be understood that an electroacoustic transducer refers to a device used to input audio signals to be processed. This electroacoustic transducer can be a small speaker. It can be used in products such as AR devices, VR devices, smart audio glasses, neckband speakers, open-back headphones, audio equipment, televisions, mobile phones, and tablets. The characteristic parameters refer to the parameters used to calculate the distortion value of the electroacoustic transducer. These characteristic parameters include, but are not limited to, impedance, power, frequency, resonant frequency, and equivalent mass.
[0060] Further, step S10 includes: acquiring the audio signal to be processed; determining the electroacoustic transducer that inputs the audio signal to be processed, and acquiring the basic attribute parameters of the electroacoustic transducer; identifying the basic attribute parameters to obtain the characteristic parameters of the electroacoustic transducer.
[0061] It is understandable that the basic attribute parameters refer to the parameters of the basic attributes of the electroacoustic transducer. These basic attribute parameters can be detected by the Klippel tool. The basic attribute parameters include characteristic parameters and non-characteristic parameters. After obtaining the audio signal to be processed, the electroacoustic transducer inputting the audio signal to be processed is determined, and then the characteristic parameters of the electroacoustic transducer are identified from the basic attribute parameters.
[0062] Step S20: When it is determined that the type of the audio signal to be processed is a preset signal type, the distortion value of the electroacoustic transducer is calculated according to the characteristic parameters.
[0063] It is understandable that the preset signal type can be a distorted signal type. The distortion level value refers to the degree of distortion of the electroacoustic transducer. After obtaining the audio to be processed, it is determined whether the type of the audio signal to be processed is the preset signal type. If so, it indicates that the audio signal to be processed is a distorted signal. At this time, the distortion level value of the electroacoustic transducer is calculated according to the characteristic parameters.
[0064] Furthermore, before step S20, the method further includes: extracting features from the audio signal to be processed to obtain target audio signal features; identifying the target audio signal features using a target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane; and determining that the type of the audio signal to be processed is a preset signal type when the relative position is that the audio signal to be processed is located above the target spacing hyperplane.
[0065] It should be understood that the target distortion recognition model refers to a model used to identify whether the type of an audio signal is a preset signal type. The relative position refers to the position between the audio signal to be processed and the target interval hyperplane. After obtaining the audio signal to be processed, the target audio signal features of the audio signal to be processed are extracted. Then, the target distortion recognition model is used to identify the relative position between the audio signal to be processed and the target interval hyperplane based on the target audio signal features. When the relative position is that the audio signal to be processed is above the target interval hyperplane, that is, f(x) is greater than 0, it indicates that the type of the audio signal to be processed is the preset signal type. The larger the f(x) is, the farther the location of the audio signal to be processed is from the target interval hyperplane, and the greater the probability that the type of the audio signal to be processed is determined to be the preset signal type. Conversely, when the relative position is that the audio signal to be processed is below the target interval hyperplane, that is, f(x) is less than 0, the larger the f(x) is, the farther the location of the audio signal to be processed is from the target interval hyperplane, and the smaller the probability that the type of the audio signal to be processed is determined to be the preset signal type, that is, the greater the probability that it is identified as a non-distorted signal type.
[0066] Furthermore, before identifying the target audio signal features using the target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane, the method further includes: acquiring a number of audio signals of a preset signal type; extracting distortion features from the number of audio signals of the preset signal type to obtain a number of distortion features; determining the relative positions of the number of audio signals of the preset signal type and the target spacing hyperplane based on the number of distortion features; and training the target distortion recognition model using a preset deep learning algorithm based on the relative positions of the number of audio signals of the preset signal type and the target spacing hyperplane.
[0067] It is understood that the preset deep learning algorithm refers to the algorithm used to train the target distortion recognition model. This preset deep learning algorithm includes, but is not limited to, thresholding algorithms, support vector machine (SVM) classifier algorithms, decision tree algorithms, and hidden Markov algorithms. After determining the relative positions of a number of preset signal types of audio signals to the target spacing hyperplane, the target distortion recognition model is trained using the preset deep learning algorithm based on these relative positions. For example, the preset deep learning algorithm might be an SVM classifier algorithm. Figure 3 , Figure 3 This is a schematic diagram illustrating the principle of the SVM (Support Vector Machine) classifier algorithm. Specifically, the target margin hyperplane is represented by γ.
[0068]
[0069] Where w represents the hyperplane parameter, and ||w|| represents the norm of the hyperplane parameter. The target spacing hyperplane divides the entire region into two parts: the region above the target spacing hyperplane and the region below the target spacing hyperplane. The region above the target spacing hyperplane represents the region where the type of the audio signal to be processed is determined to be a distorted signal type, and the region below the target spacing hyperplane represents the region where the type of the audio signal to be processed is determined to be a non-distorted signal type.
[0070] Step S30: Obtain the amplitude of the audio signal to be processed.
[0071] Step S40: Suppress noise signals in the audio signal to be processed according to the amplitude and the distortion level value.
[0072] Understandably, after determining the distortion level of the electroacoustic transducer, noise signals in the audio signal to be processed are suppressed in combination with the amplitude of the audio signal to be processed, thereby improving the quality of sound playback.
[0073] Further, step S40 includes: mapping the distortion level value according to the target mapping strategy to obtain a distortion control level value; and suppressing noise signals in the audio signal to be processed according to the amplitude and the distortion control level value.
[0074] It should be understood that the target mapping strategy refers to the strategy of mapping the distortion level value. The target mapping strategy can be a linear mapping strategy or an exponential mapping strategy. The distortion control level value refers to the degree of suppression of noise signals in the audio signal to be processed. The distortion control level value is obtained by mapping the distortion level value using the target mapping strategy. Specifically, after obtaining the distortion level value of the acoustic transducer, the distortion level value is mapped to the interval [0,1] using the target mapping strategy to obtain the distortion control level value K. The larger the value of the distortion control level value K, the deeper the noise signal in the audio signal to be processed needs to be suppressed, and the more distortion processing is required.
[0075] This embodiment acquires the audio signal to be processed and the characteristic parameters of the electroacoustic transducer inputting the audio signal; when the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters; the amplitude of the audio signal to be processed is acquired; and noise signals in the audio signal to be processed are suppressed based on the amplitude and the distortion value. Through the above method, after acquiring the audio signal to be processed, it is determined whether the type of the audio signal to be processed is a preset signal type. If so, the distortion value of the electroacoustic transducer is calculated, and then the amplitude is combined with the noise signal in the audio signal to be processed to suppress noise signals, thereby effectively suppressing noise signals in the audio signal and improving sound playback quality.
[0076] In one embodiment, such as Figure 4 The second embodiment of the audio signal processing method of the present invention, based on the first embodiment, includes step S20, which comprises:
[0077] Step S201: Establish a system of target linear equations for calculating the distortion level.
[0078] It should be understood that the target linear equation refers to the equation used to calculate the distortion value of the electroacoustic transducer. In this set of equations, all parameters except the characteristic parameters of the acoustic transducer are known.
[0079] Further, step S201 includes: obtaining characteristic parameters of several types of electroacoustic transducers; determining a constant solution set based on the characteristic parameters of the several types of electroacoustic transducers; solving the initial linear equation set used to calculate the distortion level value based on the constant solution set to obtain linear equation constants; and establishing a target linear equation set used to calculate the distortion level value based on the linear equation constants and the initial linear equation set.
[0080] Understandably, the constant solution set refers to the set of constants used to solve the initial linear equations used to calculate the distortion level. This constant solution set is determined based on the characteristic parameters of several types of electroacoustic transducers. After solving for the linear equation constants, these constants are substituted into the initial linear equations. At this point, all parameters in the initial linear equations, except for the characteristic parameters and the distortion level, are known. This establishes the target linear equations used to calculate the distortion level, specifically:
[0081]
[0082] Where u(t) represents the transient input voltage signal, i(t) represents the current flowing through the voice coil, t represents the time, L represents the inductance, R represents the resistance, Bl represents the force factor, m represents the equivalent mass of the vibration system, r represents the equivalent resistance of the vibration system, k represents the equivalent elastic coefficient of the vibration system, and x(t) represents the current of the quasi-inductor.
[0083] Step S202: When it is determined that the type of the audio signal to be processed is a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system.
[0084] It is understandable that when the type of the audio signal to be processed is determined to be a preset signal type, the transient input voltage signal is calculated through the target linear equation system. Specifically, the characteristic parameters of the electroacoustic transducer are substituted into the target linear equation system to solve for the transient input voltage signal, and then the distortion value of the electroacoustic transducer is determined based on the transient input voltage signal.
[0085] This embodiment establishes a target linear equation system for calculating the distortion level. When the type of the audio signal to be processed is determined to be a preset signal type, the distortion level of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system. By establishing the target linear equation system for calculating the distortion level, it is determined whether the type of the audio signal to be processed is a preset signal type. If so, the distortion level of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system, thereby effectively improving the accuracy of obtaining the distortion level of the electroacoustic transducer.
[0086] Furthermore, embodiments of the present invention also propose a storage medium storing an audio signal processing program, which, when executed by a processor, implements the steps of the audio signal processing method described above.
[0087] Since this storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.
[0088] In addition, refer to Figure 5 The present invention also proposes an audio signal processing device, the audio signal processing device comprising:
[0089] The acquisition module 10 is used to acquire the audio signal to be processed and the characteristic parameters of the electroacoustic transducer that inputs the audio signal to be processed.
[0090] The calculation module 20 is used to calculate the distortion value of the electroacoustic transducer based on the characteristic parameters when the type of the audio signal to be processed is determined to be a preset signal type.
[0091] The acquisition module 10 is also used to determine the signal amplitude of the audio signal to be processed.
[0092] The suppression module 30 is used to suppress noise signals in the audio signal to be processed according to the amplitude and the distortion level value.
[0093] This embodiment acquires the audio signal to be processed and the characteristic parameters of the electroacoustic transducer inputting the audio signal; when the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters; the amplitude of the audio signal to be processed is acquired; and noise signals in the audio signal to be processed are suppressed based on the amplitude and the distortion value. Through the above method, after acquiring the audio signal to be processed, it is determined whether the type of the audio signal to be processed is a preset signal type. If so, the distortion value of the electroacoustic transducer is calculated, and then the amplitude is combined with the noise signal in the audio signal to be processed to suppress noise signals, thereby effectively suppressing noise signals in the audio signal and improving sound playback quality.
[0094] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.
[0095] In addition, for technical details not described in detail in this embodiment, please refer to the audio signal processing method provided in any embodiment of the present invention, which will not be repeated here.
[0096] In one embodiment, the acquisition module 10 is further configured to acquire the audio signal to be processed; determine the electroacoustic transducer inputting the audio signal to be processed, and acquire the basic attribute parameters of the electroacoustic transducer; identify the basic attribute parameters to obtain the characteristic parameters of the electroacoustic transducer.
[0097] In one embodiment, the calculation module 20 is further configured to extract features from the audio signal to be processed to obtain target audio signal features; identify the target audio signal features through a target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane; and determine that the type of the audio signal to be processed is a preset signal type when the relative position is that the audio signal to be processed is located above the target spacing hyperplane.
[0098] In one embodiment, the computing module 20 is further configured to acquire a plurality of audio signals of a preset signal type; extract distortion features from the plurality of audio signals of the preset signal type to obtain a plurality of distortion features; determine the relative positions of the plurality of audio signals of the preset signal type with the target spacing hyperplane based on the plurality of distortion features; and train a target distortion recognition model using a preset deep learning algorithm based on the relative positions of the plurality of audio signals of the preset signal type with the target spacing hyperplane.
[0099] In one embodiment, the calculation module 20 is further configured to establish a target linear equation system for calculating the distortion level value; when the type of the audio signal to be processed is determined to be a preset signal type, the distortion level value of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system.
[0100] In one embodiment, the calculation module 20 is further configured to acquire characteristic parameters of several types of electroacoustic transducers; determine a constant solution set based on the characteristic parameters of the several types of electroacoustic transducers; solve an initial linear equation set for calculating the distortion level value based on the constant solution set to obtain linear equation constants; and establish a target linear equation set for calculating the distortion level value based on the linear equation constants and the initial linear equation set.
[0101] In one embodiment, the suppression module 30 is further configured to map the distortion level value according to the target mapping strategy to obtain a distortion control level value; and to suppress noise signals in the audio signal to be processed according to the amplitude and the distortion control level value.
[0102] Other embodiments or implementation methods of the audio signal processing device described in this invention can be found in the above-described method embodiments, and will not be repeated here.
[0103] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0104] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0105] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, all-in-one platform workstation, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0106] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. An audio signal processing method, characterized in that, The audio signal processing method includes the following steps: Acquire the audio signal to be processed and the characteristic parameters of the electroacoustic transducer that inputs the audio signal to be processed; The characteristic parameters are parameters used to calculate the distortion level of the electroacoustic transducer. When the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated according to the characteristic parameters. Obtain the amplitude of the audio signal to be processed; The noise signal in the audio signal to be processed is suppressed according to the amplitude and the distortion value; The characteristic parameters of the electroacoustic transducer that acquires the audio signal to be processed and inputs the audio signal to be processed include: Acquire the audio signal to be processed; Identify the electroacoustic transducer that inputs the audio signal to be processed, and obtain the basic attribute parameters of the electroacoustic transducer; The basic attribute parameters are identified to obtain the characteristic parameters of the electroacoustic transducer. The distortion level value is the degree to which noise signals in the audio signal to be processed are suppressed; When determining that the type of the audio signal to be processed is a preset signal type, the step of calculating the distortion value of the electroacoustic transducer based on the characteristic parameters includes: Establish a system of target linear equations for calculating the degree of distortion; When the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system. The establishment of the target linear equation system for calculating the distortion level includes: Obtain characteristic parameters of several types of electroacoustic transducers; Determine the constant solution set based on the characteristic parameters of the aforementioned types of electroacoustic transducers; The initial system of linear equations used to calculate the distortion level is solved based on the constant solution set to obtain the linear equation constants; Based on the linear equation constants and the initial linear equation set, a target linear equation set is established to calculate the distortion value.
2. The audio signal processing method as described in claim 1, characterized in that, Before calculating the distortion value of the electroacoustic transducer based on the characteristic parameters when determining that the type of the audio signal to be processed is a preset signal type, the method further includes: Feature extraction is performed on the audio signal to be processed to obtain the target audio signal features; The target audio signal features are identified using a target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane. When the relative position is such that the audio signal to be processed is above the target interval hyperplane, the type of the audio signal to be processed is determined to be a preset signal type.
3. The audio signal processing method as described in claim 2, characterized in that, Before identifying the characteristics of the target audio signal using the target distortion recognition model to obtain the relative position between the audio signal to be processed and the target spacing hyperplane, the method further includes: Acquire a number of audio signals of preset signal types; Distortion features are extracted from the audio signals of the aforementioned number of preset signal types to obtain a number of distortion features; The relative positions of the audio signals of the preset signal types to the target spacing hyperplane are determined based on the aforementioned number of distortion characteristics. A target distortion recognition model is trained by using a preset deep learning algorithm based on the relative positions of a number of preset signal types of audio signals with the target spacing hyperplane.
4. The audio signal processing method as described in claim 1, characterized in that, The step of suppressing noise signals in the audio signal to be processed based on the amplitude and the distortion level value includes: The distortion level value is mapped according to the target mapping strategy to obtain the distortion control level value; The noise signal in the audio signal to be processed is suppressed according to the amplitude and the distortion control level value.
5. An audio signal processing device, characterized in that, The audio signal processing device includes: The acquisition module is used to acquire the audio signal to be processed and the characteristic parameters of the electroacoustic transducer that inputs the audio signal to be processed; The characteristic parameters are parameters used to calculate the distortion level of the electroacoustic transducer. The calculation module is used to calculate the distortion value of the electroacoustic transducer based on the characteristic parameters when the type of the audio signal to be processed is determined to be a preset signal type. The acquisition module is also used to determine the signal amplitude of the audio signal to be processed; A suppression module is used to suppress noise signals in the audio signal to be processed based on the amplitude and the distortion level value; The characteristic parameters of the electroacoustic transducer that acquires the audio signal to be processed and inputs the audio signal to be processed include: Acquire the audio signal to be processed; Identify the electroacoustic transducer that inputs the audio signal to be processed, and obtain the basic attribute parameters of the electroacoustic transducer; The basic attribute parameters are identified to obtain the characteristic parameters of the electroacoustic transducer. The distortion level value is the degree to which noise signals in the audio signal to be processed are suppressed; When determining that the type of the audio signal to be processed is a preset signal type, the step of calculating the distortion value of the electroacoustic transducer based on the characteristic parameters includes: Establish a system of target linear equations for calculating the degree of distortion; When the type of the audio signal to be processed is determined to be a preset signal type, the distortion value of the electroacoustic transducer is calculated based on the characteristic parameters using the target linear equation system. The establishment of the target linear equation system for calculating the distortion level includes: Obtain characteristic parameters of several types of electroacoustic transducers; Determine the constant solution set based on the characteristic parameters of the aforementioned types of electroacoustic transducers; The initial system of linear equations used to calculate the distortion level is solved based on the constant solution set to obtain the linear equation constants; Based on the linear equation constants and the initial linear equation set, a target linear equation set is established to calculate the distortion value.
6. An audio signal processing device, characterized in that, The audio signal processing device includes: a memory, a processor, and an audio signal processing program stored in the memory and executable on the processor, the audio signal processing program being configured to implement the audio signal processing method as described in any one of claims 1 to 4.
7. A storage medium, characterized in that, The storage medium stores an audio signal processing program, which, when executed by a processor, implements the audio signal processing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Audio playing performance test method and device, equipment and storage medium
CN109831733A
Nonlinear compensation method of loudspeaker, loudspeaker equipment, device and storage medium
CN111741409A
Noise suppression method and signal processing device
CN115701705A
