WO2019001158A1 - Method and apparatus for determining position of loudspeaker, and loudspeaker - Google Patents

Method and apparatus for determining position of loudspeaker, and loudspeaker Download PDF

Info

Publication number
WO2019001158A1
WO2019001158A1 PCT/CN2018/086849 CN2018086849W WO2019001158A1 WO 2019001158 A1 WO2019001158 A1 WO 2019001158A1 CN 2018086849 W CN2018086849 W CN 2018086849W WO 2019001158 A1 WO2019001158 A1 WO 2019001158A1
Authority
WO
WIPO (PCT)
Prior art keywords
frequency response
speaker
response data
different positions
new frequency
Prior art date
Application number
PCT/CN2018/086849
Other languages
French (fr)
Chinese (zh)
Inventor
王备
王新闯
刘嘉禾
Original Assignee
歌尔丹拿音响有限公司
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 歌尔丹拿音响有限公司 filed Critical 歌尔丹拿音响有限公司
Publication of WO2019001158A1 publication Critical patent/WO2019001158A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/34Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by using a single transducer with sound reflecting, diffracting, directing or guiding means
    • H04R1/345Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by using a single transducer with sound reflecting, diffracting, directing or guiding means for loudspeakers

Definitions

  • the position models corresponding to different positions are trained.
  • the determining module 630 is configured to determine a current location where the speaker is located according to the plurality of matching results.
  • Fig. 7 is a diagram showing the hardware configuration of a determining device for the position of a speaker according to an embodiment of the present invention.
  • the computer readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device to perform a series of operational steps on a computer, other programmable data processing device or other device to produce a computer-implemented process.
  • instructions executed on a computer, other programmable data processing apparatus, or other device implement the functions/acts recited in one or more of the flowcharts and/or block diagrams.

Abstract

Disclosed are a method and apparatus for determining the position of a loudspeaker, and a loudspeaker. The method comprises: acquiring new frequency response data measured when a loudspeaker is at the current position, wherein the frequency response data relates to an amplitude frequency response measured when the loudspeaker plays audio data at the current position; respectively carrying out a matching operation on the new frequency response data and pre-established position models of the loudspeaker at different positions, so as to obtain a plurality of matching results; and determining, according to the plurality of matching results, the current position of the loudspeaker. According to one embodiment of the present invention, the automatic determination of the position of a loudspeaker is realized.

Description

