Method, device, equipment and readable storage medium for detecting call status

By combining logic gates and signal envelope detectors, combined with dynamic threshold settings, the problem of high miss detection rate of dual-talk detectors is solved, and the accuracy of call status detection and echo cancellation effect are improved.

CN114650238BActive Publication Date: 2024-09-20SUIRUI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210203528.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2024-09-20
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

Existing dual-talk detectors have a high missed detection rate in echo cancellation systems. Especially when noise or interference signals are present, it is difficult to accurately detect the dual-talk call status, resulting in poor echo cancellation effects.

Method used

The first detector based on logic gates and the second detector based on signal envelope are combined to detect the call status respectively, and avoid misjudgment through dynamic threshold setting to determine the actual call status, thereby reducing the missed detection rate and improving detection accuracy. sex.

Benefits of technology

It effectively reduces the missed detection rate of dual-talk detection, improves the speed of call status detection and the quality of echo cancellation, and ensures detection accuracy in the presence of noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114650238B
    Figure CN114650238B
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and readable storage medium for detecting a call state, the method comprising: using a first detector based on a logic gate to detect a first call state during a call; using a second detector based on a signal envelope to detect a second call state during the call; and determining the actual call state during the call according to the first call state and the second call state. By using the scheme of the present invention, the detection of the double talk state in the call state can be realized, thereby reducing the missed detection rate of the double talk state in the call state, and the scheme is simple in calculation, which can improve the calculation speed for detecting the call state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of double talk detection and more specifically to a method, apparatus, device and computer readable storage medium for detecting a call status. Background Art

[0002] The occurrence of echo is one of the main problems faced by video conferencing systems. Usually, an acoustic echo cancellation system can be used to eliminate the echo in the video conferencing system. Specifically, Figure 1 As shown, an acoustic echo cancellation system with a double talk detector is shown, which mainly includes an adaptive filter 101, a double talk detector 102, a speaker 103 and a microphone 104. In the double talk state, the adaptive filter 101 will receive a far-end signal x(n) and a near-end signal s(n), which will cause the adaptive filter to diverge. The task of the double talk detector 102 is to identify this double talk state, and can be used to keep the coefficients of the adaptive filter 101 from being updated during the double talk call, so as to prevent the adaptive filter 101 from using the error signal e(n) to adapt and diverge, thereby achieving echo cancellation.

[0003] At present, the common double-talk detector method for detecting double-talk calls is usually based on the correlation between two signals among the far-end signal, the near-end signal, the echo signal, the expected signal, etc. to determine whether it is a double-talk call. However, when there is noise or other interference signals, for example, there is a high miss detection rate when judging whether it is a double-talk call based only on the correlation between the two signals. In view of this, there is an urgent need for a technical solution that can be used to detect double-talk calls and can reduce the miss detection rate. Summary of the invention

[0004] In order to at least solve one or more technical problems in the above-mentioned background technology, the present invention proposes a method, device, equipment and computer-readable storage medium for detecting call status. Through the solution of the present invention, the problem of high missed detection rate of double-talk state in echo cancellation can be effectively solved, and the call status detection speed can be improved. To this end, the present invention provides solutions in the following aspects.

[0005] In a first aspect, the present invention discloses a method for detecting a call status, the method comprising: detecting a first call status during a call using a first detector based on a logic gate; detecting a second call status during the call using a second detector based on a signal envelope; and determining an actual call status during the call based on the first call status and the second call status.

[0006] In one embodiment, detecting a first call state using a first detector based on logic gates includes using a far-end voice detector to process far-end voice signals from both ends of the call to obtain a first gate value signal; using a near-end voice detector to process near-end voice signals from both ends of the call to obtain a second gate value signal; and determining the first call state of the first detector based on the first gate value signal and the second gate value signal.

[0007] In another embodiment, using a far-end voice detector to process a far-end voice signal to obtain a first threshold signal includes: determining the first threshold signal based on a comparison result of the energy value of the far-end voice signal with a first preset value; using a near-end voice detector to process a near-end voice signal to obtain a second threshold signal includes: determining the second threshold signal based on a comparison result of the energy value of the near-end voice signal with a second preset value; wherein the second preset value is greater than the first preset value.

[0008] In another embodiment, determining the first call state of the first detector according to the first threshold value signal and the second threshold value signal includes: in response to the first threshold value signal and the second threshold value signal being both 1, determining that the first call state is a double-talk state; in response to at least one of the first threshold value signal and the second threshold value signal being 0, determining that the first call state is a single-talk state.

[0009] In another embodiment, detecting a second call state during a call using a second detector based on a signal envelope includes: determining detection function values ​​of the near-end signal envelope and the far-end signal envelope based on a ratio relationship between the near-end signal envelope and the far-end signal envelope in the current call state; determining a dynamic threshold corresponding to the current call state based on the far-end signal envelope and the echo signal envelope in the current call state; and determining the second call state based on the detection function value and the dynamic threshold.

