[go: up one dir, main page]

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
sound reinforcement
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

延时测量方法及装置、电子设备和存储介质Delay measurement method and device, electronic equipment and storage medium

技术领域technical field

本发明涉及音频处理技术领域,具体涉及一种用于扩声系统的延时测量方法及装置、电子设备和存储介质。The invention relates to the technical field of audio processing, in particular to a delay measurement method and device for a sound reinforcement system, electronic equipment and a storage medium.

背景技术Background technique

无论是在专业音响领域还是消费类音频领域,越来越多的数字音频处理器在音响系统的重放音质改善和各种听感效果呈现中起到越来越重要的地位。通过对音响设备本身的材料、结构和工艺进行改进来提升重放音质的传统手段受到很多客观因素的制约,而随着数字信号处理技术在音频领域的广泛应用,以及DSP开发成本的优势,通过信号处理方法对音响系统的音质进行补偿和调控已经成为了一种必然趋势。Whether in the field of professional audio or consumer audio, more and more digital audio processors play an increasingly important role in the improvement of the playback sound quality of the audio system and the presentation of various hearing effects. The traditional method of improving the playback sound quality by improving the material, structure and process of the audio equipment itself is restricted by many objective factors. With the wide application of digital signal processing technology in the audio field and the advantages of DSP development costs, through It has become an inevitable trend to use signal processing methods to compensate and regulate the sound quality of the audio system.

在音频系统特别是扩声系统中,对延时要求极高,越低的扩声延迟,人耳听感越舒适,因此在产品中,音频系统中低延时一直是主要指标之一,所以在系统中降低延迟是一个目标。随着时代的发展、教室和厅堂的扩大、观众人数的增多和电子技术的进步,教室和厅堂内不可避免的需要使用类似图1所示的扩声系统,该扩声系统场景中包括调音台和与该调音台信号连接的音源部分(如:有线话筒、无线话筒、视频会议设备,电脑等)、信号处理及信号放大部分(如均衡器、功率放大器、处理器等),以及扩声部分(如音箱)。In the audio system, especially the sound reinforcement system, the delay requirement is extremely high. The lower the sound reinforcement delay, the more comfortable the human ear feels. Therefore, in the product, low delay in the audio system has always been one of the main indicators, so Reducing latency in the system is a goal. With the development of the times, the expansion of classrooms and halls, the increase in the number of audience, and the advancement of electronic technology, it is inevitable to use a sound reinforcement system similar to that shown in Figure 1 in classrooms and halls. The scene of the sound reinforcement system includes tuning The sound source part (such as: wired microphone, wireless microphone, video conferencing equipment, computer, etc.), signal processing and signal amplification part (such as equalizer, power amplifier, processor, etc.) Acoustic parts (such as speakers).

扩声系统通常是把讲话者的声音对听者进行实时放大的系统,此场景中拾音器和扬声器处在同一声场内,讲话者和听者通常在同一个声学环境中。成功的扩声系统必须要具有足够响度(足够的声增益)和足够的清晰度(低的语言子音清晰度损失百分率),并且能使声音均匀地覆盖听众,而同时又不覆盖没有听众的区域。由于讲话者和听者通常在同一个声学环境中,故听者会听到讲话者说话的声音,也会听到扬声器实时播放的讲话者的声音。如果这两个声音间隔时间比较长,则听者会听到两个声音混叠在一起,从而导致听着听不清。The sound reinforcement system is usually a system that amplifies the speaker's voice to the listener in real time. In this scene, 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 be loud enough (sufficient acoustic gain) and intelligible (low percentage loss of intelligibility of speech consonants) to cover the audience evenly without covering areas where there are no listeners . Since the speaker and listener are usually in the same acoustic environment, the listener will hear both the speaker's voice and the speaker's voice broadcast in real time from the speaker. If the time between the two sounds is relatively long, the listener will hear the two sounds mixed together, resulting in inaudible hearing.

哈斯效应证明,在两个声源发出完全相同的声音时,根据一个声源与另一个声源的延时量不同,双耳听音的感受是不同的。当一个声源与另一个声源的延时量在小于35ms时,人耳只能感觉到超前一个声源的存在,声像定位偏向于超前一个声源的位置,并且感觉不到滞后声源的存在;延时量在30ms-50ms时,人耳能够分辨出两个声源的存在,但声像仍然定位于超前的声源方向;延时量大于50ms时,人耳能够感觉到两个声源同时存在,声像分别定位于两个声源自身的位置。The Haas effect proves that when two sound sources emit the exact same sound, the perception of binaural listening is different according to the amount of delay between one sound source and the other. When the delay between one sound source and another sound source is less than 35ms, the human ear can only perceive the existence of the preceding sound source, the sound image localization is biased towards the position of the preceding sound source, and the lagging sound source cannot be felt When the delay is between 30ms and 50ms, the human ear can distinguish the existence of two sound sources, but the sound image is still positioned in the direction of the advanced sound source; when the delay is greater than 50ms, the human ear can perceive the existence of two sound sources. The sound sources exist at the same time, and the sound images are respectively positioned at the positions of the two sound sources themselves.

故在本地扩声时,必须严格控制讲话者说话的声音和扬声器实时播放的讲话者的声音之间的延时。要保证安装效果必须在安装完毕后通过专业的音响工程师经过复杂的调试后才可以使用,这样会消耗较多的时间和精力,并且由于人的听力不同调试以后的效果难以保持一致性。Therefore, in local sound reinforcement, the delay between the speaker's voice and the speaker's voice played by the speaker in real time must be strictly controlled. To ensure the installation effect, it can only be used after complex debugging by professional sound engineers after installation, which will consume a lot of time and energy, and it is difficult to maintain consistency after debugging due to different people's hearing.

现有本地扩声延迟估计的方法精度不高。并且一般需要手工处理,费时费力。请专业机构则费时费钱。Existing methods for local sound reinforcement delay estimation are not very accurate. And generally need manual processing, time-consuming and laborious. Hiring a professional agency is time consuming and costly.

发明内容Contents of the invention

为了解决上述技术问题,本发明提供了一种用于扩声系统的延时测量方法及装置、电子设备和存储介质,可以提高扩声系统延时测量的准确性和可操作性,避免人工干预带来的误差,节省成本,提高调试效率。In order to solve the above technical problems, the present invention provides a delay measurement method and device, electronic equipment and storage medium for the sound reinforcement system, which can improve the accuracy and operability of the delay measurement of the sound reinforcement system and avoid manual intervention The errors brought about save costs and improve debugging efficiency.

一方面本发明提供了一种用于扩声系统的延时测量方法,其包括:On the one hand, the present invention provides a delay measurement method for a sound reinforcement system, which includes:

利用扬声器第一次播放预设的第一音频信号,并利用拾音器拾取第二音频信号以及将第二音频信号经过语音算法处理为第三音频信号;Using the speaker to play the preset first audio signal for the first time, and using the pickup to pick up the second audio signal and processing the second audio signal into a third audio signal through a speech algorithm;

根据对第二音频信号和第三音频信号的信号处理获得该扩声系统的调整参数;obtaining adjustment parameters of the sound reinforcement system according to signal processing of the second audio signal and the third audio signal;

利用扬声器第二次播放第一音频信号,利用调整参数实时调整获得的第三音频信号;using the speaker to play the first audio signal for the second time, and adjusting the obtained third audio signal in real time using the adjustment parameters;

根据第三音频信号的自激振荡信息获得该扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is obtained according to the self-oscillation information of the third audio signal.

可选地,根据对第二音频信号和第三音频信号的信号处理获得该扩声系统的调整参数包括:Optionally, obtaining the adjustment parameters of the sound reinforcement system according to the signal processing of the second audio signal and the third audio signal includes:

对前述第二音频信号进行语音算法处理以获得第一中间信号;performing speech algorithm processing on the aforementioned second audio signal to obtain a first intermediate signal;

对该第二音频信号进行增益和/或幅度调节成第一中间信号,以获得前述的调整参数,adjusting the gain and/or amplitude of the second audio signal to the first intermediate signal to obtain the aforementioned adjustment parameters,

前述的第一中间信号满足该扩声系统的自激振荡条件,以产生自激振荡的第三音频信号。The aforementioned first intermediate signal satisfies the self-oscillating condition of the sound reinforcement system, so as to generate a self-oscillating third audio signal.

可选地,根据第三音频信号的自激振荡信息获得该扩声系统的扩声延时包括:Optionally, 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 speech algorithm processing on the third audio signal by using the aforementioned adjustment parameters to obtain a second intermediate signal, the second intermediate signal comprising a plurality of signal segments;

根据该第二中间信号确定扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is determined according to the second intermediate signal.

可选地,前述的语音算法处理包括对获得的音频信号添加固定延时。Optionally, the aforementioned speech algorithm processing includes adding a fixed delay to the obtained audio signal.

可选地,根据该第二中间信号确定扩声系统的扩声延时包括:Optionally, 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 aforementioned second intermediate signal;

计算相邻信号片段之间的真实延时;Calculate the real delay between adjacent signal segments;

将真实延时减去固定延时获得系统延时;以及The system delay is obtained by subtracting the fixed delay from the real delay; and

根据多个相邻信号片段之间的系统延时的统计数据获得该扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is obtained according to the statistical data of the system delay between a plurality of adjacent signal segments.

可选地,根据多个相邻信号片段之间的系统延时的统计数据获得该扩声系统的扩声延时包括:Optionally, obtaining the sound reinforcement delay of the sound reinforcement system according to statistical data of system delays between multiple adjacent signal segments includes:

根据多个相邻信号片段之间的系统延时的统计众数作为该扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is taken as the statistical mode of the system delay between multiple adjacent signal segments.

可选地,计算相邻信号片段之间的真实延时包括:Optionally, calculating the real delay between adjacent signal segments includes:

检测多个信号片段之间的真实延时是否满足预设阈值:Detect whether the real delay between multiple signal segments meets a preset threshold:

如果不满足,则停止该扩声系统的运行;If not satisfied, stop the operation of the sound reinforcement system;

如果满足,则继续执行该延时测量方法的操作。If it is satisfied, continue to execute the operation of the delay measurement method.

另一方面本发明还提供了一种用于扩声系统的延时测量装置,其包括:On the other hand, the present invention also provides a delay measuring device for a sound reinforcement system, which includes:

采集模块,该采集模块分别连接扩声系统中的扬声器和拾音器,并通过扬声器播放预设的第一音频信号,以及利用拾音器拾取第二音频信号;An acquisition module, the acquisition module is respectively connected to the loudspeaker and the pickup in the sound reinforcement system, and plays the preset first audio signal through the loudspeaker, and picks up the second audio signal by the pickup;

处理模块,用于将第二音频信号经过语音算法处理为第三音频信号;A processing module, configured to process the second audio signal into a third audio signal through a speech algorithm;

增益控制模块,用于根据对第二音频信号和第三音频信号的信号处理获得该扩声系统的调整参数,以及利用调整参数实时调整获得的第三音频信号;The gain control module is used to obtain the adjustment parameters of the sound reinforcement system according to the signal processing of the second audio signal and the third audio signal, and use the adjustment parameters to adjust the obtained third audio signal in real time;

计算模块,该计算模块用于根据对第三音频信号的自激振荡信息进行检测计算,以获得该扩声系统的扩声延时。A calculation module, the calculation module is used for detecting and calculating the self-excited oscillation information of the third audio signal, so as to obtain the sound reinforcement delay of the sound reinforcement system.

可选地,前述的延时测量装置还包括:Optionally, the aforementioned delay measurement device also includes:

输入模块,用于设定输入的固定延时,Input module, used to set the fixed delay of the input,

并且,前述的处理模块还用于执行:Moreover, the aforementioned processing modules are also used to execute:

对第二音频信号进行语音算法处理以获得第一中间信号;以及performing speech algorithm processing on the second audio signal to obtain the first intermediate signal; and

利用调整参数对第三音频信号进行语音算法处理以获得第二中间信号,其中,第一中间信号可满足扩声系统的自激振荡条件,以产生自激振荡的第三音频信号,第二中间信号包括多个信号片段。The third audio signal is processed by the speech algorithm using the adjustment parameters to obtain the second intermediate signal, wherein the first intermediate signal can meet the self-excited oscillation condition of the sound reinforcement system to generate a self-oscillated third audio signal, and the second intermediate A signal consists of a number of signal fragments.

可选地,前述的计算模块在根据对第三音频信号的自激振荡信息进行检测计算,以获得扩声系统的扩声延时中用于执行:Optionally, the aforementioned calculation module is used to perform detection and calculation according to the self-excited oscillation information of the third audio signal to obtain the sound reinforcement delay of the sound reinforcement system:

获得前述第二中间信号中的多个信号片段;obtaining a plurality of signal segments in the aforementioned second intermediate signal;

计算相邻信号片段之间的真实延时;Calculate the real delay between adjacent signal segments;

将真实延时减去固定延时对应获得其系统延时;以及Subtract the fixed delay from the real delay to obtain its system delay; and