扬声器所处位置的确定方法及装置、扬声器Method and device for determining the position of the speaker, speaker 技术领域Technical field
本发明涉及音频信号处理技术领域,更具体地,涉及一种扬声器所处位置的确定方法及装置、扬声器。The present invention relates to the field of audio signal processing technologies, and in particular, to a method and apparatus for determining a location of a speaker, and a speaker.
背景技术Background technique
扬声器在房间内不同位置时,由于到周围反射面距离不同,其声学辐射特性会产生变化,进而影响用户的听音感受,因此有必要针对扬声器所处位置对播放的音频进行特定的均衡处理。在对播放的音频进行均衡处理之前,需要获知扬声器当前所处的位置。根据扬声器到反射面距离及反射面个数的不同,可将扬声器的位置分为“自由”、“墙边”与“墙角”三类。针对这三类不同位置,可针对性地进行均衡处理。为了自动判断扬声器所在位置,常用方法是在扬声器系统上安装一个麦克风,在扬声器播放音频数据的同时,测量“扬声器—房间—麦克风”系统(loudspeaker-empty room-microphone,简称LEM系统)的频率响应。根据频率响应,可以推算出扬声器的当前位置。When the speaker is in different positions in the room, the acoustic radiation characteristics will change due to the distance to the surrounding reflecting surface, which will affect the user's listening experience. Therefore, it is necessary to perform specific equalization processing on the played audio for the position of the speaker. Before the audio being played is equalized, it is necessary to know where the speaker is currently located. According to the distance from the speaker to the reflecting surface and the number of reflecting surfaces, the position of the speaker can be divided into three categories: "free", "wall side" and "wall corner". For these three different types of locations, the equalization process can be targeted. In order to automatically determine the location of the speaker, a common method is to install a microphone on the speaker system, and measure the frequency response of the loudspeaker-empty room-microphone (LEM system) while the audio data is being played by the speaker. . Based on the frequency response, the current position of the speaker can be derived.
目前,常见的根据LEM系统的频率响应估计扬声器位置的算法是使用低频响应与中频响应之比为依据,其理论假设为低频响应受反射面距离影响较大,而中频响应与扬声器在房间位置无关。然而,此方法在实际应用中工作并不理想,原因是实测中发现中频响应变化起伏较大,导致扬声器所在位置的判断错误率较高。另外一种方法是仅使用低频响应作为扬声器在房间位置的判断依据,具体算法是将低频响应若干频率点对应的频率响应求加权平均,并设置合适的阈值,来区分三种不同的位置。该方法虽然避开了中频响应不稳定的问题,但是其权系数的设置以及阈值的选取缺乏有力的理论依据,只能靠不断试错来进行调整,费时费力。At present, the common algorithm for estimating the position of the speaker according to the frequency response of the LEM system is based on the ratio of the low frequency response to the intermediate frequency response. The theoretical assumption is that the low frequency response is greatly affected by the distance of the reflecting surface, and the intermediate frequency response is independent of the position of the speaker in the room. . However, this method does not work well in practical applications. The reason is that the variation of the IF response is found to be large and fluctuating in the actual measurement, resulting in a higher error rate of judgment of the position of the speaker. Another method is to use only the low frequency response as the basis for judging the position of the speaker in the room. The specific algorithm is to weight the average frequency response corresponding to several frequency points of the low frequency response, and set an appropriate threshold to distinguish three different positions. Although this method avoids the problem of unstable intermediate frequency response, the setting of its weight coefficient and the selection of threshold value lack a strong theoretical basis, and it can only be adjusted by continuous trial and error, which is time-consuming and laborious.
发明内容Summary of the invention
本发明的一个目的是提供一种扬声器所处位置的确定方法的新技术方案。It is an object of the present invention to provide a new technical solution for a method of determining the position of a loudspeaker.
根据本发明的第一方面,提供了一种扬声器所处位置的确定方法,包括:According to a first aspect of the present invention, there is provided a method of determining a location of a speaker, comprising:
获取所述扬声器处于当前位置时测量得到的新的频率响应数据,其中,所述频率响应数据是所述扬声器处于当前位置播放音频数据时,测得的幅度频率响应;Obtaining new frequency response data measured when the speaker is in a current position, wherein the frequency response data is a measured amplitude frequency response when the speaker is playing audio data at a current position;
将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果;Performing matching operations on the new frequency response data and the position model when the speaker is located at a different position in advance, to obtain a plurality of matching results;
根据所述多个匹配结果确定所述扬声器所处的当前位置。Determining a current location at which the speaker is located based on the plurality of matching results.
优选地,在将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果之前,还包括:Preferably, before the matching of the new frequency response data with the pre-established position of the speaker, the position model is matched to obtain a plurality of matching results, and further includes:
获取所述扬声器位于不同位置时测量得到的多个频率响应数据;Obtaining a plurality of frequency response data measured when the speaker is located at different positions;
根据不同位置对应的多个频率响应数据,训练得到不同位置对应的位置模型。According to a plurality of frequency response data corresponding to different positions, the position models corresponding to different positions are trained.
优选地,所述位置模型包括位置模型参数,Preferably, the position model includes a position model parameter,
所述不同位置对应的位置模型为高斯模型,The position model corresponding to the different positions is a Gaussian model.
所述位置模型参数包括不同位置下不同频率对应的幅度频率响应的平均值和不同位置下不同频率对应的幅度频率响应的方差。The position model parameters include an average value of amplitude frequency responses corresponding to different frequencies at different positions and a variance of amplitude frequency responses corresponding to different frequencies at different positions.
优选地,将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果,包括:Preferably, the new frequency response data is matched with the position model of the pre-established speaker at different positions to obtain a plurality of matching results, including:
基于高斯模型概率密度函数,利用所述不同位置对应的位置模型参数和所述新的频率响应数据,计算得到所述新的频率响应数据对应不同位置的概率;Calculating, according to the Gaussian model probability density function, the probability that the new frequency response data corresponds to different positions by using the position model parameter corresponding to the different position and the new frequency response data;
将所述新的频率响应数据对应不同位置的概率生成所述多个匹配结果。Generating the plurality of matching results by the probability that the new frequency response data corresponds to different locations.
优选地,根据所述多个匹配结果确定所述扬声器所处的当前位置,包括:Preferably, determining a current location where the speaker is located according to the multiple matching results includes:
从所述多个匹配结果中选择出与所述新的频率响应数据匹配程度最高的位置作为所述扬声器所处的当前位置;或者;Selecting, from the plurality of matching results, a position with the highest degree of matching with the new frequency response data as a current location where the speaker is located; or
将所述多个匹配结果进行混合运算,并将混合运算后的匹配结果对应的位置作为所述扬声器所处的当前位置。The plurality of matching results are mixed, and the position corresponding to the matching result after the mixing operation is taken as the current position where the speaker is located.
优选地,所述不同位置包括:自由位置、墙边位置和墙角位置。Preferably, the different locations include: a free position, a wall edge location, and a corner location.
根据本发明的第二方面,提供了一种扬声器所处位置的确定装置,包括:According to a second aspect of the present invention, there is provided a device for determining a position of a speaker, comprising:
获取模块,用于获取所述扬声器处于当前位置时测量得到的新的频率响应数据,其中,所述频率响应数据是所述扬声器处于当前位置播放音频数据时,测得的幅度频率响应;An acquiring module, configured to acquire new frequency response data measured when the speaker is in a current position, where the frequency response data is a measured amplitude frequency response when the speaker is playing audio data at a current position;
匹配模块,用于将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果;a matching module, configured to perform matching operations on the new frequency response data and the position model when the pre-established speaker is located at different positions, to obtain a plurality of matching results;
确定模块,用于根据所述多个匹配结果确定所述扬声器所处的当前位置。And a determining module, configured to determine a current location where the speaker is located according to the plurality of matching results.
优选地,所述位置模型包括位置模型参数,Preferably, the position model includes a position model parameter,
所述不同位置对应的位置模型为高斯模型,The position model corresponding to the different positions is a Gaussian model.
所述位置模型参数包括不同位置下不同频率对应的幅度频率响应的平均值和不同位置下不同频率对应的幅度频率响应的方差。The position model parameters include an average value of amplitude frequency responses corresponding to different frequencies at different positions and a variance of amplitude frequency responses corresponding to different frequencies at different positions.
优选地,所述匹配模块还用于:Preferably, the matching module is further configured to:
基于高斯模型概率密度函数,利用所述不同位置对应的位置模型参数和所述新的频率响应数据,计算得到所述新的频率响应数据对应不同位置的概率;Calculating, according to the Gaussian model probability density function, the probability that the new frequency response data corresponds to different positions by using the position model parameter corresponding to the different position and the new frequency response data;
将所述新的频率响应数据对应不同位置的概率生成所述多个匹配结果。Generating the plurality of matching results by the probability that the new frequency response data corresponds to different locations.
根据本发明的第三方面,提供了一种扬声器所处位置的确定装置,包括存储器和处理器,所述存储器用于存储指令,所述指令用于控制所述处理器进行操作以执行上述任一项所述的扬声器所处位置的确定方法。According to a third aspect of the present invention, there is provided apparatus for determining a position of a speaker, comprising a memory and a processor, the memory for storing an instruction for controlling the processor to operate to perform the above-described A method of determining the location of the speaker as described.
根据本发明的第四方面,提供了一种扬声器,包括如上述任一所述的扬声器所处位置的确定装置。According to a fourth aspect of the invention, there is provided a loudspeaker comprising determining means for the position of the loudspeaker as described above.
根据本发明提供的扬声器所处位置的确定方法及装置,通过将扬声器处于当前位置时测量得到新的频率响应数据分别与不同位置对应的位置模型进行匹配运算,根据匹配结果确定扬声器所处的当前位置,能够实现扬声器所处位置的自动化确定。另外,本发明提供的方法,提高了扬声器所处位置确定的准确性和精细性。According to the method and device for determining the position of the speaker provided by the present invention, the new frequency response data is measured and matched with the position model corresponding to the different position when the speaker is at the current position, and the current position of the speaker is determined according to the matching result. The position enables automatic determination of the position of the loudspeaker. In addition, the method provided by the present invention improves the accuracy and fineness of the position determination of the speaker.
通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。Other features and advantages of the present invention will become apparent from the Detailed Description of the <RTIgt;
附图说明DRAWINGS
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。The accompanying drawings, which are incorporated in FIG
图1示出了根据本发明一个实施例的扬声器所处位置的确定方法的流程图。1 shows a flow chart of a method of determining the position of a speaker in accordance with one embodiment of the present invention.
图2示出了根据本发明另一个实施例的扬声器所处位置的确定方法的示意图。2 is a schematic diagram showing a method of determining the position of a speaker according to another embodiment of the present invention.
图3示出了根据本发明一个实施例测试得到的频率响应数据对应的折线图。FIG. 3 shows a line graph corresponding to frequency response data obtained by testing according to an embodiment of the present invention.
图4示出了根据本发明一个实施例的不同位置对应的位置模型的训练示意图。4 is a schematic diagram showing the training of a position model corresponding to different positions according to an embodiment of the present invention.
图5示出了根据本发明一个实施例的新的频率响应数据的处理流程示意图。FIG. 5 is a flow chart showing the processing of new frequency response data according to an embodiment of the present invention.
图6示出了根据本发明一个实施例的扬声器所处位置的确定装置的结构示意图。Fig. 6 is a block diagram showing the structure of a determining device for a position of a speaker according to an embodiment of the present invention.
图7示出了根据本发明一个实施例的扬声器所处位置的确定装置的硬件结构的示意图。Fig. 7 is a diagram showing the hardware configuration of a determining device for the position of a speaker according to an embodiment of the present invention.
图8示出了根据本发明一个实施例的扬声器的结构示意图。Fig. 8 is a block diagram showing the structure of a speaker according to an embodiment of the present invention.
具体实施方式Detailed ways
现在将参照附图来详细描述本发明的各种示例性实施例。应注意到: 除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。Various exemplary embodiments of the present invention will now be described in detail with reference to the drawings. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in the embodiments are not intended to limit the scope of the invention.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。The following description of the at least one exemplary embodiment is merely illustrative and is in no way
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,技术、方法和设备应当被视为说明书的一部分。Techniques, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and devices should be considered as part of the specification.
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all of the examples shown and discussed herein, any specific values are to be construed as illustrative only and not as a limitation. Thus, other examples of the exemplary embodiments may have different values.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in one figure, it is not required to be further discussed in the subsequent figures.
本发明的一个实施例提供了一种扬声器所处位置的确定方法。图1示出了根据本发明一个实施例的扬声器所处位置的确定方法的处理流程图。参见图1,该方法至少包括步骤S101至步骤S103。One embodiment of the present invention provides a method of determining the location of a speaker. 1 is a process flow diagram showing a method of determining the position of a speaker in accordance with one embodiment of the present invention. Referring to FIG. 1, the method includes at least steps S101 to S103.
步骤S101,获取扬声器处于当前位置时测量得到的新的频率响应数据。Step S101: Obtain new frequency response data measured when the speaker is in the current position.
本发明的一个实施例中,频率响应数据是扬声器处于当前位置播放音频数据时,测得的幅度频率响应。In one embodiment of the invention, the frequency response data is the measured amplitude frequency response when the speaker is playing audio data at the current location.
具体的,频率响应数据可根据下述测试方法测试得到:在扬声器测试系统安装一个麦克风,组成“扬声器—房间—麦克风”测试系统;扬声器播放音频数据时,利用麦克风录制其采集到的音频信号;利用扬声器端播放的原始音频信号和麦克风录制的音频信号进行分析,得到扬声器处于该位置时的幅度频率响应。Specifically, the frequency response data can be tested according to the following test method: a microphone is installed in the speaker test system to form a "speaker-room-microphone" test system; when the speaker plays audio data, the audio signal collected by the microphone is recorded; The original audio signal played on the speaker side and the audio signal recorded by the microphone are analyzed to obtain the amplitude frequency response when the speaker is in the position.
需要说明的是,音频数据可以是音乐,也可以是视频中的语音,还可以是其他音频文件,或是音频流,本发明对此不做限制。It should be noted that the audio data may be music, or may be a voice in the video, or may be another audio file, or an audio stream, which is not limited by the present invention.
步骤S102,将新的频率响应数据分别与预先建立的扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果。Step S102, performing matching operations on the new frequency response data and the position model when the pre-established speakers are located at different positions, to obtain a plurality of matching results.
需要说明的是,在本发明实施例中,可以将扬声器的位置预先划分为 自由位置、墙边位置、墙角位置。例如,在长方形大厅中,若扬声器处于大厅中央位置时,则可认为扬声器的当前位置为自由位置。若扬声器位于大厅的一个墙壁上时,则可以认为扬声器的当前位置为墙边位置。若扬声器位于大厅的两个墙壁的相交处时,则可以认为扬声器的当前位置为墙角位置。It should be noted that, in the embodiment of the present invention, the position of the speaker can be pre-divided into a free position, a wall edge position, and a wall position. For example, in a rectangular hall, if the speaker is in the center of the hall, the current position of the speaker can be considered to be a free position. If the speaker is located on a wall in the hall, the current position of the speaker can be considered to be the wall position. If the speaker is located at the intersection of the two walls of the hall, the current position of the speaker can be considered to be the corner position.
需要说明的是,扬声器的位置还可以划分为其他类型,本发明对扬声器的位置的划分及划分类型并不做限定。本发明的重点并不是对扬声器位置类型的确定及划分,而是在已经划分的几个位置中,确定出扬声器当前位置是预先划分的几个位置的中的哪一个位置。因此,在本发明实施例中,在预先设定出扬声器可能存在的位置后,在其可能存在的位置中,确定出扬声器的当前位置。在本发明实施例中,仅以扬声器的位置预先划分为自由位置、墙边位置、墙角位置为例进行说明。It should be noted that the position of the speaker can also be divided into other types. The division and division type of the position of the speaker in the present invention are not limited. The focus of the present invention is not on the determination and division of the speaker position type, but in which of the several positions that have been divided, it is determined which of the pre-divided positions is the current position of the speaker. Therefore, in the embodiment of the present invention, after the position where the speaker may exist is set in advance, the current position of the speaker is determined in the position where it may exist. In the embodiment of the present invention, the position of the speaker is previously divided into a free position, a wall edge position, and a wall position as an example for description.
具体的,扬声器的位置分为自由位置,墙边位置和墙角位置,相应地,预先建立的位置模型包括自由位置时的位置模型,墙边位置时的位置模型,及墙角位置时的位置模型。Specifically, the position of the speaker is divided into a free position, a wall edge position, and a wall position. Accordingly, the pre-established position model includes a position model at a free position, a position model at a wall edge position, and a position model at a corner position.
在获取新的频率响应参数后,将新的频率响应数据分别与预建的不同位置对应的位置模型进行匹配运算。即将新的频率响应数据与自由位置时的位置模型进行匹配运算,将新的频率响应数据与墙边位置时的位置模型进行匹配运算,将新的频率响应数据与墙角位置时的位置模型进行匹配运算,得到多个匹配结果。After acquiring the new frequency response parameter, the new frequency response data is matched with the position model corresponding to the pre-built different position. The new frequency response data is matched with the position model at the free position, the new frequency response data is matched with the position model at the wall position, and the new frequency response data is matched with the position model at the corner position. Operate to get multiple matching results.
步骤S103,根据多个匹配结果确定扬声器所处的当前位置。Step S103, determining a current location where the speaker is located according to the plurality of matching results.
本发明的一个实施例中,从匹配结果中选择出与新的频率响应数据匹配程度最高的位置作为扬声器所处的当前位置。In one embodiment of the present invention, the position with the highest degree of matching with the new frequency response data is selected from the matching results as the current position at which the speaker is located.
进一步的,本发明的一个实施例中,在将新的频率响应数据分别与预先建立的扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果之前,如图2所示,扬声器所处位置的确定方法还包括:Further, in an embodiment of the present invention, before the new frequency response data is matched with the position model of the pre-established speaker at different positions, before the plurality of matching results are obtained, as shown in FIG. 2, the speaker station The method for determining the location also includes:
步骤S104,获取扬声器位于不同位置时测量得到的多个频率响应数据。Step S104: Acquire a plurality of frequency response data measured when the speakers are located at different positions.
步骤S105,根据不同位置对应的多个频率响应数据,训练得到不同 位置对应的位置模型。Step S105: Train the location models corresponding to different locations according to the plurality of frequency response data corresponding to the different locations.
需要说明地是,上述步骤S104和步骤S105的执行顺序可在上述步骤S101之前,或者,上述步骤S104和步骤S105的执行顺序还可在上述步骤S101之后且在步骤S102之前,对此,本发明并不作出任何限定。在图示中仅表示出一种情况。It should be noted that the execution order of the above steps S104 and S105 may be before the above step S101, or the execution order of the above steps S104 and S105 may also be after the above step S101 and before step S102, the present invention There are no restrictions. Only one case is shown in the illustration.
本发明的一个实施例中,上述涉及的多个频率响应数据是大数据级别的。具体地,获取自由位置对应的大量频率响应数据、墙边位置对应的大量频率响应数据和墙角位置对应的大量频率响应数据。In one embodiment of the invention, the plurality of frequency response data referred to above is of a big data level. Specifically, a plurality of frequency response data corresponding to the free position, a large amount of frequency response data corresponding to the wall position, and a large amount of frequency response data corresponding to the corner position are acquired.
图3示出了根据本发明一个实施例测试得到的频率响应数据对应的折线图。折线图的横坐标代表频率,单位为Hz,频率范围为40-80Hz。折线图的纵坐标代表幅度频率响应,单位dB。FIG. 3 shows a line graph corresponding to frequency response data obtained by testing according to an embodiment of the present invention. The abscissa of the line graph represents the frequency in Hz and the frequency range is 40-80 Hz. The ordinate of the line graph represents the amplitude frequency response in dB.
图3示出了三条折线,第一折线对应的是当扬声器所处位置对应自由位置时测量得到的频率响应数据,第二折线对应的是当扬声器所处位置对应墙边位置时测量得到的频率响应数据,第三折线对应的是当扬声器所处位置对应墙角位置时测量得到的频率响应数据。图3示出的三种位置对应的频率响应数据仅仅是作为一个示例,对本发明并不造成任何限定。Figure 3 shows three broken lines. The first broken line corresponds to the frequency response data measured when the position of the speaker corresponds to the free position, and the second broken line corresponds to the measured frequency when the position of the speaker corresponds to the position of the wall. In response to the data, the third fold line corresponds to the frequency response data measured when the position of the speaker corresponds to the corner position. The frequency response data corresponding to the three positions shown in FIG. 3 is merely an example, and the present invention is not limited at all.
本发明的一个实施例中,在获取到不同位置对应的大量频率响应数据之后,根据不同位置对应的大量频率响应数据,训练得到不同位置对应的位置模型,每一位置模型包括相应的位置模型参数。In an embodiment of the present invention, after obtaining a large number of frequency response data corresponding to different positions, according to a large number of frequency response data corresponding to different positions, a position model corresponding to different positions is trained, and each position model includes a corresponding position model parameter. .
进一步的,本发明一个实施例中,位置模型包括位置模型参数。本发明实施例涉及的位置模型为高斯模型,位置模型参数包括不同位置下不同频率对应的幅度频率响应的平均值和不同位置下不同频率对应的幅度频率响应的方差。Further, in one embodiment of the invention, the location model includes location model parameters. The position model involved in the embodiment of the present invention is a Gaussian model, and the position model parameters include an average value of amplitude frequency responses corresponding to different frequencies at different positions and a variance of amplitude frequency responses corresponding to different frequencies at different positions.
图4示出了根据本发明一个实施例的不同位置对应的位置模型的训练示意图。参见图4,以上述三类位置对应的大量频率响应数据为例,对本发明实施例的频率响应数据的训练进行说明。4 is a schematic diagram showing the training of a position model corresponding to different positions according to an embodiment of the present invention. Referring to FIG. 4, the training of the frequency response data of the embodiment of the present invention will be described by taking a large number of frequency response data corresponding to the above three types of positions as an example.
参见图4,在获取到自由位置对应的大量频率响应数据、墙边位置对应的大量频率响应数据以及墙角位置对应的大量频率响应数据后,对上述三类位置对应的频率响应数据分别进行数据处理,计算得到各类位置下不 同频率对应的幅度频率响应的平均值和各类位置下不同频率对应的幅度频率响应的方差。即为,针对每个位置均需计算不同频率对应的幅度频率响应的平均值和不同频率对应的幅度频率响应的方差。基于以下计算式(1),计算得到各类位置下不同频率对应的幅度频率响应的平均值μ(f),Referring to FIG. 4, after obtaining a large number of frequency response data corresponding to the free position, a large amount of frequency response data corresponding to the wall position, and a large number of frequency response data corresponding to the corner position, data processing is performed on the frequency response data corresponding to the three types of positions respectively. The average value of the amplitude frequency response corresponding to different frequencies under various positions and the variance of the amplitude frequency response corresponding to different frequencies under various positions are calculated. That is, for each position, the average value of the amplitude frequency response corresponding to the different frequencies and the variance of the amplitude frequency response corresponding to the different frequencies are calculated. Calculating the average value μ(f) of the amplitude frequency response corresponding to different frequencies at various positions based on the following formula (1),
Figure PCTCN2018086849-appb-000001
Figure PCTCN2018086849-appb-000001
其中,f为频率,i为获取的某一特定位置下大量频率响应数据的样本编号,N为总样本数,Y i(f)为频率f下第i个样本对应的幅度频率响应。 Where f is the frequency, i is the sample number of a large number of frequency response data at a specific position acquired, N is the total number of samples, and Y i (f) is the amplitude frequency response corresponding to the ith sample at frequency f.
基于以下计算式(2),计算得到各类位置下的不同频率对应的幅度频率响应的方差V(f),Calculating the variance V(f) of the amplitude frequency response corresponding to different frequencies under various types of positions based on the following formula (2),
Figure PCTCN2018086849-appb-000002
Figure PCTCN2018086849-appb-000002
其中,i为获取的某一特定位置下大量频率响应数据的样本编号,N为总样本数,Y i(f)为频率f下第i个样本对应的幅度频率响应,μ(f)为频率f下幅度频率响应的平均值。 Where i is the sample number of a large number of frequency response data at a specific location, N is the total number of samples, Y i (f) is the amplitude frequency response of the ith sample at frequency f, and μ(f) is the frequency The average of the amplitude frequency response at f.
参见图4,在计算得到各类位置下的不同频率对应的幅度频率响应的平均值和各类位置下不同频率对应的幅度频率响应的方差后,即可得到各位置对应的高斯模型,即自由位置对应的高斯模型、墙边位置对应的高斯模型和墙角位置对应的高斯模型。Referring to FIG. 4, after calculating the average value of the amplitude frequency response corresponding to different frequencies under various types of positions and the variance of the amplitude frequency response corresponding to different frequencies at various positions, the Gaussian model corresponding to each position can be obtained, that is, free The Gaussian model corresponding to the position, the Gaussian model corresponding to the position of the wall edge, and the Gaussian model corresponding to the position of the corner.
图5示出了根据本发明一个实施例的新的频率响应数据的处理流程示意图。参见图5,首先,获取扬声器处于当前位置时测量得到的新的频率响应数据,然后,将新的频率响应数据分别代入上述得到的各类位置对应的位置模型,分别与各类位置对应的位置模型进行匹配运算,得到多个匹配结果,最后,根据该多个匹配结果得到扬声器所处当前位置,并将扬声器所处当前位置进行输出。FIG. 5 is a flow chart showing the processing of new frequency response data according to an embodiment of the present invention. Referring to FIG. 5, first, the new frequency response data measured when the speaker is at the current position is obtained, and then the new frequency response data is respectively substituted into the position models corresponding to the various types of positions obtained above, and the positions corresponding to the various positions respectively. The model performs a matching operation to obtain a plurality of matching results. Finally, the current position of the speaker is obtained according to the plurality of matching results, and the current position of the speaker is output.
本发明的一个实施例中,基于高斯模型概率密度函数,利用不同位置 对应的位置模型参数和新的频率响应数据,计算得到新的频率响应数据对应的不同位置的概率。In one embodiment of the present invention, based on the Gaussian model probability density function, the probability of different locations corresponding to the new frequency response data is calculated using the position model parameters corresponding to the different positions and the new frequency response data.
进一步的,可以基于以下计算式(3),计算得到新的频率响应数据对应不同位置的概率,Further, the probability that the new frequency response data corresponds to different positions can be calculated based on the following calculation formula (3).
Figure PCTCN2018086849-appb-000003
Figure PCTCN2018086849-appb-000003
其中,j为位置类型,μ j为位置类型j下不同频率对应的幅度频率响应的平均值对应的矢量,V j为位置类型j下不同频率对应的幅度频率响应的方差对应的对角矩阵,D为矢量长度,x为新的频率响应数据对应的矢量。 Where j is the position type, μ j is the vector corresponding to the average value of the amplitude frequency response corresponding to different frequencies in the position type j, and V j is the diagonal matrix corresponding to the variance of the amplitude frequency response corresponding to the different frequencies in the position type j, D is the vector length and x is the vector corresponding to the new frequency response data.
以j为自由位置为例,对上述计算式(3)进行说明。根据计算式(1)计算得到图3示出的13个不同频率对应的幅度频率响应的平均值μ(f),μ(f)代表自由位置下频率为f时幅度频率响应的平均值。具体地,μ(f)为μ(40)、μ(42)、μ(45)、μ(48)、μ(50)、μ(53)、μ(57)、μ(60)、μ(63)、μ(67)、μ(71)、μ(76)、μ(80)。将计算得到的μ(40)、μ(42)、μ(45)、μ(48)、μ(50)、μ(53)、μ(57)、μ(60)、μ(63)、μ(67)、μ(71)、μ(76)、μ(80)组成一个13*1的列向量,该列向量即为μ j。相应地,矢量长度D为13;新的频率响应数据对应的矢量x是由13个不同频率对应的幅度频率响应组成的13*1的列向量。 Taking the j as a free position as an example, the above calculation formula (3) will be described. The average value μ(f) of the amplitude frequency responses corresponding to the 13 different frequencies shown in FIG. 3 is calculated according to the calculation formula (1), and μ(f) represents the average value of the amplitude frequency responses when the frequency is f at the free position. Specifically, μ(f) is μ(40), μ(42), μ(45), μ(48), μ(50), μ(53), μ(57), μ(60), μ( 63), μ (67), μ (71), μ (76), and μ (80). The calculated μ(40), μ(42), μ(45), μ(48), μ(50), μ(53), μ(57), μ(60), μ(63), μ (67), μ(71), μ(76), and μ(80) form a 13*1 column vector, which is μ j . Correspondingly, the vector length D is 13; the vector x corresponding to the new frequency response data is a 13*1 column vector composed of amplitude frequency responses corresponding to 13 different frequencies.
根据计算式(2)计算得到图3示出的13个不同频率对应的幅度频率响应的方差V(f),V(f)代表自由位置下频率为f时幅度频率响应的方差。具体地,V(f)为μ(40)、V(42)、V(45)、V(48)、V(50)、V(53)、V(57)、V(60)、V(63)、V(67)、V(71)、V(76)、V(80)。利用计算得到的V(40)、V(42)、V(45)、V(48)、V(50)、V(53)、V(57)、V(60)、V(63)、V(67)、V(71)、V(76)、V(80)组成一个13*13的对角矩阵,该对角矩阵的对角线上的元素对应的是V(40)、V(42)、V(45)、V(48)、V(50)、V(53)、V(57)、V(60)、V(63)、V(67)、V(71)、V(76)、 V(80),该对角矩阵即为V jThe variance V(f) of the amplitude frequency response corresponding to the 13 different frequencies shown in FIG. 3 is calculated according to the calculation formula (2), and V(f) represents the variance of the amplitude frequency response when the frequency is f at the free position. Specifically, V(f) is μ(40), V(42), V(45), V(48), V(50), V(53), V(57), V(60), V( 63), V (67), V (71), V (76), V (80). Calculated V(40), V(42), V(45), V(48), V(50), V(53), V(57), V(60), V(63), V (67), V(71), V(76), V(80) form a diagonal matrix of 13*13, and the elements on the diagonal of the diagonal matrix correspond to V(40), V(42 ), V(45), V(48), V(50), V(53), V(57), V(60), V(63), V(67), V(71), V(76 ), V(80), the diagonal matrix is V j .
具体地,将新的频率响应数据对应的矢量分别代入自由位置对应的高斯模型概率密度函数、墙边位置对应的高斯模型概率密度函数和墙角位置对应的高斯模型概率密度函数,计算得到新的频率响应数据对应不同位置类的概率。进而根据新的频率响应数据对应不同位置的概率确定扬声器所处当前位置。Specifically, the vector corresponding to the new frequency response data is substituted into the Gaussian model probability density function corresponding to the free position, the Gaussian model probability density function corresponding to the wall edge position, and the Gaussian model probability density function corresponding to the wall position, and the new frequency is calculated. The response data corresponds to the probability of different location classes. Further, the current position of the speaker is determined according to the probability that the new frequency response data corresponds to different positions.
需要说明地是,上述计算式(3)中,x是由新的频率响应数据中不同频率对应的幅度频率响应组成的矢量,V j中对角线上的元素对应的是位置类型j下不同频率对应的幅度频率响应,exp为以e为底的指数函数,H表示共轭转置。 It should be noted that, in the above calculation formula (3), x is a vector composed of amplitude frequency responses corresponding to different frequencies in the new frequency response data, and elements on the diagonal line in V j correspond to different position types j. The amplitude corresponds to the frequency response, exp is an exponential function with e as the base, and H is the conjugate transpose.
本发明的一个实施例中,从匹配结果中选择出与新的频率响应数据匹配程度最高的位置作为扬声器所处的当前位置。例如,利用基于上述计算式(3)计算得到新的频率响应数据对应不同位置的概率,即新的频率响应数据对应自由位置的概率是80%,新的频率响应数据对应墙边位置的概率是15%,新的频率响应数据对应墙角位置的概率是5%,进而确定扬声器所处当前位置是自由位置。In one embodiment of the present invention, the position with the highest degree of matching with the new frequency response data is selected from the matching results as the current position at which the speaker is located. For example, the probability that the new frequency response data corresponds to different positions is calculated by using the above calculation formula (3), that is, the probability that the new frequency response data corresponds to the free position is 80%, and the probability that the new frequency response data corresponds to the wall position is 15%, the probability of the new frequency response data corresponding to the corner position is 5%, and then determine that the current position of the speaker is a free position.
本发明的一个实施例中,当多个匹配结果中出现至少两个与新的频率响应数据匹配程度相同、且与新的频率响应数据匹配程度最高对应的位置时,将该至少两个位置对应的混合位置作为扬声器所处的当前位置。以上述三种位置为例,计算得到的匹配结果是新的频率响应数据与墙边位置模型和墙角位置模型的匹配程度相同,且均与新的频率响应数据匹配程度最高,此时,可确定扬声器所处当前位置对应的是墙边位置和墙角位置的混合位置。In an embodiment of the present invention, when at least two of the plurality of matching results have the same degree of matching with the new frequency response data and the highest matching degree with the new frequency response data, the at least two locations are corresponding to each other. The mixed position is the current position where the speaker is located. Taking the above three positions as an example, the calculated matching result is that the new frequency response data has the same degree of matching with the wall position model and the wall position model, and both match the new frequency response data to the highest degree. The current position of the speaker corresponds to the mixed position of the wall position and the corner position.
需要说明的是,在本发明一个实施例中,也可以直接反馈每个位置的概率,而不是直接将概率最大的位置作为扬声器的当前位置,作为反馈结果。这样可以使扬声器的均衡处理更准确。It should be noted that, in one embodiment of the present invention, the probability of each position may be directly fed back, instead of directly using the position with the highest probability as the current position of the speaker as a feedback result. This will make the equalization of the speaker more accurate.
本发明的一个实施例中,根据不同位置对应的多个频率响应数据,训练得到不同位置对应的位置模型。接着,将已知位置对应的频率响应数据分别输入至不同位置对应的位置模型进行匹配运算,得到多个匹配结果。 然后,根据该多个匹配结果得到扬声器所处当前位置,并将得到的扬声器所处当前位置与已知位置进行比对。最后,根据比对结果,确定训练得到的位置模型的准确性。In an embodiment of the present invention, a location model corresponding to different locations is trained according to a plurality of frequency response data corresponding to different locations. Then, the frequency response data corresponding to the known position is input to the position model corresponding to the different position to perform a matching operation, and a plurality of matching results are obtained. Then, according to the plurality of matching results, the current position of the speaker is obtained, and the current position where the obtained speaker is located is compared with the known position. Finally, based on the comparison results, the accuracy of the position model obtained by the training is determined.
基于同一发明构思,本发明提供了一种扬声器所处位置的确定装置。图6示出了根据本发明一个实施例的扬声器所处位置的确定装置的结构示意图。参见图6,该装置至少包括:获取模块610,用于获取扬声器处于当前位置时测量得到的新的频率响应数据,其中,频率响应数据是扬声器处于当前位置播放音频数据时,测得的幅度频率响应。Based on the same inventive concept, the present invention provides a determining device for the position of the speaker. Fig. 6 is a block diagram showing the structure of a determining device for a position of a speaker according to an embodiment of the present invention. Referring to FIG. 6, the apparatus at least includes: an obtaining module 610, configured to acquire new frequency response data measured when the speaker is in a current position, wherein the frequency response data is a measured amplitude frequency when the speaker is playing audio data at a current position. response.
匹配模块620,用于将新的频率响应数据分别与预先建立的扬声器所处位置对应不同位置时的位置模型进行匹配运算,得到多个匹配结果。The matching module 620 is configured to perform matching operation on the position model when the new frequency response data is respectively different from the position where the pre-established speaker is located, to obtain a plurality of matching results.
确定模块630,用于根据多个匹配结果确定扬声器所处的当前位置。The determining module 630 is configured to determine a current location where the speaker is located according to the plurality of matching results.
本发明的一个实施例中,位置模型包括位置模型参数。不同位置对应的位置模型为高斯模型,此时,位置模型参数包括不同位置下不同频率对应的幅度频率响应的平均值和不同置下不同频率对应的幅度频率响应的方差。基于上述方法实施例中的计算式(1),计算得到不同位置下不同频率对应的幅度频率响应的平均值;以及,基于上述方法实施例中的计算式(2),计算得到不同位置下的不同频率对应的幅度频率响应的方差。在此不再赘述。In one embodiment of the invention, the position model includes position model parameters. The position model corresponding to different positions is a Gaussian model. At this time, the position model parameters include the average value of the amplitude frequency response corresponding to different frequencies at different positions and the variance of the amplitude frequency response corresponding to different frequencies. Calculating an average value of the amplitude frequency responses corresponding to different frequencies at different positions based on the calculation formula (1) in the above method embodiment; and calculating the equations (2) in the above method embodiments, and calculating the positions at different positions The variance of the amplitude frequency response corresponding to different frequencies. I will not repeat them here.
本发明的一个实施例中,匹配模块620具体用于:基于高斯模型概率密度函数,利用不同位置对应的位置模型参数和新的频率响应数据,计算得到新的频率响应数据对应不同位置的概率;将新的频率响应数据对应不同位置的概率生成多个匹配结果。In an embodiment of the present invention, the matching module 620 is specifically configured to calculate, according to a Gaussian model probability density function, a position probability parameter corresponding to different positions and a new frequency response data, and calculate a probability that the new frequency response data corresponds to different positions; A plurality of matching results are generated by the probability that the new frequency response data corresponds to different locations.
具体的,可以基于上述方法实施例中的计算式(3),计算得到新的频率响应数据对应不同位置的概率。在此不再赘述。Specifically, based on the calculation formula (3) in the foregoing method embodiment, the probability that the new frequency response data corresponds to different positions may be calculated. I will not repeat them here.
基于同一发明构思,本发明还提供了另一种扬声器所处位置的确定装置。图7示出了根据本发明一个实施例的扬声器所处位置的确定装置的硬件结构的示意图。Based on the same inventive concept, the present invention also provides another determining device for the position of the speaker. Fig. 7 is a diagram showing the hardware configuration of a determining device for the position of a speaker according to an embodiment of the present invention.
参见图7,在该实施例中,该扬声器所处位置的确定装置可以包括存储器720和处理器710,该存储器720用于存储指令,该指令用于控制处理器710进行操作以执行根据本发明的扬声器所处位置的确定方法。Referring to FIG. 7, in this embodiment, the determining means of the location of the speaker may include a memory 720 and a processor 710 for storing instructions for controlling the processor 710 to operate to perform the present invention. The method of determining the location of the speaker.
该存储器720可以包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。The memory 720 can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
基于同一发明构思,本发明提供了一种扬声器。图8示出了根据本发明一个实施例的扬声器的结构示意图。参见图8,该扬声器800包括如上述任一的扬声器所处位置的确定装置810。Based on the same inventive concept, the present invention provides a speaker. Fig. 8 is a block diagram showing the structure of a speaker according to an embodiment of the present invention. Referring to Figure 8, the speaker 800 includes determining means 810 for the position of the speaker as described above.
本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。The invention can be a system, method and/or computer program product. The computer program product can comprise a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement various aspects of the present invention.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。The computer readable storage medium can be a tangible device that can hold and store the instructions used by the instruction execution device. The computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, with instructions stored thereon A raised structure in the hole card or groove, and any suitable combination of the above. A computer readable storage medium as used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (eg, a light pulse through a fiber optic cable), or through a wire The electrical signal transmitted.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein can be downloaded from a computer readable storage medium to various computing/processing devices or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in each computing/processing device .
用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数 据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。Computer program instructions for performing the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine related instructions, microcode, firmware instructions, state setting data, or in one or more programming languages. Source code or object code written in any combination, including object-oriented programming languages such as Smalltalk, C++, etc., as well as conventional procedural programming languages such as the "C" language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on the remote computer, or entirely on the remote computer or server. carried out. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computer (eg, using an Internet service provider to access the Internet) connection). In some embodiments, the customized electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by utilizing state information of computer readable program instructions. Computer readable program instructions are executed to implement various aspects of the present invention.
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。The computer readable program instructions can be provided to a general purpose computer, a special purpose computer, or a processor of other programmable data processing apparatus to produce a machine such that when executed by a processor of a computer or other programmable data processing apparatus Means for implementing the functions/acts specified in one or more of the blocks of the flowcharts and/or block diagrams. The computer readable program instructions can also be stored in a computer readable storage medium that causes the computer, programmable data processing device, and/or other device to operate in a particular manner, such that the computer readable medium storing the instructions includes An article of manufacture that includes instructions for implementing various aspects of the functions/acts recited in one or more of the flowcharts.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。The computer readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device to perform a series of operational steps on a computer, other programmable data processing device or other device to produce a computer-implemented process. Thus, instructions executed on a computer, other programmable data processing apparatus, or other device implement the functions/acts recited in one or more of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。The flowchart and block diagrams in the Figures illustrate the architecture, functionality and operation of possible implementations of systems, methods and computer program products according to various embodiments of the invention. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of an instruction, and a module, a program segment, or a portion of an instruction includes one or more executables for implementing the specified logical function. instruction. In some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or action. Or it can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。The embodiments of the present invention have been described above, and the foregoing description is illustrative, not limiting, and not limited to the disclosed embodiments. Numerous modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The choice of terms used herein is intended to best explain the principles, practical applications, or technical improvements in the various embodiments of the embodiments, or to enable those of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (11)

  1. 一种扬声器所处位置的确定方法,其特征在于,包括:A method for determining a position of a speaker, comprising:
    获取所述扬声器处于当前位置时测量得到的新的频率响应数据,其中,所述频率响应数据是所述扬声器处于当前位置播放音频数据时,测得的幅度频率响应;Obtaining new frequency response data measured when the speaker is in a current position, wherein the frequency response data is a measured amplitude frequency response when the speaker is playing audio data at a current position;
    将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果;Performing matching operations on the new frequency response data and the position model when the speaker is located at a different position in advance, to obtain a plurality of matching results;
    根据所述多个匹配结果确定所述扬声器所处的当前位置。Determining a current location at which the speaker is located based on the plurality of matching results.
  2. 根据权利要求1所述的方法,其特征在于,在将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果之前,还包括:The method according to claim 1, wherein a matching operation is performed on the position model when the new frequency response data is respectively located at a different position from the pre-established speaker, to obtain a plurality of matching results, further including :
    获取所述扬声器位于不同位置时测量得到的多个频率响应数据;Obtaining a plurality of frequency response data measured when the speaker is located at different positions;
    根据不同位置对应的多个频率响应数据,训练得到不同位置对应的位置模型。According to a plurality of frequency response data corresponding to different positions, the position models corresponding to different positions are trained.
  3. 根据权利要求1或2所述的方法,其特征在于,所述位置模型包括位置模型参数,The method according to claim 1 or 2, wherein the position model comprises a position model parameter,
    所述不同位置对应的位置模型为高斯模型,The position model corresponding to the different positions is a Gaussian model.
    所述位置模型参数包括不同位置下不同频率对应的幅度频率响应的平均值和不同位置下不同频率对应的幅度频率响应的方差。The position model parameters include an average value of amplitude frequency responses corresponding to different frequencies at different positions and a variance of amplitude frequency responses corresponding to different frequencies at different positions.
  4. 根据权利要求1-3中任一所述的方法,其特征在于,将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果,包括:The method according to any one of claims 1 to 3, wherein the new frequency response data is matched with a position model of the pre-established speaker at different positions to obtain a plurality of matching results. ,include:
    基于高斯模型概率密度函数,利用所述不同位置对应的位置模型参数和所述新的频率响应数据,计算得到所述新的频率响应数据对应不同位置的概率;Calculating, according to the Gaussian model probability density function, the probability that the new frequency response data corresponds to different positions by using the position model parameter corresponding to the different position and the new frequency response data;
    将所述新的频率响应数据对应不同位置的概率生成所述多个匹配结果。Generating the plurality of matching results by the probability that the new frequency response data corresponds to different locations.
  5. 根据权利要求1-4中任一所述的方法,其特征在于,根据所述多个 匹配结果确定所述扬声器所处的当前位置,包括:The method according to any one of claims 1 to 4, wherein determining the current location of the speaker based on the plurality of matching results comprises:
    从所述多个匹配结果中选择出与所述新的频率响应数据匹配程度最高的位置作为所述扬声器所处的当前位置。A position with the highest degree of matching with the new frequency response data is selected from the plurality of matching results as a current position at which the speaker is located.
  6. 根据权利要求1-5中任一所述的方法,其特征在于,所述不同位置包括:自由位置、墙边位置和墙角位置。A method according to any one of claims 1 to 5, wherein the different locations comprise: a free position, a wall edge position and a corner position.
  7. 一种扬声器所处位置的确定装置,其特征在于,包括:A device for determining a position of a speaker, comprising:
    获取模块,用于获取所述扬声器处于当前位置时测量得到的新的频率响应数据,其中,所述频率响应数据是所述扬声器处于当前位置播放音频数据时,测得的幅度频率响应;An acquiring module, configured to acquire new frequency response data measured when the speaker is in a current position, where the frequency response data is a measured amplitude frequency response when the speaker is playing audio data at a current position;
    匹配模块,用于将所述新的频率响应数据分别与预先建立的所述扬声器位于不同位置时的位置模型进行匹配运算,得到多个匹配结果;a matching module, configured to perform matching operations on the new frequency response data and the position model when the pre-established speaker is located at different positions, to obtain a plurality of matching results;
    确定模块,用于根据所述多个匹配结果确定所述扬声器所处的当前位置。And a determining module, configured to determine a current location where the speaker is located according to the plurality of matching results.
  8. 根据权利要求7所述的装置,其特征在于,所述位置模型包括位置模型参数,The apparatus of claim 7 wherein said position model comprises position model parameters,
    所述不同位置对应的位置模型为高斯模型,The position model corresponding to the different positions is a Gaussian model.
    所述位置模型参数包括不同位置下不同频率对应的幅度频率响应的平均值和不同位置下不同频率对应的幅度频率响应的方差。The position model parameters include an average value of amplitude frequency responses corresponding to different frequencies at different positions and a variance of amplitude frequency responses corresponding to different frequencies at different positions.
  9. 根据权利要求7或8所述的装置,其特征在于,所述匹配模块还用于:The device according to claim 7 or 8, wherein the matching module is further configured to:
    基于高斯模型概率密度函数,利用所述不同位置对应的位置模型参数和所述新的频率响应数据,计算得到所述新的频率响应数据对应不同位置的概率;Calculating, according to the Gaussian model probability density function, the probability that the new frequency response data corresponds to different positions by using the position model parameter corresponding to the different position and the new frequency response data;
    将所述新的频率响应数据对应不同位置的概率生成所述多个匹配结果。Generating the plurality of matching results by the probability that the new frequency response data corresponds to different locations.
  10. 一种扬声器所处位置的确定装置,其特征在于,包括存储器和处理器,所述存储器用于存储指令,所述指令用于控制所述处理器进行操作以执行根据权利要求1至6中任一项所述的扬声器所处位置的确定方法。A determining device for a position of a speaker, comprising: a memory for storing instructions for controlling the processor to perform the operation according to any one of claims 1 to 6 A method of determining the location of the speaker as described.
  11. 一种扬声器,其特征在于,包括如权利要求7-9任一所述的扬声 器所处位置的确定装置。A speaker characterized by comprising determining means for the position of the speaker according to any of claims 7-9.