[0010] In another embodiment, determining the second call state according to the detection function value and the dynamic threshold includes: setting a dynamic threshold range, wherein the dynamic threshold range includes an upper threshold and a lower threshold; in response to the dynamic threshold being within the dynamic threshold range, comparing the detection function value and the dynamic threshold to determine the second call state; in response to the dynamic threshold being greater than the upper threshold, comparing the detection function value and the upper threshold to determine the second call state; in response to the dynamic threshold being less than the lower threshold, comparing the detection function value and the lower threshold to determine the second call state.

[0011] In another embodiment, determining the actual call state according to the first call state and the second call state includes: in response to the first call state and the second call state being both in a double-talk state, determining the actual call state as a double-talk state; or in response to at least one of the first call state and the second call state being in a single-talk state, determining the actual call state as a single-talk state.

[0012] In a second aspect, the present invention discloses a device for detecting a call status, comprising: a logic gate detection module, which includes a first detector based on a logic gate, and is configured to detect a first call status during a call using the first detector; a signal envelope detection module, which includes a second detector based on a signal envelope, and is configured to detect a second call status during a call using the second detector; and a determination module, which is configured to determine the actual call status during the call based on the first call status and the second call status.

[0013] In a third aspect, the present invention discloses a device for detecting a call status, comprising: a processor; and a memory storing program instructions for detecting a call status, wherein when the program instructions are executed by the processor, the above-mentioned method steps are implemented.

[0014] In a fourth aspect, the present invention discloses a computer-readable storage medium storing program instructions for detecting a call status, and when the program instructions are executed by a processor, the above-mentioned method steps are implemented.

[0015] By utilizing the method described in the above and multiple embodiments of the present invention, the call status during a call can be detected by utilizing a first detector based on a logic gate and a second detector based on a signal envelope, respectively, and the actual call status during a call can be determined by combining the call status detected by the first detector and the second detector, thereby effectively solving the problem of a high missed detection rate in a double-talk detector, and the method according to an embodiment of the present invention also has the characteristics of simple operation logic and operation steps, which is conducive to improving the detection speed and detection accuracy. In some embodiments, by setting the upper and lower limits of the dynamic threshold, the detection error of a signal containing only noise can be effectively avoided. By utilizing the method of an embodiment of the present invention and its related products, the call status during a call can be accurately detected, thereby improving the quality of echo cancellation in an echo canceller. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0017] Figure 1 is a schematic diagram showing the structure of an echo cancellation system in the prior art;

[0018] Figure 2 is a flow chart showing a method for detecting a call status according to an embodiment of the present invention;

[0019] Figure 3 is a flow chart showing a method for detecting a call status according to another embodiment of the present invention;

[0020] Figure 4 is a flow chart showing a method for determining a first call state according to an embodiment of the present invention;

[0021] Figure 5 is a flow chart showing a method for detecting a call status according to yet another embodiment of the present invention;

[0022] Figure 6 is a flow chart showing a method for determining a second call state according to an embodiment of the present invention;

[0023] Figure 7 is a flow chart showing a method for determining an actual call status according to an embodiment of the present invention; and

[0024] Figure 8 The invention is a schematic block diagram of a system for detecting a call status according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] Embodiments will now be described with reference to the accompanying drawings. It should be understood that for simplicity and clarity of explanation, reference numerals may be repeated in the accompanying drawings to indicate corresponding or similar elements where deemed appropriate. In addition, the present invention sets forth many specific details in order to provide a thorough understanding of the embodiments described herein. However, it will be appreciated by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other cases, well-known methods, processes, and components are not described in detail to avoid blurring the embodiments described herein. In addition, this description should not be viewed as limiting the scope of the embodiments described herein.

[0026] The scheme of the present invention will be described in detail below with reference to the accompanying drawings.

[0027] Figure 2 FIG. 2 is a flow chart showing a method for detecting a call status according to an embodiment of the present invention. Figure 2As shown in , method 200 may include: at step S202, a first detector based on a logic gate may be used to detect a first call state during a call. It can be understood that the logic gate can be used to receive a level signal, wherein the level signal may include a high level and a low level, and a logic operation can be performed on the input level signal. In one embodiment, the logic gate can perform a logic AND operation, a logic OR operation and / or a logic NOT operation on the input level signal. In an embodiment of the present invention, the logic gate can perform a logic AND operation on the input level signal. It can be understood that the logic AND operation is a logic operation in the logic gate, and in the case of multiple input terminals and one output terminal, when the inputs of all the input terminals are simultaneously high level, the output of the output terminal is high level, otherwise the output is low level.

[0028] In one embodiment, the first detector based on logic gates may include a far-end voice detector and a near-end voice detector, wherein the far-end voice detector is used to collect far-end voice signals during a call, and the near-end voice detector may be used to collect near-end voice signals. In some application scenarios, the far-end voice signal may be converted to a high level or a low level by the far-end voice detector, and the near-end voice signal may be converted to a high level or a low level by the near-end voice detector. In one embodiment, the high level or the low level may be represented by a gate value signal, wherein the gate value signal may include a logical "true" and "false" signal and a 1 and 0 signal in a binary system. In one embodiment, 1 or "true" in the gate value signal may be used to represent a high level, and 0 or "false" in the gate value signal may be used to represent a low level. In one embodiment, the logic gate may perform a logical AND operation on the far-end voice signal and the near-end voice signal converted to a high level or a low level, thereby realizing the detection of the first call state during a call. In one embodiment, the first detector based on logic gates may be composed of a detection circuit including logic gates.

