Method for detecting distortion of voice signal and repairing distorted voice signal

By detecting and repairing the distortion of air conduction microphone and in-ear microphone signals in headphone devices, the problems of clipping and noise interference are solved, and the quality of voice communication and user experience are improved.

CN118711618APending Publication Date: 2024-09-27HARMAN INT IND INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310308381.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The speech signal captured by the microphone in the headset device is prone to distortion, resulting in a decrease in the quality of voice communication, especially noise interference caused by clipping and human non-voice activities, which affects the effects of speech detection, recognition and emotion analysis.

Method used

By detecting the signals captured by the air conduction microphone and the in-ear microphone respectively, identifying clipping and non-speech artifacts, using cross-channel signals for repair, including de-clipping and de-peaking, to restore the spectral information of the speech signal.

Benefits of technology

It effectively improves the quality and intelligibility of voice data, eliminates unpleasant sound interference, and improves user experience and accuracy of voice functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711618A
    Figure CN118711618A
Patent Text Reader

Abstract

The present disclosure provides a method for detecting distortion of a speech signal and repairing the distorted speech signal. The method comprises the following steps: detecting whether first distortion caused by clipping exists in an air conduction voice signal from an air conduction microphone; detecting whether a second distortion caused by a non-voice false signal exists in the in-ear voice signal from the in-ear microphone; in response to detecting the first distortion, using the in-ear speech signal to perform repair of an air-guided speech signal having the first distortion; and in response to detecting the second distortion, performing repair of the in-ear speech signal with the second distortion using the air conduction speech signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to speech processing in communication products, and more particularly to a method for detecting distortion of a speech signal and repairing the distorted speech signal. Background Art

[0002] With the continuous development of earphone devices and related technologies, earphone devices have been widely used for voice communication between users (earphone wearers). How to ensure the quality of voice communication in various usage environments is an issue worthy of attention. Generally, earphone devices may include one or more sensors, such as microphones, for capturing user voice / speech. However, in actual use, distortion caused by various conditions will significantly reduce the quality and intelligibility of the voice / speech data captured by the sensor. And processing distorted voice data will be a huge challenge.

[0003] Therefore, it is necessary to provide an improved technology to overcome the above defects, thereby improving some functions that rely on voice signals, such as voice detection, voice recognition, and voice emotion analysis; while also providing a better auditory experience for users at the remote end of the communication. Summary of the invention

[0004] One aspect of the present disclosure provides a method for detecting distortion of a speech signal and repairing the distorted speech signal. The method includes: detecting whether there is a first distortion caused by clipping in an air conduction speech signal from an air conduction microphone; detecting whether there is a second distortion caused by a non-speech artifact signal in an in-ear speech signal from an in-ear microphone; in response to detecting the first distortion, using the in-ear speech signal to perform repair on the air conduction speech signal with the first distortion; and in response to detecting the second distortion, using the air conduction speech signal to perform repair on the in-ear speech signal with the second distortion.

[0005] Another aspect of the present disclosure provides a system for detecting distortion of a speech signal and repairing the distorted speech signal. The system includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method described herein can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The present disclosure may be better understood by reading the following description of non-limiting embodiments with reference to the accompanying drawings, in which:

[0007] Figure 1 Schematic diagram illustrating the position of microphones in headphones.

[0008] Figure 2 The waveform diagrams of three types of clipped speech signals are shown as examples.

[0009] Figure 3 An exemplary illustration of a clipped speech signal from an air conduction microphone in a headset due to strong wind noise.

[0010] Figure 4 The frequency spectrum of a clipped speech signal caused by strong wind noise is shown as an example.

[0011] Figure 5 The frequency spectrum of a segment of an in-ear microphone signal collected during the opening and closing of the mouth is shown as an example.

[0012] Figure 6 The frequency spectrum of a segment of an in-ear microphone signal collected during swallowing is shown as an example.

[0013] Figure 7 The frequency spectrum of a segment of an in-ear microphone signal collected during teeth occlusion (collision) is exemplarily shown.

[0014] Figure 8 A flowchart of a method for detecting distortion of a speech signal and repairing the distorted speech signal accordingly according to one or more embodiments of the present disclosure is exemplarily shown.

[0015] Fig. 9 The schematic block diagram for estimating the transfer function between the speech signals received by the air conduction microphone and the ear conduction microphone is exemplarily shown.

[0016] Fig.10 The example shows the corresponding Figure 2 Amplitude histograms of three signals (with different clipping phenomena) in .

[0017] Fig.11 A schematic diagram of a method for detecting whether soft clipping exists in an air conduction signal from an air conduction microphone according to one or more embodiments of the present disclosure is exemplarily shown.

[0018] Fig.12 The diagram exemplarily shows a method for detecting whether a pseudo signal (special noise) caused by non-speech activities of human beings exists in an in-ear signal from an in-ear microphone according to one or more embodiments of the present disclosure.

[0019] Fig.13 A schematic diagram of a method for restoring a clipped signal from an air conduction microphone according to one or more embodiments of the present disclosure is exemplarily shown.

[0020] Fig.14 A schematic diagram of a method for restoring an in-ear signal from an in-ear microphone having special noise caused by human activities according to one or more embodiments of the present disclosure is exemplarily shown.

[0021] Fig.15 The simulation diagram exemplarily shows a clipped signal from an air conduction microphone, a signal restored by an existing de-clipping method, and a signal restored by the method of the present disclosure.

[0022] Fig.16 An example is shown for Figure 4 The frequency spectrum of the restored signal obtained by restoring the clipped signal corresponding to the frequency spectrum diagram using the existing known de-clipping method.

[0023] Fig.17 An example is shown for Figure 4 The frequency spectrum of the clipped signal corresponding to the frequency spectrum diagram is obtained after the repair process is performed using the method proposed in the present disclosure.

