Delay Measurement Method and Apparatus, Electronic Device, and Storage Medium
By playing preset audio signals in the sound reinforcement system and performing voice algorithm processing, the sound reinforcement delay is automatically measured, which solves the problem of low delay measurement accuracy in the prior art, and achieves more efficient and accurate delay measurement.
Patent Information
- Application Number
- CN202210757836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2042-06-29
Smart Images

Figure CN115278499B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio processing, and particularly relates to a delay measurement method and device for a sound reinforcement system, an electronic device, and a storage medium. Background Art
[0002] Whether in the professional audio field or the consumer audio field, an increasing number of digital audio processors play an increasingly important role in improving the playback sound quality of audio systems and presenting various listening effects. The traditional means of improving the playback sound quality by improving the materials, structure, and technology of audio equipment itself are restricted by many objective factors. With the wide application of digital signal processing technology in the audio field and the cost advantage of DSP development, compensating and regulating the sound quality of audio systems through signal processing methods has become an inevitable trend.
[0003] In an audio system, especially a sound reinforcement system, extremely high requirements are placed on delay. The lower the sound reinforcement delay, the more comfortable the human ear feels. Therefore, in products, low delay in the audio system has always been one of the main indicators, so reducing delay in the system is a goal. With the development of the times, the expansion of classrooms and halls, the increase in the number of audiences, and the progress of electronic technology, it is inevitable to use a sound reinforcement system similar to Figure 1 the one shown in the figure. The sound reinforcement system scenario includes a mixing console and a sound source part (such as a wired microphone, a wireless microphone, a video conferencing device, a computer, etc.) signal-connected to the mixing console, a signal processing and signal amplification part (such as an equalizer, a power amplifier, a processor, etc.), and a sound reinforcement part (such as a speaker).
[0004] A sound reinforcement system is usually a system that amplifies the voice of a speaker in real time for the listener. In this scenario, the pickup and the speaker are in the same sound field, and the speaker and the listener are usually in the same acoustic environment. A successful sound reinforcement system must have sufficient loudness (sufficient sound gain) and sufficient clarity (low percentage of loss of speech consonant clarity), and be able to evenly cover the audience while not covering areas without an audience. Since the speaker and the listener are usually in the same acoustic environment, the listener will hear the voice of the speaker and also the voice of the speaker played in real time by the speaker. If the time interval between these two voices is relatively long, the listener will hear the two voices overlapping, resulting in unclear listening.
[0005] The Haas effect proves that when two sound sources emit exactly the same sound, the binaural listening experience is different depending on the time delay between one sound source and the other. When the time delay between one sound source and the other is less than 35 ms, the human ear can only sense the presence of the leading sound source, the sound image is located towards the position of the leading sound source, and the presence of the lagging sound source cannot be felt; when the time delay is between 30 ms and 50 ms, the human ear can distinguish the presence of the two sound sources, but the sound image is still located in the direction of the leading sound source; when the time delay is greater than 50 ms, the human ear can sense the simultaneous presence of the two sound sources, and the sound images are respectively located at the positions of the two sound sources themselves.
[0006] Therefore, when performing local sound reinforcement, it is necessary to strictly control the time delay between the voice of the speaker and the voice of the speaker played in real time by the speaker. To ensure the installation effect, it can only be used after complex debugging by a professional audio engineer after installation is completed, which will consume a lot of time and energy, and it is difficult to maintain consistency in the effect after debugging due to differences in human hearing.
[0007] Existing methods for estimating local sound reinforcement delay have low accuracy. And generally, manual processing is required, which is time-consuming and laborious. Inviting a professional institution is time-consuming and costly. Summary of the Invention
[0008] To solve the above technical problems, the present invention provides a time delay measurement method and device, an electronic device, and a storage medium for a sound reinforcement system, which can improve the accuracy and operability of time delay measurement in the sound reinforcement system, avoid errors caused by manual intervention, save costs, and improve the debugging efficiency.
[0009] On the one hand, the present invention provides a time delay measurement method for a sound reinforcement system, which includes:
[0010] Using a speaker to play a preset first audio signal for the first time, and using a pickup to pick up a second audio signal and processing the second audio signal through a voice algorithm into a third audio signal;
[0011] Obtaining an adjustment parameter of the sound reinforcement system according to the signal processing of the second audio signal and the third audio signal;
[0012] Using the speaker to play the first audio signal for the second time, and using the adjustment parameter to adjust the obtained third audio signal in real time;
[0013] Obtaining the sound reinforcement delay of the sound reinforcement system according to the self-excitation oscillation information of the third audio signal.
[0014] Optionally, obtaining an adjustment parameter of the sound reinforcement system according to the signal processing of the second audio signal and the third audio signal includes:
[0015] Perform speech algorithm processing on the aforementioned second audio signal to obtain a first intermediate signal;
[0016] Perform gain and / or amplitude adjustment on the second audio signal to the first intermediate signal to obtain the aforementioned adjustment parameter,
[0017] The aforementioned first intermediate signal satisfies the self-oscillation condition of the sound reinforcement system to generate a third audio signal with self-oscillation.
[0018] Optionally, obtaining the sound reinforcement delay of the sound reinforcement system according to the self-oscillation information of the third audio signal includes:
[0019] Perform real-time speech algorithm processing on the third audio signal using the aforementioned adjustment parameter to obtain a second intermediate signal, and the second intermediate signal includes multiple signal segments;
[0020] Determine the sound reinforcement delay of the sound reinforcement system according to the second intermediate signal.
[0021] Optionally, the aforementioned speech algorithm processing includes adding a fixed delay to the obtained audio signal.
[0022] Optionally, determining the sound reinforcement delay of the sound reinforcement system according to the second intermediate signal includes:
[0023] Obtain multiple signal segments in the aforementioned second intermediate signal;
[0024] Calculate the true delay between adjacent signal segments;
[0025] Subtract the fixed delay from the true delay to obtain the system delay; and
[0026] Obtain the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delay between multiple adjacent signal segments.
[0027] Optionally, obtaining the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delay between multiple adjacent signal segments includes:
[0028] Use the statistical mode of the system delay between multiple adjacent signal segments as the sound reinforcement delay of the sound reinforcement system.
[0029] Optionally, calculating the true delay between adjacent signal segments includes:
[0030] Detect whether the true delay between multiple signal segments meets a preset threshold:
[0031] If not, stop the operation of the sound reinforcement system;
[0032] If so, continue to execute the operations of the delay measurement method.
[0033] On the other hand, the present invention also provides a delay measurement device for a sound reinforcement system, which includes:
[0034] An acquisition module, which is respectively connected to a loudspeaker and a pickup in the sound reinforcement system, plays a preset first audio signal through the loudspeaker, and picks up a second audio signal by using the pickup;
[0035] A processing module, which is used to process the second audio signal into a third audio signal through a voice algorithm;
[0036] A gain control module, which is used to obtain an adjustment parameter of the sound reinforcement system according to signal processing of the second audio signal and the third audio signal, and use the adjustment parameter to adjust the obtained third audio signal in real time;
[0037] A calculation module, which is used to detect and calculate the self-oscillation information of the third audio signal to obtain the sound reinforcement delay of the sound reinforcement system.
[0038] Optionally, the aforementioned delay measurement device further includes:
[0039] An input module, which is used to set a fixed delay input,
[0040] And, the aforementioned processing module is further used to execute:
[0041] Perform voice algorithm processing on the second audio signal to obtain a first intermediate signal; and
[0042] Use the adjustment parameter to perform voice algorithm processing on the third audio signal to obtain a second intermediate signal, wherein the first intermediate signal can meet the self-oscillation condition of the sound reinforcement system to generate a self-oscillating third audio signal, and the second intermediate signal includes multiple signal segments.
[0043] Optionally, when the aforementioned calculation module detects and calculates the self-oscillation information of the third audio signal to obtain the sound reinforcement delay of the sound reinforcement system, it is used to execute:
[0044] Obtain multiple signal segments in the aforementioned second intermediate signal;
[0045] Calculate the true delay between adjacent signal segments;
[0046] Subtract the fixed delay from the true delay to correspondingly obtain the system delay; and
[0047] Obtain the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delay between multiple adjacent signal segments.
[0048] On the other hand, the present invention also provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the delay measurement method for a sound reinforcement system as described above.
[0049] On the other hand, the present invention also provides a readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and run by a processor, the delay measurement method for a sound reinforcement system as described above is executed.
[0050] The beneficial effects of the present invention are as follows: A delay measurement method and device, an electronic device, and a storage medium for a sound reinforcement system provided by the present invention can achieve:
[0051] 1. The sound amplification delay of the system can be automatically tested without manual intervention, with high intelligence and automation, and is efficient and fast;
[0052] 2. The delay measurement method and device for the sound reinforcement system utilize the sound reinforcement system to play the same sequence twice, and through algorithm optimization and adjustment, the sound reinforcement system is made to meet the self-excitation oscillation condition to generate a self-excitation oscillation signal, which is effectively utilized to avoid interference;
[0053] 3. And based on the self-excitation oscillation signal generated by the sound reinforcement system, the system delay between adjacent voice segments is calculated, and the statistical mode is selected from multiple system delays as the applied sound amplification delay of the system, which improves the reliability of the algorithm and makes the calculation and measurement of the sound amplification delay more accurate;
[0054] 4. Using an algorithm to modify the amplitude of the echo signal will not change the microphone input volume or the speaker volume, so there is no modification to the sound reinforcement system parameters, and the operation is convenient.
[0055] It should be understood that the methods according to the present invention may include any combination of the aspects and features described herein. That is to say, the methods according to the present invention are not limited to the combinations of the aspects and features specifically described herein, but also include any combination of the provided aspects and features.
[0056] Details of one or more embodiments of the present invention are set forth in the following drawings and description. Other features and advantages of the present invention will become apparent from the text, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Through the following description of the embodiments of the present invention with reference to the drawings, the above and other objects, features, and advantages of the present invention will become clearer.
[0058] Figure 1 The structural schematic diagram of a sound reinforcement system in the prior art is shown;
[0059] Figure 2 Schematic flowchart of a delay measurement method for a sound reinforcement system provided by an embodiment of the present disclosure;
[0060] Figure 3 Show Figure 2 Model application diagram of the shown delay measurement method in an embodiment;
[0061] Figure 4 Show the application of Figure 2 Model schematic diagram of the sound reinforcement delay obtained by the shown delay measurement method;
[0062] Figure 5a Show Figure 2 Waveform schematic diagram of the first audio signal Sa provided in the shown delay measurement method;
[0063] Figure 5b Show Figure 2 Waveform schematic diagram of the third audio signal Sc provided in the shown delay measurement method;
[0064] Figure 6 Show the application model schematic diagram of a delay measurement device for a sound reinforcement system provided by an embodiment of the present disclosure. Detailed implementation manners
[0065] For ease of understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the understanding of the content of the present invention more thorough and comprehensive.
[0066] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs. The terms used in the description of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0067] Next, the present invention will be described in detail with reference to the drawings.
[0068] Figure 2 Show the process model schematic diagram of a delay measurement method for a sound reinforcement system provided by an embodiment of the present disclosure, Figure 3 Show Figure 2 Model application diagram of the shown delay measurement method in an embodiment, Figure 4 Show the application of Figure 2 Model schematic diagram of the sound reinforcement delay obtained by the shown delay measurement method.
[0069] Refer to Figure 2, an embodiment of the present disclosure provides a delay measurement method for a sound reinforcement system. The hardware operating environment involved in the embodiment solution can be an electronic terminal device such as a portable computer with audio data acquisition, transmission, and processing functions. In this embodiment, the delay measurement method includes:
[0070] Step S10: Use the speaker to play a preset first audio signal for the first time, and use the pickup to pick up the second audio signal and process the second audio signal through a voice algorithm into a third audio signal.
[0071] Step S20: Obtain the adjustment parameters of the sound reinforcement system according to the signal processing of the second audio signal and the third audio signal.
[0072] Step S30: Use the speaker to play the first audio signal for the second time, and use the adjustment parameters to adjust the obtained third audio signal in real time.
[0073] Step S40: Obtain the sound reinforcement delay of the sound reinforcement system according to the self-oscillation information of the third audio signal.
[0074] In some embodiments, in the aforementioned step S10, when the sound reinforcement system is run for the first time, the first audio signal Sa is played, and the second audio signal Sb collected by the pickup (generally a microphone, the same below) and the third audio signal Sc output by the voice algorithm are obtained.
[0075] In this step, the preset first audio signal Sa is played in the sound reinforcement system, and at the same time, the voice picked up by the microphone is saved as the second audio signal Sb. The first audio signal Sa is directly sent to the speaker. Assume that the duration of the first audio signal Sa is Tsa. Then the duration of running the local sound reinforcement system for the first time is about Ta + 480 ms. Then, the second audio signal Sb is processed through a voice algorithm into the third audio signal Sc, which is saved and output.
[0076] Specifically, the preset first audio signal Sa is a signal with a sharp waveform in the first half and silent in the second half. It can be a short signal as Figure 5a shown, or other short signals such as pulse signals.
[0077] In some embodiments, in the aforementioned step S20, obtaining the adjustment parameters of the sound reinforcement system according to the signal processing of the second audio signal and the third audio signal may specifically include:
[0078] Perform voice algorithm processing on the aforementioned second audio signal Sb to obtain a first intermediate signal (not shown);
[0079] Adjust the gain and / or amplitude of the second audio signal Sb to the aforementioned first intermediate signal to obtain the aforementioned adjustment parameters.
[0080] Among them, the aforementioned first intermediate signal satisfies the self-oscillation condition of the sound reinforcement system to generate a third audio signal Sc of self-oscillation.
[0081] It is known that self-oscillation refers to a constant and continuous oscillation that occurs without an externally applied excitation signal. In this embodiment, the third audio signal Sc of self-oscillation generated by the sound reinforcement system is an audio signal formed by looping and superimposing the same speech segment at a certain frequency. In the time domain, there will be a small error in the duration between adjacent speech segments.
[0082] In some embodiments, in the aforementioned step S40, obtaining the sound reinforcement delay of the sound reinforcement system according to the self-oscillation information of the third audio signal may include:
[0083] When the sound reinforcement system is run for the second time, play the first audio signal Sa, and perform real-time speech algorithm processing on the third audio signal Sc using the aforementioned adjustment parameters to obtain a second intermediate signal (not shown). This second intermediate signal is the self-oscillation signal formed by sound looping and includes multiple signal segments; then determine the sound reinforcement delay of the sound reinforcement system according to this second intermediate signal.
[0084] In this embodiment, the aforementioned speech algorithm processing includes adding a fixed delay to the obtained audio signal.
[0085] In a locally used sound reinforcement system in actual use, the delay between the human voice A and the sound reinforcement B of the speaker is very short, and these two signals are partially overlapped on the time axis. After adding a fixed delay and then performing speech processing, the human voice A, after the delay, and the sound reinforcement B coming out of the speaker are separated. In this way, the two signals A and B may be completely non-overlapping on the time axis, thus being "separated" for facilitating the processing of B.
[0086] The purpose of setting the fixed delay is to effectively separate the speech signal after each sound reinforcement. Therefore, the steps of its delay processing can be varied. It can be after obtaining the second audio signal Sb, or after obtaining the third audio signal Sc, and there is no limitation here.
[0087] In some embodiments, in the aforementioned step S40, obtaining the sound reinforcement delay of the sound reinforcement system according to the second intermediate signal further includes:
[0088] Obtain multiple signal segments in the aforementioned second intermediate signal;
[0089] Calculate the real delay t0 between adjacent signal segments (as Figure 5b , as shown in the table in the following embodiments);
[0090] Subtract the fixed delay from the real delay to obtain its corresponding system delay t1 (as shown in the table in the following embodiments); and
[0091] The sound reinforcement delay of the sound reinforcement system is obtained according to the statistical data of the system delay t1 between multiple adjacent signal segments.
[0092] In a further embodiment, obtaining the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delay between multiple adjacent signal segments includes:
[0093] Taking the statistical mode of the system delay between multiple adjacent signal segments as the sound reinforcement delay of the sound reinforcement system.
[0094] In this embodiment, the delay measurement method for the sound reinforcement system can automatically test and obtain the sound amplification delay of the system without manual intervention, with high intelligence and automation, and is efficient and fast.
[0095] In this embodiment, the sound reinforcement system plays the same sequence twice, and through an algorithm, the sound reinforcement system generates a self-excited oscillation signal and makes effective use of it, avoiding interference, and calculating the delay based on the self-excited oscillation signal generated by the sound reinforcement system. Selecting the result that appears the most among multiple results improves the reliability of the algorithm and makes the calculation of the sound reinforcement delay more accurate.
[0096] In the above implementation process, using an algorithm to modify the amplitude of the echo signal will not change the microphone input volume or the speaker volume, so there is no modification to the sound reinforcement system parameters, and the operation is convenient.
[0097] Reference Figure 3 Referring to the model of the delay measurement method provided by the embodiments of the present disclosure in an implementation manner, and understanding it in combination with the foregoing embodiments. The process model may include:
[0098] Step 1: Set a fixed delay for the input voice.
[0099] In this step, the fixed delay can be used to separate the voice signal after each sound reinforcement, and can be set through a sound delay device to perform algorithm processing on the voice signal collected by the pickup after a fixed delay. In this embodiment, the set fixed delay of the input is, for example, 480 milliseconds, and it is expected to effectively separate the voice signal after each sound reinforcement.
[0100] Step 2: Run the sound reinforcement system for the first time, play the first audio signal Sa, and obtain the second audio signal Sb collected by the microphone and the third audio signal Sc output by the voice algorithm.
[0101] Step 3: Process the second audio signal Sb to obtain a method strategy for modifying and adjusting the second audio signal Sb.
[0102] In this step, after the sound reinforcement system stops running for the first time, the gain control module uses an optimization algorithm to calculate a method and strategy for modifying and adjusting the second audio signal Sb. Specifically, for example, it includes: performing a voice algorithm process on the aforementioned second audio signal Sb to obtain a first intermediate signal (not shown); adjusting the gain and / or amplitude of the second audio signal Sb to the aforementioned first intermediate signal to obtain the aforementioned adjustment parameters, where the first intermediate signal can satisfy the self-oscillation condition of the sound reinforcement system to generate a self-oscillating third audio signal Sc.
[0103] And apply the method and strategy for modifying and adjusting Sb when the sound reinforcement system runs for the second time. This method and strategy include amplifying and reducing the signal amplitude. In this embodiment, the detection methods of the aforementioned optimization algorithm include: voice activity detection, amplitude change, and frequency amplitude comparison.
[0104] In the above implementation process, using the algorithm to modify the amplitude of the echo signal will not change the microphone input volume or the speaker volume. Therefore, there is no modification to the sound reinforcement system parameters, and the operation is convenient.
[0105] Step 4: Process the first audio signal Sa, the second audio signal Sb, and the third audio signal Sc to obtain a method and strategy for modifying and adjusting the third audio signal Sc.
[0106] In this step, modifying and adjusting the third audio signal Sc is to optimize the third audio signal Sc, make the obtained voice clearer, the waveform more stable and continuous, facilitate the detection and calculation of the sound reinforcement delay, and improve its accuracy.
[0107] Step 5: Run the sound reinforcement system for the second time, apply the method and strategy for modification and adjustment, and use the algorithm to perform real-time adjustment processing on the third audio signal Sc.
[0108] In this step, the adjusted third audio signal Sc is the self-oscillation signal of the sound reinforcement system, as Figure 5b shown, including multiple voice signal segments.
[0109] In this embodiment, the delay calculation and measurement method further includes: detecting whether the actual delay between voice signal segments in the third audio signal Sc meets a preset threshold: if not, stop the operation of the sound reinforcement system; if so, continue to execute the operation of this delay measurement method.
[0110] In this embodiment, the true delay can be regarded as the duration between two adjacent valid signal segments. If there are amplitude anomalies or mutations in the signal segments in the second intermediate signal (such as the influence of noise interference), some segments may be invalid or abnormal, and then the measured duration of this part of the signal segments will also exceed the preset threshold, resulting in a larger calculation error of the final sound reinforcement delay. Therefore, it is necessary to eliminate them. So there is the aforementioned detection of whether the true delay between the voice signal segments in the third audio signal Sc meets the preset threshold. The real-time adjustment of the third audio signal Sc before is also an optimization process of the waveform to obtain a second intermediate signal that meets the requirements as much as possible. However, if multiple consecutive signal segments are invalid or have abnormal amplitudes, it proves that the system is operating abnormally or there are abnormalities in audio transmission or algorithm processing. In this case, the operation of the sound reinforcement system needs to be stopped for self-check and troubleshooting of abnormalities.
[0111] Step 6: Use an algorithm to detect the signal segments in the third audio signal Sc that meet the preset intensity requirements, calculate the system delay corresponding to the true delay between the signal segments, and then take the statistical mode of all the system delays as the sound reinforcement delay applied by the sound reinforcement system.
[0112] In some embodiments, taking Figure 5b the third audio signal Sc shown as an example, briefly describe the process of obtaining the sound reinforcement delay by processing Sc. Traverse the aforementioned second intermediate signal (i.e., the adjusted third audio signal Sc, hereinafter simply referred to as the third audio signal Sc). There will be multiple signal segments in this third audio signal Sc that meet the preset requirements. Calculate the true delay t0 between the signal segments that meet the requirements, and then for all the true delays t0, subtract the fixed delay from the true delay t0 to obtain the corresponding system delay t1. Then, count all the obtained system delays t1, and find the system delay t1 with the most occurrences (i.e., the mode in the set) as the sound reinforcement delay of the sound reinforcement system.
[0113] As Figure 4 shown, in this embodiment, the first audio signal Sa starts to be transmitted to the speaker at time Ta. The sound emitted by the speaker travels through the air to the pickup (microphone). The pickup converts the sound into an electrical signal and amplifies it to form the second audio signal Sb, which is transmitted to the delay measurement device (the box in the figure) at time Tb. The second audio signal Sb becomes the third audio signal Sc at time Tc after being processed and calculated. The third audio signal Sc starts to be transmitted from the delay measurement device to the speaker, repeating the process of the first audio signal Sa. In the above processing process, it can be considered that the sound reinforcement delay of the entire local sound reinforcement system is (Tc - Ta).
[0114] Combined with the following table, assuming that all 13 signal segments in the third audio signal Sc meet the preset requirements, calculate the sound reinforcement delay between them. The calculated results are shown in the following table. After counting all system delays, it is found that 47 ms appears the most times. Therefore, it is finally considered that the sound reinforcement delay of the sound reinforcement system is 47 ms.
[0115]
[0116] In this embodiment, the sound reinforcement system plays the same sequence twice, and through an algorithm, the sound reinforcement system generates a self-excited oscillation signal, which is effectively utilized to avoid interference. Based on the self-excited oscillation signal generated by the sound reinforcement system, the delay is calculated, and the result that appears the most among multiple results is selected, improving the reliability of the algorithm and making the calculation of the sound reinforcement delay more accurate.
[0117] Thus, the delay measurement method for a sound reinforcement system provided by the embodiments of the present disclosure can automatically test and obtain the sound amplification delay of the system without manual intervention, with high intelligence and automation, being efficient and fast. It can effectively improve the accuracy and operability of the sound reinforcement system delay measurement, avoid errors caused by manual intervention, save costs, and improve the debugging efficiency.
[0118] Figure 6 The application model diagram of a delay measurement device for a sound reinforcement system provided by the embodiments of the present disclosure is shown.
[0119] Reference Figure 6 , in another embodiment of the present disclosure, a delay measurement device 100 for a sound reinforcement system is provided, which includes: an acquisition module 110, an input module 120, a processing module 140, and a calculation module 150.
[0120] Among them, the input module 120 is used to set the fixed delay of the input voice; the acquisition module 110 is respectively connected to the speaker and the microphone in the sound reinforcement system, and plays the preset first audio signal Sa through the speaker, and picks up the second audio signal Sb using the microphone; the processing module 140 is used to buffer the amplified voice signal for a fixed delay before processing, and process the second audio signal Sb into a third audio signal Sc through a voice algorithm; the calculation module 150 includes an algorithm module, which can be used to execute various algorithms described in the foregoing embodiments. In this embodiment, on the one hand, it is used to detect and calculate the self-excited oscillation information of the third audio signal Sc to obtain the sound reinforcement delay of the sound reinforcement system, and on the other hand, it can also be used to detect whether the voice signal segments in the third audio signal Sc meet a preset threshold. If the preset requirements are not met, the operation of the sound reinforcement system is stopped.
[0121] In some embodiments, the foregoing delay measurement device 100 may further include:
[0122] A gain control module 130, which is used to calculate the method and strategy for modifying and adjusting the second audio signal Sb and the third audio signal Sc respectively through an optimization algorithm to obtain the adjustment parameters of the sound reinforcement system, and apply the adjusted method and strategy when the local sound reinforcement system runs for the second time, and use the aforementioned adjustment parameters to adjust the obtained third audio signal Sc in real time. The method and strategy include, but are not limited to, amplifying and reducing the signal amplitude. In this embodiment, the detection methods of the aforementioned optimization algorithm include: voice activity detection, amplitude change, and frequency amplitude comparison.
[0123] In this embodiment, the aforementioned processing module 140 is further used to execute:
[0124] Perform voice algorithm processing on the second audio signal Sb to obtain a first intermediate signal (not shown); and
[0125] Perform voice algorithm processing on the third audio signal Sc using the adjustment parameters to obtain a second intermediate signal (not shown), where the first intermediate signal can meet the self-oscillation condition of the sound reinforcement system to generate a self-oscillating third audio signal, and the second intermediate signal includes multiple signal segments.
[0126] In some embodiments, the aforementioned calculation module 150 is used to execute when detecting and calculating the self-oscillation information of the third audio signal to obtain the sound reinforcement delay of the sound reinforcement system:
[0127] Obtain multiple signal segments in the aforementioned second intermediate signal;
[0128] Calculate the true delay between adjacent signal segments;
[0129] Subtract the fixed delay from the true delay to obtain its system delay correspondingly; and
[0130] Obtain the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delays between multiple adjacent signal segments.
[0131] In a further embodiment, the delay measurement device 100 uses the statistical mode of the system delays between the aforementioned multiple adjacent signal segments as the sound reinforcement delay of the sound reinforcement system.
[0132] In summary, a delay measurement device 100 for a sound reinforcement system provided by an embodiment of the present invention can improve the accuracy and operability of sound reinforcement system delay measurement, has a high degree of intelligence and automation, is efficient and fast, can automatically test and obtain the sound reinforcement delay of the system without manual intervention, can effectively avoid errors caused by manual intervention, save costs, and improve the debugging efficiency. At the same time, using an algorithm to modify the amplitude of the echo signal will not change the microphone input volume or the speaker volume, so there is no modification to the sound reinforcement system parameters, and the operation is convenient.
[0133] An embodiment of the present application provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the delay measurement method for the sound reinforcement system provided in the foregoing embodiments of the present application.
[0134] An embodiment of the present application provides a computer-readable storage medium, which stores computer program instructions. When the computer program instructions are read and run by a processor, the delay measurement method for the sound reinforcement system provided in the foregoing embodiments of the present application is executed.
[0135] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0136] In addition, in each embodiment of the present application, the functional modules can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0137] When the above functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0138] The above are only the embodiments of this application and are not used to limit the protection scope of this application. For those skilled in the art, various changes and modifications can be made to this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application. It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0139] It should be noted that in the description of the present invention, it should be understood that the terms "upper", "lower", "inner", etc. indicating the orientation or positional relationship are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the components or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation to the present invention.
[0140] In addition, in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device including the said element.
[0141] Finally, it should be noted that: Obviously, the above embodiments are merely examples given to clearly illustrate the present invention, rather than limitations on the implementation manners. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all implementation manners here. And the obvious changes or modifications derived therefrom are still within the protection scope of the present invention.
Claims
1. A delay measurement method for a sound reinforcement system, characterized in that, Including: Playing a preset first audio signal for the first time by using a loudspeaker, picking up a second audio signal by using a pickup, and processing the second audio signal into a third audio signal through a voice algorithm; Obtaining an adjustment parameter of the sound reinforcement system according to signal processing of the second audio signal and the third audio signal; Playing the first audio signal for the second time by using the loudspeaker, and using the adjustment parameter to adjust the obtained third audio signal in real time; Obtaining the sound reinforcement delay of the sound reinforcement system according to the self-oscillation information of the third audio signal; Wherein, obtaining the adjustment parameter of the sound reinforcement system according to the second audio signal includes: Performing voice algorithm processing on the second audio signal to obtain a first intermediate signal; Adjusting the gain and / or amplitude of the second audio signal into the first intermediate signal to obtain the adjustment parameter, The first intermediate signal satisfies the self-oscillation condition of the sound reinforcement system to generate a self-oscillating third audio signal.
2. The delay measurement method according to claim 1, wherein Obtaining the sound reinforcement delay of the sound reinforcement system according to the self-oscillation information of the third audio signal includes: Performing real-time voice algorithm processing on the third audio signal by using the adjustment parameter to obtain a second intermediate signal, and the second intermediate signal includes a plurality of signal segments; Determining the sound reinforcement delay of the sound reinforcement system according to the second intermediate signal.
3. The delay measurement method according to claim 2, characterized in that, The voice algorithm processing includes adding a fixed delay to the obtained audio signal.
4. The delay measurement method according to claim 3, wherein The determining the sound reinforcement delay of the sound reinforcement system according to the second intermediate signal includes: Obtaining a plurality of signal segments in the second intermediate signal; Calculating the true delay between adjacent signal segments; Subtracting the fixed delay from the true delay to obtain its corresponding system delay; and Obtaining the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delays between a plurality of adjacent signal segments.
5. The delay measurement method according to claim 4, wherein Obtaining the sound reinforcement delay of the sound reinforcement system according to the statistical data of the system delays between a plurality of adjacent signal segments includes: Taking the statistical mode of the system delays between a plurality of adjacent signal segments as the sound reinforcement delay of the sound reinforcement system.
6. The delay measurement method according to claim 5, wherein Calculating the true delay between adjacent signal segments includes: Detecting whether the true delay between the plurality of signal segments meets a preset threshold: If not, stopping the operation of the sound reinforcement system; If so, continuing to execute the operations of the delay measurement method.
7. A delay measurement device for a sound reinforcement system, characterized in that, Including: An acquisition module, the acquisition module is respectively connected to a loudspeaker and a pickup in the sound reinforcement system, plays a preset first audio signal through the loudspeaker, and picks up a second audio signal by using the pickup; A processing module, configured to process the second audio signal into a third audio signal through a voice algorithm; A gain control module, configured to obtain an adjustment parameter of the sound reinforcement system according to signal processing of the second audio signal and the third audio signal, and use the adjustment parameter to adjust the obtained third audio signal in real time; A calculation module, the calculation module is configured to perform detection and calculation according to the self-oscillation information of the third audio signal to obtain the sound reinforcement delay of the sound reinforcement system, Wherein, the processing module is further configured to execute: Perform voice algorithm processing on the second audio signal to obtain a first intermediate signal; The first intermediate signal can satisfy the self-oscillation condition of the public address system to generate a third audio signal with self-oscillation.
8. The delay measurement device according to claim 7, wherein It further includes: An input module for setting a fixed delay of the input, And, the processing module is further configured to execute: Perform voice algorithm processing on the third audio signal by using the adjustment parameter to obtain a second intermediate signal, where the second intermediate signal includes a plurality of signal segments.
9. The delay measurement device according to claim 8, wherein When the calculation module performs detection and calculation according to the self-oscillation information of the third audio signal to obtain the sound reinforcement delay of the public address system, it is configured to execute: Obtain a plurality of signal segments in the second intermediate signal; Calculate the actual delay between adjacent signal segments; Subtract the fixed delay from the actual delay to correspondingly obtain the system delay; And Obtain the sound reinforcement delay of the public address system according to the statistical data of the system delays between a plurality of adjacent signal segments.
10. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the delay measurement method for a public address system according to any one of claims 1 to 6.
11. A readable storage medium, characterized in that, Computer program instructions are stored in the readable storage medium. When the computer program instructions are read and run by a processor, the delay measurement method for a public address system according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Wireless sound amplification system and terminal
CN113411417A
Howling suppression device, program, integrated circuit, and howling suppression method
WO2005125272A1