[0029] In another embodiment, the first call state during a call detected by the first detector based on the logic gate may be a double-talk state. It is understood that the double-talk state refers to a call state in which microphones in at least two communication devices simultaneously receive voice signals during a call between two or more parties using the communication device. In another embodiment, the first call state during a call detected by the first detector based on the logic gate may be a single-talk state. Corresponding to the double-talk state, the single-talk state refers to a call state in which microphones in at most one communication device receive voice signals during a call between two or more parties using the communication device.

[0030] Next, at step S204, a second detector based on a signal envelope may be used to detect a second call state during the call. It is understood that the signal envelope refers to two upper and lower lines formed by connecting the peak points of the frequency signal. As an example, for an equal-amplitude frequency signal, its signal envelope may be two parallel lines. In one embodiment, the signal envelope may include a near-end signal envelope and a far-end signal envelope.

[0031] It is important to understand that Figure 2 The steps of detecting the first call state and the second call state are only one specific embodiment of the present invention, and the present invention does not limit the execution order of step S202 and step S204. In one embodiment, step S202 can be executed before step S204. In another embodiment, step S202 can be executed after step S204. In another embodiment, step S202 can be executed simultaneously with step S204.

[0032] In some embodiments, the second call state may be a double-talk state or a single-talk state. In other embodiments, the call period detected by the first detector and the second detector is the same call period, that is, the first detector and the second detector may perform state detection on the same call. In some application scenarios, the detected first call state and the second call state may be the same or different.

[0033] After executing the above steps S202 and S204, the process can proceed to step S206. At step S206, the actual call state during the call can be determined according to the first call state and the second call state. In one embodiment, determining the actual call state according to the first call state and the second call state may include: in response to the first call state and the second call state being both in the double talk state, determining the actual call state as the double talk state; in response to at least one of the first call state and the second call state being in the single talk state, determining the actual call state as the single talk state.

[0034] Figure 3 FIG. 1 is a flow chart showing a method for detecting a call status according to another embodiment of the present invention. As can be seen from the following description, Figure 3 The method 300 shown in FIG. 3 may be combined with the method described above. Figure 2 The method 200 is described as a specific embodiment, so the description of the method 200 in the foregoing text may also be applicable to the following description of the method 300.

[0035] like Figure 3As shown, method 300 may include: at step S310, a first detector based on a logic gate may be used to detect a first call state during a call. In one embodiment, step S310 may include: in step S311 (shown in a dotted box), a far-end voice detector may be used to process far-end voice signals from both ends of the call to obtain a first threshold signal. In some embodiments, the two ends of the call may include a near end and a far end, wherein the far end may be a call end that is farther away from the first detector, and the voice signal from the far end may be referred to as a far-end voice signal. In one embodiment, the first threshold signal may be represented by 1 or 0 in binary. In another embodiment, the first threshold signal may be determined based on a comparison result of the energy value of the far-end voice signal with a first preset value. In one embodiment, the energy value of the far-end voice signal may be obtained based on the far-end voice signal collected by the far-end voice detector, wherein the energy value of the far-end voice signal may be represented by the following formula:

[0036]

[0037] Among them, E x represents the energy value of the far-end voice signal; x(n) represents the far-end voice signal; n represents the time variation; k represents the length of the filter. As an example, k can be 512. In one embodiment, determining the first threshold signal based on the comparison result between the energy value of the far-end voice signal and the first preset value may include: in response to the energy value of the far-end voice signal being greater than the first preset value, determining the first threshold signal to be 1 in binary; in response to the energy value of the far-end voice signal being less than the first preset value, determining the first threshold signal to be 0 in binary.

[0038] In other embodiments, in response to the energy value of the far-end voice signal being greater than the first preset value, the far-end voice signal may be converted to a high level, and the high level may be represented by 1 in binary, and the first threshold value signal may be determined to be 1. In another embodiment, in response to the energy value of the far-end voice signal being less than the first preset value, the far-end voice signal may be converted to a low level, and the low level may be represented by 0 in binary, and the first threshold value may be determined to be 0. As an example, the first preset value may be 0.0001.

[0039] Next, in step S312 (shown by the dotted box), the near-end voice signal from the two ends of the call can be processed by the near-end voice detector to obtain a second threshold signal. In some embodiments, the near-end of the two ends of the call can be the call end that is closer to the first detector, and the voice signal from the near-end of the two ends of the call can be called the near-end voice signal. In another embodiment, the second threshold signal can be represented by 1 or 0 in binary. In one embodiment, the second threshold signal can be determined based on the comparison result of the energy value of the near-end voice signal and the second preset value. In one embodiment, the energy value of the near-end voice signal can be obtained based on the near-end voice signal collected by the near-end voice detector. In one embodiment, the energy value of the near-end voice signal can be represented by the following formula:

[0040]

[0041] Among them, E d represents the energy value of the near-end speech signal; d(n) represents the near-end speech signal; n represents the time variation; k represents the length of the filter. As an example, k can be 512. In one embodiment, the comparison result of the energy value of the near-end speech signal and the second preset value may include: in response to the energy value of the near-end speech signal being greater than the second preset value, the first threshold signal can be determined to be 1 in binary; in response to the energy value of the near-end speech signal being less than the second preset value, the first threshold signal can be determined to be 0 in binary. In one embodiment, in response to the energy value of the near-end speech signal being greater than the second preset value, the near-end speech signal can be converted to a high level, and the high level can be represented by 1 in binary, and the second threshold signal can be determined to be 1. In another embodiment, in response to the energy value of the near-end speech signal being less than the second preset value, the near-end speech signal can be converted to a low level, and the low level can be represented by 0 in binary, and the second threshold signal can be determined to be 0.

[0042] In some embodiments, the second preset value may be greater than the first preset value. It should be understood that the energy value of the near-end voice signal is usually greater than the energy value of the far-end voice signal. Therefore, by setting the second preset value to be greater than the first preset value, the misjudgment of the comparison result between the energy value of the near-end voice signal and the second preset value can be reduced, thereby making the detection of the energy value of the near-end voice signal more accurate. As an example, the second preset value may be 0.005.

[0043] After executing the above step S312, the process can proceed to step S313 (shown by the dotted box). At step S313, the first call state of the first detector can be determined based on the first gate value signal and the second gate value signal. In one embodiment, the first gate value signal and the second gate value signal can be input into a logic gate, and the logic gate can be used to perform a logical AND operation on the input first gate value signal and the second gate value signal, thereby determining the first call state of the first detector. In another embodiment, step S313 may include: in response to the first gate value signal and the second gate value signal being both 1, determining that the first call state is a double-talk state; in response to at least one of the first gate value signal and the second gate value signal being 0, determining that the first call state is a single-talk state.

[0044] Further, in some embodiments, the truth table can represent all possible states between the input and output of the logic event in the logic gate, and then the truth table can be used to represent all the operation results of the first gate value signal and the second gate value signal to determine the first call state through logical operations. For example, as shown in Table 1 below, the first gate value signal and the second gate value signal can be used as input signals, and the first call state can be used as the output result. Specifically, the first gate value signal and the second gate value signal as input signals can be 1 or 0, and when the first gate value signal and the second gate value signal are both 1, the output result is 1, that is, the first call state is a double-talk state; when at least one of the first gate value signal and the second gate value signal is 0, the output result is 0, that is, the second call state is a single-talk state.

[0045] Table 1:

[0046] The first gate signal The second gate value signal First call status 0 0 0 0 1 0 1 0 0 1 1 1

[0047] like Figure 3 As further shown in FIG. 1 , at step S320, a second detector based on a signal envelope may be used to detect a second call state during a call. Then, at step S330, an actual call state during a call may be determined based on the first call state and the second call state. Steps S320 and S330 may be combined with the above. Figure 2 The described step S204 is the same or similar to step S206 and will not be described in detail here.

[0048] For ease of understanding Figure 3 The method for detecting the first call state shown in Figure 4 Further description. Figure 4 is a flow chart showing a method for determining a first call state according to an embodiment of the present invention.

[0049] like Figure 4As shown, method 400 may include: at step S402, a threshold signal (i.e., a first threshold signal) output by a far-end voice detector may be received; at step S404, a threshold signal (i.e., a second threshold signal) output by a near-end voice detector may be received. Next, at step S406, a logic AND operation may be performed on the first threshold signal and the second threshold signal. Then, the process may proceed to step S408, and it may be determined whether the output result of the logic AND operation is 1. If the output result is 1, it may be determined that the first call state is a double-talk state; if the output result is not 1, it may be determined that the first call state is a single-talk state.

[0050] Figure 5 FIG. 1 is a flow chart showing a method for detecting a call status according to another embodiment of the present invention. As can be seen from the following description, Figure 5 The method 500 shown in FIG. 5 may be combined with the method described above. Figure 2 The method 200 is described as a specific embodiment, so the description of the method 200 in the foregoing text can also be applied to the following description of the method 500.

[0051] like Figure 5 As shown in , method 500 may include: at step S510, a first detector based on a logic gate may be used to detect a first call state during a call. Then, at step S520, a second detector based on a signal envelope may be used to detect a second call state during a call. In some embodiments, step S520 may include: in step S521 (shown in a dotted box), the detection function values ​​of the near-end signal envelope and the far-end signal envelope may be determined based on the ratio relationship between the near-end signal envelope and the far-end signal envelope in the current call state. It can be understood that the far-end signal envelope refers to the upper and lower lines formed by connecting the peak points of the far-end voice signal. Similarly, the near-end signal envelope refers to the upper and lower lines formed by connecting the peak points of the near-end voice signal. In one embodiment, the far-end signal envelope may be related to the absolute value of the far-end voice signal, and its formula may be as follows:

[0052] v x =αv x (n-1)+(1-α)x(n)(Formula 3)

[0053] Among them, v x represents the far-end signal envelope; x(n) represents the far-end speech signal; n represents the time variation; α is a forgetting factor, which represents the reaction speed of the second detector based on the signal envelope to the rapid change of the amplitude of the far-end speech signal, and in order to accurately estimate the energy of the far-end speech signal, the value of α should be slightly less than 1. As an example, α in the embodiment of the present invention can be 0.98. Similarly, the near-end signal envelope can also be related to the absolute value of the near-end speech signal, and its calculation formula can be as follows:

[0054] v s (n) = αv s (n-1)+(1-α)|s(n)| (Formula 4)

[0055] Among them, v s represents the near-end signal envelope; s(n) represents the near-end speech signal; n represents the time variation; α is the forgetting factor, which can be 0.98. In some embodiments, the ratio relationship may include a direct ratio between the near-end signal envelope and the far-end signal envelope. In other embodiments, the ratio relationship may include an indirect ratio between the near-end signal envelope and the far-end signal envelope. For example, in one embodiment, the detection function value may be represented by the following formula:

[0056]

[0057] Wherein, ξ(n) represents the detection function value determined according to the ratio relationship between the near-end signal envelope and the far-end signal envelope; v x (n) represents the far-end signal envelope; v s (n) represents the near-end signal envelope; γ represents the limiting parameter. In some embodiments, when both the near-end signal envelope and the far-end signal envelope are low, the limiting parameter can be used to limit the detection function value in the signal portion that only contains noise. In other embodiments, γ can be a very small number. As an example, in the embodiment of the present invention, γ can be 0.05. In other embodiments, when the influence of noise is not considered, γ can be set as needed, so that the detection function value can be determined based on the direct ratio between the near-end signal envelope and the far-end signal envelope.

[0058] It should be understood that the energy of the echo signal is usually lower than the energy of the far-end voice signal, while the energy of the near-end voice signal is significantly higher than the energy of the echo signal. According to the above formula 5, in one embodiment, when the double-talk state occurs during a call, the near-end voice signal exists, and the detection function value ξ(n) will increase significantly. In another embodiment, when the double-talk state during a call ends, the near-end voice signal does not exist, and the detection function value ξ(n) will decrease significantly. Therefore, it is possible to determine whether the near-end voice signal exists by the size of the detection function value, and then detect the call status during the call.

[0059] Further, at step S522 (shown by the dotted box), a dynamic threshold corresponding to the current call state may be determined according to the far-end signal envelope and the echo signal envelope in the current call state. In some embodiments, the echo signal envelope may be represented by the absolute value of the echo signal, and the echo signal envelope may be calculated as follows:

[0060] vy (n) = αv y (n-1)+(1-α)|y(n)|(Formula 6)

[0061] Among them, v y represents the echo signal envelope; y(n) represents the echo signal; n represents the time variation; α is the forgetting factor, which can be 0.98. In one embodiment, the dynamic threshold determined according to the far-end signal envelope and the echo signal envelope in the current call state can be expressed by the following formula:

[0062]

[0063] Where T(n) represents the dynamic threshold; v y (n) represents the echo signal envelope; n represents the time variation; β represents a margin parameter, which is used to leave some margin for detection error. In some embodiments, β can be a small positive value. It should be understood that using the echo signal envelope when calculating the dynamic threshold can more accurately detect the double talk state.

[0064] Next, at step S523 (shown by a dotted box), the second call state may be determined according to the detection function value and the dynamic threshold. In some embodiments, step S523 may include: in response to the detection function value being greater than the dynamic threshold, determining that the second call state is a double-talk state; in response to the detection function value being less than or equal to the dynamic threshold, determining that the second call state is a single-talk state.

[0065] In one embodiment, step S523 may include: setting a dynamic threshold range, wherein the dynamic threshold range may include an upper threshold and a lower threshold; in response to the dynamic threshold being within the dynamic threshold range, comparing the detection function value and the dynamic threshold to determine the second call state; in response to the dynamic threshold being greater than the upper threshold, comparing the detection function value and the upper threshold to determine the second call state; in response to the dynamic threshold being less than the lower threshold, comparing the detection function value and the lower threshold to determine the second call state. According to such a setting, it is helpful to avoid the influence of noise signals on the detection results, thereby helping to ensure the accuracy of the detection results.

[0066] Specifically, in another embodiment, the threshold T used for comparison with the detection function value can be determined according to the set dynamic threshold range, and can be expressed by the following formula:

[0067]