[0024] Fig.18 The signal diagram is exemplarily shown, where the upper part of the diagram shows a section of in-ear signal distorted by human non-verbal activity (such as mouth closure), and the lower part of the diagram shows a repaired signal obtained by repairing the section of in-ear signal using the method proposed in the present disclosure.

[0025] Fig.19 An example is shown Fig.18 The upper part shows the frequency spectrum of the in-ear signal.

[0026] Fig. 20 An example is shown Fig.18 The spectrum of the repaired signal is shown in the lower part. DETAILED DESCRIPTION

[0027] It should be understood that the following description of the embodiments is given for illustrative purposes only and is not restrictive.

[0028] The use of singular terms, such as, but not limited to, "a", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an", "an",

[0029] Typically, a headset may include one or more sensors, such as microphones, for capturing the user's voice / speech. Figure 1 An example of microphones in different locations in a headset is shown. Figure 1 It can be seen that a microphone is provided in the part of the earphone that is inserted into the ear and in the part that is exposed to the air. Figure 1 For the purpose of simplicity, only two microphones are shown for illustration. It is understood that the present disclosure is not limited to Figure 1 The headset appearance, number of microphones, and specific location of the microphones are limited.

[0030] For ease of explanation, the microphone arranged in the part of the earphone inserted into the ear is referred to as an in-ear microphone, and the microphone arranged in the part of the earphone exposed to the air is referred to as an air conduction microphone. In this article, the signal from the air conduction microphone may be referred to as an "air conduction signal" (i.e., an air-transmitted signal), an "air conduction microphone signal" or an "air conduction voice signal"; the signal from the in-ear microphone may be referred to as an "in-ear signal", "in-ear microphone signal" or "in-ear voice signal". In this article, the terms "air conduction signal", "air conduction microphone signal" and "air conduction voice signal" are interchangeable, and the terms "in-ear signal", "in-ear microphone signal" and "in-ear voice signal" are interchangeable.

[0031] The air conduction microphone and the in-ear microphone in the headset can have different signal channels. In use, the signal captured from the voice of the headset wearer may be distorted in one channel while maintaining good quality in the other channel.

[0032] Through observation and analysis, the inventors have noticed two distortion problems that affect headphone signals. One distortion problem is signal distortion caused by inappropriate gain settings, hardware problems, or even external noise / vibration / sound (such as strong wind blowing towards the microphone). This distortion usually occurs in the signal collected by the air conduction microphone, and its main manifestation is that the signal exceeds the maximum allowable value designed for the device or system, resulting in clipping. Another distortion problem is signal distortion caused by some special noise or vibration caused by human non-speech activities (including mouth movement, swallowing, and tooth occlusion (collision)) captured by the in-ear microphone. This distortion usually occurs in the in-ear signal collected by the in-ear microphone, and its main manifestation is that peaks appear in the time domain waveform of the signal. Therefore, in the present disclosure, the main focus is on and solutions to these two distortion problems. The specific situations of these two distortions will be discussed separately below.

[0033] First, let's discuss the problem of clipping distortion in air conduction microphone signals. Clipping is a nonlinear process and the associated distortion can seriously impair the quality and intelligibility of the audio. The effect of clipping on a system (component) is that when the maximum response of the system is reached, the output of the system stays at its maximum level even if the input is increased. The speech signal received by the air conduction microphone in the headset may be clipped. When the amplitude of the speech signal received by the air conduction microphone is above a certain threshold, it will be recorded as a constant or recorded with a given model. There are three main types of clipping, each caused by different reasons.

[0034] The first type of clipping is double-sided clipping. In this clipping situation, the signal amplitude that exceeds the positive and negative thresholds (also called the high and low thresholds) will be clipped. This situation is usually caused by an inappropriate gain setting.

[0035] The second type of clipping is single-sided clipping. In this type of clipping, the amplitude of the signal will exceed the threshold on only one side (positive or negative), and the part exceeding the threshold will be clipped. This situation is usually caused by signal drifting caused by hardware problems.

[0036] The third type of clipping is soft clipping. This is usually observed after the clipped signal has been subjected to other processing, such as applying a DC block to the signal in the first or second clipping conditions.

[0037] Figure 2 The following is a schematic diagram of an exemplary waveform (time-amplitude) of a clipped signal corresponding to the clipping situation discussed above, wherein the signal is an example of a speech signal collected by an air conduction microphone. In which, picture (a) shows an exemplary waveform diagram of a clipped signal in a double-sided clipping situation. Picture (b) shows an exemplary waveform diagram of a clipped signal in a single-sided clipping situation. Picture (c) shows an exemplary waveform diagram of a clipped signal in a soft clipping situation, wherein the signal waveform shown is the waveform of a signal obtained by applying a DC blocking filter to the signal in picture (a).

[0038] In practice, another reason for clipping is that the air conduction microphone receives unexpectedly strong noise (such as wind noise), and it causes the amplitude of part of the mixed signal after the speech / speech signal is mixed with the noise to exceed the threshold. In order to facilitate the explanation of clipping here, the speech / speech signal, the noise, and the signal mixed with the noise are represented as: s(t), n(t) and x(t), respectively, then the relationship between the three signals can be expressed as x(t) = s(t) + n(t).

[0039] For example, when the clipping amplitude threshold is θ TWhen , the air conduction microphone signal that may be clipped can be expressed as:

[0040]

[0041] Figure 3 Shown is a clipped speech signal from an air conduction microphone in a headset due to strong wind noise. Figure 4 The following example shows a frequency spectrum of a clipped speech signal caused by strong wind noise. Specifically, Figure 4 The example shown shows the corresponding Figure 3 The spectrum of the signal recorded during the clipping period around index 3000 in the sample sequence ID in . Figure 4 As shown, the speech signal is contaminated by clipping, in which strong wind noise with a speed of about 3m / s is recorded, the harmonic structure of the vowels is not obvious and the clipping produces masking over the entire frequency band. Figure 4 The ellipse in the figure indicates the part of the signal spectrum that is obviously contaminated. This sounds like a "pop" or "click", which is a very unpleasant sound experience for the listener (i.e., the user at the far end of the communication).

