CN115278499A - Time delay measuring method and device, electronic equipment and storage medium - Google Patents

Time delay measuring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115278499A
CN115278499A CN202210757836.0A CN202210757836A CN115278499A CN 115278499 A CN115278499 A CN 115278499A CN 202210757836 A CN202210757836 A CN 202210757836A CN 115278499 A CN115278499 A CN 115278499A
Authority
CN
China
Prior art keywords
delay
audio signal
signal
sound
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210757836.0A
Other languages
Chinese (zh)
Inventor
刘建敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202210757836.0A priority Critical patent/CN115278499A/en
Publication of CN115278499A publication Critical patent/CN115278499A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/007Monitoring arrangements; Testing arrangements for public address systems

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Amplifiers (AREA)

Abstract

The invention provides a time delay measuring method and a time delay measuring device for an acoustic amplification system, electronic equipment and a storage medium, wherein the time delay measuring method comprises the following steps: playing a preset first audio signal for the first time by using a loudspeaker, picking up a second audio signal by using a sound pick-up and processing the second audio signal into a third audio signal by using a voice algorithm; obtaining an adjustment parameter of the sound amplifying system according to the signal processing of the second audio signal and the third audio signal; playing the first audio signal for the second time by using a loudspeaker, and adjusting the obtained third audio signal in real time by using the adjustment parameter; and obtaining the sound amplification delay of the sound amplification system according to the self-oscillation information of the third audio signal. Therefore, the accuracy and operability of time delay measurement of the sound amplification system can be improved, errors caused by manual intervention are avoided, the cost is saved, and the debugging efficiency is improved.

Description