[0068] Among them, T min Indicates the lower threshold of the dynamic threshold; T maxrepresents the upper threshold of the dynamic threshold; T represents the threshold used to compare with the detection function value ξ(n); T(n) represents the dynamic threshold. In one embodiment, in response to the dynamic threshold T(n) being within the dynamic threshold range (T min and T max In response to the detection function value being greater than the dynamic threshold, determining that the second call state is in a double-talk state; in response to the detection function value being less than or equal to the dynamic threshold, determining that the second call state is in a single-talk state.

[0069] In another embodiment, in response to the dynamic threshold being greater than the upper threshold, the threshold T compared with the detection function value is determined to be the upper threshold, and further determining the second call state may include: in response to the detection function value being greater than the upper threshold, determining that the second call state is in a double-talk state; in response to the detection function value being less than or equal to the upper threshold, determining that the second call state is in a single-talk state. In yet another embodiment, in response to the dynamic threshold being less than the lower threshold, the threshold T compared with the detection function value is determined to be the lower threshold, and further determining the second call state may include: in response to the detection function value being greater than the lower threshold, determining that the second call state is in a double-talk state; in response to the detection function value being less than or equal to the lower threshold, determining that the second call state is in a single-talk state.

[0070] like Figure 5 As further shown in FIG. 5 , at step S530, the actual call state during the call may be determined according to the first call state and the second call state. Step S530 has been described above in conjunction with Figure 2 Step S206 has been described in detail, and will not be repeated here. Figure 6 An exemplary description is given.

[0071] Figure 6 2 is a flow chart showing a method for determining a second call state according to an embodiment of the present invention. Figure 6 As shown in , method 600 may include: at step S602, a detection function value ξ(n) may be determined according to a voice signal during a call, wherein the voice signal during a call may include a near-end voice signal, a far-end voice signal, and an echo signal. In one embodiment, a far-end signal envelope and a near-end signal envelope may be obtained by processing the near-end voice signal and the far-end voice signal, and then the detection function value ξ(n) may be determined according to the far-end signal envelope and the near-end signal envelope.

[0072] Next, at step S604, the threshold T may be determined according to the voice signal during the call. In one embodiment, the far-end voice signal and the echo signal in the voice signal during the call may be processed to obtain the far-end signal envelope and the echo signal envelope, and then the dynamic threshold T(n) may be determined. Further, for example, Figure 5 The method for setting the dynamic threshold range described in , determines the threshold T for comparison with the detection function value according to the dynamic threshold T(n). It should be understood that the voice signal during the call in step S604 and the voice signal during the call in step S602 represent the voice signals of the same time period and the same call segment, and thus the voice signals of the same time period and the same call segment can be used when the detection function value is compared with the threshold T, thereby ensuring the accuracy of the comparison result.

[0073] Then, the process can proceed to step S606, and it can be determined whether the detection function value ξ(n) is greater than the threshold T. If the detection function value is greater than the threshold T, it can be determined that the second call state is a double-talk state; if the detection function value is less than or equal to the threshold T, it can be determined that the second call state is a single-talk state.

[0074] Combined with the previous Figure 1-Figure 6 It can be seen from the detailed description that the method of the embodiment of the present invention can jointly determine the actual call state of double-talk detection during a call by a first call state determined by a first detector based on a logic gate and a second call state determined by a second detector based on a signal envelope. Specifically, in one embodiment, the first call state determined by the first detector based on the logic gate and the second call state determined by the second detector based on the signal envelope are both double-talk states, and the actual call state during the call is the double-talk state. In another embodiment, at least one of the first call state determined by the first detector based on the logic gate and the second call state determined by the second detector based on the signal envelope is a single-talk state, and the actual call state during the call is the single-talk state. By utilizing this joint method for detecting the call state, the missed detection rate of the detector can be reduced, and the computational complexity for detecting the call state can be made lower. For ease of understanding, the following will be combined with Figure 7 The specific process of using the joint method to detect the call status is described exemplarily.

[0075] Figure 7 is a flow chart showing a method for determining the actual call status according to an embodiment of the present invention. Figure 7As shown in , method 700 may include: at step S702, a first detector based on a logic gate may receive a voice signal during a call, and the voice signal may be detected so that a gate value signal may be obtained. In one embodiment, the voice signal during a call may include a far-end voice signal, a near-end voice signal, and an echo signal, and the gate value signal may include a first gate value signal and a second gate value signal. Next, at step S704, it may be determined whether the first gate value signal and the second gate value signal from the first detector are both 1. At step S706, a second detector based on a signal envelope may also receive a voice signal during a call, and the voice signal may be processed to determine a detection function value and a threshold value T. Then, at step S708, it may be determined whether the detection function value is greater than the threshold value T.

[0076] Further, the actual call state can be determined according to the judgment results of step S704 and step S708. In one embodiment, in response to the first threshold value signal and the second threshold value signal not being 1 at the same time and the detection function value being less than or equal to the threshold value T, the actual call state is determined to be a single-talk state. In another embodiment, in response to the first threshold value signal and the second threshold value signal not being 1 at the same time and the detection function value being greater than the threshold value T, the actual call state is determined to be a single-talk state. In yet another embodiment, in response to the first threshold value signal and the second threshold value signal being 1 at the same time and the detection function value being less than or equal to the threshold value T, the actual call state is determined to be a single-talk state. In yet another embodiment, in response to the first threshold value signal and the second threshold value signal being 1 at the same time and the detection function value being greater than the threshold value T, the actual call state is determined to be a double-talk state.

[0077] In the second aspect of the present invention, a device for detecting a call status is also provided, which may include: a logic gate detection module, which includes a first detector based on a logic gate and is configured to detect a first call status during a call using the first detector; a signal envelope detection module, which includes a second detector based on a signal envelope and is configured to detect a second call status during a call using the second detector; and a determination module, which is configured to determine the actual call status during a call based on the first call status and the second call status.

[0078] The device according to the embodiment of the present invention has been previously described in conjunction with Figure 1-Figure 7 The method shown has been described in detail and will not be repeated here.

[0079] In a third aspect of the present invention, a device for detecting a call status is provided, comprising: a processor; a memory storing program instructions for detecting a call status, and when the program instructions are executed by the processor, the above method steps are implemented. Figure 8 An exemplary description is given.

[0080] Figure 8 800 is a schematic block diagram of a system for detecting a call status device according to an embodiment of the present invention. The system 800 may include a device 801 for detecting a call status according to an embodiment of the present invention, as well as its peripheral devices and an external network, to implement the aforementioned combination Figure 1-Figure 7 The method for detecting the call status according to the embodiment of the present invention is described.

[0081] like Figure 8 As shown in , the device 801 for detecting the call status may include a CPU 8011, which may be a general-purpose CPU, a dedicated CPU or other execution units for information processing and program running. Further, the device 801 for detecting the call status may also include a large-capacity memory 8012 and a read-only memory ROM 8013, wherein the large-capacity memory 8012 may be configured to store various types of data. In the embodiment of the present invention, it may include the first threshold value signal, the second threshold value signal, the detection function value, the dynamic threshold value and / or the relevant data of various formulas used in the embodiment of the present invention. In addition, the ROM 8013 may be configured to store the initialization of each functional module in the device 801 for detecting the call status, the basic input / output driver of the system and the data required for booting the operating system.

[0082] Furthermore, the system 800 may also include other hardware platforms or components, such as the tensor processing unit (TPU) 8014, the image processing unit (GPU) 8015, the field programmable gate array (FPGA) 8016, and the machine learning unit (MLU) 8017. It is understood that although a variety of hardware platforms or components are shown in the system 800, they are merely exemplary and not restrictive, and those skilled in the art may add or remove corresponding hardware according to actual needs.

[0083] The device 801 for detecting the call status also includes a communication interface 8018, so that it can be connected to a local area network / wireless local area network (LAN / WLAN) 805 through the communication interface 8018, and then connected to a local server 806 or to the Internet ("Internet") 805 through the LAN / WLAN. Alternatively or additionally, the device 801 for detecting the call status of an embodiment of the present invention can also be directly connected to the Internet or a cellular network based on wireless communication technology through the communication interface 8018, such as wireless communication technology based on the third generation ("3G"), the fourth generation ("4G") or the fifth generation ("5G") . In some application scenarios, the device 801 for detecting the call status can also access a server 808 of an external network and a possible database 809 as needed to obtain various known data such as a far-end signal envelope, a near-end signal envelope and / or an echo signal envelope, and various data calculated by formulas can be stored remotely.

[0084] The peripheral devices for detecting the call status device 801 may include a display device 802, an input device 803, and a data transmission interface 804. In one embodiment, the display device 802 may include, for example, one or more speakers and / or one or more visual displays, which are configured to provide voice prompts and / or image video displays for the operation process or final results of the test device of the present invention. The input device 803 may include, for example, a keyboard, a mouse, a microphone, a gesture capture camera, or other input buttons or controls, which are configured to receive input or user instructions for detecting the call status. The data transmission interface 804 may include, for example, a serial interface, a parallel interface or a universal serial bus interface ("USB"), a small computer system interface ("SCSI"), a serial ATA, a FireWire ("FireWire"), a PCI Express, and a high-definition multimedia interface ("HDMI"), etc., which are configured for data transmission and interaction with other devices or systems. According to the solution of the present invention, the data transmission interface 804 can receive far-end voice signals, near-end voice signals, and / or echo signals from both ends of the call. The CPU 8011, the large capacity memory 8012, the read-only memory ROM 8013, the TPU 8014, the GPU 8015, the FPGA 8016, the MLU 8017 and the communication interface 8018 of the device for detecting the call status 801 of the present invention can be connected to each other through a bus 8019, and data interaction with peripheral devices can be achieved through the bus. In one embodiment, through the bus 8019, the CPU 8011 can control other hardware components and peripheral devices in the device for detecting the call status 801.

[0085] It should also be understood that any module, unit, component, server, computer, terminal or device that executes instructions of the present invention examples may include or otherwise access computer-readable media, such as storage media, computer storage media or data storage devices (removable) and / or non-removable) such as disks, optical disks or tapes. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules or other data.