PCT/CN2018/086849 2017-06-30 2018-05-15 Method and apparatus for determining position of loudspeaker, and loudspeaker WO2019001158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710521820.9A CN107484069B (en) 2017-06-30 2017-06-30 The determination method and device of loudspeaker present position, loudspeaker
CN201710521820.9 2017-06-30

Publications (1)

Publication Number Publication Date
WO2019001158A1 true WO2019001158A1 (en) 2019-01-03

Family

ID=60594941

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/086849 WO2019001158A1 (en) 2017-06-30 2018-05-15 Method and apparatus for determining position of loudspeaker, and loudspeaker

Country Status (2)

Country Link
CN (1) CN107484069B (en)
WO (1) WO2019001158A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484069B (en) * 2017-06-30 2019-09-17 歌尔智能科技有限公司 The determination method and device of loudspeaker present position, loudspeaker
CN109800724B (en) * 2019-01-25 2021-07-06 国光电器股份有限公司 Loudspeaker position determining method, device, terminal and storage medium
CN110082724B (en) * 2019-05-31 2021-09-21 浙江大华技术股份有限公司 Sound source positioning method, device and storage medium
CN112565979B (en) * 2020-12-10 2022-10-04 国光电器股份有限公司 Speaker frequency response numerical value calculation method and device, electronic equipment and storage medium
CN114501231A (en) * 2021-12-28 2022-05-13 北京声加科技有限公司 Method and device for determining position of sound box

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100717051B1 (en) * 2005-11-07 2007-05-10 삼성전자주식회사 Method and apparatus for compensating timber variation according to the position of speakers
CN101893698A (en) * 2010-06-22 2010-11-24 嘉兴学院 Noise source test and analysis method and device
CN104407328A (en) * 2014-11-20 2015-03-11 西北工业大学 Method and system for positioning sound source in enclosed space based on spatial pulse response matching
US20170055097A1 (en) * 2015-08-21 2017-02-23 Broadcom Corporation Methods for determining relative locations of wireless loudspeakers
CN106772245A (en) * 2015-11-19 2017-05-31 华为技术有限公司 Sound localization method and device
CN107484069A (en) * 2017-06-30 2017-12-15 歌尔丹拿音响有限公司 The determination method and device of loudspeaker present position, loudspeaker

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6799141B1 (en) * 1999-06-09 2004-09-28 Beamcontrol Aps Method for determining the channel gain between emitters and receivers
CN101778321A (en) * 2009-12-24 2010-07-14 广州大学 Frequency response equalization processing method for omnidirectional sound source loudspeaker system
US9031268B2 (en) * 2011-05-09 2015-05-12 Dts, Inc. Room characterization and correction for multi-channel audio
JP6357884B2 (en) * 2014-06-02 2018-07-18 ヤマハ株式会社 POSITIONING DEVICE AND AUDIO DEVICE
CN105812721A (en) * 2014-12-30 2016-07-27 浙江大华技术股份有限公司 Tracking monitoring method and tracking monitoring device
JP6256379B2 (en) * 2015-02-24 2018-01-10 ブラザー工業株式会社 Display control apparatus, display control method, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100717051B1 (en) * 2005-11-07 2007-05-10 삼성전자주식회사 Method and apparatus for compensating timber variation according to the position of speakers
CN101893698A (en) * 2010-06-22 2010-11-24 嘉兴学院 Noise source test and analysis method and device
CN104407328A (en) * 2014-11-20 2015-03-11 西北工业大学 Method and system for positioning sound source in enclosed space based on spatial pulse response matching
US20170055097A1 (en) * 2015-08-21 2017-02-23 Broadcom Corporation Methods for determining relative locations of wireless loudspeakers
CN106772245A (en) * 2015-11-19 2017-05-31 华为技术有限公司 Sound localization method and device
CN107484069A (en) * 2017-06-30 2017-12-15 歌尔丹拿音响有限公司 The determination method and device of loudspeaker present position, loudspeaker