Time delay measuring method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of audio processing technologies, and in particular, to a delay measurement method and apparatus for an audio amplifier system, an electronic device, and a storage medium.
Background
In both the professional audio field and the consumer audio field, more and more digital audio processors play an increasingly important role in improving the reproduced sound quality and rendering various listening effects of a sound system. The traditional means of improving the reproduced tone quality by improving the material, structure and process of the sound equipment itself is restricted by a plurality of objective factors, and with the wide application of the digital signal processing technology in the audio frequency field and the advantage of the development cost of the DSP, the compensation and regulation of the tone quality of the sound system by the signal processing method become an inevitable trend.
In an audio system, especially a sound amplification system, the requirement for delay is extremely high, and the lower the sound amplification delay, the more comfortable the human ear is, so in a product, the low delay in the audio system is always one of the main indexes, and therefore, the delay reduction in the system is one of the targets. With the development of the times, the expansion of the classrooms and halls, the increase of the audience number and the improvement of the electronic technology, the sound amplifying system like the sound amplifying system shown in fig. 1 is inevitably needed in the classrooms and halls, and the sound amplifying system scene comprises a sound mixing console, a sound source part (such as a wired microphone, a wireless microphone, video conference equipment, a computer and the like) connected with the sound mixing console through signals, a signal processing and signal amplifying part (such as an equalizer, a power amplifier, a processor and the like) and a sound amplifying part (such as a sound box).
A sound amplification system is generally a system that amplifies the sound of a speaker in real time to a listener, where the sound pickup and the speaker are located in the same sound field, and where the speaker and the listener are usually located in the same acoustic environment. A successful sound amplification system must have sufficient loudness (sufficient acoustic gain) and clarity (low speech sub-sound clarity loss percentage) and enable sound to uniformly cover the audience without covering the area where there is no audience. Since the speaker and the listener are usually in the same acoustic environment, the listener hears the speaker's speech and also hears the speaker's speech played by the speaker in real time. If the two sounds are separated by a relatively long time, the listener hears the two sounds mixed together, resulting in an inaudible sound.
The haas effect proves that when two sound sources emit identical sounds, the binaural listening experience is different according to the difference in delay amount between one sound source and the other. When the delay amount of one sound source from another sound source is less than 35ms, the human ear can only sense the existence of a sound source ahead, the sound image localization is biased to the position of the sound source ahead, and the existence of a sound source behind is not sensed; when the delay amount is 30ms-50ms, the human ear can distinguish the existence of two sound sources, but the sound image is still positioned in the front sound source direction; when the delay amount is larger than 50ms, the human ears can feel that the two sound sources exist simultaneously, and sound images are respectively positioned at the positions of the two sound sources.
Therefore, in local public address, the time delay between the speaker speaking voice and the speaker's voice played in real time by the speaker must be strictly controlled. The installation effect can be ensured to be used only after being subjected to complex debugging by professional sound engineers after the installation is finished, so that more time and energy are consumed, and the effect after the debugging is difficult to keep consistency due to different audios of people.
The existing local acoustic amplification delay estimation method is not high in precision. And generally requires manual handling, which is time consuming and labor intensive. Requiring specialized institutions is time consuming and expensive.
Disclosure of Invention
In order to solve the technical problems, the invention provides a delay measurement method and device for an audio amplifier system, an electronic device and a storage medium, which can improve the accuracy and operability of delay measurement of the audio amplifier system, avoid errors caused by manual intervention, save cost and improve debugging efficiency.
In one aspect, the present invention provides a delay measurement method for an acoustic amplification system, including:
playing a preset first audio signal for the first time by using a loudspeaker, picking up a second audio signal by using a sound pick-up and processing the second audio signal into a third audio signal by using a voice algorithm;
obtaining an adjustment parameter of the sound amplification 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 a loudspeaker, and adjusting the obtained third audio signal in real time by using the adjustment parameter;
and obtaining the sound amplification delay of the sound amplification system according to the self-oscillation information of the third audio signal.
Optionally, obtaining the tuning parameters of the sound amplification system according to the signal processing of the second audio signal and the third audio signal comprises:
carrying out voice algorithm processing on the second audio signal to obtain a first intermediate signal;
gain and/or amplitude adjusting the second audio signal into a first intermediate signal, to obtain the aforementioned adjustment parameter,
the aforementioned first intermediate signal satisfies the self-oscillation condition of the sound reinforcement system to generate a self-oscillating third audio signal.
Optionally, obtaining the public address delay of the public address system according to the self-oscillation information of the third audio signal comprises:
performing real-time speech algorithm processing on the third audio signal by using the aforementioned adjustment parameter to obtain a second intermediate signal, where the second intermediate signal includes a plurality of signal segments;
determining the sound amplification delay of the sound amplification system according to the second intermediate signal.
Optionally, the aforementioned processing of the speech algorithm comprises adding a fixed delay to the obtained audio signal.
Optionally, determining the amplification delay of the amplification system according to the second intermediate signal comprises:
obtaining a plurality of signal segments in the second intermediate signal;
calculating the real time delay between adjacent signal segments;
subtracting the fixed delay from the real delay to obtain the system delay; and
and obtaining the sound amplifying time delay of the sound amplifying system according to the statistical data of the system time delays among a plurality of adjacent signal segments.
Optionally, obtaining the public address delays of the public address system according to the statistical data of the system delays between a plurality of adjacent signal segments comprises:
and taking the statistic mode of the system time delay among a plurality of adjacent signal segments as the sound amplifying time delay of the sound amplifying system.
Optionally, calculating the true delay between adjacent signal segments comprises:
detecting whether the real time delay among a plurality of signal segments meets a preset threshold value:
if not, stopping the operation of the sound reinforcement system;
if so, continuing to perform the operation of the delay measurement method.
In another aspect, the present invention further provides a delay measuring device for an audio amplifier, including:
the acquisition module is respectively connected with a loudspeaker and a sound pick-up in the sound amplifying system, plays a preset first audio signal through the loudspeaker and picks up a second audio signal by using the sound pick-up;
the processing module is used for processing the second audio signal into a third audio signal through a voice algorithm;
the gain control module is used for obtaining the adjusting parameters of the sound amplifying system according to the signal processing of the second audio signal and the third audio signal and adjusting the obtained third audio signal in real time by using the adjusting parameters;
and the calculation module is used for carrying out detection calculation according to the self-oscillation information of the third audio signal so as to obtain the sound amplification delay of the sound amplification system.
Optionally, the aforementioned delay measuring device further includes:
an input module for setting fixed time delay of input,
moreover, the processing module is further configured to perform:
performing speech algorithm processing on the second audio signal to obtain a first intermediate signal; and
and performing voice algorithm processing on the third audio signal by using the adjustment parameter to obtain a second intermediate signal, wherein the first intermediate signal can meet the self-oscillation condition of the sound amplifying system to generate a self-oscillation third audio signal, and the second intermediate signal comprises a plurality of signal segments.
Optionally, the foregoing calculating module is configured to perform, in performing detection calculation according to self-oscillation information of the third audio signal to obtain the public address time delay of the public address system:
obtaining a plurality of signal segments in the second intermediate signal;
calculating the real time delay between adjacent signal segments;
subtracting the fixed delay from the real delay to correspondingly obtain the system delay; and
and obtaining the sound amplifying time delay of the sound amplifying system according to the statistical data of the system time delay among a plurality of adjacent signal segments.
In another aspect, the present invention further provides an electronic device, which includes a memory for storing a computer program and a processor for operating the computer program to make the electronic device execute the delay measurement method for an acoustic amplification system as described above.
In another aspect, the present invention further provides a readable storage medium, in which computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the method for measuring delay time of a sound amplification system as described above is executed.
The beneficial effects of the invention are: the invention provides a time delay measuring method and device for an acoustic amplification system, electronic equipment and a storage medium, which can realize the following steps:
1. the amplification delay of the system can be automatically tested without manual intervention, and the system has high intelligent and automatic degree, high efficiency and rapidness;
2. the delay measurement method and the delay measurement device for the sound amplifying system play the same sequence twice by using the sound amplifying system, and enable the sound amplifying system to meet the self-excited oscillation condition through algorithm optimization and adjustment so as to generate a self-excited oscillation signal, effectively utilize the signal and avoid interference;
3. the system delay between adjacent voice segments is calculated based on the self-excited oscillation signals generated by the sound amplification system, and the statistical mode of the system delay is selected from a plurality of system delays to serve as the applied sound amplification delay of the system, so that the reliability of the algorithm is improved, and the calculation and measurement of the sound amplification delay are more accurate;
4. the amplitude of the echo signal is modified by using the algorithm, the input volume of the microphone is not changed, and the volume of the loudspeaker is not changed, so that the parameters of the sound amplifying system are not modified, and the operation is convenient.
It should be appreciated that methods in accordance with the present disclosure may include any combination of the aspects and features described herein. That is, methods according to the present disclosure are not limited to the combinations of aspects and features specifically described herein, but also include any combination of the aspects and features provided.
The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other features and advantages will be apparent from the text and drawings, and from the claims.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 shows a schematic structural diagram of a prior art sound reinforcement system;
fig. 2 is a schematic flow chart illustrating a delay measurement method for an acoustic amplification system according to an embodiment of the present disclosure;
FIG. 3 illustrates a model application diagram of the delay measurement method of FIG. 2 in one embodiment;
FIG. 4 is a schematic diagram of a model for obtaining the acoustic amplification delay by applying the delay measurement method shown in FIG. 2;
fig. 5a is a waveform diagram illustrating a first audio signal Sa provided in the delay measuring method shown in fig. 2;
fig. 5b shows a waveform diagram of a third audio signal Sc provided in the delay measurement method shown in fig. 2;
fig. 6 shows an application model schematic diagram of a delay measuring device for an acoustic amplification system according to an embodiment of the present disclosure.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully hereinafter with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. The present invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The present invention will be described in detail below with reference to the accompanying drawings.
Fig. 2 shows a schematic flow model diagram of a delay measurement method for an acoustic amplification system according to an embodiment of the present disclosure, fig. 3 shows a model application diagram of the delay measurement method shown in fig. 2 in an implementation manner, and fig. 4 shows a schematic model diagram of an acoustic amplification delay obtained by applying the delay measurement method shown in fig. 2.
Referring to fig. 2, an embodiment of the present disclosure provides a delay measurement method for an acoustic amplification system, where a hardware operating environment related to the embodiment may be, for example, an electronic terminal device such as a portable computer having audio data acquisition, transmission, and processing functions. In this embodiment, the delay measurement method includes:
step S10: the method comprises the steps of playing a preset first audio signal for the first time by using a loudspeaker, picking up a second audio signal by using a sound pick-up, and processing the second audio signal into a third audio signal through a voice algorithm.
Step S20: the adjustment parameters of the sound amplification system are obtained from the signal processing of the second audio signal and the third audio signal.
Step S30: and playing the first audio signal for the second time by using the loudspeaker, and adjusting the obtained third audio signal in real time by using the adjustment parameter.
Step S40: and obtaining the sound amplification delay of the sound amplification system according to the self-oscillation information of the third audio signal.
In some embodiments, in the foregoing step S10, the public address system is operated for the first time, the first audio signal Sa is played, the second audio signal Sb collected by a sound collector (generally a microphone, the same applies hereinafter) is obtained, and the third audio signal Sc is output by a speech algorithm.
In this step, a preset first audio signal Sa is played in the public address system, while the speech picked up by the microphone is saved as a second audio signal Sb. The first audio signal Sa is sent directly to the loudspeaker, assuming that the duration of the first audio signal Sa is Tsa. The duration of the first run of the local amplification system is about Ta +480 ms. And then the second audio signal Sb is processed into a third audio signal Sc through a speech algorithm, and the third audio signal Sc is stored and output.
Specifically, the preset first audio signal Sa is a signal with a sharp waveform in the first half and a mute in the second half. It may be a short signal as shown in fig. 5a, or may be a short signal such as other pulse signal.
In some embodiments, in the foregoing step S20, obtaining the adjustment parameter of the sound amplifying system according to the signal processing of the second audio signal and the third audio signal may specifically include:
performing a speech algorithm processing on the aforementioned second audio signal Sb to obtain a first intermediate signal (not shown);
the second audio signal Sb is gain and/or amplitude adjusted to the aforementioned first intermediate signal, to obtain the aforementioned adjustment parameters,
wherein the first intermediate signal satisfies a self-oscillation condition of the sound amplifying system to generate a self-oscillating third audio signal Sc.
In this embodiment, the third audio signal Sc of the self-excited oscillation generated by the sound amplifying system is an audio signal formed by the same voice segment through loop superposition with a certain frequency, and in a time domain, a small error exists in the duration between adjacent voice segments.
In some embodiments, the obtaining of the public address delay of the public address system according to the self-oscillation information of the third audio signal in the foregoing step S40 may include:
when the sound amplifying system is operated for the second time, the first audio signal Sa is played, and the real-time speech algorithm processing is performed on the third audio signal Sc by using the aforementioned adjustment parameters to obtain a second intermediate signal (not shown), which is a self-excited oscillation signal formed by a sound loop and includes a plurality of signal segments; and determining the sound amplifying time delay of the sound amplifying system according to the second intermediate signal.
In this embodiment, the aforementioned speech algorithm processing includes adding a fixed delay to the obtained audio signal.
In a local public address system in real use, the time delay between the voice a of a person speaking and the speaker public address B is very short, and the two signals are partially overlapped on the time axis. The voice processing is carried out after the fixed time delay is added, so that the voice A of the speaking person is separated from the sound amplification B coming out of the loudspeaker after the time delay, and the two signals A and B are possibly not overlapped completely on the time axis, so that the signals A and B are separated, and the processing on the B is convenient.
The purpose of setting the fixed time delay is to effectively separate the voice signals after each sound amplification. The step of the delay processing may be varied, and it may be after the second audio signal Sb is obtained, or after the third audio signal Sc is obtained, which is not limited herein.
In some embodiments, in the foregoing step S40, obtaining the public address time delay of the public address system according to the second intermediate signal further includes:
obtaining a plurality of signal segments in the second intermediate signal;
calculating the true delay t0 between adjacent signal segments (as shown in fig. 5b, and the table in the example below);
subtracting the fixed delay from the real delay to obtain a corresponding system delay t1 (shown in a table in the following embodiment); and
and obtaining the sound amplifying time delay of the sound amplifying system according to the statistical data of the system time delay t1 between a plurality of adjacent signal segments.
In a further embodiment, obtaining the public address delay of the public address system based on statistical data of system delays between a plurality of adjacent signal segments comprises:
and taking the statistic mode of the system time delay among a plurality of adjacent signal segments as the sound amplifying time delay of the sound amplifying system.
According to the time delay measuring method for the sound amplifying system, the sound amplifying delay of the system can be obtained through automatic testing without manual intervention, the intelligent degree and the automation degree are high, and the time delay measuring method is efficient and rapid.
In this embodiment, the same sequence is played twice by the sound amplifying system, the self-excited oscillation signal is generated by the sound amplifying system through the algorithm, the self-excited oscillation signal is effectively utilized, interference is avoided, time delay is obtained by calculation based on the self-excited oscillation signal generated by the sound amplifying system, the most results are selected from a plurality of results, the reliability of the algorithm is improved, and sound amplifying time delay calculation is more accurate.
In the implementation process, the amplitude of the echo signal is modified by using the algorithm, the input volume of the microphone is not changed, and the volume of the loudspeaker is not changed, so that the parameters of the sound amplifying system are not modified, and the operation is convenient.
A model of an embodiment of the delay measurement method provided in the embodiment of the present disclosure shown in fig. 3 is understood in conjunction with the foregoing embodiments. The process model may include:
step 1: and setting fixed time delay of input voice.
In this step, the fixed delay time may be used to separate a voice signal after each sound amplification, and the voice signal collected by the sound pickup may be set by the sound delayer and then subjected to algorithm processing after the fixed delay time. In this embodiment, the fixed delay of the input is set to, for example, 480 milliseconds, and it is desirable to effectively separate the voice signal after each sound amplification.
And 2, step: and (3) operating the sound amplifying system for the first time, playing the first audio signal Sa, obtaining a second audio signal Sb collected by a microphone and outputting a third audio signal Sc by a voice algorithm.
And 3, step 3: and processing the second audio signal Sb to obtain a method strategy for modifying and adjusting the second audio signal Sb.
In this step, after the sound reinforcement system stops operating for the first time, the gain control module is used to calculate a method strategy for modifying and adjusting the second audio signal Sb through an optimization algorithm, specifically, for example, the method strategy includes: performing a speech algorithm processing on the aforementioned second audio signal Sb to obtain a first intermediate signal (not shown); the second audio signal Sb is gain and/or amplitude adjusted to the first intermediate signal to obtain the adjustment parameter, wherein the first intermediate signal can satisfy the self-oscillation condition of the sound amplifying system to generate the self-oscillating third audio signal Sc.
And applying a method strategy for adjusting Sb modification during the second operation of the sound amplifying system, wherein the method strategy comprises the steps of amplifying and reducing the signal amplitude. In this embodiment, the detection method of the optimization algorithm includes: voice activity detection, amplitude variation and frequency amplitude comparison.
In the implementation process, the amplitude of the echo signal is modified by using the algorithm, the input volume of the microphone and the volume of the loudspeaker cannot be changed, so that the parameters of the sound amplifying system are not modified, and the operation is convenient.
And 4, step 4: and processing the first audio signal Sa, the second audio signal Sb and the third audio signal Sc to obtain a method strategy for modifying and adjusting the third audio signal Sc.
In this step, the modification and adjustment of the third audio signal Sc are performed to optimize the third audio signal Sc, so that the obtained speech is clearer, the waveform is more stable and continuous, and the detection and calculation of the sound amplification delay are facilitated, so as to improve the accuracy thereof.
And 5: and operating the sound amplifying system for the second time, applying a method strategy of modifying and adjusting, and utilizing an algorithm to carry out real-time adjustment processing on the third audio signal Sc.
In this step the adapted third audio signal Sc is a self-oscillating signal of the public address system, as shown in fig. 5b, comprising a plurality of speech signal segments.
In this embodiment, the method for calculating and measuring delay further includes: detecting whether the real time delay between the voice signal segments in the third audio signal Sc meets a preset threshold value: if not, stopping the operation of the sound amplifying system; if so, continuing to perform the operation of the delay measurement method.
In this embodiment, the real time delay may be regarded as a duration between two adjacent effective signal segments, and if there is an amplitude abnormality or a sudden change (e.g., noise interference influence) of a signal segment in the second intermediate signal, which may cause a partial segment to fail or become abnormal, the measured duration of the partial signal segment also exceeds a preset threshold, which causes a final calculation error of the sound amplification delay to become large, and therefore needs to be eliminated. However, if a plurality of continuous signal segments fail or amplitude abnormality occurs, the operation of the sound amplifying system is stopped to perform self-checking and abnormality troubleshooting if the system operation is abnormal or the audio transmission or algorithm processing is abnormal.
Step 6: and detecting signal segments meeting the preset strength requirement in the third audio signal Sc by using an algorithm, calculating system delay corresponding to the real delay between the signal segments, and taking the statistical mode of all the system delays as the application sound amplification delay of the sound amplification system.
In some embodiments, the process of obtaining the public address delay for Sc processing is briefly described by taking the third audio signal Sc shown in fig. 5b as an example. Traversing the aforementioned second intermediate signal (i.e. the adjusted third audio signal Sc, which is hereinafter referred to as the third audio signal Sc), a plurality of signal segments in the third audio signal Sc meet the predetermined requirement. Calculating real time delay t0 among signal segments meeting requirements, then calculating all real time delays t0, then subtracting fixed time delay according to the real time delays t0 to obtain corresponding system time delay t1, then counting all the obtained system time delays t1, and solving the system time delay t1 with the largest occurrence frequency (namely, the mode in the set) as the sound amplification time delay of the sound amplification system.
As shown in fig. 4, in the present embodiment, the first audio signal Sa starts to be transmitted to the speaker at time Ta. The speaker emits sound that travels through the air to the microphone. The sound pickup converts the sound into an electrical signal and amplifies the electrical signal to form a second audio signal Sb, which is transmitted to the delay measuring device (block in the figure) at time Tb. The second audio signal Sb becomes the third audio signal Sc at the time Tc after being processed and calculated. The third audio signal Sc is transmitted from the delay measuring device to the loudspeaker, and the process of the first audio signal Sa is repeated. In the above process, the sound amplification delay of the whole local sound amplification system can be considered as (Tc-Ta).
And combining the following table, and calculating the sound amplification delay between 13 signal segments in the third audio signal Sc on the assumption that the signal segments all meet the preset requirement. The results of the calculations are assumed to be shown in the following table. The statistics of all system delays shows that the occurrence frequency of 47ms is the largest, so that the sound amplifying delay of the sound amplifying system is finally considered to be 47ms.
Figure BDA0003720141760000111
In the embodiment, the same sequence is played twice by using the sound amplifying system, the self-excitation oscillation signals are generated by the sound amplifying system through the algorithm and are effectively utilized, interference is avoided, time delay is obtained by calculation based on the self-excitation oscillation signals generated by the sound amplifying system, the most results are selected from a plurality of results, the reliability of the algorithm is improved, and the sound amplifying time delay calculation is more accurate.
Therefore, the delay measurement method for the sound amplifying system provided by the embodiment of the disclosure can automatically test the sound amplifying delay of the obtained system without manual intervention, has high intellectualization and automation degree, is efficient and rapid, can effectively improve the accuracy and operability of the delay measurement of the sound amplifying system, avoids errors caused by manual intervention, saves cost and improves debugging efficiency.
Fig. 6 shows an application model schematic diagram of a delay measuring apparatus for an acoustic amplification system according to an embodiment of the present disclosure.
Referring to fig. 6, in another embodiment of the present disclosure, a delay measurement apparatus 100 for an acoustic amplification system is provided, which includes: an acquisition module 110, an input module 120, a processing module 140 and a calculation module 150,
the input module 120 is configured to set a fixed delay of the input voice; the acquisition module 110 is respectively connected with a loudspeaker and a microphone in the sound amplifying system, and plays a preset first audio signal Sa through the loudspeaker, and picks up a second audio signal Sb by using the microphone; the processing module 140 is configured to buffer the amplified speech signal for a fixed delay and then process the delayed speech signal, and process the second audio signal Sb into a third audio signal Sc through a speech algorithm; the calculation module 150 includes an algorithm module, which is configured to execute various algorithms described in the foregoing embodiments, and in this embodiment, is configured to perform detection calculation according to the self-oscillation information of the third audio signal Sc to obtain the public address delay of the public address system, and on the other hand, is further configured to detect whether a preset threshold is met between voice signal segments in the third audio signal Sc, and if the preset requirement is not met, stop the operation of the public address system.
In some embodiments, the aforementioned delay measuring apparatus 100 may further include:
and a gain control module 130, where the gain control module 130 is configured to calculate, through an optimization algorithm, a method policy for modifying and adjusting the second audio signal Sb and the third audio signal Sc, respectively, to obtain an adjustment parameter of the sound amplification system, and apply the method policy for adjustment when the local sound amplification system is operated for the second time, to adjust the obtained third audio signal Sc in real time by using the adjustment parameter. The method strategy includes, but is not limited to, amplification and reduction of signal amplitude. In this embodiment, the detection method of the optimization algorithm includes: voice activity detection, amplitude variation and frequency amplitude comparison.
In this embodiment, the processing module 140 is further configured to:
performing speech algorithm processing on the second audio signal Sb to obtain a first intermediate signal (not shown); and
the third audio signal Sc is speech algorithmically processed with the adaptation parameters to obtain a second intermediate signal (not shown), wherein the first intermediate signal may satisfy the self-oscillation condition of the sound amplification system to generate a self-oscillating third audio signal, the second intermediate signal comprising a plurality of signal segments.
In some embodiments, the aforementioned calculation module 150 is configured to perform, in performing detection calculation based on the free-running oscillation information of the third audio signal to obtain the public address delay of the public address system:
obtaining a plurality of signal segments in the second intermediate signal;
calculating the real time delay between adjacent signal segments;
subtracting the fixed delay from the real delay to correspondingly obtain the system delay; and
and obtaining the sound amplifying time delay of the sound amplifying system according to the statistical data of the system time delay among a plurality of adjacent signal segments.
In a further embodiment, the delay measuring apparatus 100 is configured to use a statistical mode of the system delays between the adjacent signal segments as the public address delay of the public address system.
In summary, the delay measurement device 100 for the sound amplification system provided by the embodiment of the invention can improve the accuracy and operability of the delay measurement of the sound amplification system, has high intelligent and automatic degrees, is efficient and rapid, can automatically test the amplified delay of the system without manual intervention, can effectively avoid errors caused by manual intervention, saves cost, and improves debugging efficiency. Meanwhile, the amplitude of the echo signal is modified by using an algorithm, the input volume of a microphone is not changed, and the volume of a loudspeaker is not changed, so that the parameters of the sound amplifying system are not modified, and the operation is convenient.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the delay measurement method for an acoustic amplification system provided in the foregoing embodiment of the present application.
Embodiments of the present application provide a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the method for measuring delay of an audio amplifier provided in the foregoing embodiments of the present application is performed.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that in the description of the present invention, it is to be understood that the terms "upper", "lower", "inner", and the like, indicate orientation or positional relationship, are only for convenience of describing the present invention and simplifying the description, but do not indicate or imply that the referenced components or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention.
Further, in this document, the contained terms "include", "contain" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, a method, an article or an apparatus including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: it should be understood that the above examples are only for clearly illustrating the present invention and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. This need not be, nor should it be exhaustive of all embodiments. And obvious variations or modifications of the invention may be made without departing from the scope of the invention.