[0086] The present invention also discloses a computer-readable storage medium, in which program instructions are stored, and the program instructions are suitable for being loaded and executed by a processor: using a first detector based on a logic gate to detect a first call state during a call; using a second detector based on a signal envelope to detect a second call state during a call; and determining the actual call state during a call according to the first call state and the second call state. Based on this, when the solution of the present invention is embodied in the form of a software product (computer-readable storage medium), the software product can be stored in a memory, which can include several instructions for a computer device (such as a personal computer, a server or a network device, etc.) to perform some or all of the steps of the method described in the embodiment of the present invention. The aforementioned memory may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a flash drive, a read-only memory ROM, a random access memory ("Random Access Memory", abbreviated as RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0087] It should be understood that the possible terms "first" or "second" etc. in the claims, specifications and drawings disclosed in the present invention are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specifications and claims disclosed in the present invention indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0088] It should also be understood that the terms used in the present invention specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present invention disclosure specification and claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the present invention disclosure specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0089] Although the embodiments of the present invention are as described above, the contents are only examples used to facilitate understanding of the present invention, and are not intended to limit the scope and application scenarios of the present invention. Any technician in the technical field of the present invention can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed by the present invention, but the scope of patent protection of the present invention shall still be based on the scope defined by the attached claims.