根据多个相邻信号片段之间的系统延时的统计数据获得该扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is obtained according to the statistical data of the system delay between a plurality of adjacent signal segments.

另一方面本发明还提供了一种电子设备,包括存储器以及处理器,存储器用于存储计算机程序,处理器运行计算机程序以使该电子设备执行如前所述的用于扩声系统的延时测量方法。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 make the electronic device perform the delay for the sound reinforcement system as described above Measurement methods.

另一方面本发明还提供了一种可读存储介质,该可读取存储介质中存储有计算机程序指令,该计算机程序指令被一处理器读取并运行时,执行如前所述的用于扩声系统的延时测量方法。On the other hand, the present invention also provides a readable storage medium, the readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the aforementioned method for Delay measurement methods for sound reinforcement systems.

本发明的有益效果是:本发明提供的一种用于扩声系统的延时测量方法及装置、电子设备和存储介质,可以实现:The beneficial effect of the present invention is: a delay measurement method and device, electronic equipment and storage medium for sound reinforcement system provided by the present invention can realize:

1、无需人工干预就可以自动测试得到系统的扩音延迟,智能化和自动化程度高,高效快捷;1. The system’s PA delay can be automatically tested without manual intervention, which is highly intelligent and automated, efficient and fast;

2、该用于扩声系统的延时测量方法与装置,利用扩声系统两次播放同一序列,通过算法优化调整使得扩声系统满足自激振荡条件,以产生自激震荡信号,并进行有效利用,避免了干扰;2. The delay measurement method and device for the sound reinforcement system uses the sound reinforcement system to play the same sequence twice, and optimizes and adjusts the algorithm so that the sound reinforcement system meets the self-excited oscillation conditions to generate a self-excited oscillation signal, and effectively use, to avoid interference;

3、并基于扩声系统产生的自激震荡信号计算其中相邻语音片段之间的系统延时,在多个系统延时中选择其统计众数作为系统的应用扩声延时,提升了算法的可靠性,使得扩声延时的计算测量更加准确;3. Based on the self-excited oscillation signal generated by the sound reinforcement system, the system delay between adjacent speech segments is calculated, and the statistical mode is selected as the system's application sound reinforcement delay among multiple system delays, which improves the algorithm The reliability makes the calculation and measurement of the sound reinforcement delay more accurate;

4、使用算法对回声信号进行幅度的修改,不会更改麦克风输入音量,也不会更改扬声器音量,因此对扩声系统参数无修改,操作方便。4. The algorithm is used to modify the amplitude of the echo signal, which will not change the input volume of the microphone or the volume of the speaker, so there is no modification to the parameters of the sound reinforcement system, and the operation is convenient.

应了解,依据本文的方法可以包括本文描述的方面和特征的任意组合。也就是说,根据本文的方法不限于本文具体描述的方面和特征的组合,还包括所提供的方面和特征的任意组合。It should be appreciated that methods according to this document may comprise any combination of the aspects and features described herein. That is, the methods according to this document are not limited to combinations of aspects and features specifically described herein, but also include any combination of aspects and features provided.

以下在附图和描述中阐述了本文的一个或多个实施例的细节。根据文和附图以及权利要求,本文的其他特征和优点将显现。The details of one or more embodiments herein are set forth in the accompanying drawings and the description below. Other features and advantages herein will appear from the text and drawings, and from the claims.

附图说明Description of drawings

通过以下参照附图对本发明实施例的描述,本发明的上述以及其他目的、特征和优点将更为清楚。The above and other objects, features and advantages of the present invention will be more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings.

图1示出现有技术中的一种扩声系统的结构示意图;Fig. 1 shows a structural schematic diagram of a sound reinforcement system in the prior art;

图2示出本公开实施例提供的一种用于扩声系统的延时测量方法的流程示意图;FIG. 2 shows a schematic flowchart of a delay measurement method for a sound reinforcement system provided by an embodiment of the present disclosure;

图3示出图2所示延时测量方法在一种实施方式中的模型应用图;Fig. 3 shows a model application diagram of the delay measurement method shown in Fig. 2 in an embodiment;

图4示出应用图2所示延时测量方法得到扩声延时的模型示意图;Fig. 4 shows the model sketch map that application delay measurement method shown in Fig. 2 obtains sound reinforcement delay;

图5a示出图2所示延时测量方法中提供的第一音频信号Sa的波形示意图;Figure 5a shows a schematic diagram of the waveform of the first audio signal Sa provided in the delay measurement method shown in Figure 2;

图5b示出图2所示延时测量方法中提供的第三音频信号Sc的波形示意图;Fig. 5b shows a schematic diagram of the waveform of the third audio signal Sc provided in the delay measurement method shown in Fig. 2;

图6示出本公开实施例提供的一种用于扩声系统的延时测量装置的应用模型示意图。Fig. 6 shows a schematic diagram of an application model of a delay measurement device for a sound reinforcement system provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳实施例。但是,本发明可以通过不同的形式来实现,并不限于本文所描述的实施例。相反的,提供这些实施例的目的是使对本发明内容的理解更加透彻全面。In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the associated drawings. Preferred embodiments of the invention are shown in the accompanying drawings. However, the present invention can be implemented in different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the content of the present invention more thorough and comprehensive.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. 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.

下面,参照附图对本发明进行详细说明。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

图2示出本公开实施例提供的一种用于扩声系统的延时测量方法的流程模型示意图,图3示出图2所示延时测量方法在一种实施方式中的模型应用图,图4示出应用图2所示延时测量方法得到扩声延时的模型示意图。Fig. 2 shows a schematic diagram of a process model of a delay measurement method for a sound reinforcement system provided by an embodiment of the present disclosure, and Fig. 3 shows a model application diagram of the delay measurement method shown in Fig. 2 in an implementation manner, FIG. 4 shows a schematic diagram of a model of sound reinforcement delay obtained by applying the delay measurement method shown in FIG. 2 .

参考图2,本公开实施例提供了一种用于扩声系统的延时测量方法,该实施例方案涉及的硬件运行环境例如可以是便携计算机等具有音频数据采集、传输和处理功能的电子终端设备。在本实施例中,该延时测量方法包括:Referring to FIG. 2 , an embodiment of the present disclosure provides a delay measurement method for a sound reinforcement system. The hardware operating environment involved in the solution of this embodiment can be, for example, an electronic terminal with audio data collection, transmission and processing functions such as a portable computer equipment. In this embodiment, the delay measurement method includes:

步骤S10:利用扬声器第一次播放预设的第一音频信号,并利用拾音器拾取第二音频信号以及将第二音频信号经过语音算法处理为第三音频信号。Step S10: Use the speaker to play the 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 into a third audio signal through a speech algorithm.