Claims (12)

1. A delay measurement method for a sound amplification system, comprising:
playing a preset first audio signal for the first time by using a loudspeaker, picking up a second audio signal by using a sound pick-up, and processing the second audio signal into a third audio signal by using a voice algorithm;
obtaining an adjustment parameter of the sound amplification system according to the 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 adjusting the obtained third audio signal in real time by using the adjustment parameter;
and obtaining the sound amplification delay of the sound amplification system according to the self-oscillation information of the third audio signal.
2. The delay measurement method according to claim 1, wherein obtaining the tuning parameters of the sound amplification system from the second audio signal comprises:
performing speech algorithm processing on the second audio signal to obtain a first intermediate signal;
gain and/or amplitude adjusting the second audio signal into the first intermediate signal to obtain the adjustment parameter,
the first intermediate signal satisfies a self-oscillating condition of the sound amplification system to generate a self-oscillating third audio signal.
3. The delay measurement method according to claim 2, wherein obtaining the public address delay of the public address system from the self-oscillation information of the third audio signal comprises:
performing real-time speech algorithm processing on the third audio signal by using the adjustment parameter to obtain a second intermediate signal, wherein the second intermediate signal comprises a plurality of signal segments;
and determining the sound amplification time delay of the sound amplification system according to the second intermediate signal.
4. The delay measurement method of claim 3, wherein the speech algorithm processing comprises adding a fixed delay to the obtained audio signal.
5. The delay measurement method according to claim 4, wherein said determining the public address delay of the public address system from the second intermediate signal comprises:
obtaining a plurality of signal segments in the second intermediate signal;
calculating the real time delay between adjacent signal segments;
subtracting a fixed delay from the real delay to obtain a corresponding system delay; and
and obtaining the sound amplification delay of the sound amplification system according to the statistical data of the system delay among a plurality of adjacent signal segments.
6. The delay measurement method of claim 5, wherein obtaining the public address delay of the public address system according to the statistical data of the system delay between a plurality of adjacent signal segments comprises:
and taking the statistical mode of the system delay between a plurality of adjacent signal segments as the sound amplifying delay of the sound amplifying system.
7. The delay measurement method of claim 6, wherein calculating the true delay between adjacent signal segments comprises:
detecting whether the real time delay among the plurality of signal segments meets a preset threshold:
if not, stopping the operation of the sound reinforcement system;
and if so, continuing to execute the operation of the delay measurement method.
8. A delay measurement device for an acoustic amplification system, comprising:
the acquisition module is respectively connected with a loudspeaker and a sound pick-up in the sound reinforcement system, plays a preset first audio signal through the loudspeaker, and picks up a second audio signal through the sound pick-up;
the processing module is used for processing the second audio signal into a third audio signal through a voice algorithm;
the gain control module is used for obtaining an adjusting parameter of the sound amplifying system according to the signal processing of the second audio signal and the third audio signal and adjusting the obtained third audio signal in real time by using the adjusting parameter;
and the calculation module is used for carrying out detection calculation according to the self-excited oscillation information of the third audio signal so as to obtain the sound amplification delay of the sound amplification system.
9. The delay measurement device of claim 8, further comprising:
an input module for setting a fixed delay of input,
and the processing module is further used for executing:
performing speech algorithm processing on the second audio signal to obtain a first intermediate signal; and
and performing voice algorithm processing on the third audio signal by using the adjustment parameter to obtain a second intermediate signal, wherein the first intermediate signal can meet the self-oscillation condition of the sound amplifying system to generate a self-oscillating third audio signal, and the second intermediate signal comprises a plurality of signal segments.
10. A delay measuring apparatus as claimed in claim 9, wherein the calculating module is configured to perform, in performing detection calculation based on self-oscillation information of the third audio signal to obtain the public address delay of the public address system:
obtaining a plurality of signal segments in the second intermediate signal;
calculating the real time delay between adjacent signal segments;
subtracting a fixed delay from the real delay to correspondingly obtain the system delay; and
and obtaining the sound amplification delay of the sound amplification system according to the statistical data of the system delay among a plurality of adjacent signal segments.
11. An electronic device, characterized in that the electronic device comprises a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the delay measurement method for an acoustic amplification system of any one of claims 1 to 7.
12. A readable storage medium, having stored therein computer program instructions, which when read and executed by a processor, perform the delay measurement method for an acoustic amplification system according to any one of claims 1 to 7.
CN202210757836.0A 2022-06-29 2022-06-29 Time delay measuring method and device, electronic equipment and storage medium Pending CN115278499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210757836.0A CN115278499A (en) 2022-06-29 2022-06-29 Time delay measuring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210757836.0A CN115278499A (en) 2022-06-29 2022-06-29 Time delay measuring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115278499A true CN115278499A (en) 2022-11-01

