Mixing method, device, system and storage medium based on dynamic threshold

Through dynamic threshold and correlation detection methods, the problem of poor performance of traditional mixing algorithms under different environments and speaker changes is solved, and higher-quality voice signal mixing is achieved.

CN118692478BActive Publication Date: 2024-10-29SHENZHEN TONGCHUANG AUDIO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411156141.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-10-29
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

Due to the limitations of fixed parameter settings, traditional gain-sharing automatic mixing algorithms and threshold automatic mixing algorithms cannot flexibly adapt to changes in different environments and speakers, resulting in poor mixing effects.

Method used

A mixing method based on dynamic thresholds is proposed. The speech signal is processed in blocks, the RMS value of each block is calculated, the adaptive threshold is dynamically updated, and the speech signal to be mixed is screened out based on probability, combined with correlation detection and NOM attenuation. , achieving more flexible mixing processing.

Benefits of technology

This method can more flexibly adapt to changes in different environments and speakers, improve the quality and intelligibility of the speech signal, improve the mixing effect, and avoid the limitations of fixed parameter settings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692478B_ABST
    Figure CN118692478B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and in particular to a mixing method, device, system and storage medium based on dynamic threshold, comprising: in response to receiving voice signals of several channels, dividing the voice signal of each channel into blocks, and calculating the RMS value of each block of voice signals; taking the maximum value of all RMS values ​​as an adaptive threshold ThrA, and updating the adaptive threshold ThrA according to a preset frame shift; obtaining the probability p of taking a value of 1 in a discrete Boolean sequence generated by a voice signal processed by the updated adaptive threshold ThrA; and filtering out the voice signal to be mixed for mixing and synthesis and then outputting it according to the size relationship between the probability p and the preset threshold value Tp. It can be seen that the adaptive threshold ThrA is updated according to the preset frame shift state, and the voice signal to be mixed is filtered out by the dynamically updated adaptive threshold ThrA, so that the voice signal to be mixed is mixed and synthesized and then outputted, and the mixing effect is good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a sound mixing method based on dynamic threshold, terminal equipment, a sound mixing system and a computer-readable storage medium. Background Art

[0002] A multi-person voice system is a system that supports multiple people to communicate and exchange voice messages at the same time. This system is usually used in scenarios such as local meetings, telephone conferences, or online conferences, allowing multiple participants to communicate in real time at the same location or between different locations. Each voice signal in a multi-person voice system occupies a channel. By mixing the voice signals of multiple channels, the integration, enhancement, and optimization of the sound can be achieved, providing users with a better auditory experience and higher-quality audio output. Currently, common mixing algorithms include gain-sharing automatic mixing algorithms and threshold automatic mixing algorithms. Both algorithms are suitable for multi-person conference scenarios to improve the intelligibility and signal-to-noise ratio of the speaker's voice and avoid sound interference. However, traditional gain-sharing automatic mixing algorithms and threshold automatic mixing algorithms are usually mixed based on fixed parameter settings, such as mixing based on a fixed threshold trigger threshold. Although this fixed parameter mechanism can achieve mixing effects to a certain extent, due to the limitations of its fixed parameter settings, it may not be able to flexibly adapt to changes in different environments and speakers, resulting in poor mixing effects in complex environments. Summary of the invention

[0003] In view of this, the present invention proposes a mixing method, terminal device, mixing system and computer-readable storage medium based on dynamic threshold, aiming to solve the problem that traditional mixing algorithms cannot flexibly adapt to changes in different environments and speakers due to the limitations of fixed parameter settings, resulting in poor mixing effects.

[0004] In order to solve the above problems, the present invention adopts the following technical solutions:

[0005] In a first aspect, the present invention proposes a mixing method based on a dynamic threshold, comprising:

[0006] In response to receiving speech signals of a plurality of channels, the speech signal of each channel is divided into blocks according to a preset block rule, and an RMS value of each block of the speech signal is calculated;

[0007] Taking the maximum value of all RMS values ​​as the adaptive threshold ThrA, and updating the adaptive threshold ThrA according to the preset frame shift;

[0008] Obtain a discrete Boolean sequence generated by the speech signal processed by the updated adaptive threshold ThrA, and calculate the probability p of the discrete Boolean sequence taking a value of 1; according to the size relationship between the probability p and the preset threshold value Tp, filter out the speech signal to be mixed, and mix and synthesize the speech signal to be mixed and output it.

[0009] Further, the step of obtaining a discrete Boolean sequence generated by the speech signal processed by the updated adaptive threshold ThrA, and calculating a probability p of a value of 1 in the discrete Boolean sequence; and screening out the speech signal to be mixed according to a size relationship between the probability p and a preset threshold value Tp, includes:

[0010] Obtain a discrete Boolean sequence fi generated by the speech signal processed by the updated adaptive threshold ThrA, and calculate the probability p of the discrete Boolean sequence fi taking a value of 1; wherein,

[0011] The calculation formula of the discrete Boolean sequence fi is:

[0012] ;in, is the preset sensitivity;

[0013] The calculation formula of the probability p is: ;in, is the number of blocks;

[0014] Obtaining a magnitude relationship between the probability p and a preset threshold value Tp; if the probability p is greater than the preset threshold value Tp, determining that the corresponding voice signal has a high probability of containing voice information;

[0015] A correlation detection function is started for the speech signal with high probability, so as to select similar speech signals as the speech signals to be mixed.

[0016] Furthermore, the correlation detection function includes:

[0017] From the speech signals satisfying the condition that the probability p is greater than the preset threshold value Tp, the speech signal having the maximum instantaneous RMS value is selected as the reference signal, and the other speech signals are used as the compared signals;

[0018] According to the autocorrelation function and , and the cross-correlation function , calculate the normalized cross-correlation coefficient ;

[0019] The calculation formula is:

[0020]

[0021] in, is the value of the speech signal x at time point n, is the value of the speech signal x at time point (n+m), where m is the time delay;

[0022]

[0023] Among them, y is the value of the speech signal y at time point n, y is the value of the speech signal y at time point (n+m), where m is the time delay;

[0024]

[0025] Among them, x(n) is the value of the speech signal x at time point n, y(n+τ) is the value of the speech signal y at time point (n+τ), For time delay, is the reference signal, is the compared signal;

[0026]