步骤S20:根据对第二音频信号和第三音频信号的信号处理获得该扩声系统的调整参数。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.

步骤S30:利用扬声器第二次播放第一音频信号,利用调整参数实时调整获得的第三音频信号。Step S30: using the speaker to play the first audio signal for the second time, and using the adjustment parameters to adjust the obtained third audio signal in real time.

步骤S40:根据第三音频信号的自激振荡信息获得该扩声系统的扩声延时。Step S40: Obtain the sound reinforcement delay of the sound reinforcement system according to the self-oscillation information of the third audio signal.

在一些实施例中,前述的步骤S10中,第一次运行扩声系统,播放第一音频信号Sa,获得拾音器(一般为麦克风,下同)采集的第二音频信号Sb和语音算法输出第三音频信号Sc。In some embodiments, in the aforementioned step S10, 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) is obtained and the voice algorithm outputs the third audio signal Sa. Audio signal Sc.

在该步骤中,在扩声系统中播放预设的第一音频信号Sa,同时将麦克风拾取的语音保存为第二音频信号Sb。第一音频信号Sa是直接发送到扬声器,假设第一音频信号Sa的时长为Tsa。则第一次运行本地扩声系统的持续时间为Ta+480ms左右。再将第二音频信号Sb经过语音算法处理为第三音频信号Sc,将其保存并输出。In this step, the preset first audio signal Sa is played in the sound reinforcement system, and 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, assuming 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+480ms. Then, the second audio signal Sb is processed into a third audio signal Sc through a speech algorithm, which is stored and output.

特别的,预设的第一音频信号Sa是一个前半段有尖锐波形后半段静音的信号。它可以是如图5a所示的短信号,也可以是其他脉冲信号等短信号。In particular, the preset first audio signal Sa is a signal with a sharp waveform in the first half and silence in the second half. It can be a short signal as shown in Figure 5a, or other short signals such as pulse signals.

在一些实施例中,前述步骤S20中,根据对第二音频信号和第三音频信号的信号处理获得该扩声系统的调整参数可具体包括: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:

对前述第二音频信号Sb进行语音算法处理以获得第一中间信号(未示出);Perform speech algorithm processing on the aforementioned second audio signal Sb to obtain a first intermediate signal (not shown);

对该第二音频信号Sb进行增益和/或幅度调节成前述的第一中间信号,以获得前述的调整参数,performing gain and/or amplitude adjustment on the second audio signal Sb to the aforementioned first intermediate signal, so as to obtain the aforementioned adjustment parameters,

其中,前述的第一中间信号满足该扩声系统的自激振荡条件,以产生自激振荡的第三音频信号Sc。Wherein, the aforementioned first intermediate signal satisfies the self-oscillating condition of the sound reinforcement system, so as to generate the self-oscillating third audio signal Sc.

可知的,自激震荡是指不外加激励信号而自行产生的恒稳和持续的振荡,在本实施例中,扩声系统产生的自激振荡的第三音频信号Sc为同一段语音片段以一定频率回环叠加形成的音频信号,在时间域内,相邻语音片段之间的持续时间会存在微小的误差。It can be seen that self-excited oscillation refers to a constant and continuous oscillation generated by itself without an external excitation signal. In this embodiment, the third audio signal Sc of self-excited oscillation generated by the sound reinforcement system is the same segment of speech with a certain frequency. In the audio signal formed by frequency loop superposition, there will be slight errors in the duration between adjacent speech segments in the time domain.

在一些实施例中,前述步骤S40中,根据第三音频信号的自激振荡信息获得该扩声系统的扩声延时可包括: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:

在第二次运行扩声系统时,播放第一音频信号Sa,并利用前述的调整参数对第三音频信号Sc进行实时的语音算法处理以获得第二中间信号(未示出),该第二中间信号即为声音回环形成的自激振荡信号,包括多个信号片段;再根据该第二中间信号确定扩声系统的扩声延时。When running the sound reinforcement system for the second time, the first audio signal Sa is played, and the third audio signal Sc is processed by a real-time speech algorithm using the aforementioned adjustment parameters to obtain a second intermediate signal (not shown), the second The intermediate signal is the self-excited oscillation signal formed by the sound loop, including multiple signal segments; and then the sound reinforcement delay of the sound reinforcement system is determined according to the second intermediate signal.

在本实施例中,前述的语音算法处理包括对获得的音频信号添加固定延时。In this embodiment, the aforementioned speech algorithm processing includes adding a fixed delay to the obtained audio signal.

真实使用的本地扩声系统中,人说话的声音A和扬声器扩声B之间的延时是非常短的,这两个信号在时间轴上是部分重叠在一起的。通过增加的固定延时后再进行语音处理,这样人说话的声音A,经过延时后再从扬声器出来的扩声B就分离出来,这样A和B两个信号在时间轴上可能是完全不重合的,从而“分离"出来,便于对B进行处理。In the real local sound reinforcement system, the delay between the voice A of the person speaking and the sound reinforcement B of the speaker is very short, and the two signals are partially overlapped on the time axis. Speech processing is performed after adding a fixed delay, so that the sound A of the person speaking is separated from the sound reinforcement B that comes out of the speaker after a delay, so that the two signals of A and B may be completely different on the time axis Coincident, thus "separated" out to facilitate the processing of B.

设定固定延时的目的是能有效的分离出每次扩声后的语音信号。故其延时处理的步骤可以变化的,它可在获得第二音频信号Sb之后,也可以在得到第三音频信号Sc之后,在此不作限制。The purpose of setting a fixed delay is to effectively separate the voice signal after each sound reinforcement. Therefore, the delay processing step can be changed, it can be after the second audio signal Sb is obtained, or after the third audio signal Sc is obtained, which is not limited here.

在一些实施例中,前述步骤S40中,根据第二中间信号获得该扩声系统的扩声延时还包括: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:

获得前述第二中间信号中的多个信号片段;obtaining a plurality of signal segments in the aforementioned second intermediate signal;

计算相邻信号片段之间的真实延时t0(如图5b,以及下文实施例中的表格所示);Calculate the real delay t0 between adjacent signal segments (as shown in Figure 5b and the table in the following embodiments);

将真实延时减去固定延时获得其对应的系统延时t1(下文实施例中的表格所示);以及The real delay is subtracted from the fixed delay to obtain its corresponding system delay t1 (shown in the table in the following embodiments); and

根据多个相邻信号片段之间的系统延时t1的统计数据获得该扩声系统的扩声延时。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.

在进一步的实施例中,根据多个相邻信号片段之间的系统延时的统计数据获得该扩声系统的扩声延时包括: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:

根据多个相邻信号片段之间的系统延时的统计众数作为该扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is taken as the statistical mode of the system delay between multiple adjacent signal segments.

本实施例中用于扩声系统的延时测量方法,无需人工干预就可以自动测试得到系统的扩音延迟,智能化和自动化程度高,高效快捷。The delay measurement method used in the sound reinforcement system in this embodiment can automatically test and obtain the sound reinforcement delay of the system without manual intervention, which is highly intelligent and automatic, efficient and fast.

在本实施例中,利用扩声系统两次播放同一序列,通过算法使得扩声系统产生自激震荡信号,并进行有效利用,避免了干扰,并基于扩声系统产生的自激震荡信号计算得到延时,在多个结果选择出现最多的结果,提升了算法的可靠性,使得扩声延时计算更加准确。In this embodiment, the sound reinforcement system is used to play the same sequence twice, and an algorithm is used to make the sound reinforcement system generate a self-excited oscillation signal, which is effectively used to avoid interference, and is calculated based on the self-excited oscillation signal generated by the sound reinforcement system Delay, select the result that appears the most among multiple results, which improves the reliability of the algorithm and makes the calculation of the sound reinforcement delay more accurate.

在上述实施过程中,使用算法对回声信号进行幅度的修改,不会更改麦克风输入音量,也不会更改扬声器音量,因此对扩声系统参数无修改,操作方便。In the above implementation process, the algorithm is used to modify the amplitude of the echo signal without changing the input volume of the microphone or the volume of the speaker, so there is no modification to the parameters of the sound reinforcement system, and the operation is convenient.

参考图3所示本公开实施例提供的延时测量方法在一实施方式的模型,结合前述实施例进行理解。该流程模型可包括:With reference to the model of the delay measurement method provided by the embodiment of the present disclosure shown in FIG. 3 in an implementation manner, it can be understood in conjunction with the foregoing embodiments. The process model can include:

步骤1:设定输入语音的固定延时。Step 1: Set a fixed delay for input voice.

在该步骤中,该固定延时可用于分离出每次扩声后的语音信号,可通过声音延时器来进行设定能将拾音器采集的语音信号经固定延时后再进行算法处理。在本实施例中,设定输入的固定延时例如为480毫秒,期望能有效的分离出每次扩声后的语音信号。In this step, the fixed delay time can be used to separate the voice signal after each sound reinforcement, and can be set through the sound delay device, so that the voice signal collected by the pickup can be processed by an algorithm after a fixed delay time. In this embodiment, the fixed input delay is set to be, for example, 480 milliseconds, and it is expected that the speech signal after each sound reinforcement can be effectively separated.

步骤2:第一次运行扩声系统,播放第一音频信号Sa,获得麦克风采集的第二音频信号Sb和语音算法输出第三音频信号Sc。Step 2: Run the sound reinforcement system for the first time, play the first audio signal Sa, obtain the second audio signal Sb collected by the microphone and the third audio signal Sc output by the speech algorithm.

步骤3:对第二音频信号Sb处理,得到对第二音频信号Sb进行修改调整的方法策略。Step 3: Process the second audio signal Sb to obtain a strategy for modifying and adjusting the second audio signal Sb.

在该步骤中,待扩声系统第一次运行停止后,利用增益控制模块通过优化算法计算出对第二音频信号Sb进行修改调整的方法策略,具体的,例如包括:对前述第二音频信号Sb进行语音算法处理以获得第一中间信号(未示出);对该第二音频信号Sb进行增益和/或幅度调节成前述的第一中间信号,以获得前述的调整参数,其中,该第一中间信号可满足该扩声系统的自激振荡条件,以产生自激振荡的第三音频信号Sc。In this step, after the sound reinforcement system stops running for the first time, use the gain control module to calculate the method strategy for modifying and adjusting the second audio signal Sb through an optimization algorithm, specifically, for example, including: Sb performs speech algorithm processing to obtain a first intermediate signal (not shown); the second audio signal Sb performs gain and/or amplitude adjustment to the aforementioned first intermediate signal to obtain the aforementioned adjustment parameters, wherein the first audio signal Sb An intermediate signal can satisfy the self-oscillating condition of the sound reinforcement system to generate a self-oscillating third audio signal Sc.

并在第二次运行扩声系统时应用对Sb修改调整的方法策略,该方法策略包括对信号幅度的放大和缩小。在本实施例中,前述的优化算法的检测方式包括:语音活动检测、幅度变化和频率幅度对比。And when the sound reinforcement system is run for the second time, the method strategy of modifying and adjusting Sb is applied, and the method strategy includes the amplification and reduction of the signal amplitude. In this embodiment, the aforementioned detection methods of the optimization algorithm include: voice activity detection, amplitude change, and frequency-amplitude comparison.

在上述实施过程中,使用算法对回声信号进行幅度的修改,不会更改麦克风输入音量,也不会更改扬声器音量,因此对扩声系统参数无修改,操作方便。In the above implementation process, the algorithm is used to modify the amplitude of the echo signal without changing the input volume of the microphone or the volume of the speaker, so there is no modification to the parameters of the sound reinforcement system, and the operation is convenient.

步骤4:对第一音频信号Sa,第二音频信号Sb和第三音频信号Sc处理,得到对第三音频信号Sc进行修改调整的方法策略。Step 4: Process the first audio signal Sa, the second audio signal Sb and the third audio signal Sc to obtain a strategy for modifying and adjusting the third audio signal Sc.

在本步骤中,对第三音频信号Sc进行修改调整是为了优化该第三音频信号Sc,使得到的语音更清楚,波形更稳定持续,便于扩声延时的检测计算,以提高其准确性。In this step, the purpose of modifying and adjusting the third audio signal Sc is to optimize the third audio signal Sc, so that the obtained voice is clearer, the waveform is more stable and continuous, and it is convenient for the detection and calculation of the sound reinforcement delay to improve its accuracy. .

步骤5:第二次运行扩声系统,应用修改调整的方法策略,利用算法对第三音频信号Sc进行实时调整处理。Step 5: Run the sound reinforcement system for the second time, apply the modification and adjustment method strategy, and use the algorithm to perform real-time adjustment processing on the third audio signal Sc.

在该步骤中,调整后的第三音频信号Sc为扩声系统的自激振荡信号,如图5b所示,包括多个语音信号片段。In this step, the adjusted third audio signal Sc is a self-excited oscillation signal of the sound reinforcement system, as shown in FIG. 5 b , including a plurality of speech signal segments.

