Masking threshold estimation method, device, electronic device and storage medium
By calculating the speech feature spectrum deviation and flatness and determining the band pure tone coefficient, the problem of low accuracy of masking threshold estimation in non-stationary environments is solved, and noise suppression and speech recognition effects are improved.
Patent Information
- Application Number
- CN202111250359.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-10-26
AI Technical Summary
In non-stationary environments, the existing noise estimation algorithm has problems with large tracking delays and errors, which affects the estimation accuracy of the masking threshold and thus affects the speech enhancement effect.
By obtaining the amplitude spectrum of the noisy speech signal and the noise signal, calculating the speech characteristic spectrum deviation and flatness, determining the pure tone coefficients of different frequency bands, and then calculating the intermediate masking threshold, and comparing it with the predetermined absolute masking threshold to determine the target masking threshold. .
The estimation accuracy of the masking threshold is improved, the noise suppression effect is enhanced, and the speech recognition effect is improved.
Smart Images

Figure CN113851151B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of signal processing technology, and in particular to a masking threshold estimation method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of signal processing technology and speech recognition technology, speech enhancement technology in front-end preprocessing has become increasingly important. Generally speaking, when a device plays sound, noise will be heard along with the speech. However, the presence of noise will interfere with the speech and even affect the human ear's perception of the speech. Usually, blind source separation technology is used. The most important technical means of blind source separation technology is to estimate the masking threshold.
[0003] At present, in non-stationary environments, many noise estimation algorithms will have problems such as tracking delay and large errors. Some researchers have tried to use the auditory characteristics of the human ear to perform speech enhancement in non-stationary environments, but the estimation accuracy of the masking threshold has become the key to speech enhancement based on auditory characteristics.
[0004] Therefore, how to improve the estimation accuracy of the masking threshold is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] The embodiments of the present invention provide a masking threshold estimation method, device, electronic device and storage medium, which can improve the estimation accuracy of the masking threshold.
[0006] In a first aspect, an embodiment of the present invention provides a masking threshold estimation method, including:
[0007] Acquire an amplitude spectrum of a noisy speech signal, and acquire an amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal;
[0008] Determining a speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining a speech feature flatness according to the amplitude spectrum of the noisy speech signal;
[0009] Determining pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness;
[0010] determining an intermediate masking threshold according to the pure tone coefficient;
[0011] The target masking threshold is determined according to a comparison result between a predetermined absolute masking threshold and the intermediate masking threshold.
[0012] In a second aspect, an embodiment of the present invention further provides a masking threshold estimation device, comprising:
[0013] A basic parameter acquisition module, used to acquire the amplitude spectrum of a noisy speech signal and the amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a pure speech signal and a noise signal;
[0014] A feature parameter determination module, used to determine the speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and to determine the speech feature flatness according to the amplitude spectrum of the noisy speech signal;
[0015] A pure tone coefficient determination module, used to determine the pure tone coefficients of different frequency bands in the noisy speech signal according to the speech characteristic spectrum deviation and the speech characteristic flatness;
[0016] An intermediate masking threshold determination module, used to determine an intermediate masking threshold according to the pure tone coefficient;
[0017] The target masking threshold determination module is used to determine the target masking threshold according to the comparison result of the predetermined absolute masking threshold and the intermediate masking threshold.
[0018] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0019] one or more processors;
[0020] a storage device for storing one or more programs,
[0021] When the one or more programs are executed by the one or more processors, the one or more processors implement the masking threshold estimation method as described in any embodiment of the present invention.
[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the masking threshold estimation method as described in any embodiment of the present invention.
[0023] The masking threshold estimation scheme provided by the embodiment of the present invention obtains the amplitude spectrum of the noisy speech signal, and obtains the amplitude spectrum of the noise signal in the noisy speech signal; wherein the noisy speech signal includes a pure speech signal and a noise signal; the speech feature spectrum deviation of the noisy speech signal is determined according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and the speech feature flatness is determined according to the amplitude spectrum of the noisy speech signal; the pure tone coefficients of different frequency bands in the noisy speech signal are determined according to the speech feature spectrum deviation and the speech feature flatness; the intermediate masking threshold is determined according to the pure tone coefficient; the target masking threshold is determined according to the comparison result of the predetermined absolute masking threshold and the first masking threshold. Through the technical scheme provided by the embodiment of the present invention, the accuracy of the masking threshold estimation can be improved, and then the noise suppression result can be effectively enhanced, and the speech recognition effect can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flowchart of a masking threshold estimation method provided in Embodiment 1 of the present invention;
[0025] Figure 2 is a schematic diagram of the structure of a masking threshold estimation device provided in Embodiment 2 of the present invention;
[0026] Figure 3 It is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0027] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0028] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0029] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0030] It should be noted that the concepts such as "first" and "second" mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0033] Embodiment 1
[0034] Figure 1 is a flowchart of the masking threshold estimation method in the first embodiment of the present invention. This embodiment is applicable to the case of estimating the masking threshold in a noisy environment. The method can be executed by a masking threshold estimation device, which can be implemented in software and / or hardware and can be configured in an electronic device, for example, the electronic device can be a background server or other device with communication and computing capabilities. Figure 1 As shown, the method specifically includes:
[0035] S110, obtaining an amplitude spectrum of a noisy speech signal, and obtaining an amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal.
[0036] The noisy speech signal is collected and acquired by at least one speech collection device in the speech collection site. The speech collection site can be a communication site in a noisy environment such as a conference room, a broadcasting studio, and a railway station, or a military communication site or a speech recognition site. For example, when a broadcaster is reporting the news, various sounds may appear in the broadcasting studio, such as traffic noise generated by passing vehicles outside the broadcasting studio building or noise generated by the air conditioning system, lighting control system, camera, and staff walking back and forth in the broadcasting studio building. At this time, it is necessary to collect the speech signal in the broadcasting studio and perform speech enhancement on the announcer's speech signal.
[0037] The voice collection device may be a microphone or a detector. Specifically, there is no limit to the number of the voice collection devices, which may be one or more. When the number of the voice collection devices is two or more, in order to collect voice signals at different positions, there is no limit to the arrangement of the voice collection devices. For example, the voice collection devices may be arranged along the circumferential direction of the pure voice signal source in the noisy voice signal. In addition, since there is uncertainty and randomness in the noise interference in the noisy voice signal, the voice collection device may continuously collect the noisy voice signal, or may collect intermittently at shorter intervals.
[0038] Furthermore, in order to better perform masking threshold estimation processing on the noisy speech signal, the collected noisy speech signal needs to be converted into a frequency domain sound signal. For example, the noisy speech signal can be converted into a frequency domain signal by using methods such as Fourier transform. The power spectrum characterizes the variation of the power of the noisy speech signal with frequency, which is the power of the noisy speech signal in a unit frequency band; the amplitude spectrum characterizes the distribution of the amplitude of the signal with frequency. In the frequency domain description of the signal, the frequency is used as the independent variable, and the amplitude of each frequency component of the signal is used as the dependent variable. Such a frequency function is called an amplitude spectrum. The power spectrum and amplitude spectrum of the noisy speech signal can be obtained by FFT (Fast Fourier Transform) of the noisy speech signal obtained by the above-mentioned collection.
[0039] Furthermore, the amplitude spectrum of the noise signal in the noisy speech signal is obtained by estimating the noise signal in the collected noisy speech signal and processing it through FFT. Among them, the estimation method of the noise signal can be the following three: recursive average noise estimation algorithm, minimum tracking algorithm and histogram noise estimation algorithm.
[0040] It should be noted that the noisy speech signal includes a pure speech signal and a noise signal. The pure speech signal refers to the desired speech signal, and the noise signal refers to all interference signals except the desired speech signal. For example, when a broadcaster is reporting news in a studio, the broadcaster's voice signal is a pure speech signal, and the sounds generated by the air conditioning system, lighting control system, camera, and staff walking back and forth in the studio, as well as the sounds generated by vehicles passing by outside the studio, are noise signals.
[0041] S120, determining a speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining a speech feature flatness according to the amplitude spectrum of the noisy speech signal.
[0042] Among them, the speech feature spectrum deviation is the difference between the amplitude spectrum of each frequency band or each frequency point of the noisy speech signal and the average value of its amplitude spectrum, which can be used to measure the precision of the amplitude spectrum of the obtained noisy speech signal. The speech feature spectrum deviation can be obtained by using statistical formulas.
[0043] In this embodiment, optionally, determining the speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining the speech feature flatness according to the amplitude spectrum of the noisy speech signal, includes:
[0044] Determine the speech feature spectrum deviation using the following formula:
[0045]
[0046] Among them, i is the frequency band number, j is the frequency point number, N is the number of frequency points (0 ≤ j < N), Diff(i) is the speech feature spectrum deviation of the i-th frequency band of the noisy speech signal, D i (j) is the estimated value of the amplitude spectrum of the j-th frequency point in the i-th frequency band of the noise signal, Y i (j) is the amplitude spectrum of the j-th frequency point in the i-th frequency band of the noisy speech signal, is the mean value of the estimated amplitude spectrum of the i-th frequency band of the noise signal, is the mean value of the amplitude spectrum of the i-th frequency band of the noisy speech signal.
[0047] Of course, it can be understood that, is the mean value of the estimated amplitude spectrum of the i-th frequency band of the noise signal, and can be determined using the following formula:
[0048]
[0049] It should be noted that within a short period of time (such as 10 ms to 30 ms), the shape of the human vocal cords and vocal tract is relatively stable, so the short-time spectrum of the human voice signal obtained has relative stability. And the speech acquisition site may be in a non-stationary environment. To ensure effective suppression of the noise signal in the speech signal to be enhanced in a non-stationary environment, the speech signal to be enhanced needs to be divided into several frequency bands according to its frequency domain, and each frequency band includes several frequency points. For example, in a noisy speech signal, it can be divided into 5 frequency bands, and each frequency band includes 20 frequency points.
[0050] The frequency band division method can be based on the Bark scale or the Mel scale. The Bark scale is the unit of perceived frequency. In Hertz, the frequency of the speech signal to be enhanced is mapped to 24 critical frequency bands of psychoacoustics. The width of each critical frequency band is a Bark scale. When the frequency band is divided by the Bark scale, the physical frequency needs to be converted into the psychoacoustic frequency. The Mel scale is a frequency band division method that is closer to the human auditory system.
[0051] For example, for different dedicated devices, the method of dividing the frequency band of the enhanced speech signal can be selected according to the application scenario. For example, when a broadcaster is reporting news in a studio, since the collected sound signals of each broadcaster and the noise signal in the studio are relatively stable, the frequency domain of the enhanced speech signal can be divided into 26 frequency bands according to the Mel scale.
[0052] In this embodiment, optionally, the method further includes determining the speech feature flatness using the following formula:
[0053]
[0054] Wherein, Flat(i) is the flatness of the speech feature of the i-th frequency band of the noisy speech signal.
[0055] Understandably, is the mean value of the amplitude spectrum of the i-th frequency band of the noisy speech signal, which can be determined by the following formula:
[0056]
[0057] The speech characteristic spectrum deviation of the noisy speech signal is determined according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and the speech characteristic flatness is determined according to the amplitude spectrum of the noisy speech signal. The advantage of this arrangement is that such a calculation method is simpler and faster, the data required for the calculation is easy to obtain, and can be used as a basis for the subsequent calculation of the pure tone coefficient.
[0058] S130. Determine pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness.
[0059] The pure tone coefficient can be determined by establishing a relationship between the speech feature spectrum deviation and the speech feature flatness and the pure tone coefficient, or by establishing a neural network model for estimating the masking threshold.
[0060] In a feasible embodiment, optionally, determining pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness includes:
[0061]
[0062] Among them, α(i) is the pure tone coefficient of the i-th frequency band of the noisy speech signal, β i is the first adjustment value, β i ∈[0,1],η i is the second adjustment value, η i ∈[-70,-50].
[0063] It can be understood that the above formula uses the speech feature spectrum deviation and the speech feature flatness to establish a relationship with the pure tone coefficient to obtain the intermediate pure tone coefficient, and compares the intermediate pure tone coefficient with 1, and the minimum value is the pure tone coefficient α(i). i and the second adjustment value η i are adjustment values obtained according to needs or experience when calculating the pure tone coefficient α(i). Of course, the first adjustment value β i and the second adjustment value η i It can be adaptively adjusted according to the application scenario.
[0064] S140: Determine an intermediate masking threshold according to the pure tone coefficient.
[0065] The intermediate masking threshold is an intermediate product of estimating the target masking threshold, which can be determined by establishing a relationship or by establishing a neural network model for estimating the masking threshold.
[0066] Optionally, determining an intermediate masking threshold according to the pure tone coefficient includes:
[0067]
[0068] Where T(i) is the middle masking threshold of the i-th frequency band of the noisy speech signal, O(i) is the offset of the i-th frequency band of the noisy speech signal relative to the middle masking threshold, T(i-1) is the masking threshold of the (i-1)th frequency band of the noisy speech signal, and λ i is the third adjustment value, λ i ∈[0, 1].
[0069] It can be understood that the third adjustment value λ iIt is an adjustment value obtained according to needs or experience when calculating the intermediate masking threshold T(i). Among them, the offset O(i) relative to the intermediate masking threshold and the extended critical band spectrum value C(i) can be determined by establishing a relationship or by establishing a neural network model for masking threshold estimation.
[0070] On the basis of the above technical solutions, optionally, the offset relative to the intermediate masking threshold is determined by the following formula:
[0071] O(i)=(α(i)-μ)*i+(3μ-1)*α(i)+μ;
[0072] Wherein, μ is the fourth adjustment value, μ∈[0.5, 6.5].
[0073] It can be understood that the fourth adjustment value μ is an adjustment value obtained according to needs or experience when calculating the offset O(i) relative to the intermediate masking threshold, and can be adaptively adjusted according to application scenarios.
[0074] On the basis of the above technical solutions, optionally, the extended critical band spectrum is determined by the following formula:
[0075]
[0076] Where C(i) is the extended critical band spectrum value, j is the frequency point number, N is the number of frequency points, P(j) is the power spectrum of the jth frequency point of the noisy speech signal, SP ij It is the expansion function of the jth frequency point in the i-th frequency band of the noisy speech signal.
[0077] It can be understood that the extended critical band spectrum C(i) is obtained by summing the product of the power spectrum of each frequency point in each frequency band of the noisy speech signal and the expansion function.
[0078] Optionally, the following formula is used to determine the expansion function of the jth frequency point in the i-th frequency band of the noisy speech signal:
[0079]
[0080] S150: Determine a target masking threshold according to a comparison result between a predetermined absolute masking threshold and the intermediate masking threshold.
[0081] The absolute masking threshold is the masking threshold at which a normal person can hear the lowest sound in a noise-free environment. The absolute masking threshold can be determined using the following formula:
[0082] J(i)=3.64*i -0.8 -6.5*exp(i-3.3) 2 +10-3 *i 4 ;
[0083] where J(i) is the absolute masking threshold of the i-th frequency band.
[0084] Secondly, the predetermined absolute masking threshold and the intermediate masking threshold are compared, and the following formula can be used for comparison:
[0085] T(i)=max(T(i),J(i)).
[0086] It can be understood that the maximum value of the intermediate masking threshold T(i) and the absolute masking threshold J(i) is taken as the target masking threshold.
[0087] The technical solution of the embodiment of the present invention obtains the amplitude spectrum of the noisy speech signal, and obtains the amplitude spectrum of the noise signal in the noisy speech signal; wherein the noisy speech signal includes a pure speech signal and a noise signal; the speech feature spectrum deviation of the noisy speech signal is determined according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and the speech feature flatness is determined according to the amplitude spectrum of the noisy speech signal; the pure tone coefficients of different frequency bands in the noisy speech signal are determined according to the speech feature spectrum deviation and the speech feature flatness; the intermediate masking threshold is determined according to the pure tone coefficient; the target masking threshold is determined according to the comparison result of the predetermined absolute masking threshold and the first masking threshold. Through the technical solution provided by the embodiment of the present invention, by dividing the noisy speech signal into several frequency bands, and calculating the basic parameters, feature parameters, pure tone coefficients and masking thresholds of each frequency band respectively, the accuracy of the target masking threshold estimation can be improved, thereby effectively enhancing the noise suppression result and improving the speech recognition effect.
[0088] Embodiment 2
[0089] Figure 2 is a schematic diagram of the structure of the masking threshold estimation device in the second embodiment of the present invention. This embodiment is applicable to the case of estimating the masking threshold in a noisy environment. Figure 2 As shown, the device comprises:
[0090] The basic parameter acquisition module 210 is used to acquire the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal;
[0091] A feature parameter determination module 220, configured to determine a speech feature spectrum deviation of the noisy speech signal according to an amplitude spectrum of the noisy speech signal and an amplitude spectrum of the noise signal, and to determine a speech feature flatness according to the amplitude spectrum of the noisy speech signal;
[0092] A pure tone coefficient determination module 230, configured to determine pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness;
[0093] An intermediate masking threshold determination module 240, configured to determine an intermediate masking threshold according to the pure tone coefficient;
[0094] A target masking threshold determination module 250, configured to determine a target masking threshold according to a comparison result between a pre-determined absolute masking threshold and the intermediate masking threshold.
[0095] The technical solution of the embodiment of the present invention is to obtain the amplitude spectrum of a noisy speech signal and the amplitude spectrum of the noise signal in the noisy speech signal; wherein, the noisy speech signal includes a clean speech signal and a noise signal; determine the speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determine the speech feature flatness according to the amplitude spectrum of the noisy speech signal; determine the pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness; determine an intermediate masking threshold according to the pure tone coefficient; determine a target masking threshold according to a comparison result between a pre-determined absolute masking threshold and the first masking threshold. Through the technical solution provided by the embodiment of the present invention, the accuracy of masking threshold estimation can be improved, and thus the noise suppression result can be effectively enhanced and the speech recognition effect can be improved.
[0096] Further, the feature parameter determination module 220 includes:
[0097] A speech feature spectrum deviation determination unit, configured to determine the speech feature spectrum deviation by using the following formula:
[0098]
[0099] wherein, i is the frequency band number, j is the frequency point number, N is the number of frequency points (0≤j<N), Diff(i) is the speech feature spectrum deviation of the i-th frequency band of the noisy speech signal, D i (j) is the estimated value of the amplitude spectrum of the j-th frequency point in the i-th frequency band of the noise signal, Y i (j) is the amplitude spectrum of the j-th frequency point in the i-th frequency band of the noisy speech signal, is the mean value of the estimated amplitude spectrum of the i-th frequency band of the noise signal, is the mean value of the amplitude spectrum of the i-th frequency band of the noisy speech signal;
[0100] A speech feature flatness determination unit, configured to determine the speech feature flatness by using the following formula:
[0101]
[0102] Wherein, Flat(i) is the flatness of the speech feature of the i-th frequency band of the noisy speech signal.
[0103] Furthermore, the pure tone coefficient determination module 230 is specifically configured to:
[0104]
[0105] Among them, α(i) is the pure tone coefficient of the i-th frequency band of the noisy speech signal, β i is the first adjustment value, β i ∈[0,1],η i is the second adjustment value, η i ∈[-70,-50].
[0106] Furthermore, the intermediate masking threshold determination module 240 includes:
[0107] The intermediate masking threshold determination unit is used to determine the intermediate masking threshold using the following formula:
[0108]
[0109] Where T(i) is the middle masking threshold of the i-th frequency band of the noisy speech signal, O(i) is the offset of the i-th frequency band of the noisy speech signal relative to the middle masking threshold, T(i-1) is the masking threshold of the (i-1)th frequency band of the noisy speech signal, and λ i is the third adjustment value, λ i ∈[0, 1].
[0110] Further, the intermediate masking threshold determination unit includes:
[0111] The offset determination subunit relative to the intermediate masking threshold is used to determine the offset relative to the intermediate masking threshold using the following formula:
[0112] O(i)=(α(i)-μ)*i+(3μ-1)*α(i)+μ;
[0113] Wherein, μ is the fourth adjustment value, μ∈[0.5, 6.5].
[0114] The extended critical band spectrum determination subunit is used to determine the extended critical band spectrum using the following formula:
[0115]
[0116] Where C(i) is the extended critical band spectrum value, j is the frequency point number, N is the number of frequency points, P(j) is the power spectrum of the jth frequency point of the noisy speech signal, SP ijIt is the expansion function of the jth frequency point in the i-th frequency band of the noisy speech signal.
[0117] Furthermore, the extended critical band spectrum determination subunit is further used to determine the extended function of the jth frequency point in the i-th frequency band of the noisy speech signal using the following formula:
[0118]
[0119] The masked threshold estimation device provided in the embodiment of the present invention can execute the masked threshold estimation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the masked threshold estimation method.
[0120] Embodiment 3
[0121] Figure 3 Schematic diagram of the structure of an electronic device provided by Embodiment 3 of the present invention. Figure 3 As shown, the electronic device 300 includes: one or more processors 320; a storage device 310, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 320, the one or more processors 320 implement the masking threshold estimation method provided in the embodiment of the present application. The method includes:
[0122] Acquire an amplitude spectrum of a noisy speech signal, and acquire an amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal;
[0123] Determining a speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining a speech feature flatness according to the amplitude spectrum of the noisy speech signal;
[0124] Determining pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness;
[0125] determining an intermediate masking threshold according to the pure tone coefficient;
[0126] The target masking threshold is determined according to a comparison result between a predetermined absolute masking threshold and the first masking threshold.
[0127] Of course, those skilled in the art can understand that the processor 320 also implements the technical solution of the masking threshold estimation method provided by any embodiment of the present application.
[0128] Figure 3 The electronic device 300 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.
[0129] like Figure 3 As shown, the electronic device 300 includes a processor 320, a storage device 310, an input device 330, and an output device 340; the number of the processor 320 in the electronic device can be one or more. Figure 3 A processor 320 is taken as an example; the processor 320, the storage device 310, the input device 330 and the output device 340 in the electronic device can be connected via a bus or other means. Figure 3 The connection via bus 350 is taken as an example.
[0130] The storage device 310 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and module units, such as program instructions corresponding to the masking threshold estimation method in the embodiment of the present application.
[0131] The storage device 310 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 310 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 310 may further include a memory remotely arranged relative to the processor 320, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0132] The input device 330 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 340 may include electronic devices such as a display screen and a speaker.
[0133] Embodiment 4
[0134] Embodiment 4 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for estimating a masking threshold provided in the embodiment of the present invention is implemented, including:
[0135] Acquire an amplitude spectrum of a noisy speech signal, and acquire an amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal;
[0136] Determining a speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining a speech feature flatness according to the amplitude spectrum of the noisy speech signal;
[0137] Determining pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness;
[0138] determining an intermediate masking threshold according to the pure tone coefficient;
[0139] The target masking threshold is determined according to a comparison result between a predetermined absolute masking threshold and the intermediate masking threshold.
[0140] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0141] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0142] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0143] Computer program code for performing the operation of the present invention 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).
[0144] The masking threshold estimation method, device, electronic device, and storage medium provided in the above embodiments can execute the masking threshold estimation method provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the masking threshold estimation method provided in any embodiment of the present application.
[0145] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A masking threshold estimation method, It is characterized in that include: Acquire an amplitude spectrum of a noisy speech signal, and acquire an amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal; Determining a speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining a speech feature flatness according to the amplitude spectrum of the noisy speech signal; Determining pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness; determining an intermediate masking threshold according to the pure tone coefficient; Determining a target masking threshold according to a comparison result of a predetermined absolute masking threshold and the intermediate masking threshold; The step of determining the speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and determining the speech feature flatness according to the amplitude spectrum of the noisy speech signal, comprises: The following formula is used to determine the speech feature spectrum deviation: Where i is the frequency band number, j is the frequency point number, N is the number of frequency points (0≤j<N), Diff(i) is the speech feature spectrum deviation of the i-th frequency band of the noisy speech signal, and D i (j) is the estimated value of the amplitude spectrum of the jth frequency point of the i-th frequency band of the noise signal, Y i (j) is the amplitude spectrum of the jth frequency point in the ith frequency band of the noisy speech signal, is the mean of the estimated values of the amplitude spectrum of the noise signal in the ith frequency band, is the mean value of the amplitude spectrum of the i-th frequency band of the noisy speech signal; It also includes determining the flatness of speech features using the following formula: Wherein, Flat(i) is the flatness of the speech feature of the i-th frequency band of the noisy speech signal; The step of determining pure tone coefficients of different frequency bands in the noisy speech signal according to the speech feature spectrum deviation and the speech feature flatness comprises: Among them, α(i) is the pure tone coefficient of the i-th frequency band of the noisy speech signal, β i is the first adjustment value, β i ∈[0,1],η i is the second adjustment value, η i ∈[-70,-50]; The determining of the intermediate masking threshold according to the pure tone coefficient comprises: Where T(i) is the middle masking threshold of the i-th frequency band of the noisy speech signal, O(i) is the offset of the i-th frequency band of the noisy speech signal relative to the middle masking threshold, T(i-1) is the masking threshold of the (i-1)th frequency band of the noisy speech signal, and λ i is the third adjustment value, λ i ∈[0, 1].
2. The method according to claim 1, It is characterized in that The offset relative to the intermediate masking threshold is determined using the following formula: O(i)=(α(i)-μ)*i+(3μ-1)*α(i)+μ; Wherein, μ is the fourth adjustment value, μ∈[0.5, 6.5].
3. The method according to claim 1, It is characterized in that The extended critical band spectrum is determined using the following formula: Where C(i) is the extended critical band spectrum value, j is the frequency point number, N is the number of frequency points, P(j) is the power spectrum of the jth frequency point of the noisy speech signal, SP ij It is the expansion function of the jth frequency point in the i-th frequency band of the noisy speech signal.
4. The method according to claim 3, It is characterized in that The following formula is used to determine the spread function of the jth frequency point in the i-th frequency band of the noisy speech signal:
5. A masking threshold estimation device, It is characterized in that include: A basic parameter acquisition module, used to acquire the amplitude spectrum of a noisy speech signal and the amplitude spectrum of a noise signal in the noisy speech signal; wherein the noisy speech signal includes a clean speech signal and a noise signal; A feature parameter determination module, used to determine the speech feature spectrum deviation of the noisy speech signal according to the amplitude spectrum of the noisy speech signal and the amplitude spectrum of the noise signal, and to determine the speech feature flatness according to the amplitude spectrum of the noisy speech signal; A pure tone coefficient determination module, used to determine the pure tone coefficients of different frequency bands in the noisy speech signal according to the speech characteristic spectrum deviation and the speech characteristic flatness; An intermediate masking threshold determination module, used to determine an intermediate masking threshold according to the pure tone coefficient; A target masking threshold determination module, used to determine the target masking threshold according to a comparison result of a predetermined absolute masking threshold and the intermediate masking threshold; The characteristic parameter determination module comprises: The speech feature spectrum deviation determining unit is used to determine the speech feature spectrum deviation using the following formula: Where i is the frequency band number, j is the frequency point number, N is the number of frequency points (0≤j<N), Diff(i) is the speech feature spectrum deviation of the i-th frequency band of the noisy speech signal, and D i (j) is the estimated value of the amplitude spectrum of the jth frequency point of the i-th frequency band of the noise signal, Y i (j) is the amplitude spectrum of the jth frequency point in the ith frequency band of the noisy speech signal, is the mean of the estimated values of the amplitude spectrum of the noise signal in the ith frequency band, is the mean value of the amplitude spectrum of the i-th frequency band of the noisy speech signal; The speech feature flatness determination unit is used to determine the speech feature flatness using the following formula: Wherein, Flat(i) is the flatness of the speech feature of the i-th frequency band of the noisy speech signal; The pure tone coefficient determination module is specifically used for: Among them, α(i) is the pure tone coefficient of the i-th frequency band of the noisy speech signal, β i is the first adjustment value, β i ∈[0,1],η i is the second adjustment value, η i ∈[-70,-50]; The intermediate masking threshold determination module comprises: The intermediate masking threshold determination unit is used to determine the intermediate masking threshold using the following formula: Where T(i) is the middle masking threshold of the i-th frequency band of the noisy speech signal, O(i) is the offset of the i-th frequency band of the noisy speech signal relative to the middle masking threshold, T(i-1) is the masking threshold of the (i-1)th frequency band of the noisy speech signal, and λ i is the third adjustment value, λ i ∈[0, 1].
6. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the masking threshold estimation method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the masking threshold estimation method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Speech enhancement method of multi-sub-band spectral subtraction based on phase adjustment and amplitude compensation
CN103021420A
Training method of voice bandwidth expansion model and voice bandwidth expansion method
CN107705801A
Voice enhancement method
CN110310656A
Noise reduction method for improving voice listening feeling
CN112750451A
Noise reduction processing method, and device, program, and recording medium for implementing same method
JP2005107448A