[0042] As for in-ear microphones, they are mainly troubled by another kind of signal distortion. In-ear microphones are commonly used in various headphone devices, such as headphones with active noise reduction (ANC) function. Since the in-ear microphone is inserted into the ear, it can be well isolated from environmental noise, and the human voice can be received through bone and tissue conduction, so the in-ear microphone can usually capture voice signals with a high signal-to-noise ratio (SNR). In addition, the in-ear microphone will pick up the output of the speaker placed close to it, so the gain of the microphone is usually set appropriately (small). Since the audio signal received by the in-ear microphone from the speaker may be much stronger than the voice of the headphone wearer, the in-ear microphone is less likely to experience clipping.

[0043] However, in-ear sensors capture some special noises or vibrations caused by some human non-speech activities, such as mouth movement, swallowing, and teeth clenching (collision). These special noises can cause unpleasant auditory experience and affect other functions of in-ear microphones, such as voice activity detection. Therefore, this special noise needs to be studied.

[0044] The vibrations are generated by some non-speech activities in the mouth and are transmitted to the inner ear through the skull. These noises are not sounds produced by the vocal system. Therefore, the corresponding sound signals will not be captured by the air conduction microphone as loud, meaningful and significant. These signals captured by the in-ear microphone sound like "popping sounds", and they may affect other functions that use the in-ear microphone signal, such as voice activity detection.

[0045] This article studies some typical human activities, including mouth movements when not speaking (mouth opening / closing), swallowing, and chewing / teeth clenching. Examples of data collected by in-ear microphones in these three situations are shown in Figure 5 , Figure 6 and Figure 7 The signal data were recorded in a quiet anechoic chamber. Figure 5 , Figure 6 and Figure 7 In the figure, we can observe some characteristics of the frequency spectrum of the data collected by the in-ear microphone in three situations. Figure 5 It shows that the opening of the mouth can produce some weak noise below 2kHz, but it will not seriously affect the processing of the speech signal, so no special processing is required. In the subsequent closing of the mouth, there are some vibrations from the lips, and some slight teeth biting sounds may occur, thereby generating noise in the entire frequency band (for example, see the part circled by the oval in the figure), but the energy of this noise is weaker than the energy of the teeth biting sound during chewing. The teeth biting sound during chewing has a strong peak on the waveform, and the spectrum is spread over the entire frequency band (see Figure 7 , especially the part circled by the ellipse). See Figure 6 , swallowing activity does not have strong physical vibrations, and the energy below 500 Hz is weak, and the spectrum extends above 500 Hz to near the Nyquist frequency.

[0046] Most existing algorithms for spike removal can only repair very short spike waveforms, while the noise caused by human activities usually lasts more than 100 samples (under the condition of 16000Hz sampling rate). Some existing impulse noise removal methods aim to estimate the model of noise, which is usually computationally intensive, and the restored waveform is dominated by noise, while the restored information of speech signal is insufficient.

[0047] The inventors have further studied the signals captured by the in-ear microphone and the air conduction microphone. Human speech can also be conducted through bones and tissues, and can also pass through the Eustachian tube. The Eustachian tube is a small passage connecting the throat and the middle ear. As mentioned above, since the gain setting of the in-ear microphone is relatively low, and since the in-ear microphone is inserted into the ear and physically isolated from the environment, usually only a small amount of noise leaks into the in-ear microphone, so speech and external noise are less likely to cause clipping of the in-ear microphone signal.

[0048] Since the propagation path of the signal through the in-ear microphone is different from its propagation path in the air, the signal received by the in-ear microphone is different in the spectrum. More specifically, the voiced signal received by the in-ear microphone shows a strong intensity in the low frequency band (for example, below 200Hz). However, in the frequency band of 200 to 2500Hz, the intensity of the signal gradually decreases, and this loss becomes significant as the frequency increases. This loss in the spectrum can be compensated by a transfer function, which can be estimated in advance and can be updated for each individual during quiet or high signal-to-noise ratio (SNR).

[0049] Based on the two types of distortion problems that appear in the signals captured by the headphones discussed above. The present disclosure proposes a method for restoring distorted speech signals using cross-channel signals. Specifically, the method includes detecting whether there is distortion in the air conduction signal and the in-ear signal captured by the air conduction microphone and the in-ear microphone, respectively, for the speech signal of the headphone wearer received by the headphone, and restoring the distorted signal accordingly. Among them, the in-ear signal from the in-ear microphone is used to restore the clipped air conduction signal from the air conduction microphone, and the air conduction signal from the air conduction microphone is used to restore the in-ear signal contaminated by noise caused by some human activities. The method disclosed in the present disclosure can not only solve the clipping problem, but also successfully restore the spectral information of the speech signal, while eliminating the unpleasant sound (such as "bang" or "click") to the listener at the far end of the communication (i.e., the headphone wearer at the far end). Thereby, the quality and intelligibility of the voice / voice data are greatly improved, so that the listener can better recognize the sound, thereby improving the user experience.

[0050] Figure 8 A flowchart of a method for detecting distortion of a speech signal and repairing the distorted speech signal accordingly according to one or more embodiments of the present disclosure is exemplarily shown.

[0051] like Figure 8 As shown, the air conduction microphone and the in-ear microphone in the headset can receive the voice signal of the headset wearer through different channels respectively. At S802, the method disclosed in the present invention can detect whether there is a first distortion in the air conduction signal from the air conduction microphone, and the first distortion is caused by clipping of the air conduction signal from the air conduction microphone. In some embodiments, it is determined whether there is a first distortion by determining whether there is a clipping situation in the air conduction signal from the air conduction microphone. Specifically, a two-stage clipping detection method can be used to detect whether there is a clipping situation. In some embodiments, the clipping situation can include two clipping situations: threshold clipping and soft clipping.