在本实施例中,该延时计算测量方法还包括:检测第三音频信号Sc中语音信号片段之间的真实延时是否满足预设阈值:如果不满足,则停止扩声系统的运行;如果满足,则继续执行该延时测量方法的操作。In this embodiment, the delay calculation and measurement method further includes: detecting whether the real delay between speech signal segments in the third audio signal Sc meets a preset threshold: if not, stop the operation of the sound reinforcement system; if If it is satisfied, continue to perform the operation of the delay measurement method.

在本实施例中,真实延时可以视为相邻的两个有效信号片段之间的持续时间,第二中间信号中如果存在信号片段发生振幅异常或突变(如噪声干扰影响),有可能部分片段失效或发生异常,那么测量的这部分信号片段的持续时间也会超出预设的阈值,导致最终的扩声延时计算误差变大,因此需要剔除,所以会有前述检测第三音频信号Sc中语音信号片段之间的真实延时是否满足预设阈值,前面对第三音频信号Sc的实时调整也是对波形的优化处理,使尽可能得到符合要求的第二中间信号。但如果连续多个信号片段失效或发生振幅异常,则证明系统运行异常或音频传输或算法处理出现异常,则需停止该扩声系统的运行,进行自检和异常排查。In this embodiment, the real time delay can be regarded as the duration between two adjacent effective signal segments. If there is an abnormal amplitude or sudden change in the signal segment (such as noise interference) in the second intermediate signal, there may be some If the segment fails or is abnormal, the duration of the measured signal segment will also exceed the preset threshold, resulting in a larger error in the calculation of the final sound reinforcement delay, so it needs to be eliminated, so there will be the aforementioned detection of the third audio signal Sc Whether the real time delay between the middle voice signal segments meets the preset threshold, the previous real-time adjustment of the third audio signal Sc is also the optimization of the waveform, so that the second intermediate signal that meets the requirements can be obtained as much as possible. However, if multiple consecutive signal segments fail or have abnormal amplitudes, it proves that the system is operating abnormally or that audio transmission or algorithm processing is abnormal, and the operation of the sound reinforcement system needs to be stopped for self-check and abnormal troubleshooting.

步骤6:利用算法检测第三音频信号Sc中满足预设强度要求的信号片段,并计算信号片段之间真实延时对应的系统延时,然后对所有的系统延时的统计众数作为扩声系统的应用扩声延时。Step 6: Use an algorithm to detect signal segments that meet the preset strength requirements in the third audio signal Sc, and calculate the system delay corresponding to the real delay between signal segments, and then use the statistical mode of all system delays as the sound reinforcement The application sound reinforcement delay of the system.

在一些实施例中,以图5b所示的第三音频信号Sc为例简要描述对Sc处理得到扩声延时的过程。遍历前述的第二中间信号(即调整后的第三音频信号Sc,以下简称为第三音频信号Sc),该第三音频信号Sc中会有多个信号片段满足预设要求。对满足要求的信号片段之间计算真实延时t0,然后对所有的真实延时t0,然后根据真实延时t0减去固定延时得到对应的系统延时t1,再对得到的所有系统延时t1进行统计计数,求取出现次数最多的(即集合中的众数)系统延时t1,作为扩声系统的扩声延时。In some embodiments, the process of processing Sc to obtain sound reinforcement delay is briefly described by taking the third audio signal Sc shown in FIG. 5b as an example. Traversing through the aforementioned second intermediate signal (ie, the adjusted third audio signal Sc, hereinafter referred to as the third audio signal Sc), there will be a plurality of signal segments in the third audio signal Sc meeting the preset requirements. Calculate the real delay t0 between the signal segments that meet the requirements, then calculate the real delay t0 for all the real delays t0, then subtract the fixed delay from the real delay t0 to obtain the corresponding system delay t1, and then calculate all the obtained system delays t1 performs statistical counting, and obtains the system delay t1 with the most occurrences (that is, the mode number in the set) as the sound reinforcement delay of the sound reinforcement system.

如图4所示,在本实施例中,第一音频信号Sa于时间Ta开始传输到扬声器。扬声器发出声音经空气传播到拾音器(麦克风)处。拾音器将声音转为电信号并放大后形成第二音频信号Sb于Tb时间传送到延时测量装置(图中方框)。第二音频信号Sb经过处理和计算后于时间Tc变成了第三音频信号Sc。该第三音频信号Sc从延时测量装置开始传输到扬声器,重复第一音频信号Sa的过程。在上述处理过程中,可以认为整个本地扩声系统的扩声延时为(Tc-Ta)。As shown in FIG. 4 , in this embodiment, the first audio signal Sa starts to be transmitted to the speaker at time Ta. The sound from the speaker travels through the air to the pickup (microphone). The pickup converts the sound into an electrical signal and amplifies it to form a second audio signal Sb and transmits it to the delay measuring device (the box in the figure) at time Tb. After the second audio signal Sb is processed and calculated, it becomes the third audio signal Sc at time Tc. The third audio signal Sc is transmitted from the delay measuring device to the loudspeaker, repeating the process of the first audio signal Sa. In the above process, it can be considered that the sound reinforcement delay of the entire local sound reinforcement system is (Tc-Ta).

结合下表,假设第三音频信号Sc中13个信号片段都满足预设要求,则计算他们之间的扩声延时。假设计算出的结果如下表所示。统计所有系统延时发现47ms出现次数最多,故最后认为扩声系统的扩声延时为47ms。Combined with the table below, assuming that the 13 signal segments in the third audio signal Sc all meet the preset requirements, the sound reinforcement delay between them is calculated. Assume that the calculated results are shown in the table below. Counting all system delays, it is found that 47ms occurs most frequently, so it is finally considered that the sound reinforcement delay of the sound reinforcement system is 47ms.

Figure BDA0003720141760000111
Figure BDA0003720141760000111

本实施例中,利用扩声系统两次播放同一序列,通过算法使得扩声系统产生自激震荡信号,并进行有效利用,避免了干扰,并基于扩声系统产生的自激震荡信号计算得到延时,在多个结果选择出现最多的结果,提升了算法的可靠性,使得扩声延时计算更加准确。In this embodiment, the sound reinforcement system is used to play the same sequence twice, and an algorithm is used to make the sound reinforcement system generate a self-excited oscillation signal, which is effectively used to avoid interference, and the delay is calculated based on the self-excited oscillation signal generated by the sound reinforcement system. When , the most frequent result is selected among multiple results, which improves the reliability of the algorithm and makes the calculation of the sound reinforcement delay more accurate.