[0027] If the normalized cross-correlation coefficient calculated is If the absolute value of belongs to the range of (0.3, 1], it is considered that there is similarity between the reference signal and the compared signal.

[0028] Further, after the reference signal and the compared signal are considered to be similar, the method further includes:

[0029] According to the calculation formula: calculate ; where wlen is the window length, is the value of the speech signal x at time point (n+m), is the value of the speech signal x at the time point (n+mk);

[0030] According to the The calculation result of is used to calculate the normalized short-time average amplitude difference NSTAMDF(n,k); wherein the calculation formula of the normalized short-time average amplitude difference NSTAMDF(n,k) is:

[0031]

[0032] Obtain the calculated The relationship between the value of and a preset approximate threshold; if the value is less than or equal to the preset approximate threshold, it is determined that the reference signal and the compared signal are similar.

[0033] Further, the step of chunking the voice signals of each channel according to a preset chunking rule and calculating the RMS value of each chunk of voice signals includes:

[0034] Chunk the voice signals of each channel according to a preset chunking rule, and calculate the RMS value Ti of each chunk of voice signals; wherein, the calculation formula of the RMS value Ti is:

[0035] ;

[0036] wherein, is the value of the i-th sampling point in the voice signal, N is the number of samplings of each chunk of voice signals, and fs is the sampling rate of each chunk of voice signals, ; the preset chunking rule is that each chunk of voice signals contains the values of the N samplings.

[0037] Further, the step of taking the maximum value among all the RMS values as the adaptive threshold ThrA and updating the adaptive threshold ThrA according to a preset frame shift includes:

[0038] Step S201: Obtain all the RMS values Ti and form a sequence of the RMS values ; wherein, , Ti is the RMS value of each chunk of voice signals;

[0039] Step S202: According to the calculation formula |T i -T i-1 |<S, judge whether the difference between the RMS values T i and T i-1 of adjacent chunks is less than the preset sensitivity S; if so, take the RMS value T i as a candidate value for the adaptive threshold ThrA;

[0040] Step S203: Take the maximum value among all the candidate values as the adaptive threshold ThrA; wherein, , T rms is the candidate value;

[0041] Step S204: Move the frame forward according to the preset frame shift and repeat the steps S201 to S203 to update the adaptive threshold ThrA.

[0042] Further, after screening out the voice signals to be mixed, before mixing and synthesizing the voice signals to be mixed and outputting, it further includes: performing NOM attenuation on the screened voice signals to be mixed;

[0043] After the voice signals of several channels are received, before the voice signals of each channel are divided into blocks according to a preset dividing rule, the method further includes: pre-processing and filtering the voice signals.

[0044] In a second aspect, the present invention further provides a terminal device, comprising:

[0045] a memory for storing program instructions; and

[0046] The processor is used to execute the program instructions to implement the steps of the mixing method based on dynamic threshold as described above.

[0047] In a third aspect, the present invention further proposes a mixing system, comprising the terminal device as described above and a plurality of acquisition terminals, each of the acquisition terminals establishing a communication connection with the terminal device;

[0048] The acquisition terminal is used to collect voice signals on site and send the collected voice signals to the terminal device.

[0049] In a fourth aspect, the present invention further proposes a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the mixing method based on dynamic threshold as described above are implemented.

[0050] Compared with the prior art, the beneficial effects of the present invention are: a mixing method based on dynamic threshold, a terminal device, a mixing system and a computer-readable storage medium, comprising: in response to receiving voice signals of several channels, dividing the voice signal of each channel into blocks according to a preset block rule, and calculating the RMS value of each block of the voice signal; taking the maximum value of all RMS values ​​as an adaptive threshold ThrA, and updating the adaptive threshold ThrA according to a preset frame shift; obtaining a discrete Boolean sequence generated by the voice signal processed by the updated adaptive threshold ThrA, and calculating the probability p of the discrete Boolean sequence taking a value of 1; according to the size relationship between the probability p and the preset threshold value Tp, filtering out the voice signal to be mixed, and outputting the mixed and synthesized voice signals to be mixed. It can be seen that the dynamic threshold-based mixing method, terminal device, mixing system and computer-readable storage medium can update the adaptive threshold ThrA according to the preset frame movement state, and filter out the voice signal to be mixed through the dynamically updated adaptive threshold ThrA, so as to mix and synthesize the voice signal to be mixed and output, avoiding the limitations of fixed parameter settings, and can more flexibly adapt to changes in different environments and speakers, thereby improving the quality and intelligibility of the voice signal and improving the mixing effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0052] Figure 1 It is a flow chart of a first embodiment of a mixing method based on dynamic threshold of the present invention;

[0053] Figure 2 It is a flow chart of a second embodiment of a mixing method based on dynamic threshold of the present invention;

[0054] Figure 3 It is a flow chart of a third embodiment of a mixing method based on dynamic threshold of the present invention;

[0055] Figure 4 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0058] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0059] See also Figure 1As shown, it is a flow chart of the first embodiment of the mixing method based on dynamic threshold of the present invention.

[0060] In this embodiment, the mixing method based on dynamic threshold includes:

[0061] Step S100: In response to receiving speech signals of several channels, the speech signal of each channel is divided into blocks according to a preset block rule, and the RMS value of each block of speech signal is calculated.

[0062] Specifically, after receiving speech signals from multiple channels, the speech signals of each channel are divided into different blocks. The purpose of block division is to process and analyze speech signals in a more fine-grained manner. For each block of speech signals, its root mean square (RMS) value is calculated. Calculating the root mean square value is a method of measuring signal energy, which is usually used to evaluate the strength or amplitude of the signal. By calculating the RMS value of each block of speech signals, information about the energy distribution of the speech signal can be obtained.

[0063] Specifically, in a multi-person voice (conference) system, one channel usually corresponds to one microphone. The voice signal collected by each microphone will be transmitted to an independent channel to distinguish the voice signals from different microphones. This setting helps to collect and separate voice signals in a multi-person conference system, and facilitates subsequent voice signal processing.

[0064] Specifically, common speech signal segmentation rules include: fixed-duration segmentation, which segments the speech signal into blocks according to a fixed time length, such as each block lasting 100 milliseconds or 200 milliseconds; energy threshold segmentation: segmenting the speech signal into blocks when the energy of the speech signal exceeds or falls below the set threshold according to the energy change of the speech signal; silence detection segmentation: segmenting the speech signal into different blocks by detecting silence segments and speech segments in the speech signal. The above are some common segmentation rules. In practical applications, more appropriate segmentation rules can be designed according to specific circumstances and needs.

