Sound signal reverberation processing method and communication equipment
By playing the test sound in the call device and adjusting the neural network model, the problem of insufficient adaptability of the call device in different scenarios is solved, more effective reverberation processing is achieved, and the call quality is improved.
Patent Information
- Application Number
- CN202310206541.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-06
AI Technical Summary
Existing call equipment has weak adaptability in different usage scenarios and is difficult to effectively handle reverberation problems of different severity.
The original test sound is played into the environmental space through the loudspeaker, the spatial test sound is collected, its energy intensity is calculated, and the neural network model is adjusted according to the energy intensity to achieve dereverberation processing that matches the environmental space.
It improves the adaptability of call equipment to different usage scenarios, can more accurately judge the severity of reverberation and perform appropriate de-reverberation processing to improve call quality.
Smart Images

Figure CN118612646A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sound processing, and in particular to a reverberation processing method of a sound signal and a communication device. Background Art
[0002] Communication equipment is a commonly used device in life, but when the communication equipment is used in a small space (such as a closed meeting room), reverberation is easily generated.
[0003] Currently, some communication devices have added a de-reverberation function. However, since different usage scenarios (such as different conference rooms) produce different severity levels of reverberation, current communication devices have a weak ability to adapt to different usage scenarios. Summary of the invention
[0004] The present application mainly provides a reverberation processing method and a communication device for sound signals, which can improve the problem that the communication device in the prior art has weak adaptability to different usage scenarios.
[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a reverberation processing method for a sound signal, including playing an original test sound to an ambient space through a loudspeaker; obtaining a spatial test sound collected by a microphone in the ambient space; the spatial test sound is the sound generated in the ambient space when the original test sound is played in the ambient space; calculating the energy intensity of the spatial test sound, and adjusting the neural network model according to the energy intensity, so that the adjusted neural network model is used for dereverberation processing that matches the ambient space.
[0006] To solve the above technical problems, another technical solution adopted in the present application is: to provide a calling device, including: a microphone, a speaker, a memory and a processor, the microphone is used to collect sound; the speaker is used to emit sound; the memory is used to store program instructions; the processor is coupled to the microphone, the speaker and the memory, and is used to control the speaker to emit sound and / or receive the sound collected by the microphone; the processor is used to process program instructions to implement a reverberation processing method for sound signals.
[0007] The beneficial effect of the present application is that, different from the related art, the original test sound is played to the environment space through the speaker, and then the spatial test sound composed of the original test sound and the echo of the original test sound in the environment space is collected, so that the severity of the reverberation generated in the special environment can be roughly judged. In addition, the corresponding neural network model can be adjusted for different severity levels of reverberation, thereby improving the adaptability of the call device to different usage scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 It is a structural schematic diagram of an embodiment of a call device of the present application;
[0009] Figure 2 It is a flowchart of an embodiment of a method for reverberation processing of a sound signal of the present application;
[0010] Figure 3 It is a schematic diagram of processing an actual sound signal in an embodiment of the reverberation processing method of a sound signal of the present application;
[0011] Figure 4 It is a training principle diagram of a neural network model of an embodiment of the reverberation processing method of a sound signal of the present application;
[0012] Figure 5 It is a schematic diagram of generating target speech and training speech based on clean speech in an embodiment of the reverberation processing method of sound signals of the present application. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0014] The communication device 10 is a common device used for communication in daily life and can be widely used in various scenarios, such as conference rooms, construction sites, or airplanes.
[0015] After long-term research, the inventor of the present application found that the call device 10 is prone to reverberation when used in a relatively closed space, which in turn leads to reduced call quality and makes it difficult for the other party to hear clearly what we are saying. In the related art, some devices use dereverberation algorithms to reduce the negative impact of reverberation to a certain extent. However, different scenes generally bring different degrees of reverberation. In addition, different meeting rooms have different wall materials, sizes, layouts, and sealing levels, which can lead to different degrees of reverberation. In order to solve the above problems, the present application proposes the following embodiments.
[0016] The following embodiment of the communication device 10 of the present application describes an exemplary structure of the communication device 10 .
[0017] See also Figure 1The call device 10 generally includes: a microphone 12, a speaker 11, a memory 13 and a processor 14. The microphone 12 is used to collect sound. The speaker 11 is used to emit sound. The memory 13 is used to store program instructions. The processor 14 is coupled to the microphone 12, the speaker 11 and the memory 13, and is used to control the speaker 11 to emit sound and / or receive the sound collected by the microphone 12. In addition, the processor 14 can be used to process the program instructions to implement the reverberation processing method of the sound signal.
[0018] The processor may also be referred to as a CPU (Central Processing Unit). The processor may be an integrated circuit chip having the ability to process signals. The processor may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a graphics processing unit (GPU), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor (MCU) or the processor may also be any conventional processor, etc.
[0019] For the reverberation processing method of the sound signal in the above embodiment, reference may be made to the reverberation processing method of the sound signal described in the following embodiment of the reverberation processing method of the sound signal of the present application.
[0020] See also Figure 2 The reverberation processing method of the sound signal may include: step S100: playing the original test sound to the ambient space through the speaker 11; step S200: acquiring the spatial test sound collected by the microphone 12 in the ambient space; step S300: calculating the energy intensity of the spatial test sound, and adjusting the neural network model according to the energy intensity, so that the adjusted neural network model is used for dereverberation processing that matches the ambient space.
[0021] The spatial test sound is the sound generated in the ambient space when the original test sound is played in the ambient space. In other words, the spatial test sound may be a combination of the original test sound and the echo of the original test sound in the ambient space. For example, the spatial test sound may include the original test sound, the primary reflected sound of the original test sound in the ambient space, and the secondary reflected sound.
[0022] By playing the original test sound to the ambient space through the loudspeaker 11 and then collecting the spatial test sound composed of the original test sound and the echo of the original test sound in the ambient space, the severity of the reverberation generated in the special environment can be roughly determined.
[0023] Optionally, the severity of reverberation in the environment space can be described by the reverberation time. The reverberation time T60 can be used to evaluate the degree of reverberation in the environment space. The reverberation time T60 refers to the time when the sound energy density is reduced to 1 / 10 of the original value. 6 The time required is equivalent to the time it takes for the sound pressure level to decay by 60 decibels.
[0024] In addition, the corresponding neural network model can be adjusted for different severity levels of reverberation, thereby improving the adaptability of the call device 10 to different usage scenarios. In layman's terms, different dereverberation algorithms (that is, different neural network models) can be selected according to the degree of reverberation generated in the environmental space. In other words, a variety of different neural network models can be used to perform signal dereverberation processing for different environmental spaces. In this case, the usability of the call device 10 for different usage scenarios can be effectively improved.
[0025] Generally, in step S100, the original test sound may be a preset audio. In this case, it is helpful to judge the influence of the spatial environment on the original test sound according to the spatial test sound.
[0026] Optionally, in step S100, it may include: playing the original test sound to the ambient space at the maximum volume through the speaker 11. In this case, the influence of the spatial environment on the original test sound can be amplified to a certain extent, which is conducive to accurately judging which neural network is more suitable for de-reverberation processing in the ambient space. Of course, in other examples, the speaker 11 may not play the original test sound at the maximum volume. In addition, the speaker 11 may also play the original test sound at a fixed volume.
[0027] Optionally, in step S300, adjusting the neural network model according to the energy intensity may include: determining a processing parameter that matches the energy intensity in at least two groups of processing parameters corresponding to the neural network model, setting the neural network model with the matching processing parameters, and then adjusting the neural network model. That is, neural network models with different processing parameters (described later) can be used for dereverberation processing in different environmental spaces.
[0028] Optionally, the basic operators of the neural network model may include at least one of: convolutional neural networks (CNN), temporal convolutional networks (TCN), and fully connected layers (FC).
[0029] Wherein, determining the processing parameter matching the energy intensity in at least two groups of processing parameters corresponding to the neural network model may include: determining the reverberation time matching the energy intensity in a preset association relationship; and determining the processing parameter matching the reverberation time in at least two groups of processing parameters. Wherein, the preset association relationship is used to characterize the corresponding relationship between the energy intensity and the reverberation time.
[0030] Determining the processing parameters matching the reverberation time from among the at least two groups of processing parameters may include: determining a time range where the reverberation time is located, and determining the processing parameters matching the time range from among the at least two groups of processing parameters.
[0031] Optionally, in the preset association relationship, the matching relationship between energy intensity and reverberation time can be: when the energy intensity is -49dB (decibel), the reverberation time T60 can be 1.8s (seconds); when the energy intensity is -52dB, the reverberation time T60 can be 1.2s; when the energy intensity is -56dB, the reverberation time T60 can be 0.6s. In this case, when the original test sound is fixed, the corresponding reverberation time can be determined according to the energy intensity of the spatial test sound, and then the corresponding neural network model can be selected for dereverberation processing. The matching relationship between the reverberation time and the processing parameters will be described later.
[0032] Optionally, in step S300, calculating the energy intensity of the spatial test sound may include: performing Fourier transform (FFT) on the spatial test sound to obtain a corresponding frequency domain signal, and obtaining the energy intensity of a preset frequency band in the frequency domain signal as the energy intensity of the spatial test sound.
[0033] Optionally, when calculating the energy intensity of the spatial test sound, the energy intensity of a key frequency band may be obtained, and the key frequency band may be 150 Hz to 400 Hz.
[0034] See also Figure 3 In step S300, after adjusting the neural network model according to the energy intensity, it can include: acquiring the actual sound signal collected by the microphone 12 in the ambient space, and performing dereverberation processing on the actual sound signal through the adjusted neural network model to generate a target sound signal.
[0035] Among them, dereverberation processing of the actual sound signal through the adjusted neural network model may include: performing Fourier transform (FFT) on the actual sound signal to generate a corresponding frequency domain signal; dereverberation processing on the frequency domain signal through the neural network model to generate a target frequency domain signal; performing inverse Fourier transform (IFFT) on the target frequency domain signal to generate a target sound signal.
[0036] In this case, when the call device 10 is placed in a certain environmental space and the corresponding neural network model is configured, when the user makes a remote call in the environmental space, the microphone 12 of the call device 10 can receive the sound emitted by the user and the echo of the sound, and perform dereverberation processing to output a sound that is as clean as possible (that is, closer to the sound emitted by the user).
[0037] See also Figure 4 Before adjusting the neural network model according to the energy intensity, the method may include: obtaining a training voice and a target voice matching the training voice; and performing model training through the training voice and the target voice to generate a neural network model. The training voice is used to simulate the input of the neural network model; and the target voice is used to simulate the output of the neural network model.
[0038] See also Figure 5 , obtaining a training speech and a target speech matching the training speech may include: obtaining a clean speech, and convolving the clean speech with a room impulse response (RIR) to obtain the training speech; convolving the clean speech with a weighted room impulse response (weighted RIR) to obtain at least two reference speeches; calculating the similarity between the at least two reference speeches and the clean speech, and selecting the reference speech with the highest similarity to the clean speech as the target speech. The weighted room impulse response is the product of the room impulse response and the weight coefficient.
[0039] The weight coefficient is related to the processing parameters and can be determined by the corresponding processing parameters. The neural network model is trained and processed by at least two sets of processing parameters respectively, so that the neural network model after training is preset with weight coefficients corresponding to at least two sets of processing parameters. Different processing parameters correspond to different energy intensities. The processing parameters are used to set the weight coefficients of the neural network model to adjust the neural network model.
[0040] Alternatively, the weight coefficient can be obtained by the following formula:
[0041]
[0042] in, and t 0 To process the parameters, set and t 0 The weight coefficient can be changed. That is, and t 0 Can be modified according to requirements. In addition, t 0 The direct sound time needs to be greater than RIR. 6log(10) is also a constant that can be modified.
[0043] In some examples, you can set different and t 0 To obtain different weighted room impulse responses. The clean speech is convolved with two or more weighted room impulse (weighted RIR) responses to obtain at least two reference speech. In this case, the target speech that is closer to the clean speech can be selected by calculating the similarity between the at least two reference speech and the clean speech.
[0044] Specifically, the processing parameters of the at least two weighted room impulse responses may include the following four groups: is 0.3s, t 0 0.005s; is 0.7s, t 0 0.005s; is 1s, t 0 0.005s; is 1s, t 0 In this case, four different reference voices can be obtained, and by comparing the similarities between the four reference voices and the clean voice, the target voice closest to the clean voice can be obtained, and more suitable processing parameters and weight coefficients can be obtained at the same time.
[0045] In some examples, in the preset association relationship, the matching relationship between the weight coefficient and the processing parameter may be: when the reverberation time T60 is not greater than 0.6 s, is 0.3s, t 0 0.005s; when the reverberation time T60 is greater than 0.6s and not greater than 1.2s, is 0.3s, t 0 0.1s; when the reverberation time T60 is greater than 1.2s and not greater than 1.8s, is 1s, t 0 It is 0.3s.
[0046] In this case, the communication device 10 can first calculate the energy intensity of the spatial test sound, and obtain the matching reverberation time T60 according to the energy intensity. Subsequently, the processing parameters, weight coefficients and corresponding neural network models suitable for the environmental space can be determined according to the reverberation time T60.
[0047] In addition, for the method of generating the room impulse response (RIR), reference can be made to the relevant records in JB Allen and DABerkley, "Image method for efficiently simulating small-room acoustics," Journal Acoustic Society of America, 65(4), April 1979, p 943.
[0048] In addition, considering that the call device 10 may have errors in acquiring the energy intensity of the spatial test sound or the actual sound signal, during the training process, the range of the reverberation time T60 may be greater than the range of the reverberation time T60 in the final application (in the preset association relationship).
[0049] Specifically, in the training process of the neural network model corresponding to the reverberation time T60 not greater than 0.6s and the corresponding room impulse response (RIR), the reverberation time can be set to 0.1-0.8s; in the training process of the neural network model corresponding to the reverberation time T60 greater than 0.6s and not greater than 1.2s and the corresponding room impulse response (RIR), the reverberation time can be set to 0.5s-1.4s; in the training process of the neural network model corresponding to the reverberation time T60 greater than 1.2s and not greater than 1.8s, the reverberation time can be set to 0.8-2s.
[0050] In other words, in the training process of the neural network model corresponding to the reverberation time T60 greater than 0.6s and not greater than 1.2s and the corresponding room impulse response (RIR), some training data with T60 not greater than 0.6s can be added. In the training process of the neural network model corresponding to the reverberation time T60 greater than 1.2s and not greater than 1.8s, some training data with T60 not greater than 0.6s and T60 greater than 0.6s and not greater than 1.2s can be added.
[0051] Optionally, the neural network model is generated by performing model training on the training speech and the target speech, and further includes: performing noise processing on the training speech, and performing model training on the training speech and the target speech after the noise processing to generate the neural network model. Optionally, the training speech can be subjected to noise processing according to the SNR. In this case, the generated neural network model can perform both dereverberation processing and noise reduction processing on the actual sound signal.
[0052] In addition, in the process of convolving the clean speech with the room impulse response (RIR) to obtain the training speech and convolving the clean speech with the weighted room impulse response to obtain the target speech, gain processing is also performed to obtain the training speech and the target speech with different intensities. The gain processing may be multiplying the training speech and the target speech by a random gain coefficient greater than 0 and less than 1.
[0053] Since the intensity of the received user's voice may be different during the use of the calling device 10, the use of training speech and target speech with different intensities can effectively simulate the real scene, and thus obtain a neural network model that can be applied to different scenes.
[0054] In summary, by playing the original test sound to the ambient space through the speaker 11, and then collecting the spatial test sound composed of the original test sound and the echo of the original test sound in the ambient space, the severity of the reverberation generated in the special environment can be roughly determined. In addition, the corresponding neural network model can be adjusted for different severities of the reverberation generated, thereby improving the adaptability of the call device 10 to different usage scenarios.
[0055] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for processing reverberation of a sound signal, characterized in that: include: Play the original test sound into the ambient space through the loudspeaker; Acquire the spatial test sound collected by the microphone in the environmental space; The spatial test sound is the sound generated in the environmental space when the original test sound is played in the environmental space; The energy intensity of the spatial test sound is calculated, and the neural network model is adjusted according to the energy intensity, so that the adjusted neural network model is used to perform dereverberation processing that matches the environmental space.
2. The method for processing the reverberation of a sound signal according to claim 1, characterized in that: The step of adjusting the neural network model according to the energy intensity comprises: The processing parameters matching the energy intensity are determined from at least two groups of processing parameters corresponding to the neural network model, and the neural network model is set with the matching processing parameters, thereby adjusting the neural network model.
3. The method for processing the reverberation of a sound signal according to claim 2, characterized in that: The step of determining the processing parameter that matches the energy intensity from at least two groups of processing parameters corresponding to the neural network model includes: Determining a reverberation time matching the energy intensity in a preset association relationship; the preset association relationship is used to characterize the corresponding relationship between the energy intensity and the reverberation time; The processing parameter matching the reverberation time is determined from among the at least two sets of processing parameters.
4. The method for reverberation processing of sound signals according to claim 3, characterized in that: Determining the processing parameter matching the reverberation time from among the at least two groups of processing parameters comprises: The time range of the reverberation time is determined, and the processing parameters matching the time range are determined from the at least two groups of processing parameters.
5. The method for processing the reverberation of a sound signal according to any one of claims 1 to 4, characterized in that: The calculating the energy intensity of the spatial test sound comprises: Perform Fourier transform on the spatial test sound to obtain a corresponding frequency domain signal, and obtain energy intensity of a preset frequency band in the frequency domain signal to serve as the energy intensity of the spatial test sound.
6. The method for processing the reverberation of a sound signal according to any one of claims 1 to 4, characterized in that: Playing the original test sound into the environment space through the loudspeaker includes: The original test sound is played into the ambient space through the speaker at a maximum volume.
7. The method for reverberation processing of sound signals according to claim 1, characterized in that: After adjusting the neural network model according to the energy intensity, the method further comprises: An actual sound signal collected by the microphone in the ambient space is acquired, and a dereverberation process is performed on the actual sound signal through the adjusted neural network model to generate a target sound signal.
8. The method for reverberation processing of sound signals according to claim 7, characterized in that: The dereverberation processing of the actual sound signal by using the adjusted neural network model includes: Performing Fourier transform on the actual sound signal to generate a corresponding frequency domain signal; Performing dereverberation processing on the frequency domain signal through the neural network model to generate a target frequency domain signal; An inverse Fourier transform is performed on the target frequency domain signal to generate the target sound signal.
9. The method for reverberation processing of sound signals according to claim 1, characterized in that: Before adjusting the neural network model according to the energy intensity, the method includes: Acquire a training voice and a target voice matching the training voice; Model training is performed using the training speech and the target speech to generate the neural network model; wherein the training speech is used to simulate the input of the neural network model, and the target speech is used to simulate the output of the neural network model.
10. The method for reverberation processing of sound signals according to claim 9, characterized in that: The acquiring of the training speech and the target speech matching the training speech comprises: Acquire clean speech, and perform convolution calculation on the clean speech and the room impulse response to obtain the training speech; Convolving the clean speech with a weighted room impulse response to obtain at least two reference speech sounds; wherein the weighted room impulse response is the product of the room impulse response and a weight coefficient; The similarity between the at least two reference speech and the clean speech is calculated, and the reference speech with the highest similarity to the clean speech is selected as the target speech.
11. The method for reverberation processing of sound signals according to claim 10, characterized in that: The weight coefficient is related to the processing parameters and can be determined by the corresponding processing parameters; the neural network model is trained and processed by at least two sets of processing parameters respectively, so that the neural network model after training is preset with the weight coefficients corresponding to the at least two sets of processing parameters one by one; different processing parameters correspond to different energy intensities; the processing parameters are used to set the weight coefficient of the neural network model to adjust the neural network model.
12. The method for reverberation processing of sound signals according to claim 9, characterized in that: The performing model training by using the training speech and the target speech to generate the neural network model also includes: The training speech is subjected to noise processing, and model training is performed using the noise-processed training speech and the target speech to generate the neural network model.
13. A communication device, characterized in that: include: Microphone, used to collect sound; A speaker for producing sound; Memory, used to store program instructions, A processor, coupled to the microphone, the speaker and the memory, for controlling the speaker to make sound and / or receiving sound collected by the microphone; the processor is used to process the program instructions to implement the reverberation processing method of the sound signal according to any one of claims 1 to 12.
Citation Information
Cited By
Audio control method and device, electronic equipment and storage medium
CN119450301A