[0052] At S804, it can be detected whether there is a second distortion in the in-ear signal from the in-ear microphone, and the second distortion is caused by the presence of a non-speech artifact signal in the in-ear signal from the in-ear microphone. In other words, the second distortion is caused by a non-speech artifact signal (or special noise) caused by human non-speech activities (e.g., human mouth / oral activities). In some embodiments, it is determined whether there is a second distortion based on determining whether there is a non-speech artifact signal in the in-ear signal from the in-ear microphone. In some embodiments, it can be determined whether there is a second distortion based on the similarity between the in-ear signal and the estimated air conduction signal and the signal features extracted from the in-ear signal, for example, by a human non-speech activity detector (also referred to as a artifact detector).

[0053] At S806, if the first distortion is detected, restoration of the air conduction signal having the first distortion is performed using the in-ear signal. In some embodiments, the restoration process may include a de-clipping process and a fusion process.

[0054] At S808, if the second distortion is detected, restoration of the in-ear signal having the second distortion is performed using the air conduction signal. In some embodiments, the restoration process may include a de-peaking process and a fusion process.

[0055] Fig. 9 A schematic block diagram for estimating the transfer function between the speech signal received by the air conduction microphone and the ear conduction microphone is shown as an example. The model of the noise signal n(t) and the speech signal s(t) propagated and received by the headphone device (for example, including the air conduction microphone and the ear conduction microphone) is shown in the figure. The transfer function H n describes the noise isolation effect of headphones, and the transfer function H s Represents the difference between the two propagation paths of the voice signal of the headphone wearer. The outputs of the two propagation paths are the air conduction voice signal (voice signal with noise) y(t) and the in-ear voice signal y i (t). The transfer function H s can be estimated in advance in an adaptive filtering manner by traversing a large amount of data under quiet conditions or at high SNR with effective noise suppression. In the following, the transfer function H s It can also be expressed as H s (s). Fig. 9 The process of adaptively estimating the transfer function is also described in . The NR output y nr (t) represents the output of the air conduction speech y(t) after the noise reduction process.

[0056] In some embodiments, the transfer function H can be estimated s (s). The estimated transfer function H s(s) is the corresponding mathematical relationship in the frequency domain between the voice signal of the wearer collected by the air conduction microphone as input and the voice signal of the wearer collected by the in-ear microphone as output. It can be understood by those skilled in the art that, based on similar principles, another transfer function G(s) can be estimated. The estimated transfer function G(s) is the corresponding mathematical relationship in the frequency domain between the voice signal of the wearer collected by the in-ear microphone as input and the voice signal of the wearer collected by the air conduction microphone as output. Accordingly, the estimated transfer functions H can be obtained respectively. s (s) and G(s) correspond to the impulse responses h(t) and g(t) of the system in the time domain.

[0057] Thus, the estimated in-ear microphone signal can be calculated based on the air conduction microphone signal The calculation method is given by the following formula

[0058]

[0059] Where y(t) is the air conduction speech signal output by the air conduction microphone, and h(t) is the transfer function H s (s) Impulse response in the time domain.

[0060] In addition, the estimated speech signal can be calculated using the in-ear microphone signal The calculation method is given by the following formula

[0061]

[0062] where y i (t) is the in-ear speech signal output by the in-ear microphone, and g(t) is the impulse response of the transfer function G(s) in the time domain.

[0063] According to one or more embodiments, the present disclosure proposes a two-stage clipping detection method, which includes constant threshold clipping detection using an amplitude histogram and soft clipping detection using inter-channel similarity and more features. In some embodiments, detecting whether there is distortion caused by clipping (first distortion) in an air conduction signal from an air conduction microphone may include: detecting whether there is threshold clipping in the air conduction signal and detecting whether there is soft clipping in the air conduction signal. Among them, threshold clipping may include single-sided clipping and double-sided clipping. In some embodiments, detecting whether there is threshold clipping in the air conduction signal includes: inputting the air conduction signal into an adaptive histogram clipping detector; if it is detected that the output statistics of the adaptive histogram clipping detector have high edge values ​​on both sides or one side, it is determined that there is threshold clipping in the air conduction signal. It can be understood by those skilled in the art that the histogram clipping detector can be implemented by relevant software, hardware, or a combination of the two. The existing histogram clipping detector implemented in any way can be applied to the method of the present disclosure. Since the histogram of the audio signal needs to be calculated in the operation of the histogram clipping detector, and the detection operation of this detector is related to the number of histogram bins, because the number of bins determines the resolution. The number of bins depends on the length of the analyzed data, such as the size of the frame. For example, for a frame with a length of 1024, we can set the number of histogram bins to 100. Therefore, the meaning of "adaptive histogram clipping detector" is that the number of bins of the histogram clipping detector can be adaptively set with the length of the data. The following will be combined with Figure 2 , Fig.10 and Fig.11 The above two-stage clipping detection method is further explained.

[0064] Regarding the above combination Figure 2 The three types of clipping discussed (i.e., double-sided clipping, single-sided clipping, and soft clipping) correspond to the first and second types of clipping (i.e., double-sided clipping and single-sided clipping), which can be easily identified when the signal amplitude exceeds the threshold and is recorded as a constant. It is worth noting that the threshold θ T The setting of is not fixed and can be different in different situations and systems. For a sufficiently long audio signal, if there is no clipping, the signal value should satisfy an approximately uniform or Gaussian distribution. However, if clipping occurs, high statistical values ​​will be generated at the edge of the histogram (threshold). For example, corresponding to Figure 2 The amplitude histograms of the signals (with different clipping phenomena) in Fig.10 .exist Fig.10In the figure, the horizontal axis represents the amplitude of the signal and the vertical axis represents the number of times the corresponding amplitude occurs. Accordingly, the first and second types of clipping situations (as shown in histograms (a) and (b)) can be easily identified as the presence of significant high edge values ​​on both sides or one side in the histogram. However, soft clipping situations (such as shown in histogram (c)) cannot be detected. However, soft clipping is usually the result of a signal being clipped on both sides or one side and recorded as a constant threshold, and then processed again by other modules (such as a DC blocker), so for example, the following features can be used to detect this situation:

[0065] 1) Estimated signal obtained by using the in-ear signal and transfer function estimation (See formula (3)) has low correlation;

[0066] 2) higher amplitudes around the original clipped constant value;

[0067] 3) High spectral flatness values ​​caused by clipping distortion;

[0068] 4) The energy distribution is different from that of unvoiced speech signals, although unvoiced speech signals often have a higher flatness.

[0069] Fig.11 The following is a schematic diagram of a method for detecting whether soft clipping exists in an air conduction signal from an air conduction microphone according to one or more embodiments of the present disclosure. Fig.11 As shown, in S1102, an estimated signal is obtained using an in-ear signal from an in-ear microphone and an estimated transfer function G(s). In some examples, the in-ear signal can be first converted from a time domain signal to a frequency domain signal by using algorithms such as Fourier transform and fast Fourier transform. Then, the estimated signal is obtained based on the in-ear signal in the frequency domain and the estimated transfer function G(s). In S1104, the similarity between the air conduction signal from the air conduction microphone and the estimated signal calculated by S1102 can be determined (i.e., correlation calculation is performed). Those skilled in the art can understand that any existing method for correlation calculation in the field of signal processing can be applied to the present disclosure. In S1106, signal features can be extracted from the air conduction signal from the air conduction microphone. In some examples, the signal features can include at least one of an amplitude peak, a spectrum flatness, and a sub-band power ratio. In S1108, a soft clipping detector is used to determine whether there is soft clipping in the air conduction signal based on the similarity determined by S1104 and the signal features extracted by S1106. Those skilled in the art will appreciate that the soft clipping detector may be implemented by related software or hardware, such as the processing performed by other modules (such as a DC blocker) described above. Any existing soft clipping detector implemented in any manner may be applied to the method disclosed herein.

[0070] Regarding the use of an in-ear microphone to detect relevant human activities, the above-mentioned pseudo signals caused by special human non-speech activities (i.e., non-speech pseudo signals) can be identified, for example, by using the following features:

[0071] 1) The signals collected by the in-ear microphone and the air conduction microphone are obviously different because these activities will produce vibrations but no obvious sound, so the impact on the two microphones is also different.

[0072] 2) The signals caused by these human activities captured by the in-ear microphone have some special characteristics that are usually not present in human speech. Specifically:

[0073] a. They appear as pulsed and sharp signals in the time domain.

[0074] b. They have very high spectral flatness in the frequency band. Specifically: for mouth movement, the high-intensity signal can extend from the low frequency to 2000Hz or even higher; for swallowing, the high-intensity signal covers almost the entire frequency band, but the low-frequency (below 500Hz) signal strength is weak; for tooth collision / bite, the signal covers the entire frequency band with a strong low-frequency part.

[0075] c. Their power intensity decreases smoothly with increasing frequency, unlike unvoiced sounds.

[0076] d. They have no harmonic structure, unlike voiced speech; if some mouth movement occurs simultaneously with speaking, this will partially mask the harmonic structure that exists in the spectrum of voiced speech signals.

[0077] Therefore, this paper further proposes a method for detecting noise caused by human non-speech activities, which utilizes the similarity between channels and multiple features of in-ear microphone signals.

[0078] Fig.12 The following is a schematic diagram of a method for detecting whether there is a non-speech artifact signal (which causes the second distortion) caused by human activity in an in-ear signal from an in-ear microphone according to one or more embodiments of the present disclosure. Fig.12 As shown, in S1202, the air conduction signal from the air conduction microphone and the estimated transfer function H are used. s (s) to obtain the estimated signal. In some examples, the air conduction signal can be first converted from a time domain signal to a frequency domain signal by using Fourier transform, fast Fourier transform, and other algorithms. Then, based on the air conduction signal in the frequency domain and the estimated transfer function H s(s) to obtain an estimated signal. In S1204, the similarity between the in-ear signal from the in-ear microphone and the estimated signal calculated by S1202 can be determined (i.e., correlation calculation is performed). Those skilled in the art can understand that any existing method for correlation calculation in the field of signal processing can be applied to the present disclosure. In S1206, signal features can be extracted from the in-ear signal from the in-ear microphone. In some examples, the signal features may include at least one of amplitude peak, spectrum flatness, sub-band spectrum flatness, and sub-band power ratio. In S1208, by using a pseudo signal detector (or a special noise detector), based on the similarity determined by S1204 and the signal features extracted by S1206, for example, by a pseudo signal detector, it is determined whether there is a second distortion caused by human non-speech activity in the in-ear signal, that is, whether there is a non-speech pseudo signal (or a special noise) caused by human non-speech activity in the in-ear signal. In some examples, the pseudo signal detector can also be used to determine the human non-speech activity corresponding to the non-speech pseudo signal, such as mouth opening / closing / movement, teeth occlusion, swallowing, etc. Those skilled in the art will appreciate that the false signal detector may be a classifier, for example, a Bayesian statistical analysis or even a simple threshold analysis may be used, that is, the specific classification of the activity may be identified based on the features.

[0079] Fig.13 The following is a schematic diagram of a method for recovering a clipped signal from an air conduction microphone according to one or more embodiments of the present disclosure. Fig.13 As shown in FIG. 1 , if it is detected that there is distortion caused by clipping in the air conduction signal from the air conduction microphone, then at S1302, de-clip processing is performed on the air conduction signal to generate a de-clipped signal. In some examples, the clipping portion of the air conduction signal from the air conduction microphone (i.e., the clipped / distorted signal) is first estimated by a de-clip processing method such as a least square method or a simple cubic interpolation to obtain an estimated air conduction microphone signal. (i.e., generating a de-clipped signal ).