[0065] Step S200: taking the maximum value of all RMS values ​​as the adaptive threshold ThrA, and updating the adaptive threshold ThrA according to a preset frame shift.

[0066] Specifically, by calculating the RMS value of each block and selecting the largest one from these RMS values ​​as the adaptive threshold ThrA, it is ensured that when implementing the dynamic threshold-based mixing method, the strongest signal part in the speech signal can be fully considered. Furthermore, the dynamic threshold-based mixing method updates the adaptive threshold ThrA according to a preset frame shift. Frame shift generally refers to the time interval between adjacent speech signal blocks. Dynamically adjusting and updating the adaptive threshold ThrA according to this frame shift can ensure that the dynamically updated adaptive threshold ThrA can adapt to changes in different time periods and speech signal characteristics.

[0067] Specifically, the adaptive threshold ThrA is a threshold that is dynamically adjusted according to the real-time situation of the system. In speech signal processing, the threshold is usually used to determine whether the speech signal exceeds a certain intensity or energy level. The characteristic of the adaptive threshold ThrA is that it can not only be used for the above judgment, but also can be dynamically adjusted according to the characteristics and changes of the real-time speech signal to adapt to different environments and signal conditions, ensuring that the speech signal can be effectively detected and processed in various situations.

[0068] Specifically, in the process of signal processing, frame shifting is usually applied to the scenario where a continuous signal is divided into blocks for processing. The choice of frame shifting has an important impact on the effect and performance of signal processing. Frame shifting generally includes two methods, one is backward frame shifting and the other is forward frame shifting. Among them, backward frame shifting means that the starting point of the next signal block is after the end of the previous signal block. Backward frame shifting can better capture the dynamic changes of the signal and is conducive to extracting the instantaneous characteristics of the signal. However, backward frame shifting may cause overlap between signal blocks, increase computational complexity, and may introduce redundant information. Forward frame shifting means that the starting point of the next signal block is before the end of the previous signal block. With the forward frame shifting method, there is no overlap between signal blocks, the calculation is relatively simple, and no redundant information is introduced. However, forward frame shifting may not be able to capture the instantaneous changes of the signal, resulting in the loss of some information when processing dynamic signals. In summary, backward frame shifting is suitable for scenarios where dynamic changes and instantaneous characteristics of signals need to be captured, but it may increase computational complexity and introduce redundant information. Forward frame shifting is suitable for simple calculations and avoiding information overlap, but may not be able to capture instantaneous changes in the signal. In actual applications, the frame shifting method can be determined based on specific application requirements and signal characteristics.

[0069] Step S300: Obtain a discrete Boolean sequence generated by the speech signal processed by the updated adaptive threshold ThrA, and calculate the probability p of the discrete Boolean sequence taking a value of 1; based on the relationship between the probability p and the preset threshold value Tp, filter out the speech signal to be mixed, and mix and synthesize the speech signal to be mixed and output it.

[0070] Specifically, a discrete Boolean sequence is a sequence of Boolean values ​​(True or False, usually represented by 1 or 0), in which each element can only take one of two values. In signal processing or data processing, discrete Boolean sequences are usually used to indicate whether a certain state or event occurs, such as describing whether the RMS value of a speech signal exceeds the sum of an adaptive threshold ThrA and a preset sensitivity S. If so, the value of the discrete Boolean sequence is 1. In this case, the probability p of a discrete Boolean sequence taking a value of 1 represents the proportion of events taking a value of 1 in the sequence. In other words, it represents the probability of a certain event (taking a value of 1) occurring in a discrete Boolean sequence. By calculating the probability p of taking a value of 1, we can understand the probability of an event occurring, so that we can make corresponding judgments or processing based on this probability.

[0071] Specifically, a discrete Boolean sequence converted from a speech signal processed by an updated adaptive threshold ThrA is obtained, wherein a value of 1 in the discrete Boolean sequence indicates that the RMS value of the speech signal of the block exceeds the sum of the updated adaptive threshold ThrA and the preset sensitivity S, and a value of 0 in the discrete Boolean sequence indicates that the RMS value of the speech signal of the block does not exceed the sum of the updated adaptive threshold ThrA and the preset sensitivity S. The adaptive threshold ThrA is used to perform binarization processing on each block of speech signals. Subsequently, the probability p of the value of 1 in the discrete Boolean sequence is calculated according to the calculation formula of the probability p, and the relationship between the probability p and the preset threshold value Tp is compared. If the probability p is greater than the preset threshold value Tp, it is considered that the speech signal contains speech information and is a speech signal to be mixed and synthesized. The screened speech signal containing speech information is mixed and synthesized, and the synthesized speech signal is finally output. This speech signal mixing method based on the adaptive threshold ThrA (threshold) can effectively identify and extract information blocks containing speech signals, thereby realizing accurate mixing and synthesis of speech signals. By dynamically adjusting the threshold ThrA and sensitivity S, it can also adapt to changes in speech signals in different environments, providing an effective solution for improving speech processing efficiency and quality.

[0072] Specifically, the preset threshold value Tp is used to determine whether the voice signal has reached the standard of containing voice information, thereby determining whether the corresponding voice signal contains voice information. A voice signal containing voice information is a voice signal containing the speaker's voice information, and this voice information is the object to be mixed, synthesized and output. In addition, the size of the preset threshold value Tp is not fixed. It can be set according to specific signal characteristics, application requirements and system performance, and through actual testing and adjustment, the most suitable threshold value Tp value is finally determined to meet the requirements of actual applications.

[0073] Compared with the prior art, the dynamic threshold-based mixing method of the embodiment of the present invention can update the adaptive threshold ThrA according to the preset frame movement state, and screen out the voice signal to be mixed through the dynamically updated adaptive threshold ThrA, so as to mix and synthesize the voice signal to be mixed and output, avoiding the limitations of fixed parameter settings, and can more flexibly adapt to changes in different environments and speakers, thereby improving the quality and intelligibility of the voice signal and improving the mixing effect.

[0074] See also Figure 2 As shown, it is a flow chart of the second embodiment of the mixing method based on dynamic threshold of the present invention.