由此,本公开实施例提供的用于扩声系统的延时测量方法,无需人工干预就可以自动测试得到系统的扩音延迟,智能化和自动化程度高,高效快捷,可以有效提高扩声系统延时测量的准确性和可操作性,避免人工干预带来的误差,节省成本,提高调试效率。Therefore, the delay measurement method for the sound reinforcement system provided by the embodiment of the present disclosure can automatically test and obtain the sound reinforcement delay of the system without manual intervention, has a high degree of intelligence and automation, is efficient and fast, and can effectively improve the sound reinforcement system. The accuracy and operability of delay measurement can avoid errors caused by manual intervention, save costs and improve debugging efficiency.

图6示出本公开实施例提供的一种用于扩声系统的延时测量装置的应用模型示意图。Fig. 6 shows a schematic diagram of an application model of a delay measurement device for a sound reinforcement system provided by an embodiment of the present disclosure.

参考图6,本公开又一实施例中提供了一种用于扩声系统的延时测量装置100,其包括:采集模块110、输入模块120、处理模块140和计算模块150,Referring to FIG. 6, another embodiment of the present disclosure provides a delay measurement device 100 for a sound reinforcement system, which includes: an acquisition module 110, an input module 120, a processing module 140 and a calculation module 150,

其中,输入模块120用于设定输入语音的固定延时;采集模块110分别连接扩声系统中的扬声器和麦克风,并通过扬声器播放预设的第一音频信号Sa,以及利用麦克风拾取第二音频信号Sb;处理模块140用于将扩声后的语音信号缓存固定延时后再进行处理,以及将第二音频信号Sb经过语音算法处理为第三音频信号Sc;计算模块150内含算法模块,可用于执行前述实施例中所述的多种算法,在本实施例中一方面用于根据对第三音频信号Sc的自激振荡信息进行检测计算,以获得该扩声系统的扩声延时,另一方面还可用于检测第三音频信号Sc中语音信号片段之间是否满足预设阈值,如果不满足预设要求则停止扩声系统的运行。Wherein, the input module 120 is used to set the fixed delay of the input voice; the acquisition module 110 is respectively connected to the loudspeaker and the microphone in the sound reinforcement system, and plays the preset first audio signal Sa through the loudspeaker, and uses the microphone to pick up the second audio Signal Sb; the processing module 140 is used to buffer the voice signal after the sound reinforcement for a fixed delay before processing, and process the second audio signal Sb into the third audio signal Sc through a voice algorithm; the calculation module 150 contains an algorithm module, It 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 , on the other hand, can also be used to detect whether the preset threshold is satisfied between speech signal segments in the third audio signal Sc, and stop the operation of the sound reinforcement system if the preset requirement is not met.

在一些实施例中,前述的延时测量装置100还可以包括:In some embodiments, the aforementioned delay measurement device 100 may also include:

增益控制模块130,该增益控制模块130用于通过优化算法分别计算出对第二音频信号Sb和第三音频信号Sc进行修改调整的方法策略,以获得该扩声系统的调整参数,并在第二次运行本地扩声系统时应用该调整的方法策略,利用前述的调整参数实时调整获得的第三音频信号Sc。该方法策略包括但不限于对信号幅度的放大和缩小。在本实施例中,前述的优化算法的检测方式包括:语音活动检测、幅度变化和频率幅度对比。Gain control module 130, the gain control module 130 is used to respectively calculate the method strategies for modifying and adjusting the second audio signal Sb and the third audio signal Sc through an optimization algorithm, so as to obtain the adjustment parameters of the sound reinforcement system, and in the This adjustment method strategy is applied when the local sound reinforcement system is operated for the second time, and the obtained third audio signal Sc is adjusted in real time by using the aforementioned adjustment parameters. The method strategy includes but not limited to the amplification and reduction of the signal amplitude. In this embodiment, the aforementioned detection methods of the optimization algorithm include: voice activity detection, amplitude change, and frequency-amplitude comparison.

在本实施例中,前述的处理模块140还用于执行:In this embodiment, the aforementioned processing module 140 is also used to execute:

对第二音频信号Sb进行语音算法处理以获得第一中间信号(未示出);以及Carrying out voice algorithm processing to the second audio signal Sb to obtain a first intermediate signal (not shown); and

利用调整参数对第三音频信号Sc进行语音算法处理以获得第二中间信号(未示出),其中,第一中间信号可满足扩声系统的自激振荡条件,以产生自激振荡的第三音频信号,第二中间信号包括多个信号片段。The third audio signal Sc is processed by a speech algorithm using the adjustment parameters to obtain a second intermediate signal (not shown), wherein the first intermediate signal can meet the self-oscillating conditions of the sound reinforcement system to generate a third audio signal of self-oscillating The audio signal, the second intermediate signal includes a plurality of signal segments.

在一些实施例中,前述的计算模块150在根据对第三音频信号的自激振荡信息进行检测计算,以获得扩声系统的扩声延时中用于执行:In some embodiments, the aforementioned calculation module 150 is used to perform detection and calculation according to the self-excited oscillation information of the third audio signal to obtain the sound reinforcement delay of the sound reinforcement system:

获得前述第二中间信号中的多个信号片段;obtaining a plurality of signal segments in the aforementioned second intermediate signal;

计算相邻信号片段之间的真实延时;Calculate the real delay between adjacent signal segments;

将真实延时减去固定延时对应获得其系统延时;以及Subtract the fixed delay from the real delay to obtain its system delay; and

根据多个相邻信号片段之间的系统延时的统计数据获得该扩声系统的扩声延时。The sound reinforcement delay of the sound reinforcement system is obtained according to the statistical data of the system delay between a plurality of adjacent signal segments.

在进一步的实施例中,该延时测量装置100是根据前述多个相邻信号片段之间的系统延时的统计众数作为该扩声系统的扩声延时。In a further embodiment, the delay measuring device 100 is based on the statistical mode of the system delay between the aforementioned multiple adjacent signal segments as the sound reinforcement delay of the sound reinforcement system.

综上,本发明实施例提供的一种用于扩声系统的延时测量装置100可以提高扩声系统延时测量的准确性和可操作性,其智能化和自动化程度高,高效快捷,无需人工干预就可以自动测试得到系统的扩音延迟,能有效避免人工干预带来的误差,节省成本,提高调试效率。同时使用算法对回声信号进行幅度的修改,不会更改麦克风输入音量,也不会更改扬声器音量,因此对扩声系统参数无修改,操作方便。To sum up, the delay measuring device 100 for sound reinforcement system provided by the embodiment of the present invention can improve the accuracy and operability of the delay measurement of the sound reinforcement system. Manual intervention can automatically test and obtain the system's PA delay, which can effectively avoid errors caused by manual intervention, save costs, and improve debugging efficiency. At the same time, the algorithm is used to modify the amplitude of the echo signal, which will not change the input volume of the microphone or the volume of the speaker, so there is no modification to the parameters of the sound reinforcement system, and the operation is convenient.