[0080] At S1304, an estimation signal is generated based on the in-ear signal from the in-ear microphone and the estimated impulse response. i (t) and the impulse response g(t), generating an estimated signal See the above formula (3).

[0081] Then, at step S1306, the signal that has been de-clipped at step S1302 is fused with the estimated signal generated at step S1304 to generate a restored air conduction signal. In some examples, the estimated air conduction microphone signal The speech signal estimated using the in-ear microphone signal Fusion to reconstruct the air conduction microphone signal There are many fusion methods available here. For example, a simple cross fading fusion method can be used. The reconstructed air conduction microphone signal (ie, the repaired air conduction signal) can be given by the following formula:

[0082]

[0083] Fig.14 The present invention exemplarily shows a method for restoring an in-ear signal from an in-ear microphone according to one or more embodiments of the present disclosure, wherein the in-ear signal includes a non-speech artifact signal (i.e., a special noise signal) caused by human activities. Fig.14 As shown in FIG. 1 , if it is detected that there is distortion caused by human activities in the in-ear signal from the in-ear microphone, a peak removal process is performed on the in-ear signal to generate a signal after the peak removal process. In some examples, the in-ear microphone signal y captured by the in-ear microphone and contaminated by human non-speech activities is removed by a peak removal method (such as a Savitzky–Golay filter or a simple cubic interpolation). i (t) is estimated to generate a signal after spike removal

[0084] At S1404, an estimation signal may be generated based on an air conduction signal from an air conduction microphone and an estimated impulse response. In some examples, an estimation signal may be generated based on an air conduction signal y(t) from an air conduction microphone and an estimated impulse response h(t). See formula (2).

[0085] Then, at S1406, the signal subjected to the peak removal process at S1402 is fused with the estimated signal generated at S1404 to generate a repaired in-ear signal. The speech signal estimated using the air conduction microphone signal y(t) Fusion (for example, using a cross-fading fusion method) to reconstruct the in-ear microphone signal, and the reconstructed in-ear microphone signal Given by the following formula

[0086]

[0087] Compared with the existing methods that mainly use signals from the same channel to restore contaminated signals, the method proposed in the present disclosure that uses cross-channel signals to detect distortion and repair distorted signals can better detect and identify different aspects of distortion, and can use cross-channel signals to repair different aspects of distortion at the same time. In this way, the method proposed in the present disclosure can not only solve the clipping problem, but also successfully restore the spectral information of the voice signal, while eliminating sounds (such as "bangs" or "clicks") that are unpleasant to the listener at the far end of the communication (i.e., the headphone wearer). Therefore, the method proposed in the present disclosure that uses cross-channel signals to detect distortion and repair distortion can greatly improve the quality and intelligibility of voice data in the use of headphones, allowing listeners to better recognize sounds, thereby improving the user experience of headphone wearers.

[0088] exist Fig.15 , from top to bottom, respectively, a simulation diagram of a clipped signal from an air conduction microphone is shown, and a signal obtained by recovering the signal from the air conduction microphone using an existing conventional de-clipped signal method (e.g., a method of recovering an unknown sample using information from adjacent samples in the same channel) Simulation diagram of the present invention, and the signal obtained by repairing the signal from the air conduction microphone using the method disclosed in the present invention Simulation diagram of .

[0089] Fig.16 and Fig.17 They are respectively for Figure 4 The corresponding signal spectrum is obtained after the contaminated signal corresponding to the spectrum of is restored. Fig.16 It is a spectrum diagram of a restored signal obtained by using the existing method of restoring the contaminated signal using the same channel signal (in other words, only using the de-clipping process). Fig.17 is a spectrum diagram of a restored signal obtained by restoring a contaminated signal using a cross-channel signal as described above in the present disclosure. Fig.16 and Fig.17 In the comparison, it can be seen that the method proposed in the present disclosure can effectively remove the clipping distortion while restoring more spectral information of the speech signal (see Fig.17 The part circled by the middle ellipse contains richer lateral harmonic information), which is very helpful in improving the quality and intelligibility of the restored speech signal.

[0090] Fig.18 The figure shows a segment of an in-ear signal (signal in the upper part of the figure) containing distortion (i.e. containing special noise) caused by human non-language activities (such as mouth closure), and a signal obtained by repairing the segment of the in-ear signal using the method proposed in the present disclosure (signal in the lower part of the figure). Their corresponding spectrograms are shown in Fig.19 and Fig. 20 In order to make the contrast effect clearer, Fig.18 In the above figure, it can be clearly seen that the method proposed in the present disclosure can effectively remove the special noise caused by human mouth activities, restore the ear signal well, and eliminate the "bang" sound. Fig.18 In the figure, the peak in the middle of the time axis of the original signal is removed. Fig. 20 This is manifested as a decrease in the energy at the corresponding time period.

[0091] According to another aspect of the present invention, a system for detecting distortion of a speech signal and repairing the distorted speech signal is also provided. The system includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed, the processor is enabled to perform the method described above.

[0092] Based on the above, the present disclosure proposes a method and system for restoring a polluted speech signal using a cross-channel signal. Specifically, the method may include detecting distortion and using an in-ear microphone signal to restore a clipped air conduction signal from an air conduction microphone, and using an air conduction microphone signal to restore an in-ear signal polluted by noise caused by some human activities. Among them, a two-stage clipping detection method is adopted, which includes constant threshold clipping detection using an amplitude histogram and soft clipping detection using inter-channel similarity and more features. Further, detection of noise caused by human non-speech activities is also performed, which utilizes inter-channel similarity and more signal features. In addition, the method proposed in this article utilizes the transfer function between the air conduction microphone and the in-ear microphone to estimate the difference between the two propagation paths, and proposes a method for identifying human activities that will generate noise to the in-ear microphone. The method proposed in this article greatly improves the quality and intelligibility of voice data in the use of headphones, so that the headphone wearer can better recognize the sound, thereby improving the user experience of the headphone wearer.