[0075] Compared with other embodiments of the mixing method based on dynamic threshold, this embodiment describes in detail the preset block rule, the calculation process of the RMS value and the step of updating the adaptive threshold ThrA according to the preset frame shift, refines the screening process of the speech signal to be mixed, and adds the steps of correlation detection, preprocessing filtering and NOM attenuation of the speech signal.

[0076] In this embodiment, the mixing method based on dynamic threshold includes:

[0077] Step S101: In response to receiving speech signals of several channels.

[0078] Specifically, in a multi-person conference system, the collected voice signals may contain various sounds, including the speaker's voice information, other noise or environmental sounds. In this case, setting the adaptive threshold ThrA can help distinguish and process voice signals containing voice information and voice signals without voice information, improve the recognition and processing accuracy of voice signals, and better adapt to the characteristics of different sounds, so as to more accurately capture and process voice information.

[0079] Step S102: pre-process and filter the speech signal.

[0080] Specifically, the main purpose of preprocessing and filtering the speech signal is to remove the noise in the speech signal and enhance the characteristics of the speech signal so as to better perform subsequent analysis and processing. Common preprocessing and filtering methods for speech signals include: high-pass filtering, which can remove the low-frequency components in the speech signal and retain the high-frequency components, which helps to remove low-frequency noise and DC components; low-pass filtering, which can remove the high-frequency components in the speech signal and retain the low-frequency components, which helps to remove high-frequency noise and details; band-pass filtering, which can selectively retain the signal components within a certain frequency band, which helps to remove noise within a specific frequency range; and notch filtering, which can remove noise or interference signals of a specific frequency and retain other frequency components. The above filtering methods can be used alone or in combination. In actual application, the appropriate filtering method can be selected according to the specific signal characteristics and processing requirements. Through preprocessing filtering, the quality of the speech signal can be improved, noise interference can be reduced, and the analyzability and recognizability of the speech signal can be improved.

[0081] Step S103: Divide the speech signal of each channel into blocks according to a preset block division rule, and calculate the RMS value Ti of each block of the speech signal.

[0082] Wherein, the calculation formula of the RMS value Ti is:

[0083] ;

[0084] in, is the value of the i-th sampling point in the speech signal, N is the number of samples of each block of the speech signal, fs is the sampling rate of each block of the speech signal, ; The preset block rule is that each block of the speech signal contains the values ​​of the N sampling numbers.

[0085] Specifically, the RMS value is the square root of the average of the squares of the amplitudes of each sampling point of the signal. Because it takes into account the amplitude of the signal at all sampling points, rather than just the amplitude value at a certain moment, it can reflect the overall energy of the signal. By calculating the RMS value of a speech signal, the strength and energy characteristics of the speech signal can be accurately described. The strength and energy characteristics of a speech signal are an important indicator for determining whether a speech signal contains speech information. When the energy of a speech signal is large, the possibility that the speech signal contains speech information is high. When the energy of a speech signal is small, the possibility that the speech signal contains speech information is low.

[0086] Step S201: Obtain all RMS values ​​Ti and form a sequence of the RMS values

[0087] in, , Ti is the RMS value of each piece of the voice signal.

[0088] Specifically, by establishing a sequence of the RMS values , the energy distribution characteristics of the voice signal at different times or frequencies can be obtained, so as to better understand the overall energy distribution of the voice signal. Establishing a sequence of RMS values can also help observe the change trend of the energy of the voice signal, identify the energy peaks or energy fluctuations in the voice signal, so as to better understand the characteristics and change rules of the voice signal. This is of great significance for voice signal processing, such as statistical feature extraction, frequency domain analysis, time domain analysis, etc., which can reveal more information of the voice signal and help to more deeply understand the characteristics and meanings of the voice signal.

[0089] Step S202: According to the calculation formula |T i - T i-1 | < S, judge whether the difference between the RMS values T i and T i-1 of adjacent blocks is less than the preset sensitivity S; if so, take the RMS value T i as a candidate value for the adaptive threshold ThrA.

[0090] Specifically, for a voice signal with a drastic energy change, a larger sensitivity S may be required, while for a voice signal with a relatively gentle energy change, a smaller sensitivity S can be selected. In addition, in some applications, if more sensitive detection of the energy change of the voice signal is required, a smaller sensitivity S may need to be selected; while in some applications, the requirements for the energy change of the voice signal are not so strict, and a larger sensitivity S can be selected. Moreover, the numerical value of the preset sensitivity S will also be affected by the system performance. Therefore, the numerical value of the preset sensitivity S is mainly selected according to the specific voice signal characteristics, application requirements and system performance, and through actual testing and adjustment, the most suitable preset sensitivity S is finally determined to meet the requirements of actual applications.

[0091] Specifically, the adaptive threshold ThrA is dynamically selected according to the difference between the RMS values ​​of adjacent blocks. When the RMS value of the adjacent blocks changes slightly, that is, the difference is less than the preset sensitivity S, the RMS value of the current block can be used as a candidate value for the adaptive threshold ThrA. With such a design, the adaptive threshold ThrA can be dynamically selected according to the change of the RMS value of the adjacent blocks, so that the adaptive threshold ThrA can better adapt to the change of the speech signal and improve the applicability and robustness of the algorithm. In addition, by pre-setting the sensitivity S, the selection condition of the adaptive threshold ThrA can also be controlled, so that the algorithm has certain flexibility and adaptability to different speech signal characteristics and noise levels. At the same time, by considering the difference between the RMS values ​​of adjacent blocks, the misjudgment caused by the change of the speech signal can also be reduced, and the accuracy and stability of the algorithm can be improved.

[0092] Step S203: taking the maximum value among all the candidate values ​​as the adaptive threshold ThrA.

[0093] in, , T rms is the candidate value.

[0094] Specifically, taking the maximum value among all candidate values ​​as the adaptive threshold ThrA can ensure that the adaptive threshold ThrA covers all possible situations and avoid insufficient extraction of speech signal features or misjudgment due to the adaptive threshold ThrA being too small. The maximum value among all candidate values ​​usually represents the maximum fluctuation range or peak value in the speech signal. Selecting the maximum value among the candidate values ​​as the adaptive threshold ThrA is a simple and intuitive method that is easy to implement and understand. It can also make the adaptive threshold ThrA more stable and reliable, and better adapt to changes in speech signals and the influence of noise.

