Feedback echo cancellation method and feedback echo cancellation system using the method
By adopting a point-by-point processing feedback echo cancellation method in the hearing aid, and using an adaptive finite impulse response filter and a normalized minimum mean square error algorithm, the problems of slow tracking speed and poor update performance in the existing technology are solved, and the Efficient feedback path tracking and echo cancellation improve the voice listening effect.
Patent Information
- Application Number
- CN202011535111.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-12-23
AI Technical Summary
The time-domain adaptive filtering algorithm used in hearing aids in the existing technology is slow in tracking speed and update performance, and cannot effectively track changes in the feedback path, resulting in poor echo cancellation effects.
A feedback echo cancellation method based on the speech acquisition module and speech processing module is used to perform adaptive echo path estimation and echo cancellation by reading the discrete speech signal point by point, using the adaptive finite impulse response filter and the normalized minimum mean square error algorithm. Update filter coefficients to achieve real-time tracking and efficient echo cancellation.
The feedback path tracking speed and echo cancellation effect of the hearing aid are improved, the structure is simplified, the investment cost is reduced, and the wearing comfort and speech listening effect are improved.
Smart Images

Figure CN112530396B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing technology, and in particular to a feedback echo elimination method suitable for a hearing aid and a feedback echo elimination system using the method, which are used to eliminate echo and howling caused by a coupling path between a speech acquisition module and a speech receiving module. Background Art
[0002] A hearing aid is a sound collection, processing and playback system specially designed to help hearing-impaired patients improve their "hearing ability". Since the hearing compensation amplifier in the forward path of the hearing aid and the physical feedback loop of the coupling path between the voice receiving module and the voice collection module exist in the hearing aid system at the same time, if a closed loop is formed, an echo will be generated at the voice input end of the hearing aid. If a positive feedback closed loop is further formed, the result is howling at the speaker, which seriously affects the listening effect of the voice. The sound collected from the voice collection module and entering the hearing compensation module of the hearing aid is amplified by the hearing compensation module and then converted into continuous voice by the voice receiving module for output. After being transmitted through various possible channels, it enters the system again to generate an echo. Repeated amplification will form a high-intensity howling oscillation, which brings about a serious decline in the voice quality and listening effect of the hearing aid, and weakens the highest stable gain of the hearing aid.
[0003] A time-domain adaptive filtering algorithm for eliminating howling is provided in the prior art. First, some signal markers used in the prior art time-domain adaptive filtering algorithm are briefly described. Figure 2 The processing structure diagram of the existing adaptive filter echo cancellation filter algorithm suitable for hearing aids is given. The input and output of the finite impulse response adaptive filter module are processed in blocks, and the input signal is processed in units of frame length L. After the input buffer accumulates L points, the adaptive feedback echo cancellation module is enabled to perform echo cancellation processing. k is the kth frame of echoed speech signal collected by the hearing aid speech collection module, u k-1 It is the k-1th frame of hearing-compensated speech signal output by the hearing aid hearing compensation module. If the length of the hearing aid echo cancellation adaptive filter is M, the k-1th block output by the hearing aid hearing compensation module is used as the reference signal for estimating the echo of the kth frame of speech signal with echo collected by the hearing aid speech collection module.
[0004] First, according to the relationship between the length L of the input data block and the filter length M, the input reference data block is spliced. If L = M, then u' k-1 From the (k-1)th block u k-1 and the (k-2)th block u k-2 The sample composition of the signal is shown in the following formula:
[0005] u' k =[uk-1 [m],…u k-1 [1],u k-2 [L],…,u k-2 [m+1]] T ,
[0006] where u k-1 [m] is the mth sample of the k-1th data block, and the adaptive filter output signal of the kth block is:
[0007] where u' f k Indicates the input data u' k After band-limited IIR filtering, we get k is a column vector with the coefficients of the feedback suppression adaptive filter at time k.
[0008] The echoed speech signal block x collected by the microphone k And the adaptive filtering output signal Calculate the error signal: That is the speech signal without echo.
[0009] The existing time-domain adaptive echo cancellation algorithm includes a coefficient updating unit, which updates u' f k Perform band-limited filtering to obtain u f1 k , for e k [m] is filtered to obtain Calculate the energy estimate:
[0010]
[0011]
[0012] By calculating the energy estimate, the normalized adaptive step size adjustment becomes:
[0013]
[0014] C is the adaptive control step constant, γ is the forgetting factor, and a is the minimum threshold constant to avoid divergence.
[0015] Last update of filter coefficients Receive a new frame input u k-1 With x k , repeat the above operation.
[0016] From the above frame-by-frame processing of the time-domain adaptive filtering algorithm, it can be seen that the adaptive filtering algorithm is started once every time a full frame of echoed speech signal with a length of L is accumulated, and the update operation of the filter coefficient is started. Obviously, this algorithm has a large computational complexity, a large delay, and poor update and tracking performance. When the feedback path changes greatly, it cannot track the feedback path well, thereby reducing the echo cancellation performance of the adaptive filter. Summary of the invention
[0017] In view of the problems in the prior art that when a time domain adaptive filtering algorithm is used to eliminate echo howling, the tracking speed is slow, the updating and tracking performance is poor, and when the feedback path changes greatly, the feedback path cannot be tracked well, thereby reducing the echo elimination effect, the present invention provides a feedback echo elimination method and a feedback echo elimination system using the method, which can improve the tracking speed and tracking performance, and when the feedback path changes greatly, the feedback path can be tracked well, thereby improving the echo elimination effect.
[0018] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0019] A feedback echo cancellation method is implemented based on a voice acquisition module, a voice processing module, and a voice sending module encapsulated in a hearing aid;
[0020] The speech acquisition module is used to acquire and process continuous speech signals and convert them into discrete speech signal sequences;
[0021] The speech processing module is used to process the discrete speech signal sequence;
[0022] The voice sending module is used to output a continuous voice signal;
[0023] Characterized in that the method comprises:
[0024] S1, collecting the continuous voice signal with echo through the voice collection module, and converting the continuous voice signal with echo to obtain a discrete voice signal sequence;
[0025] S2, processing the discrete speech signal sequence by the speech processing module, comprising:
[0026] S21, reading the discrete speech signal sequence point by point;
[0027] S22, performing adaptive calculation point by point, including: using an adaptive feedback echo elimination unit to perform adaptive echo path and echo estimation on the discrete speech signal sequence, and then performing echo elimination processing to obtain a time-domain echo-free speech signal sequence;
[0028] S23, sequentially converting and compensating the time-domain echo-free speech signal sequence to obtain a compensated signal sequence;
[0029] S3. Read the compensation signal sequence, convert the compensation signal sequence into a continuous de-echoed speech signal, and output the continuous de-echoed speech signal through the player.
[0030] Its further characteristic is that
[0031] The adaptive feedback echo cancellation unit includes a delay configuration module, a storage module, an initialization module, a finite impulse response adaptive filtering module, a band-limited IIR filtering module, a power estimation and step-size adjustment module, and a coefficient updating module. The delay configuration module is used to implement a delay of a configurable number of sample points D_set for the compensation signal sequence, and match the delay of the voice acquisition module, the voice output module, and the coupling path between the voice acquisition module and the voice output module; the storage module is used to store data for adaptive filtering operations and data and filter coefficients for coefficient updating operations; the initialization module is used to initialize the data in the storage module; the finite impulse response adaptive filtering module uses the estimated The echo path and the compensation signal sequence are used to estimate the echo, and the echo is subtracted from the discrete speech signal with echo to obtain the de-echoed speech signal sequence, that is, the adaptive filtering error signal sequence; the band-limited IIR filtering module uses a filter with a configurable passband frequency to perform band-limited IIR filtering on the input reference signal and the adaptive filtering error signal for power estimation, step size adjustment, and filter coefficient update; the power estimation and step size adjustment module is used to calculate the power of the compensation signal sequence and the adaptive filtering error signal sequence, and calculate the normalized adaptive step size of the adaptive filter after smoothing the power; the coefficient updating module uses the normalized adaptive step size to update the filter coefficient and the echo path;
[0032] In S21 and S22, the discrete voice signal sequence is read point by point, and adaptive calculation is performed point by point, which means that non-block processing is used to implement tracking of each data point. Each time a sample point is input into the voice acquisition module, data update and data calculation of the voice processing module are enabled once.
[0033] In S23, the time-domain echo-free speech signal sequence is converted and compensated in sequence to obtain a compensated signal sequence, including:
[0034] S231, converting the time-domain de-echoed speech signal sequence into a data frame form,
[0035] S231, converting the data frame into a frequency domain echo-free signal, calculating a compensation curve in the frequency domain, performing gain compensation on the frequency domain echo-free signal using the compensation curve, and then converting the signal into a time domain compensated signal frame;
[0036] S233: Convert the time domain compensation signal frame into a compensation signal sequence.
[0037] In S22, the adaptive feedback echo cancellation unit is implemented based on an adaptive finite impulse response filter. The adaptive feedback echo cancellation unit includes a normalized minimum mean square error algorithm, and the normalized minimum mean square error algorithm is used to update the adaptive finite impulse response filter coefficients and estimate the echo feedback path.
[0038] In S22, the adaptive feedback echo cancellation unit further includes power estimation and step size adjustment, and after smoothing the estimated power, the power is used to calculate the normalized adaptive step size of the adaptive filter.
[0039] A hearing aid feedback echo cancellation system using the above feedback echo cancellation method, comprising the voice acquisition module, voice processing module and voice output module encapsulated in the hearing aid, wherein the voice acquisition module is used to acquire and process continuous voice signals and convert them into discrete voice signal sequences;
[0040] The speech processing module is used to process the discrete speech signal sequence;
[0041] The voice sending module is used to output a continuous voice signal;
[0042] The voice processing module comprises a feedback echo elimination unit and a signal conversion unit, one end of the signal conversion unit and one end of the feedback echo elimination unit are connected to the output end of the voice acquisition module, and the other end of the signal conversion unit and the other end of the feedback echo elimination unit are connected to the input end of the voice output module;
[0043] The feedback echo elimination unit is used to read the discrete voice signal sequence output by the voice acquisition module, and perform adaptive feedback echo elimination processing on the discrete voice signal sequence to obtain the time domain echo-free voice signal sequence;
[0044] The signal conversion unit is used to read the time-domain de-echoed speech signal sequence sent by the feedback echo cancellation unit, and sequentially convert and compensate the time-domain de-echoed speech signal sequence to obtain the compensated signal sequence;
[0045] The voice receiving module is used to receive and output the de-echoed voice signal after the de-echoing process by the voice processing module.
[0046] Its further characteristic is that
[0047] The signal conversion unit includes an input buffer, a hearing compensation module, and an output buffer;
[0048] The input buffer is used to convert the time-domain de-echoed speech signal sequence sent by the feedback echo cancellation unit into a data frame format to facilitate further frequency-domain hearing compensation processing.
[0049] The hearing compensation module is used to convert the data frame into the frequency domain in units of frames, obtain the frequency domain speech signal frame, calculate the hearing compensation curve in the frequency domain, perform gain compensation on the frequency domain speech signal frame using the hearing compensation curve, convert the compensated frequency domain data frame into the time domain, and obtain the time domain compensated signal frame;
[0050] The output buffer converts the time domain compensation signal frame into the compensation signal sequence.
[0051] The feedback echo cancellation unit includes a shift register, a first memory, a second memory, a third memory, a band-limited filter, and an adaptive filter, wherein the shift register is used to match the delay of the voice acquisition module, the voice receiving module, and the delay of the coupling path between the voice acquisition module and the voice receiving module to perform delay configuration;
[0052] The band-limited filter is an IIR filter, which is used to perform band-limited filtering on the reference echo signal and the adaptive filtering error signal;
[0053] The adaptive filter is a finite impulse response adaptive filter, which is used to estimate the echo and obtain the de-echoed speech signal;
[0054] The first memory is used for adaptive filtering calculation;
[0055] The second memory is used for updating the adaptive filter coefficients;
[0056] The third memory is used to store filter coefficients.
[0057] The shift register is a 127*20 dual-port SRAM, and the dual-port SRAM is implemented as the shift register in such a way that the read address is 1 greater than the write address, the write address is incremented from 0, and the number of data written into the delay configuration memory is determined by the number of sample points D_set of the delay configuration, and after the number of sample points D_set of the delay configuration is filled, it is rewritten from address 0;
[0058] The first memory is a 16*40 dual-port data memory;
[0059] The second memory is a 16*40 dual-port data memory;
[0060] The third memory is a 16*64 dual-port coefficient memory;
[0061] The input ports of the first memory and the second memory are respectively connected to a 40-bit register, and the register is used to read a 40-bit data from the first memory and the second memory, update the oldest 20-bit data and store it in the 40-bit, and rewrite the first memory and the second memory;
[0062] The filter coefficient bit width of the adaptive filter is 32 bits, and the third memory adopts a 64-bit dual-port coefficient memory, which can read and write two filter coefficients at a time, thereby improving the reading and storage efficiency.
[0063] When the first memory, the second memory and the third memory are used to perform adaptive filtering calculations, update filter coefficients and store filter coefficients respectively, the upper 20 bits and lower 20 bits of the first memory and the second memory are connected to two operation units respectively, and two data operations are performed simultaneously in one clock, thereby improving the algorithm operation efficiency.
[0064] The voice acquisition module includes an analog-to-digital converter and a microphone, wherein the microphone is used to acquire the continuous voice signal, and the analog-to-digital converter is used to convert the continuous voice signal into the discrete voice signal sequence with echo;
[0065] The voice output module includes a voice receiving unit and a player. The voice receiving unit includes a digital-to-analog converter. The digital-to-analog converter is used to convert the discrete compensation signal sequence output by the output buffer into a continuous de-echoed voice signal and send it to the player. The player is used to play the continuous de-echoed voice signal.
[0066] The above structure of the present invention can achieve the following beneficial effects: 1. The feedback echo elimination method for hearing aids is implemented in the form of real-time tracking of each data point, and adaptive calculation is performed point by point. Each time a sample point is input into the speech acquisition module of the hearing aid, the feedback echo elimination algorithm of the speech processing module is enabled once to perform data update and data calculation. Therefore, compared with the existing hearing aids that can only start the feedback echo elimination algorithm after accumulating a certain frame length, the feedback path can be well tracked by point-by-point reading. The adaptive feedback echo elimination unit is used to perform adaptive echo path and echo estimation on the discrete speech signal sequence output by the speech acquisition module, and then the echo elimination process is performed to obtain the time domain echo-free speech signal sequence, and the feedback echo elimination process is realized. The algorithm is simple, and the echo elimination effect is greatly improved, and the wearing comfort and speech listening effect are improved.
[0067] 2. The feedback echo elimination system includes a voice collection module, a voice processing module, and a voice output module. The voice processing module includes a feedback echo elimination unit and a signal conversion unit. The feedback echo elimination unit and the signal conversion unit are connected between the voice collection module and the voice output module. The feedback echo elimination unit and the signal conversion unit can be used to achieve feedback echo elimination processing. There is no need to set an input buffer for frame length accumulation, thereby simplifying the structure and reducing investment costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the contents of the embodiments of the present invention and these drawings without creative work.
[0069] Figure 1 It is a structural block diagram of a hearing aid system for echo cancellation based on a normalized minimum mean square error algorithm based on band-limited filtering proposed in a specific implementation mode of the patent of the present invention.
[0070] Figure 2 It is a structural diagram of processing speech signals by combining the existing time domain adaptive filtering algorithm with a hearing aid system.
[0071] Figure 3 It is a calculation flow chart of processing speech signals by using the adaptive echo cancellation module of the hearing aid system of the present invention.
[0072] Figure 4 A flow chart of the power estimation and step size adjustment module of the adaptive echo cancellation module processing the speech signal is given.
[0073] Figure 5 The time domain diagrams are the output speech and the original clean speech before and after the feedback echo cancellation method is adopted.
[0074] Figure 6 This is a comparison diagram of the actual echo path before the above echo cancellation method is used and the echo path estimated by the above feedback echo cancellation method. DETAILED DESCRIPTION
[0075] The following will be combined with some embodiments to describe the patent scheme of the present invention in more detail. The described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the patent of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the patent of the present invention.
[0076] The following is combined with Figures 1 to 4 , a feedback echo cancellation algorithm and hardware implementation technology suitable for hearing aids provided in the embodiment of the patent of the present invention are further described in detail.
[0077] like Figure 1 , Figure 2 As shown, a feedback echo cancellation system suitable for a hearing aid includes a voice acquisition module, a voice processing module, and a voice output module encapsulated in the hearing aid. The voice acquisition module includes a microphone and an analog-to-digital converter. The microphone is used to acquire a continuous voice signal with an echo, and the analog-to-digital converter is used to convert the continuous voice signal into a discrete voice signal sequence.
[0078] The speech processing module is used to process the discrete speech signal sequence. The speech processing module includes a feedback echo elimination unit and a signal conversion unit. One end of the signal conversion unit and one end of the feedback echo elimination unit are connected to the output end of the speech acquisition module, and the other end of the signal conversion unit and the other end of the feedback echo elimination unit are connected to the input end of the speech output module.
[0079] The signal conversion unit is used to read the time-domain de-echoed speech signal sequence sent by the feedback echo cancellation unit, and convert and compensate the time-domain de-echoed speech signal sequence in turn to obtain a compensated signal sequence. The signal conversion unit includes an input buffer, a hearing compensation module, and an output buffer: the input buffer is used to convert the time-domain de-echoed speech signal sequence sent by the feedback echo cancellation unit into the form of a data frame; to facilitate further frequency-domain speech signal compensation processing: the hearing compensation module is used to convert the data frame to the frequency domain in units of frames, obtain the frequency-domain speech signal frame, calculate the hearing compensation curve in the frequency domain, use the hearing compensation curve to perform gain compensation on the frequency-domain speech signal frame, convert the compensated frequency-domain data frame to the time domain, and obtain the time-domain compensated signal frame; the output buffer converts the time-domain compensated signal frame into a compensated signal sequence.
[0080] The feedback echo cancellation unit is used to read the discrete voice signal sequence output by the voice acquisition module, and perform adaptive feedback echo cancellation processing on the discrete voice signal sequence to obtain the time domain echo-free voice signal sequence. The feedback echo cancellation unit includes a delay configuration module, a storage module, an initialization module, a finite impulse response adaptive filtering module, a band-limited IIR filtering module, a power estimation and step size adjustment module, and a coefficient update module.
[0081] Among them, the delay configuration module includes a shift register, which is used to output the compensation signal sequence output by the buffer to realize the delay of the configurable sampling point number D_set, match the delay of the voice acquisition module, the voice receiving module, and the coupling path between the voice acquisition module and the voice receiving module. In this embodiment, the shift register is a 127*20 dual-port SRAM. The dual-port SRAM is implemented as a shift register in such a way that the read address is 1 greater than the write address, and the write address is automatically increased from 0. The number of data written to the delay configuration memory is determined by the delay configuration sampling point number D_set. After the delay configuration sampling point number is filled, it is written again from address 0.
[0082] The storage module includes a first memory, a second memory, and a third memory. The first memory is a 16*40 dual-port data memory for adaptive filtering calculation, the second memory is a 16*40 dual-port data memory for updating adaptive filter coefficients, and the third memory is a 16*64 dual-port coefficient memory for storing filter coefficients. The input ports of the first memory and the second memory are respectively connected to a 40-bit register, and the register is used to read a 40-bit data from the first memory and the second memory, update the oldest 20-bit data and store it in 40 bits, and rewrite the first memory and the second memory. When the first memory, the second memory and the third memory are used to perform adaptive filtering calculation, update filter coefficients, and store filter coefficients respectively, the upper 20 bits and the lower 20 bits of the first memory and the second memory are respectively connected to two operation units, and two data operations are performed simultaneously in one clock, thereby improving the algorithm operation efficiency.
[0083] The feedback echo cancellation unit comprises an initialization module, which is used to initialize the shift register for configurable delay, the first memory, the second memory and the third memory. When it is detected that the address of the initialized dual-port shift register is 127, the initialization is completed.
[0084] The finite impulse response adaptive filtering module includes an adaptive filter, which is a finite impulse response adaptive filter. The finite impulse response adaptive filter estimates the echo using the estimated echo path and the compensation signal sequence, and subtracts the echo from the discrete speech signal with the echo to obtain the de-echoed speech signal sequence, that is, the adaptive filtering error signal sequence; in this embodiment, the filter coefficient bit width of the adaptive filter is 32 bits, and the third memory adopts a 64-bit dual-port coefficient memory, which can read and write two filter coefficients at a time, thereby improving the efficiency of reading, storage and calculation.
[0085] The band-limited IIR filtering module includes a band-limited IIR filter, which uses a filter with a configurable passband frequency to perform band-limited IIR filtering on an input reference signal and an adaptive filtering error signal for further power estimation and step size adjustment and filter coefficient update.
[0086] The power estimation and step-size adjustment module includes a power adaptive filter, which is used to calculate the power of the compensation signal sequence and the error signal (the speech signal sequence without echo), and calculate the normalized adaptive step-size of the adaptive filter after power smoothing.
[0087] The coefficient update module uses the normalized adaptive step size to update the filter coefficients and the echo path. When the first memory and the second memory are updated, the upper 20 bits and the lower 20 bits are connected to two operation units respectively, and two data operations are performed simultaneously in one clock to improve the algorithm operation efficiency.
[0088] The voice output module includes a voice receiving unit and a player. The voice receiving unit includes a digital-to-analog converter. The digital-to-analog converter is used to convert the discrete compensation signal sequence output by the output buffer into a continuous de-echoed voice signal and send it to the player. The player is used to play the continuous de-echoed voice signal.
[0089] A feedback echo cancellation method applied to the above hearing aid feedback echo cancellation system is implemented based on a voice acquisition module, a voice processing module, and a voice sending module encapsulated in the hearing aid. The method comprises:
[0090] S1. A continuous voice signal with echo is collected through a microphone in a voice collection module, and the continuous voice signal with echo is converted through an analog-to-digital converter to obtain a discrete voice signal sequence.
[0091] S2. Processing the discrete speech signal sequence through a speech processing module, including:
[0092] S21, the adaptive echo cancellation unit reads the discrete speech signal sequence point by point;
[0093] S22, performing adaptive calculation point by point, which means using an adaptive feedback echo cancellation unit to perform adaptive echo path and echo estimation on the discrete speech signal sequence, and then performing echo cancellation processing to obtain a time-domain echo-free speech signal sequence;
[0094] In steps S21 and S22, the adaptive echo cancellation unit reads the discrete voice signal sequence point by point and performs adaptive calculation point by point, which means that non-block processing is used to implement the tracking of each data point. Each time a sample point is input into the voice acquisition module, the data update and data calculation of the voice processing module will be enabled once; the adaptive feedback echo cancellation unit is implemented based on an adaptive finite impulse response filter. The adaptive feedback echo cancellation unit includes a normalized minimum mean square error algorithm, and the normalized minimum mean square error algorithm based on band-limited filtering is used to update the coefficients of the adaptive finite impulse response filter and estimate the echo feedback path. The adaptive feedback echo cancellation unit also includes power estimation and step size adjustment. After smoothing the estimated power, the normalized adaptive step size of the adaptive filter is calculated using the power.
[0095] S23, sequentially converting and compensating the time-domain echo-free speech signal sequence to obtain a compensated signal sequence, including:
[0096] S231, converting the time domain de-echoed speech signal sequence into a data frame form through an input buffer,
[0097] S231, converting the data frame into a frequency domain echo-free signal through a hearing compensation module, calculating a compensation curve in the frequency domain, performing gain compensation on the frequency domain echo-free signal using the compensation curve, and then converting the signal into a time domain compensation signal frame;
[0098] S233. Convert the time domain compensation signal frame into a compensation signal sequence through the output buffer.
[0099] S3, reading the compensation signal sequence through the voice receiving module in the voice output module, converting the compensation signal sequence into a continuous de-echoed voice signal through a digital-to-analog converter, and outputting the continuous de-echoed voice signal through a player.
[0100] Combine the following Figure 3 The specific hardware implementation process of the adaptive feedback echo cancellation unit proposed in the present invention is given as follows:
[0101] After the initialization module is initialized, a pair of compensation signal sequence data output by a new output buffer and continuous voice signal data with echo collected by the voice collection module {u[k], x[k]} are received, where k is the kth data sample point received by the adaptive echo cancellation unit, and a delay configuration module of a 127*20 dual-port SRAM is used to perform a corresponding delay on the compensation signal sequence data (reference data) u[k] according to the sample points set by the sample point number D_set;
[0102] The first band-limited IIR filter iir_filt1 of the band-limited IIR filter module is used to perform band-limited IIR filtering on the delayed {u[k] to obtain u f[k], the register is used to store the calculated result, and the second band-limited IIR filter iir_filt2 of the band-limited IIR filter module is used to filter u f [k] performs band-limited IIR filtering to obtain u f1 [k].
[0103] Through the data storage module, a 40-bit data is read from the first memory, using u f [k] Update the oldest 20 bits of data and store them in the register to 40 bits, then rewrite them into the first memory to obtain the updated reference data vector Read a 40-bit data from the second memory, using u f1 [k] Update the oldest 20 bits of data and store them in 40 bits, rewrite them into the 16*40 second memory, and get the updated reference data vector
[0104] The finite impulse response adaptive filter module is used to calculate the estimated value of the echo signal and the de-echoed speech signal, that is, the error signal: Echo signal estimated value: Echo-free speech signal: e[k]=x[k]-y[k]; is the column vector of the adaptive filter coefficients at time k, and M is the length of the adaptive filter coefficient vector.
[0105] The third IIR filter iir_filt3 of the band-limited IIR filter module is used to perform band-limited IIR filtering on e[k] to obtain e f [k].
[0106] Combination Figure 4 The power estimation and adaptive step size adjustment structure diagram is shown below. The specific algorithm implementation process for calculating the power estimation value and the adaptive step size is given below.
[0107] The power estimation and adaptive step size adjustment module is used to calculate the power value and the adaptive step size factor. f [k] relative to the input u f1 The value of [k] is very small, which has a significant impact on the error e f [k] Perform modulo 2 approximation (modulo 2 operation) to reduce the amount of calculation, and estimate: Where floor means rounding down.
[0108] Read the value u stored in the register f1 (k), and the error e1(k) after modulo 2 approximation, calculate the value after power smoothing:
[0109]
[0110] Based on the smoothed power value, the modulo 2 estimate of the power is obtained:
[0111] Using the power value estimated by modulo 2 operation, calculate the normalized adaptive step size factor:
[0112]
[0113] Finally, the filter coefficient vector Update, the calculation process of updating a single filter coefficient is:
[0114]
[0115] Using the dual operation unit, a 64-bit data is read from the third memory at a time and split into two filter coefficients W of the upper 32 bits and the lower 32 bits. k (m) and W k (m+1), read a 40-bit data from the data memory and split it into two data u f1 (m) and u f1 (m+1), and the two filter coefficients W k+1 (m) and W k+1 After (m+1) is updated, it is merged into a 64-bit data and rewritten into the third memory.
[0116] In order to reduce the amount of calculation and power consumption, the parameter is selected as a power of 2: Take C = 2 -K , K is 6 to 10, a=2 -P ,P is 7,md=1-2 -J , a more appropriate value of J is 6, multiplied by sign(e1[k]) Figure 4 In the figure, it is an operation to determine whether to take the complement code. The multiplication of powers of 2 can be implemented by shifting. If the corresponding power is greater than 0, it is implemented by left shifting, and if it is less than 0, it is implemented by right shifting. The calculation of floor(log2()) can be implemented by finding the position of the highest non-zero bit of the positive number represented in binary.
[0117] The present invention adopts a feedback echo cancellation algorithm and a feedback echo cancellation system for point-by-point tracking and point-by-point processing, thereby improving the tracking performance. Since the multiplication of the power of 2 is realized by shifting in the hardware implementation process, the complexity of the algorithm and the entire hardware device is greatly reduced. Due to the limitation of the system clock and the sampling clock, when the first memory (data memory) and the second memory (coefficient update memory) are updated, the high 20-bit and low 20-bit first memory, the second memory, and the high 32-bit and low 32-bit third memory are respectively connected to two operation units, and the operation of two data is performed simultaneously in one system clock. In one sampling clock, according to this embodiment, all adaptive echo cancellation operations are completed, and the algorithm operation efficiency is improved; the delay register of the 127*20 dual-port SRAM is used to realize flexible delay configuration, and the delay of the voice acquisition module, the voice receiving module, and the coupling path between the voice acquisition module and the voice receiving module are well matched, thereby realizing good adaptation to the echo path and improving the tracking performance. By using the embodiment of the present invention, the echo path can be well tracked and the echo can be effectively eliminated.
[0118] The feedback echo cancellation method and the feedback echo cancellation system using the method are used to estimate the echo path and cancel the echo of the speech with the echo. Figure 5 The time domain diagram of the output speech and the original pure speech before and after the feedback echo cancellation method is adopted, the horizontal axis represents time, the vertical axis represents amplitude, Figure 5 It can be seen that after adopting the feedback echo cancellation algorithm of the present application, the echo mixed in the continuous speech signal with echo (output speech) can be effectively eliminated, and the original pure speech signal can be well preserved, so that the final output speech is the original pure speech with echo eliminated, thereby improving the output effect of the speech signal. Figure 6 is a comparison diagram of the real echo path before the above echo cancellation method is used and the echo path estimated by the above feedback echo cancellation method. The horizontal axis represents the number of samples and the vertical axis represents the amplitude. Figure 6 It can be seen that the estimated echo path obtained by the method of the present application is basically consistent with the real echo path, and good tracking can be achieved. Therefore, the feedback echo cancellation method proposed in the present invention and the feedback echo cancellation system using the method can achieve good tracking of the echo path and effectively cancel the echo of the speech signal with echo.
[0119] The above describes the principle of the patent technology of the present invention in combination with some specific embodiments. These descriptions are only used to illustrate the principle of the patent of the present invention and cannot be interpreted in any way as limiting the scope of protection of the patent of the present invention. Figure 1On the basis of the embodiments, the hearing compensation module of the hearing aid required can be selected according to the needs to obtain other embodiments. Based on the explanation here, technicians in this field can think of other specific implementation methods of the present invention without creative work, and these methods will fall within the protection scope of the present invention.
Claims
1. A feedback echo cancellation method, which is implemented based on a voice acquisition module, a voice processing module, and a voice sending module encapsulated in a hearing aid; The speech acquisition module is used to acquire and process continuous speech signals and convert them into discrete speech signal sequences; The speech processing module is used to process the discrete speech signal sequence; The voice sending module is used to output the continuous voice signal processed by the voice processing module; It is characterized in that The method includes: The continuous voice signal with echo is collected by the voice collection module, and the continuous voice signal with echo is converted to obtain a discrete voice signal sequence; Processing the discrete speech signal sequence by the speech processing module includes: Reading the discrete speech signal sequence point by point; Performing adaptive calculation point by point, including: using an adaptive feedback echo elimination unit to perform adaptive echo path and echo estimation on the discrete speech signal sequence, and then performing echo elimination processing to obtain a time-domain echo-free speech signal sequence; Converting and compensating the time-domain de-echoed speech signal sequence in sequence to obtain a compensated signal sequence; Reading the compensation signal sequence, converting the compensation signal sequence into a continuous de-echoed speech signal, and outputting the continuous de-echoed speech signal through a player; The adaptive feedback echo cancellation unit includes a delay configuration module, a storage module, an initialization module, a finite impulse response adaptive filtering module, a band-limited IIR filtering module, a power estimation and step-size adjustment module, and a coefficient updating module. The delay configuration module is used to implement a configurable delay for the compensation signal sequence to match the delay of the voice acquisition module, the voice output module, and the coupling path between the voice acquisition module and the voice output module; the storage module is used to store data for adaptive filtering operations and data and filter coefficients for coefficient updating operations; the initialization module is used to initialize the data in the storage module; the finite impulse response adaptive filtering module uses the estimated echo path and the compensation signal to adjust the power estimation and step-size adjustment module. The signal sequence is used to estimate the echo, and the echo is subtracted from the discrete speech signal with echo to obtain the de-echoed speech signal sequence, that is, the adaptive filtering error signal sequence; the band-limited IIR filtering module uses a filter with a configurable passband frequency to perform band-limited IIR filtering on the input reference signal and the adaptive filtering error signal for power estimation, step size adjustment, and filter coefficient update; the power estimation and step size adjustment module is used to calculate the power of the signal sequence to be compensated and the adaptive filtering error signal sequence after filtering by the band-limited IIR filtering module, and after smoothing the power, calculate the normalized adaptive step size of the adaptive filter; the coefficient updating module uses the normalized adaptive step size to update the filter coefficient and the echo path; The adaptive feedback echo cancellation unit is implemented based on an adaptive finite impulse response filter. The adaptive feedback echo cancellation unit includes a normalized minimum mean square error algorithm. The normalized minimum mean square error algorithm based on band-limited filtering is used to update the coefficients of the adaptive finite impulse response filter and estimate the echo feedback path.
2. The feedback echo elimination method according to claim 1, characterized in that: The time-domain de-echoed speech signal sequence is sequentially converted and compensated to obtain a compensated signal sequence, including: Converting the time-domain de-echoed speech signal sequence into a data frame form, The data frame is converted into a frequency domain echo-free signal, a compensation curve is calculated in the frequency domain, and the frequency domain echo-free signal is gain compensated using the compensation curve and then converted into a time domain compensated signal frame; The time domain compensation signal frame is converted into a compensation signal sequence.
3. The feedback echo elimination method according to claim 1, characterized in that: The adaptive feedback echo cancellation unit also includes power estimation and step size adjustment, and after smoothing the estimated power, the power is used to calculate the normalized adaptive step size of the adaptive filter.
4. A hearing aid feedback echo cancellation system using the feedback echo cancellation method of claim 3, comprising the voice acquisition module, voice processing module, and voice output module encapsulated in the hearing aid, wherein the voice acquisition module is used to acquire and process continuous voice signals and convert them into discrete voice signal sequences; The speech processing module is used to process the discrete speech signal sequence; The voice sending module is used to output the continuous voice signal processed by the voice processing module; It is characterized in that The voice processing module includes a feedback echo elimination unit and a signal conversion unit, one end of the signal conversion unit and one end of the feedback echo elimination unit are connected to the output end of the voice acquisition module, and the other end of the signal conversion unit and the other end of the feedback echo elimination unit are connected to the input end of the voice output module; The feedback echo elimination unit is used to read the discrete voice signal sequence output by the voice acquisition module, and perform adaptive feedback echo elimination processing on the discrete voice signal sequence to obtain the time domain echo-free voice signal sequence; The signal conversion unit is used to read the time-domain de-echoed speech signal sequence sent by the feedback echo cancellation unit, and sequentially convert and compensate the time-domain de-echoed speech signal sequence to obtain the compensated signal sequence; The voice receiving module is used to receive and output the de-echoed voice signal after the de-echoing process by the voice processing module.
5. The hearing aid feedback echo cancellation system according to claim 4, characterized in that: The signal conversion unit includes an input buffer, a hearing compensation module, and an output buffer; The input buffer is used to convert the time-domain de-echoed speech signal sequence sent by the feedback echo cancellation unit into a form of data frames; The hearing compensation module is used to convert the data frame into the frequency domain in units of frames, obtain the frequency domain speech signal frame, calculate the hearing compensation curve in the frequency domain, perform gain compensation on the frequency domain speech signal frame using the hearing compensation curve, convert the compensated frequency domain data frame into the time domain, and obtain the time domain compensated signal frame; The output buffer converts the time domain compensation signal frame into the compensation signal sequence.
6. The hearing aid feedback echo cancellation system according to claim 5, characterized in that: The voice collection module includes an analog-to-digital converter and a microphone. The microphone is used to collect the continuous voice signal. The analog-to-digital converter is used to convert the continuous voice signal into the discrete voice signal sequence with echo.
7. The hearing aid feedback echo cancellation system according to claim 5, characterized in that: The feedback echo cancellation unit includes a shift register, a first memory, a second memory, a third memory, a band-limited filter, and an adaptive filter. The shift register is used to implement a delay of a configurable number of sample points D_set for the compensation signal sequence output by the output buffer, and match the delay of the voice acquisition module, the voice receiving module, and the coupling path between the voice acquisition module and the voice receiving module; The band-limited filter is an IIR filter, which is used to perform band-limited filtering on the reference echo signal and the adaptive filtering error signal; The adaptive filter is a finite impulse response adaptive filter, which is used to estimate the echo and obtain the de-echoed speech signal; The first memory is used for adaptive filtering calculation; The second memory is used for updating the adaptive filter coefficients; The third memory is used to store updated filter coefficients.
8. The hearing aid feedback echo cancellation system according to any one of claims 5 to 7, characterized in that: The voice output module includes a voice receiving unit and a player. The voice receiving unit includes a digital-to-analog converter. The digital-to-analog converter is used to convert the discrete compensation signal sequence output by the output buffer into a continuous de-echoed voice signal and send it to the player. The player is used to play the continuous de-echoed voice signal.