Also Published As

Publication number Publication date
CN107484069A (en) 2017-12-15
CN107484069B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
WO2019001158A1 (en) Method and apparatus for determining position of loudspeaker, and loudspeaker
US11190898B2 (en) Rendering scene-aware audio using neural network-based acoustic analysis
JP4829278B2 (en) Indoor impulse response modeling method and apparatus
Nielsen et al. The single-and multichannel audio recordings database (SMARD)
Kuster Reliability of estimating the room volume from a single room impulse response
CN109040940A (en) A kind of detection method and device of loudspeaker
JP6594839B2 (en) Speaker number estimation device, speaker number estimation method, and program
EP3320311B1 (en) Estimation of reverberant energy component from active audio source
US20210306782A1 (en) Method and system of audio device performance testing
JP2010175431A (en) Device, method and program for estimating sound source direction
JP5134525B2 (en) Direction information distribution estimation device, sound source number estimation device, sound source direction measurement device, sound source separation device, method thereof, program thereof
CN113470685B (en) Training method and device for voice enhancement model and voice enhancement method and device
CN113329315B (en) Detection method, device and equipment of audio playing equipment and storage medium
Götz et al. Online reverberation time and clarity estimation in dynamic acoustic conditions
CN113555031A (en) Training method and device of voice enhancement model and voice enhancement method and device
JP2018077139A (en) Sound field estimation device, sound field estimation method and program
US20220360927A1 (en) Room calibration based on gaussian distribution and k-nearest neighbors algorithm
JP2004064697A (en) Sound source/sound receiving position estimating method, apparatus, and program
JP2019219468A (en) Generation device, generation method and generation program
US20230362568A1 (en) Apparatus, Methods and Computer Programs for Adapting Audio Processing
US9589550B2 (en) Methods and systems for measuring and reporting an energy level of a sound component within a sound mix
CN111145792B (en) Audio processing method and device
JP6994221B2 (en) Extraction generation sound correction device, extraction generation sound correction method, program
CN110677782B (en) Signal adaptive noise filter
Craig et al. 24 Sound Barriers Human Perceptionis

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18823846

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18823846

Country of ref document: EP

Kind code of ref document: A1