[0095] Step S204: moving the frame forward according to the preset frame shift, and repeating the steps S201 to S203 to update the adaptive threshold ThrA.

[0096] Specifically, speech signals usually have a certain temporal locality, that is, signals at adjacent moments have a certain correlation. By selecting to move the frame forward, the continuity of the signal in time can be retained, which is conducive to capturing the dynamic characteristics of the signal. Moreover, speech signals are usually non-stationary signals. By moving the frame forward, the signal can be divided into multiple shorter time periods, so that the statistical characteristics of the signal in each frame are relatively stable, which is conducive to the analysis and processing of the signal. The method of moving the frame forward can also simplify the calculation process of signal processing, reduce the amount of calculation, improve processing efficiency, and also facilitate real-time processing and streaming processing. Therefore, the method of moving the frame forward according to the preset frame shift in this embodiment is a method that is more suitable for speech signal processing.

[0097] Specifically, by moving the frame forward according to the preset frame shift and repeatedly updating the adaptive threshold ThrA, the dynamic adaptability of the adaptive threshold ThrA can be achieved. As the speech signal changes and the frames move, the adaptive threshold ThrA is continuously updated, which can better adapt to the dynamic characteristics of the speech signal, respond to the changes of the speech signal in a timely manner, and maintain the algorithm's accurate extraction of signal features, thereby optimizing the effect of speech signal processing, reducing misjudgment and error processing, and improving the reliability of the algorithm.

[0098] Step S301: obtaining a discrete Boolean sequence fi generated by a speech signal processed by the updated adaptive threshold ThrA, and calculating a probability p of a value of 1 in the discrete Boolean sequence fi.

[0099] Wherein, the calculation formula of the discrete Boolean sequence fi is:

[0100] ;in, is the preset sensitivity;

[0101] The calculation formula of the probability p is: ;in, is the number of blocks;

[0102] Specifically, the characteristics of the current block are determined based on the relationship between the RMS value of the current block and the adaptive threshold ThrA. When the RMS value of the current block exceeds the sum of the adaptive threshold ThrA and the preset sensitivity S, it can be considered that the energy or amplitude of the current block is large and may contain important voice information, so the corresponding discrete Boolean sequence value is set to 1. Conversely, if the RMS value of the current block does not reach the sum of the adaptive threshold ThrA and the preset sensitivity S, the corresponding discrete Boolean sequence value is set to 0, indicating that the block may not contain important voice information. Therefore, by analyzing and determining the size of the RMS value of the current block, a discrete Boolean sequence can be generated based on the energy or amplitude characteristics of the voice signal for subsequent voice signal processing and analysis.

[0103] Specifically, a block with a value of 1 can be regarded as an event, and the number of blocks in all blocks is the total number of events. By calculating the ratio of the number of blocks with a value of 1 to the total number of blocks, the probability p of a value of 1 can be obtained. By calculating the probability p, the distribution of blocks with a value of 1 in a discrete Boolean sequence in all blocks can be understood, which helps to analyze the characteristics and structure of the speech signal. Such probability calculation can provide an important reference for subsequent speech signal processing and analysis, and help understand the nature and characteristics of the speech signal. In this embodiment, the larger the probability p, the higher the possibility that the speech signal contains speech information; the smaller the probability p, the lower the possibility that the speech signal contains speech information.

[0104] Step S302: obtaining the magnitude relationship between the probability p and a preset threshold value Tp; if the probability p is greater than the preset threshold value Tp, it is determined that the corresponding speech signal has a high possibility of containing speech information.

[0105] Specifically, the preset threshold value Tp is used to measure whether the size of the probability p reaches the standard of containing voice information in the voice signal. By comparing the probability p with the preset threshold value Tp, the possibility of the voice signal containing voice information can be determined. When the probability p is greater than the preset threshold value Tp, it means that the proportion of blocks with a value of 1 in all blocks is high, that is, the possibility of containing voice information in the voice signal is high. In this case, it can be considered that the voice information in the voice signal is more significant, and the voice signal should contain the speaker's voice information, and this voice information is the object to be mixed and output.

[0106] Step S303: starting a correlation detection function for the speech signal with a high probability, so as to screen out similar speech signals as speech signals to be mixed.

[0107] Specifically, the main purpose of starting the correlation detection function for the voice signal with high probability is to further screen out the approximate voice signal with high correlation with the target voice signal, so as to improve the quality and accuracy of the voice signal. Although the voice signal with high probability can be directly mixed and synthesized and output, starting the correlation detection function can further optimize the processing process of the voice signal. Because correlation detection can help identify and screen out the approximate voice signal that is most similar to the target voice signal, thereby improving the accuracy and quality of the output after mixing and synthesis. Through correlation detection, some interference signals that are irrelevant to the target voice signal can also be excluded to ensure that the output voice signal is clearer and more accurate. In addition, correlation detection can help adjust the mixing parameters and processing methods so that the voice output after mixing and synthesis is more in line with user needs and expectations. By starting the correlation detection function for the voice signal with high probability, a more refined and professional mixing effect can be achieved, improving user experience and satisfaction.

[0108] Step S304: performing NOM attenuation on the screened speech signals to be mixed.

[0109] Specifically, before the selected similar voice signals are mixed and synthesized for output, the voice signals need to be attenuated. This is done to balance the volume of different voice signals to ensure the sound quality and clarity after mixing. By attenuating the voice signals, the volume levels of each voice signal are adjusted to make them more balanced during the mixing process, avoiding the situation where some signals are too prominent or the sound is unbalanced after mixing. In addition, attenuating the voice signals can also help control the overall volume of the mixed output to avoid the sound being too noisy or too quiet.

[0110] Specifically, this embodiment uses the NOM (Number of Open Mics) attenuation technology to attenuate the voice signal. The NOM attenuation technology can maintain the gain stability and low noise effect consistent with a single microphone when multiple microphones are used at the same time. This technology is commonly used in multi-person conference systems, voice recognition systems or other scenarios where multiple microphones need to be used simultaneously. The main function of the NOM attenuation technology is to automatically adjust the gain among multiple turned-on microphones to maintain the stability and clarity of the overall signal. By attenuating or adjusting the gain of different microphone signals, interference and imbalance between signals can be avoided, ensuring that the quality of the voice signal after mixing and synthesis is excellent.

[0111] Step S305: The voice signals to be mixed are mixed and synthesized and then outputted.