[0093] Clause 1. In some embodiments, a method for detecting distortion of a speech signal and repairing the distorted speech signal comprises:

[0094] detecting whether there is a first distortion caused by clipping in an air conduction speech signal from an air conduction microphone;

[0095] detecting whether there is a second distortion caused by a non-speech artifact signal in an in-ear speech signal from an in-ear microphone;

[0096] In response to detecting the first distortion, performing restoration of the air conduction speech signal having the first distortion using the in-ear speech signal; and

[0097] In response to detecting the second distortion, repairing the in-ear speech signal having the second distortion is performed using the air conduction speech signal.

[0098] Clause 2. A method according to any preceding clause, wherein the detecting whether there is a first distortion caused by clipping in the air conduction speech signal from the air conduction microphone comprises:

[0099] detecting whether there is threshold clipping in the air conduction speech signal, wherein the threshold clipping includes at least one of single-side clipping and double-side clipping; and

[0100] Detect whether soft clipping exists in the air conduction speech signal.

[0101] Clause 3. A method according to any preceding clause, wherein the detecting whether there is threshold clipping in the air conduction speech signal comprises:

[0102] Inputting the air conduction speech signal into an adaptive histogram clipping detector;

[0103] If it is detected that the output statistics of the adaptive histogram clipping detector have high edge values ​​on both sides or on one side, it is determined that threshold clipping exists in the air conduction speech signal.

[0104] Clause 4. A method according to any preceding clause, wherein the detecting whether there is soft clipping in the air conduction speech signal comprises:

[0105] determining a first similarity between the air conduction speech signal and a first estimation signal, wherein the first estimation signal is obtained based on the in-ear speech signal and a first estimated transfer function;

[0106] Extracting a first signal feature from the air conduction speech signal; and

[0107] Based on the first similarity and the first signal feature, it is determined whether soft clipping exists in the air conduction speech signal.

[0108] Clause 5. The method according to any of the preceding clauses, wherein the detecting whether there is a second distortion caused by a non-speech artifact signal in the in-ear speech signal from the in-ear microphone comprises:

[0109] determining a second similarity between the in-ear speech signal and a second estimated signal, wherein the second estimated signal is obtained based on the air conduction speech signal and a second estimated transfer function;

[0110] Extracting a second signal feature from the in-ear speech signal;

[0111] Based on the second similarity and the second signal feature, it is determined whether there is a second distortion caused by a non-speech artifact signal in the incoming speech signal.

[0112] Clause 6. A method according to any preceding clause, wherein, in response to detecting the first distortion, performing repair of the air conduction speech signal having the first distortion using the in-ear speech signal comprises:

[0113] In response to detecting the first distortion, performing de-clip processing on the air conduction speech signal to generate a de-clipped signal;

[0114] generating a third estimation signal based on the in-ear speech signal and the first estimated impulse response;

[0115] The de-clipped signal and the third estimated signal are fused to generate a restored air conduction speech signal.

[0116] Clause 7. A method according to any preceding clause, wherein, in response to detecting the second distortion, performing repair of the in-ear speech signal having the second distortion using the air conduction speech signal comprises:

[0117] In response to detecting the second distortion, performing peak removal processing on the in-ear speech signal to generate a signal subjected to the peak removal processing;

[0118] generating a fourth estimation signal based on the air conduction speech signal and the second estimated impulse response;

[0119] The signal after the peak removal process and the fourth estimated signal are fused to generate a restored in-ear speech signal.

[0120] Clause 8. A method according to any of the preceding clauses, wherein the first estimated transfer function is a corresponding mathematical relationship in the frequency domain with the wearer's speech signal collected by an in-ear microphone as input and the wearer's speech signal collected by an air conduction microphone as output.

[0121] Clause 9. A method according to any of the preceding clauses, wherein the second estimated transfer function is a corresponding mathematical relationship in the frequency domain with the wearer's speech signal collected by an air conduction microphone as input and the wearer's speech signal collected by an in-ear microphone as output.

[0122] Clause 10. A method according to any of the preceding clauses, wherein the first estimated impulse response is the impulse response of the corresponding system of the first estimated transfer function in the time domain, wherein the first estimated transfer function is the corresponding mathematical relationship in the frequency domain with the wearer's speech signal collected by the in-ear microphone as input and the wearer's speech signal collected by the air conduction microphone as output.

[0123] Clause 11. A method according to any of the preceding clauses, wherein the second estimated impulse response is the impulse response of the corresponding system of the second estimated transfer function in the time domain, wherein the second estimated transfer function is the corresponding mathematical relationship in the frequency domain with the wearer's speech signal collected by the air conduction microphone as input and the wearer's speech signal collected by the in-ear microphone as output.

[0124] Clause 12. A method as described in any preceding clause, wherein the first signal characteristic comprises at least one of an amplitude peak, a spectral flatness, and a sub-band power ratio.

[0125] Clause 13. A method as described in any preceding clause, wherein the second signal characteristic comprises at least one of an amplitude peak, a spectral flatness, a sub-band spectral flatness, and a sub-band power ratio.

[0126] Clause 14. In some embodiments, a system comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method of any one of claims 1-13 is implemented.

[0127] Any one or more of the processors, memories, or systems described herein include computer executable instructions that can be compiled or interpreted from a computer program created using a variety of programming languages ​​and / or techniques. In general, a processor (such as a microprocessor) receives instructions from, for example, a memory, a computer readable medium, etc. and executes the instructions. The processor includes a non-transitory computer readable storage medium capable of executing the instructions of the software program. The computer readable medium can be, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof.

[0128] The description of the embodiments has been presented for the purpose of illustration and description. Suitable modifications and variations of the embodiments may be performed in view of the above description or may be obtained by the practice method. For example, unless otherwise indicated, the one or more methods described may be performed by a combination of suitable devices and / or systems. The method may be performed in the following manner: one or more logic devices (e.g., processors) may be used in conjunction with one or more other hardware elements (such as storage devices, memories, circuits, hardware network interfaces, etc.) to perform the stored instructions. The method and associated actions may also be performed in parallel and / or simultaneously in various orders other than the order described in the present disclosure. The system is exemplary in nature and may include additional elements and / or omit elements. The subject matter of the present disclosure includes all novel and non-obvious combinations of the disclosed various methods and system configurations and other features, functions and / or properties.

[0129] The description of the embodiments has been presented for the purpose of illustration and description. Suitable modifications and changes to the embodiments may be performed in view of the above description, or may be obtained by a practical method. The described methods and associated actions may also be performed in various orders, in parallel and / or simultaneously, in addition to the order described in the application. The described system is exemplary in nature and may include other elements and / or omit elements. The subject matter of the present disclosure includes all novel and non-obvious combinations of the disclosed various systems and configurations with other features, functions and / or properties.

[0130] As used in this application, an element or step listed in the singular and preceded by the word "one" should be understood as not excluding a plurality of said elements or steps, unless such exclusion is indicated. In addition, reference to "one embodiment" or "an example" of the present disclosure is not intended to be interpreted as excluding the existence of another embodiment that also incorporates the listed features. The present invention has been described above with reference to specific embodiments. However, it will be appreciated by those skilled in the art that various modifications and changes may be made thereto without departing from the broader spirit and scope of the present invention as set forth in the appended claims.

Claims

1. A method for detecting distortion of a speech signal and repairing the distorted speech signal, include: detecting whether there is a first distortion caused by clipping in an air conduction speech signal from an air conduction microphone; detecting whether there is a second distortion caused by a non-speech artifact signal in an in-ear speech signal from an in-ear microphone; In response to detecting the first distortion, performing restoration of the air conduction speech signal having the first distortion using the in-ear speech signal; as well as In response to detecting the second distortion, repairing the in-ear speech signal having the second distortion is performed using the air conduction speech signal.

2. The method according to claim 1, in, The detecting whether there is a first distortion caused by clipping in the air conduction speech signal from the air conduction microphone comprises: detecting whether there is threshold clipping in the air conduction speech signal, wherein the threshold clipping includes at least one of single-side clipping and double-side clipping; and Detect whether soft clipping exists in the air conduction speech signal.

3. The method according to claim 2, in, The detecting whether there is threshold clipping in the air conduction speech signal comprises: Inputting the air conduction speech signal into an adaptive histogram clipping detector; If it is detected that the output statistics of the adaptive histogram clipping detector have high edge values ​​on both sides or on one side, it is determined that threshold clipping exists in the air conduction speech signal.

4. The method according to claim 2 or 3, in, The detecting whether there is soft clipping in the air conduction speech signal comprises: determining a first similarity between the air conduction speech signal and a first estimation signal, wherein the first estimation signal is obtained based on the in-ear speech signal and a first estimated transfer function; Extracting a first signal feature from the air conduction speech signal; and Based on the first similarity and the first signal feature, it is determined whether soft clipping exists in the air conduction speech signal.

5. The method according to claim 1, in, The detecting whether there is a second distortion caused by a non-speech artifact signal in the in-ear speech signal from the in-ear microphone comprises: determining a second similarity between the in-ear speech signal and a second estimated signal, wherein the second estimated signal is obtained based on the air conduction speech signal and a second estimated transfer function; Extracting a second signal feature from the in-ear speech signal; Based on the second similarity and the second signal feature, it is determined whether there is a second distortion caused by a non-speech artifact signal in the incoming speech signal.

6. The method according to claim 1, in, In response to detecting the first distortion, using the in-ear speech signal to perform repair on the air conduction speech signal having the first distortion comprises: In response to detecting the first distortion, performing de-clip processing on the air conduction speech signal to generate a de-clipped signal; generating a third estimation signal based on the in-ear speech signal and the first estimated impulse response; The de-clipped signal and the third estimated signal are fused to generate a restored air conduction speech signal.

7. The method according to claim 1, in, In response to detecting the second distortion, using the air conduction speech signal to perform repair on the in-ear speech signal having the second distortion comprises: In response to detecting the second distortion, performing peak removal processing on the in-ear speech signal to generate a peak-removed signal; generating a fourth estimation signal based on the air conduction speech signal and the second estimated impulse response; The signal after the peak removal process and the fourth estimated signal are fused to generate a restored in-ear speech signal.

8. The method according to claim 4, in, The first estimated transfer function is a corresponding mathematical relationship in the frequency domain, which takes the wearer's speech signal collected by the in-ear microphone as input and takes the wearer's speech signal collected by the air conduction microphone as output.

9. The method according to claim 5, in, The second estimated transfer function is a corresponding mathematical relationship in the frequency domain, with the wearer's speech signal collected by the air conduction microphone as input and the wearer's speech signal collected by the in-ear microphone as output.

10. The method according to claim 6, in, The first estimated impulse response is the impulse response of the corresponding system of the first estimated transfer function in the time domain, wherein the first estimated transfer function is the corresponding mathematical relationship in the frequency domain with the wearer's speech signal collected by the in-ear microphone as input and the wearer's speech signal collected by the air conduction microphone as output.

11. The method according to claim 7, in, The second estimated impulse response is the impulse response of the corresponding system of the second estimated transfer function in the time domain, wherein the second estimated transfer function is the corresponding mathematical relationship in the frequency domain with the wearer's speech signal collected by the air conduction microphone as input and the wearer's speech signal collected by the in-ear microphone as output.

12. The method according to claim 4, in, The first signal characteristic includes at least one of an amplitude peak, a spectrum flatness, and a sub-band power ratio.

13. The method according to claim 5, in, The second signal characteristic comprises at least one of an amplitude peak, a spectrum flatness, a sub-band spectrum flatness, and a sub-band power ratio.

14. A system for detecting distortion of a speech signal and repairing the distorted speech signal, include: A memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 13 is implemented.