Claims

1. A method for detecting a call status, characterized in that: The method comprises: detecting a first call state during a call using a first detector based on a logic gate; Determining detection function values ​​of the near-end signal envelope and the far-end signal envelope according to a ratio relationship between the near-end signal envelope and the far-end signal envelope in a current call state; According to the far-end signal envelope and the echo signal envelope in the current call state, a dynamic threshold corresponding to the current call state is determined. The formula of the dynamic threshold is: Wherein, T(n) represents the dynamic threshold, and v y (n) represents the echo signal envelope, and the v x (n) represents the far-end signal envelope, n represents the time variation, β represents a margin parameter used to leave some margin for detection error, and γ represents a limit parameter; determining a second call state according to the detection function value and the dynamic threshold; and An actual call state during the call is determined according to the first call state and the second call state.

2. The method according to claim 1, characterized in that Detecting the first call state using a first detector based on a logic gate includes: Processing the far-end voice signals from both ends of the call using a far-end voice detector to obtain a first threshold value signal; Processing near-end speech signals from both ends of the call using a near-end speech detector to obtain a second threshold value signal; and A first talk state of the first detector is determined according to the first threshold signal and the second threshold signal.

3. The method according to claim 2, characterized in that Processing the far-end voice signal by using the far-end voice detector to obtain a first threshold value signal includes: Determining the first threshold signal based on a comparison result between the energy value of the far-end voice signal and a first preset value; Processing the near-end speech signal by using the near-end speech detector to obtain a second threshold value signal includes: Determining the second threshold signal based on a comparison result between the energy value of the near-end speech signal and a second preset value; The second preset value is greater than the first preset value.

4. The method according to claim 2, characterized in that: Determining the first call state of the first detector according to the first threshold signal and the second threshold signal includes: In response to the first threshold value signal and the second threshold value signal both being 1, determining that the first call state is a double talk state; In response to at least one of the first threshold value signal and the second threshold value signal being 0, the first call state is determined to be a single-talk state.

5. The method according to claim 1, characterized in that Determining the second call state according to the detection function value and the dynamic threshold comprises: Setting a dynamic threshold range, wherein the dynamic threshold range includes an upper threshold and a lower threshold; In response to the dynamic threshold being within the dynamic threshold range, comparing the detection function value and the dynamic threshold to determine the second call state; In response to the dynamic threshold being greater than the upper threshold, comparing the detection function value with the upper threshold to determine the second call state; In response to the dynamic threshold being less than the lower threshold, the detection function value is compared with the lower threshold to determine the second call state.

6. The method according to any one of claims 1 to 5, characterized in that: Determining the actual call state according to the first call state and the second call state includes: In response to the first call state and the second call state both being double-talk states, determining that the actual call state is a double-talk state; or In response to at least one of the first call state and the second call state being a single-talk state, determining that the actual call state is a single-talk state.

7. A device for detecting a call status, characterized in that: include: a logic gate detection module, comprising a first detector based on a logic gate and configured to detect a first call state during a call using the first detector; A signal envelope detection module, comprising determining detection function values ​​of the near-end signal envelope and the far-end signal envelope according to a ratio relationship between the near-end signal envelope and the far-end signal envelope in a current call state; According to the far-end signal envelope and the echo signal envelope in the current call state, a dynamic threshold corresponding to the current call state is determined. The formula of the dynamic threshold is: Wherein, T(n) represents the dynamic threshold, vy(n) represents the echo signal envelope, n represents the time variation, β represents a margin parameter for leaving some margin for detection error, and γ represents a limit parameter; Determining a second call state according to the detection function value and the dynamic threshold; as well as A determination module is configured to determine an actual call state during the call according to the first call state and the second call state.

8. A device for detecting call status, characterized in that: include: processor; A memory storing program instructions for detecting a call status, wherein when the program instructions are executed by the processor, the method steps according to any one of claims 1-6 are implemented.

9. A computer-readable storage medium storing computer program instructions for detecting a call status, wherein when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.