[0112] Specifically, mixing and synthesizing the voice signal and then outputting it is the process of mixing and synthesizing multiple voice signals together to produce a single mixed voice output. When mixing and synthesizing approximate voice signals, first, prepare the approximate voice signal that needs to be mixed and synthesized, and then determine the parameters of the mixing synthesis, including the mixing ratio, volume balance, audio effects, etc. These parameters can be adjusted according to actual needs and effects. The prepared approximate voice signal is input into the mixing processor or software, and the mixing processor will mix, synthesize and output different voice signals according to the set parameters. This output can be a single audio file or a real-time audio stream, depending on the specific settings and application scenarios of the mixing processor.

[0113] The dynamic threshold-based mixing method of this embodiment applies the dynamic threshold (or dynamic threshold) and correlation detection to a multi-person conference system, which can accurately find the speaker's speech content and output it after mixing and synthesis. In a multi-person conference system, multiple people speak at the same time, and their voices are mixed together and collected by different acquisition terminals. Through dynamic threshold and correlation detection, the voice signals of different speakers can be identified and separated, and their speech content can be accurately captured and processed, thereby improving the quality and effect of the overall sound processing.

[0114] See also Figure 3As shown, it is a flow chart of the third embodiment of the mixing method based on dynamic threshold of the present invention.

[0115] Compared with other embodiments of the mixing method based on dynamic threshold, this embodiment describes the correlation detection step in detail.

[0116] In this embodiment, the correlation detection function includes:

[0117] Step S3031: start the correlation detection function for the speech signal with high possibility.

[0118] Step S3032: From the speech signals satisfying the condition that the probability p is greater than the preset threshold value Tp, select the speech signal with the maximum instantaneous RMS value as the reference signal, and the other speech signals as the compared signals.

[0119] Step S3033: According to the autocorrelation function and , and the cross-correlation function , calculate the normalized cross-correlation coefficient .

[0120] The calculation formula is:

[0121]

[0122] in, is the value of the speech signal x at time point n, is the value of the speech signal x at time point (n+m), where m is the time delay;

[0123]

[0124] Among them, y is the value of the speech signal y at time point n, y is the value of the speech signal y at time point (n+m), where m is the time delay;

[0125]

[0126] Among them, x(n) is the value of the speech signal x at time point n, y(n+τ) is the value of the speech signal y at time point (n+τ), For time delay, is the reference signal, is the compared signal;

[0127]

[0128] Step S3034: If the normalized correlation coefficient calculated If the absolute value of belongs to the range of (0.3, 1], it is considered that there is similarity between the reference signal and the compared signal.

[0129] Specifically, steps S3032 to S3034 are steps of performing normalized cross-correlation on the screened speech signals with high probability. The normalized cross-correlation method is a signal processing technology used to measure the similarity or correlation between two signals. The normalized cross-correlation method first calculates the cross-correlation function of the two signals (the cross-correlation function describes the relationship between the two signals at different time points and can be used to measure the degree of similarity between them), and then eliminates the influence of the signal amplitude through normalization processing (the purpose of normalization is to eliminate the influence of the signal amplitude and make the measurement of correlation more objective), so that the measurement of correlation is more universal and comparable. The correlation between the two signals can be measured more accurately through the normalized cross-correlation function.

[0130] Step S3035: According to The calculation formula calculate , according to the The calculation results are used to calculate the normalized short-time average amplitude difference NSTAMDF(n,k).

[0131] in, The calculation formula is:

[0132] Among them, wlen is the window length, is the value of the speech signal x at time point (n+m), is the value of the speech signal x at the time point (n+mk);

[0133] The calculation formula of the normalized short-time average amplitude difference NSTAMDF(n,k) is:

[0134]

[0135] Specifically, Fn(k) represents the average amplitude difference of the speech signal x at time point n within the window length wlen. The specific calculation method is to take the absolute value of the amplitude difference between adjacent samples of the speech signal x in the window and then sum them. NSTAMDF(n,k) represents the normalized short-time average amplitude difference at time point n, that is, Fn(k) is divided by the sum of the signal amplitudes in the window. The specific calculation method is to divide Fn(k) by the sum of the absolute values ​​of the signal samples in the window. By calculating the NSTAMDF(n,k) function, the instantaneous amplitude change can be detected in the speech signal, and through normalization processing, the influence of the signal amplitude can be eliminated to better reflect the characteristics of the amplitude change.

[0136] Step S3036: Obtain the calculated The relationship between the value of and a preset approximate threshold; if the value is less than or equal to the preset approximate threshold, it is determined that the reference signal and the compared signal are similar.

[0137] Specifically, if the calculated value of NSTAMDF(n,k) is less than or equal to the preset approximation threshold, that is, NSTAMDF(n,k)≤Threshold, it means that the amplitude difference between the reference signal and the compared signal is small, and they can be considered to be approximate or similar. This means that the difference in amplitude between them is not large and they may have similar characteristics or patterns. Conversely, if the value of NSTAMDF(n,k) is greater than the preset approximation threshold, that is, NSTAMDF(n,k)>Threshold, it means that the amplitude difference between the reference signal and the compared signal is large, and they can be considered not to be approximate or similar, and there may be large differences or changes, which are not suitable to be considered as approximate or similar signals.

[0138] Specifically, the preset approximation threshold is usually set to a value less than 1, which is used to judge the similarity or approximation between speech signals. The preset approximation threshold can be set according to specific application scenarios and requirements to measure the degree of difference between speech signals. Specifically, the preset approximation threshold of this embodiment is set to 0.5. When the calculated normalized short-time average amplitude difference (NSTAMDF(n,k)) value is less than or equal to 0.5, it can be considered that the amplitude difference between the reference signal and the compared signal is small, and they are approximate or similar speech signals.

[0139] In summary, only speech signals that meet the screening conditions (i.e., the conditions that the speech signal has a high probability of containing speech information) can enter the correlation detection. The correlation detection uses the above two methods to make a comprehensive judgment on the speech signal. Specifically, the normalized cross-correlation judgment is first performed. If the absolute value is between 0 and 1 and is greater than 0.3, it is considered that the two speech signals have a certain degree of similarity. Then the normalized short-time average amplitude difference is determined to finally determine whether the two speech signals are similar signals.