本申请实施例提供了一种电子设备,包括存储器以及处理器,存储器用于存储计算机程序,处理器运行计算机程序以使电子设备执行本申请前述实施例中所提供的用于扩声系统的延时测量方法。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 extended sound reinforcement system provided in the foregoing embodiments of the present application. time measurement method.

本申请实施例提供了一种计算机可读存储介质,其存储有计算机程序指令,计算机程序指令被一处理器读取并运行时,执行本申请前述实施例中所提供的用于扩声系统的延时测量方法。The 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 method for the sound reinforcement system provided in the foregoing embodiments of the present application is executed. Delay measurement method.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. 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 in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the 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 the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above descriptions are only examples of the present application, and are not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application. It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

应当说明的是,在本发明的描述中,需要理解的是,术语“上”、“下”、“内”等指示方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的组件或元件必须具有特定的方位,以特定的方位构造和操作,因此不能理解为对本发明的限制。It should be noted that in the description of the present invention, it should be understood that the terms "upper", "lower", "inner" and the like indicate orientation or positional relationship, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating Or imply that the components or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore should not be construed as limiting the invention.

此外,在本文中,所含术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Furthermore, herein, the inclusive term "comprises," "comprising," or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also Other elements not expressly listed, or inherent to the process, method, article, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

最后应说明的是:显然,上述实施例仅仅是为清楚地说明本发明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引申出的显而易见的变化或变动仍处于本发明的保护范围之中。Finally, it should be noted that: obviously, the above-mentioned embodiments are only examples for clearly illustrating the present invention, rather than limiting the implementation. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all the implementation manners here. However, obvious changes or modifications derived therefrom are still within the protection scope of the present 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)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005125272A1 (en) * 2004-06-16 2005-12-29 Matsushita Electric Industrial Co., Ltd. Howling suppression device, program, integrated circuit, and howling suppression method
CN204334931U (en) * 2014-12-26 2015-05-13 南京信息工程大学 Howling detection and suppression system based on MAX262 and FPGA
CN111462771A (en) * 2020-04-03 2020-07-28 宁波菊风系统软件有限公司 Howling processing method
KR20200128687A (en) * 2020-04-10 2020-11-16 난징 트월링 테크놀로지 컴퍼니 리미티드 Howling suppression method, device and electronic equipment
CN113411417A (en) * 2020-02-28 2021-09-17 华为技术有限公司 Wireless sound amplification system and terminal
CN113783101A (en) * 2021-07-28 2021-12-10 北京科益虹源光电技术有限公司 Energy control method and device for dual-cavity excimer laser
CN114242101A (en) * 2021-12-20 2022-03-25 北京奕斯伟计算技术有限公司 Echo cancellation method for voice interactive system, electronic device and storage medium
CN114242102A (en) * 2021-12-20 2022-03-25 北京奕斯伟计算技术有限公司 Echo cancellation method for voice interactive system, electronic device and storage medium
CN114464205A (en) * 2022-02-10 2022-05-10 杭州联吉技术有限公司 Audio processing method based on howling detection and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005125272A1 (en) * 2004-06-16 2005-12-29 Matsushita Electric Industrial Co., Ltd. Howling suppression device, program, integrated circuit, and howling suppression method
CN204334931U (en) * 2014-12-26 2015-05-13 南京信息工程大学 Howling detection and suppression system based on MAX262 and FPGA
CN113411417A (en) * 2020-02-28 2021-09-17 华为技术有限公司 Wireless sound amplification system and terminal
CN111462771A (en) * 2020-04-03 2020-07-28 宁波菊风系统软件有限公司 Howling processing method
KR20200128687A (en) * 2020-04-10 2020-11-16 난징 트월링 테크놀로지 컴퍼니 리미티드 Howling suppression method, device and electronic equipment
CN113783101A (en) * 2021-07-28 2021-12-10 北京科益虹源光电技术有限公司 Energy control method and device for dual-cavity excimer laser
CN114242101A (en) * 2021-12-20 2022-03-25 北京奕斯伟计算技术有限公司 Echo cancellation method for voice interactive system, electronic device and storage medium
CN114242102A (en) * 2021-12-20 2022-03-25 北京奕斯伟计算技术有限公司 Echo cancellation method for voice interactive system, electronic device and storage medium
CN114464205A (en) * 2022-02-10 2022-05-10 杭州联吉技术有限公司 Audio processing method based on howling detection and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HUAGUO GAN: "howling noise cancellation in time-frequency domain by deep neural network", SPRINGER, 17 September 2021 (2021-09-17) *
黄子腾: "基于小波分析的声频系统声反馈探测与抑制技术研究", CNKI中国优秀硕士学位论文全文库, 1 April 2012 (2012-04-01) *

Similar Documents

Publication Publication Date Title
EP3128767B1 (en) System and method to enhance speakers connected to devices with microphones
US8761406B2 (en) Audio signal processing device and audio signal processing method
CN103152668B (en) Adjusting method of output audio and system thereof
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
JP2011130212A (en) Sound processing apparatus and method
WO2017088632A1 (en) Recording method, recording playing method and apparatus, and terminal
US11632200B2 (en) Measuring and evaluating a test signal generated by a device under test (DUT)
CN102104815A (en) Auto-tuning earphone and earphone tuning method
CN103746668A (en) Sound volume control method and system
CN110035372A (en) Output control method and device of sound amplification system, sound amplification system and computer equipment
JPH10271595A (en) Speaker equipment utilizing feedback
CN110475181B (en) Equipment configuration method, device, equipment and storage medium
CN114902560A (en) Apparatus and method for automatic volume control with ambient noise compensation
CN110996238B (en) Binaural synchronous signal processing hearing aid system and method
CN105764008B (en) A method and device for debugging the transmission frequency characteristics of a sound reinforcement system
CN110611862A (en) Microphone gain adjusting method, device, system and storage medium
CN115278499A (en) Time delay measuring method and device, electronic equipment and storage medium
US20120057714A1 (en) Automatic Tunable Earphone And Method For Tuning The Same
WO2024051820A1 (en) Abnormality-based paging method and related apparatus
CN115835092B (en) A method, system, computer and storage medium for suppressing audio sound reinforcement feedback
CN116233715A (en) Sound amplification quality detection and indication method and sound amplification system
CN110012408B (en) Howling detection method and device
US8934996B2 (en) Transmission apparatus and transmission method
CN110931029A (en) Audio interference prevention method
CN118366488B (en) Recording system and computer readable storage medium

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