Speech audio processing method and system applied to hearing aid
By using the Broadside microphone arrangement and the MUSIC algorithm in the hearing aid to determine the direction of the sound source, and combining it with the blind beam algorithm to form an adaptive beam, it solves the problem of time difference adjustment when the position of the sound source and noise source changes in the existing technology, and improves the sound compensation effect. High-fidelity speech output is ensured.
Patent Information
- Application Number
- CN202410019871.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-06
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-01-06
AI Technical Summary
The speech audio processing method of existing hearing aids cannot adapt to changes in the positions of sound sources and noise sources, and cannot accurately adjust the time difference in acquiring sound signals from multiple microphones, resulting in poor sound compensation effects.
Use at least one microphone to be linearly arranged in a Broadside type, adjust the distance between microphones to control the time difference, and use the MUSIC algorithm based on two-dimensional positioning of far-field sources to determine the direction of the sound source, combined with the blind beam algorithm based on array rotation invariance to form an adaptive beam for speech processing Audio processing.
It achieves adaptive adjustment of the sound source direction and precise control of the microphone spacing, improves the time difference matching of the acoustic signal and the fidelity of the sound, and significantly improves the effectiveness of the hearing aid.
Smart Images

Figure CN117835135B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hearing aids, and in particular to a speech audio processing method and system applied to hearing aids. Background Art
[0002] A hearing aid is an electronic device designed specifically for deaf patients. It can amplify and adjust external sounds to compensate for the hearing loss of deaf patients. It is an effective tool to help hearing patients improve their hearing difficulties. With the rapid development of electronic technology and the great progress in the field of audiology, hearing aid technology has improved by leaps and bounds. Hearing loss patients have also gradually begun to pay attention to the quality and performance of hearing aids. Their requirements have evolved from the initial "being able to hear" to now "not only being able to hear but also being able to hear clearly." Digital hearing aids have become the hope of hearing loss patients with their low noise, low distortion, energy saving, miniaturization, and strong adjustability.
[0003] However, the positions of sound sources and noise sources in actual environments are constantly changing, and there may be multiple sound sources of interest and noise sources that need to be suppressed. Existing speech audio processing methods cannot meet the needs of adaptively adjusting the constantly changing sound sources and noise sources. At the same time, they cannot accurately adjust the time difference of multiple microphones acquiring sound signals, and the effect of sound compensation needs to be improved. Summary of the invention
[0004] In order to solve the above technical problems, a speech audio processing method and system for hearing aids are provided. This technical solution solves the problem raised in the above background technology that the positions of sound sources and noise sources in the actual environment are constantly changing, and there may be multiple sound sources of interest and noise sources that need to be suppressed. The existing speech audio processing method cannot meet the needs of adaptively adjusting the constantly changing sound sources and noise sources. At the same time, it is impossible to accurately adjust the time difference of multiple microphones in acquiring sound signals, and the effect of sound compensation needs to be improved.
[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0006] The speech audio processing method applied to hearing aids includes:
[0007] At least one microphone is arranged linearly in a Broadside type, and the distance between the microphones is adjusted to control the time difference of sound acquisition by each microphone;
[0008] The at least one microphone is linearly arranged in a Broadside type as follows:
[0009] The microphones are arranged in a straight line with equal spacing, the speech source is located on one side of the line in which the microphones are arranged, and the distance between the speech source and the microphone exceeds a preset multiple of the microphone spacing;
[0010] The method of adjusting the distance between microphones and controlling the time difference of each microphone acquiring sound comprises the following steps:
[0011] Obtain the acoustic signal y0(t) of the first microphone, and the acoustic signal collected by each microphone is the delay of the acoustic signal collected by the first microphone;
[0012] According to the time difference formula, calculate the sound signal y of the i-th microphone i-1 (t);
[0013] The integrated acoustic signal y(t) collected by each microphone is represented by a vector, y(t) = [y0(t), y0(t), ...y M-1 (t)] T , where M is the number of microphones and T is the transposition of the vector;
[0014] Adjust the distance between microphones to change the time difference of sound signals to each microphone;
[0015] The time difference formula is as follows:
[0016] y i (t) = y0(t-τ 0i ),
[0017]
[0018] Where c is the propagation speed of sound waves, τ 0i is the time difference between the i+1th microphone and the first microphone, δ is the angle between the acoustic signal and the perpendicular line of the straight line where the microphones are arranged, i is the subscript, and d is the distance between adjacent microphones;
[0019] Determine the direction of the sound source based on the far-field source two-dimensional positioning MUSIC algorithm;
[0020] The method of determining the source direction of the sound based on the far-field source two-dimensional positioning MUSIC algorithm includes the following steps:
[0021] In the xyz three-dimensional coordinate system, the acoustic signals of D far-field signal sources and M microphones are modeled, and the position vectors of the microphones are P1, P2, ...P M , the position vectors of the acoustic signals of the far-field signal sources are S1, S2, ...S D ;
[0022] For S i Using polar coordinates, Among them, r i is the distance from the ith sound signal to the origin of the coordinate system, θ i is the angle between the ith sound signal and the z-axis, is the angle between the projection of the ith acoustic signal on the XOY plane and the X-axis;
[0023] Calculate the relative time delay factor α of the i-th microphone receiving the j-th sound signal ij ,
[0024] α ij =(||S j -P i ||-||S j ||) / c,
[0025] Among them, ||S j -P i || and ||S j || represents the norm of the vector, c is the propagation speed of the sound wave;
[0026] The acoustic signal received by the microphone array is expressed in the frequency domain, and we get:
[0027]
[0028] Among them, f ij (ω, t) is the acoustic signal received by the i-th microphone from the j-th signal source, n i (ω, t) is the noise received at the i-th microphone, e is a natural constant, and F(ω, t) is a broadband two-dimensional signal;
[0029] The broadband two-dimensional signal is divided into sub-bands and frames, and ω is divided into L sub-bands to obtain (ω1, ω k ,…ω L );
[0030] Perform short-time Fourier transform on the frequency domain representation of the acoustic signal received by the microphone array to obtain:
[0031]
[0032] in, for The transformation result, S(ω k )for The transformation result, N(ω k )for The transformation result of
[0033] Calculate F(ω k )’s correlation matrix R(ω k ),
[0034] R(ω k )=E{F(ω k )F H (ω k )},
[0035] Where E is the mathematical expectation symbol, and H is the conjugate transpose of the matrix;
[0036] Perform eigendecomposition and sort the correlation matrix to obtain:
[0037] R(ω k ) = Udiag[γ1,γ2,…γ M ]U H ,
[0038] Among them, γ1, γ2, …γ M is R(ω k ), diag is a diagonal matrix function, U is a characteristic matrix composed of corresponding eigenvectors, and γ1>γ2>…>γ M ;
[0039] Calculate the spatial spectrum of the kth subband Among them, a is The matrix composed of the first k rows of N is γ1, γ2, …γ k The corresponding eigenvectors form a characteristic matrix, ||a H U N || is the norm of the matrix;
[0040] Search Space Spectrum Get the information source location information estimated by the kth subband for The value corresponding to the maximum value, where is the angle between the information source position and the z-axis, is the angle between the projection of the information source position information on the XOY plane and the X axis;
[0041] The microphone converts the acoustic signal into an electrical signal, which is then low-pass filtered, sampled by A / D, processed by a digital signal processing chip, including frequency response compensation, automatic gain control, feedback suppression, and background reduction, and then transmitted to the speaker;
[0042] During transmission, an adaptive beam is formed using a blind beam algorithm based on array rotation invariance;
[0043] The method of forming an adaptive beam using a blind beam algorithm based on array rotation invariance comprises the following steps:
[0044] Obtain the array frequency domain transmission equation:
[0045] X(f,p)=A(f)S(f,p)+N(f,p),
[0046] Wherein, X(f, p) is the array receiving data of the p-th frame, S(f, p) is the component of the p-th frame data at frequency f, N(f, p) is the component of the noise data at frequency f, and A(f) is the array transmission matrix at frequency f;
[0047] Perform Fourier transform on the array receiving data of the pth frame frame by frame to obtain the frequency domain value matrix X(f i );
[0048] Perform singular value decomposition on the frequency domain value matrix and obtain
[0049] X(f i )=u(f i )∑(f i )V H (f i )≈U * (f i )∑(f i )V H (f i )≈A(f i )S(f i ),
[0050] Among them, f i is a singular value, U * (f i ) is U(f i ) generates a skew-symmetric matrix, U(f i ) and V(f i ) is X(f i ), the left and right singular matrices of the matrix, H is the conjugate transpose of the matrix, ∑(f i ) are arranged in descending order, S(f i )=(S(f i , 1), S(f i , 2),…S(f i , K));
[0051] The reversible matrix T(f i ), satisfied with: U * (f i )=A(f i )T(f i );
[0052] Construct the weight matrix W(f i )=T(f i )Q(f i ), Q(f i ) is U * (f i )'s conjugate transposed matrix;
[0053] The results of multiplying the weight matrix and the frequency domain value matrix are summarized as the adjusted adaptive beam;
[0054] Perform speech compensation on adaptive beamforming;
[0055] The speech compensation for the adaptive beam comprises the following steps:
[0056] Use an eight-channel loudness compensation scheme for speech compensation;
[0057] The input signal x(n) is decomposed into bandpass signals and downsampled by the analysis filter bank H0(z), H1(z), ...H7(z);
[0058] The decimation factors are S0, S1, ...S7, which realize loudness compensation in different channels;
[0059] The compensated signal is upsampled and synthesized by the synthesis filter group G0(z), G1(z), ...G7(z) to obtain y(n), where y(n) is the reconstructed signal obtained by the final synthesis.
[0060] A speech and audio processing system applied to a hearing aid, used to implement the above-mentioned speech and audio processing method applied to a hearing aid, comprises:
[0061] A spacing adjustment module, which adjusts the distance between microphones to control the time difference of each microphone acquiring sound;
[0062] A sound source determination module, which determines the source direction of the sound based on a far-field source two-dimensional positioning MUSIC algorithm;
[0063] An acoustic-to-electric conversion module, which controls the microphone to convert the acoustic signal into an electrical signal, and after processing, transmits it to the speaker;
[0064] A beam adaptation module, wherein the beam adaptation module forms an adaptive beam using a blind beam algorithm based on array rotation invariance;
[0065] A speech compensation module is used to perform speech compensation on the adaptive beam.
[0066] Compared with the prior art, the present invention has the following beneficial effects:
[0067] By setting up the spacing adjustment module, the sound source determination module, the beam adaptation module and the speech compensation module, the direction of the sound source can be determined, and then the beam can be adaptively adjusted according to the constantly changing positions of the sound source and the noise source in the actual environment. At the same time, the spacing of the microphone array used to obtain the sound signal can be accurately adjusted to ensure that the time difference spacing of the sound signals collected by multiple microphones meets the preset requirements, and the merged sound signal will not be disordered. In addition, the eight-channel loudness compensation scheme is used to compensate for the speech to obtain high-fidelity sound, thereby ensuring the effectiveness of the hearing aid. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a flow chart of the speech audio processing method applied to a hearing aid of the present invention;
[0069] Figure 2 A schematic diagram of a flow chart of adjusting the distance between microphones and controlling the time difference of each microphone in acquiring sound according to the present invention;
[0070] Figure 3 A schematic diagram of a process for determining the source direction of a sound based on a far-field source two-dimensional positioning MUSIC algorithm of the present invention;
[0071] Figure 4 A schematic diagram of a process of forming an adaptive beam using a blind beam algorithm based on array rotation invariance according to the present invention;
[0072] Figure 5 A schematic diagram of a flow chart of speech compensation for adaptive beamforming according to the present invention;
[0073] Figure 6 It is a schematic diagram of the structure of the eight-channel loudness compensation solution of the present invention. DETAILED DESCRIPTION
[0074] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.
[0075] Reference Figure 1 As shown, the speech audio processing method applied to the hearing aid comprises:
[0076] At least one microphone is arranged linearly in a Broadside type, and the distance between the microphones is adjusted to control the time difference of sound acquisition by each microphone;
[0077] Determine the direction of the sound source based on the far-field source two-dimensional positioning MUSIC algorithm;
[0078] The microphone converts the acoustic signal into an electrical signal, which is then low-pass filtered, sampled by A / D, processed by a digital signal processing chip, including frequency response compensation, automatic gain control, feedback suppression, and background reduction, and then transmitted to the speaker;
[0079] During transmission, an adaptive beam is formed using a blind beam algorithm based on array rotation invariance;
[0080] Perform speech compensation on the adaptive beam.
[0081] At least one microphone is Broadside e The linear arrangement is as follows:
[0082] The microphones are arranged in a straight line with equal spacing, the speech source is located on one side of the line in which the microphones are arranged, and the distance between the speech source and the microphone exceeds a preset multiple of the microphone spacing;
[0083] When the preset multiple is large enough and the distance between the microphone and the speech source is large enough, the entire algorithm can be processed equivalent to the far-field assumption.
[0084] Reference Figure 2 As shown, adjusting the distance between microphones and controlling the time difference of each microphone acquiring sound includes the following steps:
[0085] Obtain the acoustic signal y0(t) of the first microphone, and the acoustic signal collected by each microphone is the delay of the acoustic signal collected by the first microphone;
[0086] According to the time difference formula, calculate the sound signal y of the i-th microphone i-1 (t);
[0087] The integrated acoustic signal y(t) collected by each microphone is represented by a vector, y(t) = [y0(t), y0(t), ...y M-1 (t)] T , where M is the number of microphones and T is the transposition of the vector;
[0088] Adjust the distance between microphones to change the time difference of sound signals to each microphone;
[0089] The time difference formula is as follows:
[0090] y i (t) = y0(t-τ 0i ),
[0091]
[0092] Where c is the propagation speed of sound waves, τ 0iis the time difference between the i+1th microphone and the first microphone, δ is the angle between the acoustic signal and the perpendicular line of the straight line where the microphones are arranged, i is the subscript, and d is the distance between adjacent microphones;
[0093] In a microphone array, the spacing between array elements is an important factor affecting the array signal processing performance. The propagation time difference of the sound signal between each microphone depends on both the direction of the incoming wave and the spacing between the microphones. Taking the Broadside type equally spaced linear array as an example, based on the far-field assumption and in order to simplify the calculation and analysis process, only the two-dimensional plane is considered. The time difference formula can be used to obtain the time difference corresponding to the microphone spacing d, and the integrated sound signal can be obtained. Therefore, according to the calculation results, d can be set to an appropriate value to ensure that the microphone's sound reception effect meets the preset requirements.
[0094] Reference Figure 3 As shown, based on the far-field source two-dimensional positioning MUSIC algorithm, determining the source direction of the sound includes the following steps:
[0095] In the xyz three-dimensional coordinate system, the acoustic signals of D far-field signal sources and M microphones are modeled, and the position vectors of the microphones are P1, P2, ...P M , the position vectors of the acoustic signals of the far-field signal sources are S1, S2, ...S D ;
[0096] For S i Using polar coordinates, Among them, r i is the distance from the ith sound signal to the origin of the coordinate system, θ i is the angle between the ith sound signal and the z-axis, is the angle between the projection of the ith acoustic signal on the XOY plane and the X-axis;
[0097] Calculate the relative time delay factor α of the i-th microphone receiving the j-th sound signal ij ,
[0098] α ij =(||S j -P i ||-||S j ||) / c,
[0099] Among them, ||S j -P i || and ||S j || represents the norm of the vector, c is the propagation speed of the sound wave;
[0100] The acoustic signal received by the microphone array is expressed in the frequency domain, and we get:
[0101]
[0102] Among them, f ij (ω, t) is the acoustic signal received by the i-th microphone from the j-th signal source, n i (ω, t) is the noise received at the i-th microphone, e is a natural constant, and F(ω, t) is a broadband two-dimensional signal;
[0103] The broadband two-dimensional signal is divided into sub-bands and frames, and ω is divided into L sub-bands to obtain (ω1, ω k ,…ω L );
[0104] Perform short-time Fourier transform on the frequency domain representation of the acoustic signal received by the microphone array to obtain:
[0105]
[0106] in, for The transformation result, S(ω k )for The transformation result, N(ω k )for The transformation result of
[0107] Calculate F(ω k )’s correlation matrix R(ω k ),
[0108] R(ω k )=E{F(ω k )F H (ω k )},
[0109] Where E is the mathematical expectation symbol, and H is the conjugate transpose of the matrix;
[0110] Perform eigendecomposition and sort the correlation matrix:
[0111] R(ω k ) = Udiag[γ1,γ2,…γ M ]U H ,
[0112] Among them, γ1, γ2, …γ M is R(ω k ), diag is a diagonal matrix function, U is a characteristic matrix composed of corresponding eigenvectors, and γ1>γ2>…>γ M ;
[0113] Calculate the spatial spectrum of the kth subband Among them, a is The matrix composed of the first k rows of N is γ1, γ2, …γ k The corresponding eigenvectors form a characteristic matrix, ||a H U N || is the norm of the matrix;
[0114] Search Space Spectrum Get the information source location information estimated by the kth subband for The value corresponding to the maximum value, where is the angle between the information source position and the z-axis, is the angle between the projection of the information source position information on the XOY plane and the X axis;
[0115] The direction of the sound source is determined mainly by processing the relevant data of the collected sound signal, analyzing the angle between the sound signal and the z-axis in the xyz three-dimensional coordinate system and the angle between the projection on the XOY plane and the x-axis, so as to determine the direction of its source. When forming an adaptive beam, the characteristics of the determined direction are reflected in the array receiving data X(f, p) matrix of the pth frame.
[0116] Reference Figure 4 As shown, forming an adaptive beam using a blind beam algorithm based on array rotation invariance includes the following steps:
[0117] Obtain the array frequency domain transmission equation:
[0118] X(f,p)=A(f)S(f,p)+N(f,p),
[0119] Wherein, X(f, p) is the array receiving data of the p-th frame, S(f, p) is the component of the p-th frame data at frequency f, N(f, p) is the component of the noise data at frequency f, and A(f) is the array transmission matrix at frequency f;
[0120] Perform Fourier transform on the array receiving data of the pth frame frame by frame to obtain the frequency domain value matrix X(f i );
[0121] Perform singular value decomposition on the frequency domain value matrix and obtain
[0122] X(f i )=U(f i )∑(f i )V H (f i )≈U * (f i )∑(f i)V H (f i )≈A(f i )S(f i ),
[0123] Among them, f i is a singular value, U * (f i ) is u(f i ) generates a skew-symmetric matrix, U(f i ) and V(f i ) is X(f i ), the left and right singular matrices of the matrix, H is the conjugate transpose of the matrix, ∑(f i ) are arranged in descending order, S(f i )=(S(f i , 1), S(f i , 2),…S(f i , K));
[0124] The reversible matrix T(f i ), satisfied with: U * (f i )=A(f i )T(f i );
[0125] Construct the weight matrix W(f i )=T(f i )Q(f i ), Q(f i ) is U * (f i )'s conjugate transposed matrix;
[0126] The results of multiplying the weight matrix and the frequency domain value matrix are summarized as the adjusted adaptive beam;
[0127] The result of multiplying the weight matrix and the frequency domain value matrix is S(f i ) are approximately equal, therefore, the result of multiplying the weight matrix and the frequency domain value matrix can be used as the restored signal source. Since the X(f, p) matrix contains the constantly changing positional relationship of the sound source and the noise source in the actual environment, the blind beam algorithm based on the rotational invariance of the array can adaptively adjust the constantly changing sound source and noise source.
[0128] Reference Figure 5 and Figure 6 As shown, performing speech compensation on the adaptive beam includes the following steps:
[0129] Use an eight-channel loudness compensation scheme for speech compensation;
[0130] The input signal x(n) is decomposed into bandpass signals and downsampled by the analysis filter bank H0(z), H1(z), ...H7(z);
[0131] The decimation factors are S0, S1, ...S7, which realize loudness compensation in different channels;
[0132] The compensated signal is upsampled and synthesized by the synthesis filter group G0(z), G1(z), ...G7(z) to obtain y(n), where y(n) is the reconstructed signal obtained by the final synthesis;
[0133] During the compensation process, after downsampling, relay sampling data K0, K1, ...K7 are formed;
[0134] The input signal x(n) is transformed into x i (n),u i (n), v i (n) and y i (n), and the final output is y(n), where i ranges from 0 to 7.
[0135] A speech and audio processing system applied to a hearing aid, used to implement the above-mentioned speech and audio processing method applied to a hearing aid, comprises:
[0136] A spacing adjustment module, which adjusts the distance between microphones to control the time difference of each microphone acquiring sound;
[0137] A sound source determination module, which determines the source direction of the sound based on a far-field source two-dimensional positioning MUSIC algorithm;
[0138] An acoustic-to-electric conversion module, which controls the microphone to convert the acoustic signal into an electrical signal, and after processing, transmits it to the speaker;
[0139] A beam adaptation module, wherein the beam adaptation module forms an adaptive beam using a blind beam algorithm based on array rotation invariance;
[0140] A speech compensation module is used to perform speech compensation on the adaptive beam.
[0141] The working process of the above-mentioned speech audio processing system applied to hearing aids is as follows:
[0142] Step 1: at least one microphone is linearly arranged in a Broadside type, and a spacing adjustment module adjusts the microphone spacing to control the time difference of each microphone acquiring sound;
[0143] Step 2: The sound source determination module determines the direction of the sound source based on the far-field source two-dimensional positioning MUSIC algorithm;
[0144] Step 3: The acoustic-to-electric conversion module controls the microphone to convert the acoustic signal into an electrical signal. After low-pass filtering, it is sampled by A / D and processed by the digital signal processing chip, including frequency response compensation, automatic gain control, feedback suppression and background reduction, and then transmitted to the speaker.
[0145] Step 4: During the transmission process, the beam adaptation module uses a blind beam algorithm based on array rotation invariance to form an adaptive beam;
[0146] Step 5: The speech compensation module performs speech compensation on the adaptive beam.
[0147] Furthermore, the present solution also proposes a storage medium on which a computer-readable program is stored. When the computer-readable program is called, the above-mentioned speech and audio processing method applied to a hearing aid is executed.
[0148] It is understandable that the storage medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; an optical medium, such as a DVD; or a semiconductor medium, such as a solid state drive (SSD).
[0149] To sum up, the advantages of the present invention are: by setting a spacing adjustment module, a sound source determination module, a beam adaptation module and a speech compensation module, the direction of the sound source can be determined, and then the beam can be adaptively adjusted according to the constantly changing positions of the sound source and the noise source in the actual environment. At the same time, the spacing of the microphone array used to obtain the sound signal can be accurately adjusted, thereby ensuring that the time difference spacing of the sound signals collected by multiple microphones meets the preset requirements, and the merged sound signal will not be disordered. In addition, the eight-channel loudness compensation scheme is used to compensate for the speech, and high-fidelity sound can be obtained, thereby ensuring the use effect of the hearing aid.
[0150] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. A speech audio processing method for a hearing aid, characterized in that: include: At least one microphone is arranged linearly in a Broadside type, and the distance between the microphones is adjusted to control the time difference of sound acquisition by each microphone; The at least one microphone is linearly arranged in a Broadside type as follows: The microphones are arranged in a straight line with equal spacing, the speech source is located on one side of the line in which the microphones are arranged, and the distance between the speech source and the microphone exceeds a preset multiple of the microphone spacing; The method of adjusting the distance between microphones and controlling the time difference of each microphone acquiring sound comprises the following steps: Obtain the acoustic signal y0(t) of the first microphone, and the acoustic signal collected by each microphone is the delay of the acoustic signal collected by the first microphone; According to the time difference formula, calculate the sound signal y of the i-th microphone i-1 (t); The integrated acoustic signal y(t) collected by each microphone is represented by a vector, y(t) = [y0(t), y0(t), ...y M-1 (t)] T , where M is the number of microphones and T is the transposition of the vector; Adjust the distance between microphones to change the time difference of sound signals to each microphone; The time difference formula is as follows: y i (t)=y0(t-τ 0i ), Where c is the propagation speed of sound waves, τ 0i is the time difference between the i+1th microphone and the first microphone, δ is the angle between the acoustic signal and the perpendicular line of the straight line where the microphones are arranged, i is the subscript, and d is the distance between adjacent microphones; Determine the direction of the sound source based on the far-field source two-dimensional positioning MUSIC algorithm; The method of determining the source direction of the sound based on the far-field source two-dimensional positioning MUSIC algorithm includes the following steps: In the xyz three-dimensional coordinate system, the acoustic signals of D far-field signal sources and M microphones are modeled, and the position vectors of the microphones are P1, P2, ...P M , the position vectors of the acoustic signals of the far-field signal sources are S1, S2, ... S D ; For S i Using polar coordinates, Among them, r i is the distance from the ith sound signal to the origin of the coordinate system, θ i is the angle between the ith sound signal and the z-axis, is the angle between the projection of the ith acoustic signal on the XOY plane and the X-axis; Calculate the relative time delay factor α of the i-th microphone receiving the j-th sound signal ij , α ij (||S j -P i ||-||S j ||) / c, Among them, ||S j -P i || and ||S j || represents the norm of the vector, c is the propagation speed of the sound wave; The acoustic signal received by the microphone array is expressed in the frequency domain, and we get: Among them, f ij (ω, t) is the acoustic signal received by the i-th microphone from the j-th signal source, n i (ω, t) is the noise received at the i-th microphone, e is a natural constant, and F(ω, t) is a broadband two-dimensional signal; The broadband two-dimensional signal is divided into sub-bands and frames, and ω is divided into L sub-bands to obtain (ω1, ω k ,…ω L ); Perform short-time Fourier transform on the frequency domain representation of the acoustic signal received by the microphone array to obtain: in, for The transformation result, S(ω k )for The transformation result, N(ω k )for The transformation result of Calculate F(ω k )’s correlation matrix R(ω k ), R(ω k )=E{F(ω k )F H (oh k )}, Where E is the mathematical expectation symbol, and H is the conjugate transpose of the matrix; Perform eigendecomposition and sort the correlation matrix to obtain: R(ω k )=Udiag[γ1,γ2,…γ M ]U H , Among them, γ1, γ2, …γ M is R(ω k ), diag is a diagonal matrix function, U is a characteristic matrix composed of corresponding eigenvectors, and γ1>γ2>…>γ M ; Calculate the spatial spectrum of the kth subband Among them, a is The matrix composed of the first k rows of N is γ1, γ2, …γ k The corresponding eigenvectors form a characteristic matrix, ||a H U N || is the norm of the matrix; Search Space Spectrum Get the information source location information estimated by the kth subband for The value corresponding to the maximum value, where is the angle between the information source position and the z-axis, is the angle between the projection of the information source position information on the XOY plane and the X axis; The microphone converts the acoustic signal into an electrical signal, which is then low-pass filtered, sampled by A / D, processed by a digital signal processing chip, including frequency response compensation, automatic gain control, feedback suppression, and background reduction, and then transmitted to the speaker; During transmission, an adaptive beam is formed using a blind beam algorithm based on array rotation invariance; The method of forming an adaptive beam using a blind beam algorithm based on array rotation invariance comprises the following steps: Obtain the array frequency domain transmission equation: X(f,p)=A(f)S(f,p)+N(f,p), Wherein, X(f, p) is the array receiving data of the p-th frame, S(f, p) is the component of the p-th frame data at frequency f, N(f, p) is the component of the noise data at frequency f, and A(f) is the array transmission matrix at frequency f; Perform Fourier transform on the array receiving data of the pth frame frame by frame to obtain the frequency domain value matrix X(f i ); Perform singular value decomposition on the frequency domain value matrix and obtain X(f i )=U(f i )∑(f i )V H (f i )≈U * (f i )∑(f i )V H (f i )≈A(f i )S(f i ), Among them, f i is a singular value, U * (f i ) is U(f i ) generates a skew-symmetric matrix, U(f i ) and V(f i ) is X(f i ), H is the conjugate transpose of the matrix, ∑(f i ) are arranged in descending order, S(f i )=(S(f i , 1), S(f i , 2),…S(f i , K)); The reversible matrix T(f i ), satisfied with: U * (f i )=A(f i )T(f i ); Construct the weight matrix W(f i )=T(f i )Q(f i ), Q(f i ) is U * (f i )'s conjugate transposed matrix; The result of multiplying the weight matrix and the frequency domain value matrix is summarized as the adjusted adaptive beam; Perform speech compensation on adaptive beamforming; The speech compensation for the adaptive beam comprises the following steps: Speech compensation using an eight-channel loudness compensation scheme; The input signal x(n) is decomposed into bandpass signals and downsampled by the analysis filter bank H0(z), H1(z), ...H7(z); The decimation factors are S0, S1, ...S7, which realize loudness compensation in different channels; The compensated signal is upsampled and synthesized by the synthesis filter group G0(z), G1(z), ...G7(z) to obtain y(n), where y(n) is the reconstructed signal obtained by the final synthesis.
2. A speech and audio processing system for a hearing aid, used to implement the speech and audio processing method for a hearing aid as claimed in claim 1, characterized in that: include: A spacing adjustment module, which adjusts the distance between microphones to control the time difference of each microphone acquiring sound; A sound source determination module, which determines the source direction of the sound based on a far-field source two-dimensional positioning MUSIC algorithm; An acoustic-to-electric conversion module, which controls the microphone to convert the acoustic signal into an electrical signal, and after processing, transmits it to the speaker; A beam adaptation module, wherein the beam adaptation module forms an adaptive beam using a blind beam algorithm based on array rotation invariance; A speech compensation module is used to perform speech compensation on the adaptive beam.