[0140] Specifically, in addition to the two correlation detection methods of normalized cross-correlation and normalized short-time average amplitude difference, there are some other correlation detection methods, such as: Phase Cross-Correlation method: It is a method to measure the relationship between signal phases, usually used to analyze the phase difference and synchronization between signals; Frequency Domain Correlation method: It is a method to measure the similarity and correlation of signals in frequency by converting signals to the frequency domain for analysis; Time-Frequency Correlation method: It combines time domain and frequency domain information to analyze the correlation and changes of signals at different times and frequencies; and Nonlinear Correlation Analysis method: It is a method used to study the relationship between signals in nonlinear systems, which can reveal the complex nonlinear interactions between signals. It can be seen that these methods have their own advantages and applicability. In different fields and application scenarios, appropriate methods can be selected according to specific circumstances to analyze the correlation between signals. However, in view of the fact that the mixing method based on dynamic threshold in this embodiment needs to process time domain data (speech signal is a sound signal that changes with time. In the time domain, the speech signal can be expressed as a waveform that changes with time, where time is the independent variable and the amplitude of the sound is the dependent variable. Through time domain analysis, the amplitude change of the speech signal at different time points can be observed, so as to process and analyze the speech signal), the two correlation detection methods of normalized cross correlation and normalized short-time average amplitude difference are most suitable. Because these two methods are widely used in fields such as speech signal processing and audio recognition, they can effectively process time domain data and extract relevant features.

[0141] Specifically, the normalized cross-correlation focuses on the time delay correlation of the signal, while the normalized short-time average amplitude difference focuses on the amplitude difference of the signal. The two methods can be used in combination to complement each other and improve the accuracy of judging the similarity of speech signals. By combining two different correlation detection methods, the resistance to noise and interference can be improved. Normalized cross-correlation and normalized short-time average amplitude difference analyze speech signals in different aspects, which can reduce the sensitivity to specific types of interference and make approximate judgments in different scenarios, with good versatility and applicability. It can be seen that the combination of the two correlation detection methods, normalized cross-correlation and normalized short-time average amplitude difference, can improve the analysis ability of speech signals and enhance the accuracy and stability of judgment.

[0142] The dynamic threshold-based mixing method of this embodiment is a new type of dynamic threshold-based automatic mixing method, which involves two aspects: noise dynamic threshold detection and correlation detection. It combines the detection of dynamic adaptive threshold and signal correlation, and effectively improves the signal-to-noise ratio of the speech signal output after mixing synthesis and enhances its clarity.

[0143] The following is an embodiment of the terminal device provided by the present invention. The embodiment of the terminal device and the embodiment of the mixing method based on dynamic threshold belong to the same concept, and the details not described in detail in the embodiment of the terminal device can refer to the embodiment of the mixing method based on dynamic threshold.

[0144] See also Figure 4 , which is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention.

[0145] In this embodiment, a terminal device includes:

[0146] Memory 1005, used to store program instructions; and

[0147] The processor 1001 is configured to execute the program instructions to implement the steps of the mixing method based on dynamic threshold as described above.

[0148] The terminal device of the embodiment of the present invention can be a computing device such as a desktop computer, a notebook, a palm computer, and a server. Figure 4 As shown, the terminal device may include: a processor 1001 (such as a CPU), a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0149] Those skilled in the art will understand that Figure 4 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0150] like Figure 4As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.

[0151] exist Figure 4 In the terminal device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the above-mentioned dynamic threshold-based mixing method are implemented.

[0152] The following is an embodiment of the audio mixing system provided by the present invention. The embodiment of the audio mixing system and the embodiment of the audio mixing method and terminal device based on dynamic thresholds belong to the same concept, and the details not described in detail in the embodiment of the audio mixing system can refer to the embodiment of the audio mixing method and terminal device based on dynamic thresholds.

[0153] In this embodiment, a mixing system includes the terminal device as described above and a plurality of acquisition terminals, each of the acquisition terminals establishing a communication connection with the terminal device;

[0154] The acquisition terminal is used to collect voice signals on site and send the collected voice signals to the terminal device.

[0155] Specifically, the acquisition terminal is a microphone. A microphone is a device that converts sound into electrical signals, also known as a microphone. It is a sensor that can convert sound waves into electrical signals, so that sound signals can be transmitted, recorded or processed. Microphones are widely used in various fields, including audio recording, communication, audio processing, speech recognition, etc. According to different working principles and uses, microphones can be divided into many types, such as dynamic microphones, condenser microphones, microphone arrays, etc. Different types of microphones differ in sensitivity, frequency response, and directivity, and are suitable for different application scenarios. In general, a microphone is a device that converts sound into electrical signals, and is an indispensable and important part of voice signal acquisition and processing. The microphone sends the collected voice signal to the terminal device for subsequent voice signal processing and mixing synthesis and output.

[0156] Specifically, each of the acquisition terminals establishes a communication connection with the terminal device, and the communication connection includes: circuit connection (circuit connection is a communication method that directly connects two devices through a physical circuit. In a circuit connection, the communication signal is transmitted through a dedicated circuit, usually with stable transmission quality and low latency. Circuit connection is suitable for communication scenarios that require high stability and real-time performance, such as telephone communication, etc.), wired connection (a communication method that connects two devices through physical lines such as cables or cables. Wired connection usually has a higher transmission speed and stability, and is suitable for communication scenarios that require large bandwidth and reliability, such as Ethernet connection, USB connection, etc.), wireless connection ( A communication method that transmits data through wireless signals. Common wireless communication methods include Wi-Fi, Bluetooth, infrared, etc. Wireless connection is characterized by high flexibility and convenience, and is suitable for mobile devices or scenarios that require flexible layout), optical fiber connection (using optical fiber to transmit data, with the advantages of high-speed transmission and strong anti-interference ability, suitable for scenarios that require large bandwidth and long-distance transmission), infrared connection (transmitting data through infrared, usually used for communication between short-range devices, such as remote controls, infrared data transmission, etc.), and Bluetooth connection (Bluetooth is a short-range wireless communication technology, suitable for data transmission between low-power devices, such as Bluetooth headsets, smart bracelets, etc.). These different communication connection methods have their own advantages and applicability in different scenarios and requirements. You can choose the appropriate connection method according to the specific situation to establish a communication connection between the acquisition terminal and the terminal device.

[0157] The following is an embodiment of the computer-readable storage medium provided by the present invention. The embodiment of the computer-readable storage medium and the embodiment of the mixing method based on dynamic threshold, terminal device and mixing system described above belong to the same concept, and the details not described in detail in the embodiment of the computer-readable storage medium can refer to the embodiment of the mixing method based on dynamic threshold, terminal device and mixing system described above.

[0158] In this embodiment, a computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the mixing method based on dynamic threshold as described above are implemented.

[0159] The terminal device, mixing system and computer-readable storage medium of the present invention can implement the steps of the above-mentioned mixing method based on dynamic threshold, and therefore have at least all the beneficial effects brought by the technical solution of the embodiment of the above-mentioned mixing method based on dynamic threshold, which will not be described one by one here.

[0160] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields are included in the scope of protection of the present invention.

[0161] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0162] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0163] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A mixing method based on dynamic threshold, characterized in that: include: In response to receiving speech signals of a plurality of channels, the speech signal of each channel is divided into blocks according to a preset block rule, and an RMS value of each block of the speech signal is calculated; Taking the maximum value of all RMS values ​​as the adaptive threshold ThrA, and updating the adaptive threshold ThrA according to the preset frame shift; Obtain a discrete Boolean sequence generated by the speech signal processed by the updated adaptive threshold ThrA, and calculate the probability p of the discrete Boolean sequence taking a value of 1; according to the relationship between the probability p and the preset threshold value Tp, filter out the speech signal to be mixed, and mix and synthesize the speech signal to be mixed and output it; The step of obtaining a discrete Boolean sequence generated by the speech signal processed by the updated adaptive threshold ThrA and calculating the probability p of the discrete Boolean sequence taking a value of 1; and filtering out the speech signal to be mixed according to the relationship between the probability p and the preset threshold value Tp includes: Obtain a discrete Boolean sequence fi generated by the speech signal processed by the updated adaptive threshold ThrA, and calculate the probability p of the discrete Boolean sequence fi taking a value of 1; wherein, The calculation formula of the discrete Boolean sequence fi is: ;in, is the preset sensitivity; The calculation formula of the probability p is: ;in, is the number of blocks; Obtaining a magnitude relationship between the probability p and a preset threshold value Tp; if the probability p is greater than the preset threshold value Tp, determining that the corresponding voice signal has a high probability of containing voice information; Starting a correlation detection function for the speech signal with high probability, so as to screen out similar speech signals as speech signals to be mixed; Wherein, the correlation detection function includes: From the speech signals satisfying the condition that the probability p is greater than the preset threshold value Tp, the speech signal having the maximum instantaneous RMS value is selected as the reference signal, and the other speech signals are used as the compared signals; According to the autocorrelation function and , and the cross-correlation function , calculate the normalized cross-correlation coefficient ; The calculation formula is: in, is the value of the speech signal x at time point n, is the value of the speech signal x at time point (n+m), where m is the time delay; Among them, y is the value of the speech signal y at time point n, y is the value of the speech signal y at time point (n+m), where m is the time delay; Among them, x(n) is the value of the speech signal x at time point n, y(n+τ) is the value of the speech signal y at time point (n+τ), For time delay, is the reference signal, is the compared signal; If the normalized cross-correlation coefficient calculated is If the absolute value of is in the range of (0.3, 1], it is considered that the reference signal and the compared signal are similar; After the reference signal and the compared signal are considered to be similar, the method further includes: According to the calculation formula: calculate ; where wlen is the window length, is the value of the speech signal x at time point (n+m), is the value of the speech signal x at the time point (n+mk); According to the The calculation result of is used to calculate the normalized short-time average amplitude difference NSTAMDF(n,k); wherein the calculation formula of the normalized short-time average amplitude difference NSTAMDF(n,k) is: Obtain the calculated The relationship between the value of and a preset approximate threshold; if the value is less than or equal to the preset approximate threshold, it is determined that the reference signal and the compared signal are similar.

2. The mixing method based on dynamic threshold according to claim 1, characterized in that: The method of dividing the speech signal of each channel into blocks according to a preset block rule and calculating the RMS value of each block of the speech signal includes: The speech signal of each channel is divided into blocks according to a preset block rule, and the RMS value Ti of each block of the speech signal is calculated; wherein the calculation formula of the RMS value Ti is: ; in, is the value of the i-th sampling point in the speech signal, N is the number of samples of each block of the speech signal, fs is the sampling rate of each block of the speech signal, ; The preset block rule is that each block of the speech signal contains the values ​​of the N sampling numbers.

3. The mixing method based on dynamic threshold according to claim 2, characterized in that: The taking the maximum value of all RMS values ​​as the adaptive threshold ThrA, and updating the adaptive threshold ThrA according to the preset frame shift, includes: Step S201: Obtain all RMS values ​​Ti and form a sequence of the RMS values ;in, , Ti is the RMS value of each block of the speech signal; Step S202: According to the calculation formula |T i -T i-1 |<S, determine whether the difference between the RMS values T i and T i-1 is less than the preset sensitivity S; if so, use the RMS value T i as a candidate value for the adaptive threshold ThrA; Step S203: taking the maximum value among all the candidate values ​​as the adaptive threshold ThrA; wherein, , T rms is the candidate value; Step S204: moving the frame forward according to the preset frame shift, and repeating the steps S201 to S203 to update the adaptive threshold ThrA.

4. The mixing method based on dynamic threshold according to claim 1, characterized in that: After the voice signals to be mixed are screened out, before the voice signals to be mixed are mixed and synthesized and then outputted, the method further includes: performing NOM attenuation on the screened voice signals to be mixed; After the voice signals of several channels are received in response, before the voice signals of each channel are divided into blocks according to a preset dividing rule, the method further includes: pre-processing and filtering the voice signals.

5. A terminal device, characterized in that: include: A memory for storing program instructions; as well as A processor is used to execute the program instructions to implement the steps of the dynamic threshold-based mixing method as described in any one of claims 1 to 4.

6. A mixing system, characterized in that: It comprises the terminal device as claimed in claim 5 and a plurality of acquisition terminals, each of the acquisition terminals establishing a communication connection with the terminal device; The acquisition terminal is used to collect voice signals on site and send the collected voice signals to the terminal device.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the mixing method based on dynamic threshold as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Hidden Markov model-based vehicle sound identification method

    CN101980336A

  • Subband algorithm with threshold for robust broadband active noise control system

    CN105679303A