Family

ID=83763918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210757836.0A Pending CN115278499A (en) 2022-06-29 2022-06-29 Time delay measuring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115278499A (en)

Similar Documents

Publication Publication Date Title
US9913056B2 (en) System and method to enhance speakers connected to devices with microphones
US10347234B2 (en) Selective suppression of audio emitted from an audio source
US8233630B2 (en) Test apparatus, test method, and computer program
JP3994788B2 (en) Transfer characteristic measuring apparatus, transfer characteristic measuring method, transfer characteristic measuring program, and amplifying apparatus
US20080159568A1 (en) Sound outputting apparatus, sound outputting method, sound output processing program and sound outputting system
JP2007081843A (en) Sound field control equipment
US20180190310A1 (en) De-reverberation control method and apparatus for device equipped with microphone
JP2002135897A (en) Instrument and method for measuring acoustic field
CN112954115A (en) Volume adjusting method and device, electronic equipment and storage medium
CN110475181B (en) Equipment configuration method, device, equipment and storage medium
CN105764008B (en) A kind of method and device for debugging sound reinforcement system transmission frequency characteristic
EP3201910B1 (en) Combined active noise cancellation and noise compensation in headphone
US20190200151A1 (en) Audio data processing device and control method for an audio data processing device
US11950082B2 (en) Method and apparatus for audio processing
US20050053246A1 (en) Automatic sound field correction apparatus and computer program therefor
CN113270082A (en) Vehicle-mounted KTV control method and device and vehicle-mounted intelligent networking terminal
CN115278499A (en) Time delay measuring method and device, electronic equipment and storage medium
CN113611271B (en) Digital volume augmentation method and device suitable for mobile terminal and storage medium
JP2014175838A (en) Acoustic device, method for controlling acoustic device, and program
US20210112362A1 (en) Calibration of synchronized audio playback on microphone-equipped speakers
JP2001320793A (en) Automatic gain controller
CN115278500A (en) Sound amplification time delay measuring method and device and sound amplification system
JP4305313B2 (en) Audio adjustment parameter determination method and audio apparatus
CN113613143A (en) Audio processing method and device suitable for mobile terminal and storage medium
CN117880693A (en) Loudness adjusting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination