WO2010127489A1 - 检测信号延迟的方法、检测装置及编码器 - Google Patents

检测信号延迟的方法、检测装置及编码器 Download PDF

Info

Publication number
WO2010127489A1
WO2010127489A1 PCT/CN2009/071669 CN2009071669W WO2010127489A1 WO 2010127489 A1 WO2010127489 A1 WO 2010127489A1 CN 2009071669 W CN2009071669 W CN 2009071669W WO 2010127489 A1 WO2010127489 A1 WO 2010127489A1
Authority
WO
WIPO (PCT)
Prior art keywords
delay
correlation function
value
cumulative cross
cross
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.)
Ceased
Application number
PCT/CN2009/071669
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP09844241A priority Critical patent/EP2429218A4/en
Priority to PCT/CN2009/071669 priority patent/WO2010127489A1/zh
Priority to KR1020117028739A priority patent/KR101373594B1/ko
Priority to CN2009801547910A priority patent/CN102301748B/zh
Publication of WO2010127489A1 publication Critical patent/WO2010127489A1/zh
Priority to US13/290,809 priority patent/US20120053714A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • H04S1/007Two-channel systems in which the audio signals are in digital form
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2420/00Techniques used stereophonic systems covered by H04S but not provided for in its groups
    • H04S2420/03Application of parametric coding in stereophonic audio systems

Definitions

  • the present invention relates to the field of signal processing technologies, and in particular, to a method for detecting signal delay, a detecting device and an encoder.
  • stereo technology has been greatly developed.
  • the stereo coding method currently used in stereo technology is parametric stereo coding.
  • the left and right channel signals are generally downmixed to encode the generated downmix signal.
  • the left and right channel signals have a certain delay. Therefore, if the delays of the left and right channel signals are correctly detected, the signals can be synchronized according to the delay, thereby facilitating the improvement of the stereo composite signal. quality.
  • the prior art provides a method of detecting signal delay: Assuming that the left channel is ahead of the right channel, the delay of the signal is positive, whereas the delay of the signal is negative.
  • Embodiments of the present invention provide a method, a detecting apparatus, and an encoder that can improve the accuracy of detection signal delay.
  • a method of detecting signal delay comprising:
  • the determined value is determined according to an initial value of the second weighting coefficient of the second cumulative cross-correlation function
  • a detecting device comprising:
  • An obtaining unit configured to obtain a first cumulative cross-correlation function according to a cross-correlation function between the acquired channel signals
  • a first delay processing unit configured to determine a first delay between channel signals corresponding to the first cumulative cross-correlation function
  • an adjusting unit configured to adjust the second cumulative cross-correlation function according to a relationship between a first delay and a second delay between the channel signals, where the second delay is obtained when the second cumulative cross-correlation function is adjusted and The first determined value of the second delay is determined according to an initial value of a second weighting coefficient of the second cumulative cross-correlation function;
  • a second delay processing unit configured to determine that the second delay corresponding to the adjusted second cumulative cross-correlation function is a delay between the detected channel signals.
  • An encoder comprising:
  • a signal acquisition device configured to acquire a channel signal
  • a detecting device configured to acquire a first cumulative cross-correlation function according to a cross-correlation function between the channel signals; determining a first delay between the channel signals corresponding to the first cumulative cross-correlation function; The relationship of the first delay and the second delay adjusts the second cumulative cross-correlation function, the second delay is obtained when the second cumulative cross-correlation function is adjusted and the first determined value of the second delay is according to the second accumulation The initial value of the second weighting coefficient of the cross-correlation function is determined; determining that the second delay corresponding to the adjusted second cumulative cross-correlation function is a delay between the detected channel signals.
  • the technical solution of the embodiment of the present invention is to obtain a first cumulative cross-correlation function according to a cross-correlation function between channel signals, and determine a first delay between channel signals corresponding to the first cumulative cross-correlation function. Adjusting the second cumulative cross-correlation function according to a relationship between a first delay and a second delay between the channel signals, the second delay being obtained when the second cumulative cross-correlation function is adjusted and the second Determining the first determined value of the delay according to an initial value of the second weighting coefficient of the second cumulative cross-correlation function; after adjusting the second cumulative cross-correlation function, determining that the corresponding second delay is between the detected channel signals
  • the delay of the determination can reflect the change of the positive and negative of the delay of the channel signal, thereby improving the accuracy of the detected signal delay.
  • FIG. 1 is a flow chart of a method for detecting a signal delay according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for detecting a signal delay according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic diagram of a signal tracking waveform of a detection signal delay according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of a method for detecting signal delay according to Embodiment 3 of the present invention.
  • Figure ⁇ is a flowchart of a method for detecting signal delay in the fourth embodiment of the present invention.
  • FIG. 8 is a flow chart showing the detection of the validity of delay variations of different channel signals according to Embodiment 4 of the present invention.
  • FIG. 9 is a schematic diagram of a signal tracking waveform for detecting the effectiveness of a delay variation according to Embodiment 4 of the present invention.
  • Figure 10 is a schematic view showing the structure of a detecting device according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram showing the structure of a detecting device according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an encoder according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method, a detecting apparatus, and an encoder that can improve the accuracy of detection signal delay.
  • Step 101 Acquire a first cumulative cross-correlation function according to a cross-correlation function between channel signals
  • Step 102 Determine the first cumulative mutual a first delay between the channel signals corresponding to the correlation function
  • Step 103 adjusting the second tired according to the relationship between the first delay and the second delay between the channel signals a cross-correlation function, the second delay is obtained when the second cumulative cross-correlation function is adjusted and the first determined value of the second delay is determined according to an initial value of a second weighting coefficient of the second cumulative cross-correlation function
  • 104 Determine a second delay corresponding to the adjusted second cumulative cross-correlation function as a delay between the detected channel signals.
  • the adjusting the second cumulative cross-correlation function according to the relationship between the first delay and the second delay between the channel signals comprises: acquiring an initial value of the second weighting coefficient of the second cumulative cross-correlation function; determining the first delay and the second When the delays are not equal, the initial value of the second weighting coefficient is reduced to obtain a reduced value; and the second cumulative cross-correlation function is updated according to the value of the reduced second weighting coefficient.
  • Or adjusting the second cumulative cross-correlation function according to the relationship between the first delay and the second delay between the channel signals comprises: setting a value of the second weighting coefficient of the second cumulative cross-correlation function according to the sound field information of the first cumulative cross-correlation function When it is determined that the first delay and the second delay are not equal, the value of the set second weighting coefficient is reduced to obtain a reduced value.
  • the first cumulative cross-correlation function may be a short-time cumulative cross-correlation function
  • the second cumulative cross-correlation function may be a long-term cumulative cross-correlation function
  • the technical solution of the embodiment of the present invention obtains a first cumulative cross-correlation function according to a cross-correlation function between channel signals; and determines a channel between the channel signals corresponding to the first cumulative cross-correlation function a delay; adjusting a second cumulative cross-correlation function according to the relationship between the first delay and the second delay, the second delay being obtained when the second cumulative cross-correlation function is adjusted and the first determined value of the second delay Determining according to an initial value of the second weighting coefficient of the second cumulative cross-correlation function; after adjusting the second cumulative cross-correlation function, determining that the corresponding second delay is a delay between the detected channel signals, the determining The delay can reflect the change of the positive and negative of the delay of the channel signal, thereby improving the accuracy of the detected signal delay.
  • FIG. 2 is a flowchart of a method for detecting signal delay according to Embodiment 2 of the present invention, and Embodiment 2 describes a method of an embodiment of the present invention in more detail than Embodiment 1. As shown in Figure 2, including the steps:
  • Step 201 Acquire a current cross-correlation function of the left and right channel signals.
  • cross-correlation function cc/W is only illustrated by the above formula (1), but is not limited thereto, and can also be obtained by other formulas, for example, according to the following formula (2):
  • Step 202 Acquire a short-term cumulative cross-correlation function, and determine a first-delay corresponding to the short-term cumulative cross-correlation function.
  • the cumulative cross-correlation function can be further divided into a short-time cumulative cross-correlation function and a long-term cumulative cross-correlation function, which is a relative concept. Let the short-term cumulative cross-correlation function be S—Cc/(i) and the weighting coefficient “set to “1”.
  • the long-term cumulative cross-correlation function be /—Cc/(i), and the weighting coefficient “set to 2, where 1 ⁇ «2>"1>0.
  • s _ ccf id) s _ ccf (d) * 1 + ccf (d)
  • I ccf(d) I ccf(d) * a2 + ccf(d)
  • the weighting coefficient "1 can be obtained according to experience, then different values of the short-time cumulative cross-correlation function can be obtained, and a larger value such as the maximum value or the second value is selected from these values.
  • the large value determines that the time corresponding to the maximum or the second largest value is the first delay of the short-term cumulative cross-correlation function.
  • Step 203 Adjust a weighting coefficient " 2 " of the long-term cumulative cross-correlation function according to the first delay and the second delay determined in the next step.
  • Step 204 Determine a second delay corresponding to the long-term cumulative cross-correlation function according to the weighting coefficient “ 2 update long-term cumulative cross-correlation function, and determine the second delay as the delay of the left and right channel signals.
  • the calculation formula for the long-term cumulative cross-correlation function is as described above.
  • the long-term cumulative cross-correlation function is updated, and different values of the long-term cumulative cross-correlation function can be obtained, and a larger value such as a maximum value or a second largest value is selected from these values to determine the maximum value.
  • the time corresponding to the second largest value is the second delay of the long-term cumulative cross-correlation function, and the second delay is determined as the delay of the left and right channel signals.
  • the long-term cumulative cross-correlation function can be obtained by setting an initial value for the weighting coefficient " 2 ".
  • the subsequent second delay is obtained by calculating the long-term cumulative cross-correlation function according to the adjusted weighting coefficient " 2 ".
  • the second delay determined by the above steps can reflect the change in the positive and negative of the delay of the signal.
  • FIG. 3 is a flow chart of adjusting the weighting coefficient " 2 " in the second embodiment of the present invention, including the steps:
  • Step 301 initializing the weighting coefficient "2;
  • Step 302 Determine whether the first delay and the second delay are equal. If yes, go to step 304, if no, go to step 303.
  • the step determines whether the first delay and the second delay are equal according to the first delay and the second delay, and proceeds to different steps according to the judgment result.
  • Step 303 Perform a reduction process on the weighting coefficient "2".
  • This step may be to multiply the weighting factor "2" by an adjustment factor greater than zero and less than one.
  • the adjustment The coefficients can be set directly based on experience; or, different adjustment factors can be selected depending on the maximum value of the long-term cumulative cross-correlation function.
  • Step 304 Maintain the weighting coefficient "2 unchanged.
  • FIG. 4 is a schematic diagram of a signal tracking waveform of a detection signal delay according to Embodiment 2 of the present invention.
  • the waveform a is a signal tracking diagram of the prior art
  • the waveform b is a signal tracking diagram of the embodiment of the present invention.
  • the technical solution of the embodiment of the present invention divides the cumulative cross-correlation function of the left and right channel signals into a short-time cumulative cross-correlation function and a long-term cumulative cross-correlation function according to the channel signals.
  • Obtaining a short-time cumulative cross-correlation function determining a first delay corresponding to the short-term cumulative cross-correlation function; adjusting the long-term cumulative cross-correlation function according to the relationship between the first delay and the second delay, The second delay is obtained when the long-term cumulative cross-correlation function is adjusted; after adjusting the long-time cumulative cross-correlation function, it is determined that the corresponding second delay is the delay between the detected channel signals, the determined The delay can reflect the change of the positive and negative of the delay of the channel signal, thereby improving the accuracy of the detected signal delay.
  • FIG. 5 is a flowchart of a method for detecting signal delay according to Embodiment 3 of the present invention.
  • the difference between the third embodiment and the second embodiment is mainly that the process of adjusting the weighting coefficient " 2 " is different, and the reference to the sound field signal is as shown in FIG. 5, including the steps:
  • Step 501 Acquire a current cross-correlation function of the left and right channel signals.
  • Step 502 Acquire a short-term cumulative cross-correlation function, and determine a first-delay corresponding to the short-term cumulative cross-correlation function.
  • steps 501 - 502 are the same as those described in steps 201 - 202 in the second embodiment.
  • Step 503 Adjust a weighting coefficient " 2 " of the long-term cumulative cross-correlation function according to the first delay and the second delay determined in the next step.
  • Step 504 Determine a second delay corresponding to the long-term cumulative cross-correlation function according to the weighting coefficient " 2 update long-term cumulative cross-correlation function, and determine the second delay as the delay of the left and right channel signals.
  • step 204 is the same as described in step 204 and will not be described here.
  • the second delay determined by the above steps can reflect the change in the positive and negative of the delay of the signal.
  • 6 is a flow chart of adjusting the weighting coefficient " 2 " in the third embodiment of the present invention, including the steps:
  • Step 601 according to the cumulative cross sound field information related functions to determine the weighting coefficient "a value of 2;
  • the process of the second embodiment is different than the weighting coefficients are initialized, but according to the cumulative cross sound field information calculating weighting coefficient correlation function" 2
  • the current frame cross-correlation function takes Cc /(") , -: ⁇ ⁇ , ⁇ >0 as an example.
  • the specific process can be as follows:
  • Cur _ ratio Ccf (") I ⁇ Ccf (")
  • the cur-ratio can be limited to A range, such as ⁇ 3 ⁇ 4101, 11 ⁇ >, where the values of min and max can be set according to experience, the value of min can be set to 0, and the value of max can be set to infinity, this embodiment does not To do this, the purpose of setting ⁇ 11101,11 ⁇ > is to prevent the cur-ratio from being too large or too small.
  • Prev _ ratio ⁇ _ i ac _ Ccf (n) I ⁇ c _ Ccf (n) , ,
  • prev-ratio can be made to ⁇ min,max>" ⁇ j I , and its ⁇ 11101,11 ⁇ > has the same range of cur-ratio, and will not be described here. Calculating a weighting coefficient " 2 according to the obtained cur-ratio and prev-ratio;
  • Step 602 determining whether the first delay and the second delay are equal, and if so, proceeding to step 604, if not, entering the step 603.
  • the step determines whether the first delay and the second delay are equal according to the first delay and the second delay, and proceeds to different steps according to the judgment result.
  • Step 603 the weighting coefficient "2" determined in step 601 is decreased.
  • This step may be to multiply the weighting coefficient "2" determined in step 601 by an adjustment coefficient greater than zero and less than one.
  • the adjustment factor can be set directly according to experience; or, different adjustment factors are selected according to the maximum value of the long-term cumulative mutual closure function.
  • Step 604 maintaining the weighting coefficient "2 unchanged.
  • the third embodiment has the same effect as the technical solution of the second embodiment, and the sound field information of the cumulative cross-correlation function can be simultaneously referred to.
  • FIG. 7 is a flow chart of a method for detecting signal delay according to Embodiment 4 of the present invention.
  • the fourth embodiment differs from the second embodiment mainly in the process of detecting the effectiveness of delay variations of different channel signals.
  • Steps 701-704 are the same as those described in steps 201-204 in the second embodiment.
  • Step 705 Detect the validity of the delay variation of different channel signals.
  • FIG. 8 is a delay variation of signals of different channels in the fourth embodiment of the present invention.
  • Step 801 Acquire an average value ave of the long-term cumulative cross-correlation function, a maximum peak, and a second delay corresponding to the maximum value.
  • Step 802 Determine a threshold value peakO, and calculate a value of a long-term cumulative cross-correlation function that exceeds a threshold value of peakO.
  • a threshold value peak0 can be determined based on the average value ave and the maximum peak of the long-term cumulative cross-correlation function. Then, the value of the statistical long-term cumulative cross-correlation function exceeds the threshold value of peakO count;
  • Step 803 Obtain a difference Diff between a delay of the left and right channel signals of the last output and a second delay.
  • Step 804 When the difference Diff is less than the first threshold T1, increase the count by, for example, adding 1. When the difference Diff is greater than the second threshold T2, the count is decreased by, for example, minus one.
  • Step 805 Determine, according to count and peak, whether the second delay is valid.
  • a first threshold associated with count may be set, and a second threshold associated with peak, the first threshold and the second threshold may be empirically valued. If peak is greater than the second threshold and count is less than the first threshold, it is determined that the second delay is valid, is a stable delay, and can be output for subsequent synchronization adjustment processing of the left and right channel signals.
  • FIG. 8 is a diagram showing the signal tracking waveform for detecting the effectiveness of the delay variation in the fourth embodiment of the present invention.
  • the waveform a is a signal tracking diagram of the prior art
  • the waveform b is a signal tracking diagram of the embodiment of the present invention.
  • the technical solution of the embodiment of the present invention obtains the difference Diff between the delay of the left and right channel signals outputted last time and the second delay, according to the difference Diff and the first threshold and the second
  • the comparison of the thresholds adjusts the count so that it is more accurate to judge whether the second delay is valid according to count and peak, and avoid excessive delays in the output delay.
  • FIG. 10 is a schematic diagram showing the structure of a detecting device according to an embodiment of the present invention.
  • the detecting means includes: an obtaining unit 1001, a first delay processing unit 1002, an adjusting unit 1003, and a second delay processing unit 1004.
  • the obtaining unit 1001 is configured to acquire a first cumulative mutual function according to a cross-correlation function between the acquired channel signals;
  • a first delay processing unit 1002 configured to determine a first delay between channel signals corresponding to the first cumulative cross-correlation function
  • the adjusting unit 1003 is configured to adjust a second cumulative cross-correlation function according to a relationship between the first delay and the second delay between the channel signals, where the second delay is obtained when the second cumulative cross-correlation function is adjusted
  • the first determination value of the second delay is determined according to an initial value of the second weighting coefficient of the second cumulative cross-correlation function
  • the second delay processing unit 1004 is configured to determine that the second delay corresponding to the adjusted second cumulative cross-correlation function is a delay between the detected channel signals.
  • FIG. 11 is a schematic diagram showing the structure of the detecting device according to the embodiment of the present invention.
  • the adjusting unit 1003 of the detecting apparatus further includes: a first weighting processing unit 1101, a second weighting processing unit 1102, and an updating unit 1103.
  • the first weighting processing unit 1101 is configured to obtain an initial value of a second weighting coefficient of the second cumulative cross-correlation function
  • a second weighting processing unit 1102 configured to: when determining that the first delay and the second delay between the channel signals are not equal, reduce an initial value of the second weighting coefficient to obtain a reduced Value
  • the updating unit 1103 updates the second cumulative cross-correlation function according to the value of the reduced second weighting coefficient.
  • a first weighting processing unit 1101 configured to set a value of a second weighting coefficient of the second cumulative cross-correlation function according to the sound field information of the first cumulative cross-correlation function
  • a second weighting processing unit 1102 configured to determine a first delay between the channel signals and the When the second delays are not equal, the value of the set second weighting coefficient is decreased to obtain a reduced value; and the updating unit 1103 is configured to update the location according to the value of the reduced second weighting coefficient.
  • the second cumulative cross-correlation function is described.
  • the first weighting processing unit 1101 may include: a first value determining unit 1201, a second value determining unit 1202, and a value processing unit 1203.
  • the first value determining unit 1201 is configured to determine a ratio or a difference between a sum of a current frame cross-correlation function with a delay greater than or equal to 0 and a sum of a current frame cross-correlation function with a delay less than or equal to 0, as a first value;
  • the unit 1202 is configured to determine a ratio or a difference between a sum of a first cumulative cross-correlation function having a delay greater than or equal to 0 and a sum of a first cumulative cross-correlation function having a delay less than or equal to 0 as a second value;
  • the numerical processing unit 1203 The absolute value of the difference between the first value and the second value is determined to be a value of the second weighting coefficient of the second cumulative cross-correlation function.
  • the detecting device may further include: a stability detecting unit 1005.
  • the stability detecting unit 1005 may include: a third value determining unit 1301, a fourth value determining unit 1302, a fourth value determining unit 1302, a value adjusting unit 1303, and a validity determining unit 1304.
  • a third value determining unit 1301, configured to determine a number of the second cumulative cross-correlation function that exceeds a threshold value as a third value
  • a fourth value determining unit 1302, configured to determine a difference between the delayed channel signal and the second delay as a fourth value
  • the value adjustment unit 1303 is configured to adjust the third value according to a comparison relationship between the fourth value and the preset first threshold and the second value;
  • the validity determining unit 1304 is configured to compare the relationship between the value of the adjusted third value and the corresponding threshold value and the value of the second cumulative cross-correlation function and the corresponding gate P ⁇ value , determining the validity of the second delay.
  • FIG. 12 is a schematic structural diagram of an encoder according to an embodiment of the present invention.
  • the encoder includes: a signal acquisition device 121 and a detection device 122.
  • a signal acquisition device 121 configured to acquire a channel signal
  • the detecting device 122 is configured to: acquire a first cumulative cross-correlation function according to a cross-correlation function between the channel signals; determine a first delay between the channel signals corresponding to the first cumulative cross-correlation function; The relationship between the first delay and the second delay adjusts a second cumulative cross-correlation function, the second The delay is obtained when the second cumulative cross-correlation function is adjusted and the first determined value of the second delay is determined according to an initial value of the second weighting coefficient of the second cumulative cross-correlation function; determining the adjusted second cumulative mutual The second delay corresponding to the correlation function is the delay between the detected channel signals.
  • the detecting device 122 has the structure described in FIG. 10 or 11, and is specifically referred to the foregoing description, and details are not described herein again.
  • the technical solution of the embodiment of the present invention obtains a first cumulative cross-correlation function according to a cross-correlation function between channel signals; and determines a first delay between channel signals corresponding to the first cumulative cross-correlation function; A relationship of a first delay and a second delay between the channel signals adjusts a second cumulative cross-correlation function, the second delay being obtained when the second cumulative cross-correlation function is adjusted and the first determination of the second delay The value is determined according to an initial value of the second weighting coefficient of the second cumulative cross-correlation function; after adjusting the second cumulative cross-correlation function, determining that the corresponding second delay is a delay between the detected channel signals, The determined delay can reflect the change of the positive and negative of the delay of the channel signal, thereby improving the accuracy of the detected signal delay.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Stereophonic System (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

检测信号延迟的方法、 检测装置及编码器
技术领域
本发明涉及信号处理技术领域,具体涉及一种检测信号延迟的方法、检测 装置及编码器。
背景技术
目前随着计算机技术、数字信号处理技术等的发展,使立体声技术有较大 的发展。 立体声技术中目前较为常用的立体声编码方法是参数立体声编码。
在参数立体声编码中, 一般是将左、 右声道信号进行下混, 对生成的下混 信号进行编码。 一般而言, 左、 右声道信号会有一定的延迟, 因此对左、 右声 道信号的延迟进行正确的检测, 就可以根据该延迟对信号进行同步处理,从而 有利于提升立体声合成信号的质量。 现有技术提供一种检测信号延迟的方法: 假设左声道相对于右声道在前的时候,信号的延迟为正,反之信号的延迟为负。 那么在生成下混信号之前, 获取左、 右声道信号的互相关函数, 确定该互相关 函数的累积互相关函数, 然后确定累积互相关函数的最大值,将该最大值所对 应的时间确定为左、 右声道信号之间的延迟。
在对此方法的研究和实践过程中, 本发明的发明人发现:
当左、右声道信号的声场发生变化即从一个方向转换到另外一个方向的时 候,信号的延迟的正负性就发生变化,但现有技术中所利用的互相关函数的累 积函数不能反映出该变化, 导致检测出的信号延迟的准确性差。
发明内容
本发明实施例提供一种能够提高准确性的检测信号延迟的方法、检测装置 及编码器。
一种检测信号延迟的方法, 包括:
根据声道信号间的互相关函数获取第一累积互相关函数;
确定所述第一累积互相关函数对应的声道信号间的第一延迟;
根据所述声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数,所述第二延迟在调整所述第二累积互相关函数时获得且所述第二延迟的 首次确定值根据第二累积互相关函数的第二加权系数的初始值确定;
确定所述调整后的第二累积互相关函数对应的第二延迟为检测的声道信 号间的延迟。
一种检测装置, 包括:
获取单元, 用于根据获取声道信号间的互相关函数获取第一累积互相关 函数;
第一延迟处理单元, 用于确定所述第一累积互相关函数对应的声道信号 间的第一延迟;
调整单元, 用于根据所述声道信号间的第一延迟和第二延迟的关系调整 所述第二累积互相关函数,所述第二延迟在调整所述第二累积互相关函数时获 得且所述第二延迟的首次确定值根据第二累积互相关函数的第二加权系数的 初始值确定;
第二延迟处理单元, 用于确定所述调整后的第二累积互相关函数对应的 第二延迟为检测的声道信号间的延迟。
一种编码器, 包括:
信号获取装置, 用于获取声道信号;
检测装置,用于根据声道信号间的互相关函数获取第一累积互相关函数; 确定所述第一累积互相关函数对应的声道信号间的第一延迟;根据所述声道信 号间的第一延迟和第二延迟的关系调整所述第二累积互相关函数,所述第二延 迟在调整所述第二累积互相关函数时获得且所述第二延迟的首次确定值根据 第二累积互相关函数的第二加权系数的初始值确定;确定所述调整后的第二累 积互相关函数对应的第二延迟为检测的声道信号间的延迟。
上述技术方案可以看出, 本发明实施例技术方案通过根据声道信号间的 互相关函数获取第一累积互相关函数;确定所述第一累积互相关函数对应的声 道信号间的第一延迟;根据所述声道信号间的第一延迟和第二延迟的关系调整 所述第二累积互相关函数,所述第二延迟在调整所述第二累积互相关函数时获 得且所述第二延迟的首次确定值根据第二累积互相关函数的第二加权系数的 初始值确定; 在调整所述第二累积互相关函数后, 就可以确定其对应的第二延 迟为检测的声道信号间的延迟,该确定的延迟就可以反映出声道信号的延迟的 正负性发生变化的情况, 从而提高了检测出的信号延迟的准确性。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例一检测信号延迟的方法的流程图;
图 2是本发明实施例二检测信号延迟的方法的流程图;
图 3是本发明实施例二调整加权系数《2的流程图;
图 4是本发明实施例二检测信号延迟的信号跟踪波形示意图;
图 5是本发明实施例三检测信号延迟的方法的流程图;
图 6是本发明实施例三调整加权系数《2的流程图;
图 Ί是本发明实施例四检测信号延迟的方法的流程图;
图 8是本发明实施例四对不同声道信号的延迟变化的有效性进行检测的 流程图;
图 9是本发明实施例四对延迟变化的有效性进行检测的信号跟踪波形示 意图;
图 10是本发明实施例的检测装置结构一示意图;
图 11是本发明实施例的检测装置结构二示意图;
图 12是本发明实施例的编码器结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供一种能够提高准确性的检测信号延迟的方法、检测装置 及编码器。
图 1是本发明实施例一检测信号延迟的方法的流程图, 包括步骤: 步骤 101、 根据声道信号间的互相关函数获取第一累积互相关函数; 步骤 102、 确定所述第一累积互相关函数对应的声道信号间的第一延迟; 步骤 103、根据所述声道信号间的第一延迟和第二延迟的关系调整第二累 积互相关函数,所述第二延迟在调整所述第二累积互相关函数时获得且所述第 二延迟的首次确定值根据第二累积互相关函数的第二加权系数的初始值确定; 步骤 104、确定所述调整后的第二累积互相关函数对应的第二延迟为检测 的声道信号间的延迟。
其中,根据声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数包括: 获取第二累积互相关函数的第二加权系数的初始值; 在判断第一延 迟和第二延迟不相等时 ,将第二加权系数的初始值进行减小处理得到减小后的 值; 根据减小后的第二加权系数的值更新第二累积互相关函数。
或者 ,根据声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数包括:根据第一累积互相关函数的声场信息设置第二累积互相关函数的第 二加权系数的值;在判断第一延迟和第二延迟不相等时,将设置的第二加权系 数的值进行减小处理得到减小后的值。
其中, 第一累积互相关函数可以为短时累积互相关函数, 第二累积互相 关函数为可以长时累积互相关函数。
从该实施例一可以看出, 本发明实施例技术方案通过根据声道信号间的 互相关函数获取第一累积互相关函数;确定所述第一累积互相关函数对应的声 道信号间的第一延迟;根据所述第一延迟和第二延迟的关系调整第二累积互相 关函数,所述第二延迟在调整所述第二累积互相关函数时获得且所述第二延迟 的首次确定值根据第二累积互相关函数的第二加权系数的初始值确定;在调整 所述第二累积互相关函数后,就可以确定其对应的第二延迟为检测的声道信号 间的延迟,该确定的延迟就可以反映出声道信号的延迟的正负性发生变化的情 况, 从而提高了检测出的信号延迟的准确性。
图 2是本发明实施例二检测信号延迟的方法的流程图,实施例二相比于实 施例一, 更具体介绍本发明实施例的方法。 如图 2所示, 包括步骤:
步骤 201、 获取左、 右声道信号的当前互相关函数。
左、 右声道信号的互相关函数为 可以按以下公式(1 )计算: ccf (d) = ¾ /(") * r n― d) I sqrt /(") * /(") ^ r{n - d) * r{n - d)) 公式( 1 ) 其中, 公式中的字母 d表示延迟, 属于常量; 字母 n表示信号帧的样点个 数, 属于变量; N为自然数。 字母 r表示右声道的信号; 字母 1表示左声道的 信号。
需要说明的是, 互相关函数 cc/W)只是按上述公式( 1 )进行计算举例说 明但不局限于此, 也可以通过其他的公式得到, 例如按以下公式(2)计算:
N-1
如果( l(n) * r(n - d) > 0)
n = 0
Figure imgf000007_0001
公式 (2) 如果( l{n)* r{n - d) <= 0) nccf(d) = 0)
其中公式中的各字母含义与上述描述相同。
步骤 202、 获取短时累积互相关函数, 确定短时累积互相关函数对应的第 —延迟。
累积互相关函数是一级 MA函数。 设累积互相关函数为 "_cc/(< ), 加 权系数为", "_cc/(< )可以按以下公式(3)计算: a _ ccf {d) = a_ ccf (d)*a + ccf (d) ^≥ 公式(3) 累积互相关函数可以进一步分为短时累积互相关函数和长时累积互相关 函数, 所说的短时互相函数和长时累积互相关函数是一个相对的概念,设短时 累积互相关函数为 S— Cc/(i ), 加权系数"设为《1。 设长时累积互相关函数 为 /— Cc/(i ), 加权系数"设为 2, 其中, 1≥«2>"1>0。 s _ ccf id) = s _ ccf (d) * 1 + ccf (d) I ccf(d) = I ccf(d) * a2 + ccf(d) 根据短时累积互相关函数进行计算, 其中加权系数 "1可以根据经验取值, 则可以得到短时累积互相关函数的不同取值 ,从这些取值中选取较大的值例如 最大值或次大值,确定该最大值或次大值所对应的时间为短时累积互相关函数 的第一延迟。
步骤 203、 根据第一延迟与下一步骤确定的第二延迟, 调整长时累积互相 关函数的加权系数《2
该步骤参见下面图 3所示流程。
步骤 204、根据加权系数《2更新长时累积互相关函数,确定长时累积互相 关函数对应的第二延迟, 并将第二延迟确定为左、 右声道信号的延迟。
长时累积互相关函数的计算公式如前所述。 该步骤根据加权系数《2更新 长时累积互相关函数,可以得到长时累积互相关函数的不同取值,从这些取值 中选取较大的值例如最大值或次大值,确定该最大值或次大值所对应的时间为 长时累积互相关函数的第二延迟 ,并将第二延迟确定为左、右声道信号的延迟。 对于首次确定第二延迟, 可以为加权系数《2设置一个初始值后计算长时累积 互相关函数得到。 之后的第二延迟, 根据调整后的加权系数《2计算长时累积 互相关函数得到。
通过上述步骤确定的第二延迟就可以反映出信号的延迟的正负性发生变 化的情况。
在确定第二延迟后, 可以输出, 用于进行左、 右声道信号的同步调整。 图 3是本发明实施例二调整加权系数《2的流程图, 包括步骤:
步骤 301、 初始化加权系数《2;
对加权系数《2进行初始化, 例如可以设置初始值为 1, 获取初始化互的初 始值。
步骤 302、判断第一延迟与第二延迟是否相等,若是,进入步骤 304,若否, 进入步骤 303。
该步骤根据第一延迟与第二延迟, 判断第一延迟与第二延迟是否相等,根 据判断结果进入不同步骤。
步骤 303、 将加权系数《2进行减小处理。
该步骤可以是将加权系数《2与大于零且小于 1 的调整系数相乘。 该调整 系数可以直接根据经验进行设置; 或者,根据长时累积互相关函数最大值不同 选择不同的调整系数。
步骤 304、 维持加权系数《2不变。
图 4是本发明实施例二检测信号延迟的信号跟踪波形示意图。
如图 4所示, 波形 a为现有技术的信号跟踪图, 波形 b为本发明实施例的 信号跟踪图, 当说话的位置从说话 1位置切换到说话 2位置时, 也即左、 右声 道信号的声场从一个方向转换到另外一个方向的时候,本发明实施例的波形图 中的波形及时发生变化, 从而可以跟踪到说话人位置的变化。
从该实施例二可以看出,本发明实施例技术方案通过将左、右声道信号的 累积互相关函数分为短时累积互相关函数和长时累积互相关函数,根据声道信 号间的互相关函数获取短时累积互相关函数;确定所述短时累积互相关函数对 应的第一延迟;根据所述第一延迟和第二延迟的关系调整所述长时累积互相关 函数, 所述第二延迟在调整所述长时累积互相关函数时获得; 在调整所述长时 累积互相关函数后 , 就可以确定其对应的第二延迟为检测的声道信号间的延 迟,该确定的延迟就可以反映出声道信号的延迟的正负性发生变化的情况,从 而提高了检测出的信号延迟的准确性。
图 5是本发明实施例三检测信号延迟的方法的流程图。实施例三与实施例 二不同的地方主要在于调整加权系数《2的过程有所不同 , 同时参考了声场信 如图 5所示, 包括步骤:
步骤 501、 获取左、 右声道信号的当前互相关函数。
步骤 502、 获取短时累积互相关函数, 确定短时累积互相关函数对应的第 —延迟。
上述步骤 501 - 502与实施例二中的步骤 201 - 202的描述相同。
步骤 503、 根据第一延迟与下一步骤确定的第二延迟, 调整长时累积互相 关函数的加权系数《2
步骤 504、根据加权系数《2更新长时累积互相关函数,确定长时累积互相 关函数对应的第二延迟, 并将第二延迟确定为左、 右声道信号的延迟。
该步骤与步骤 204描述相同, 此处不再赞述。 通过上述步骤确定的第二延迟就可以反映出信号的延迟的正负性发生变 化的情况。 图 6是本发明实施例三调整加权系数《2的流程图 , 包括步骤:
步骤 601、 根据累积互相关函数的声场信息, 确定加权系数 "2的值; 该步骤与实施例二不同, 不是对加权系数 进行初始化, 而是根据累积 互相关函数的声场信息计算加权系数《2的值。 当前帧互相关函数以 Cc/(") , -: Γ< Γ,Γ>0为例。 具体过程可以如下:
1 ) 求延迟大于等于零的当前帧互相关函数的和与延迟小于等于零的当
T-1 0
cur _ ratio = Ccf (") I ^ Ccf (") 前帧互相关函数的和的比值(cur— ratio) : ― «=° "=-™ ; 在该步骤中, 可以将 cur— ratio限制在某一范围, 比如<¾101,11^ >, 其中 min 和 max的值可以根据经验来设定, 也可以将 min的值可以设置为 0, 而将 max的 值设置可以为无穷大, 本实施例不做限制, 其中, 设置<11101,11^ >的目的是为 了防止 cur— ratio过大或过小。
2) 求延迟大于等于零的短时累积互相关函数的和与延迟小于等于零的 短时累积互相关函数的和的比值(prev— ratio) :
τ-ι 0
prev _ ratio =^_iac _ Ccf (n) I ^ c _ Ccf (n) 、 、
"=o "=- +i ; prev— ratio可以 P艮制 <min,max>"^j I , 其<11101,11^ >上述 cur— ratio的限定范围相同, 在此不再赘述。 3 ) 根据所述求出的 cur— ratio与 prev— ratio计算加权系数 "2
一种方式为: 通过下述公式求出长时累积互相关函数的加权系数《2, 但并 不限于此: (2 H cur _ratio- prev _ratio \ I k+b 其中, k和 b为常数。 比如, 在实际应用中, 上述计算加权系数中的一组参 数为: min =0.5, max =1.5, k = -0.2, b=l, 但并不限于此。 需要说明的是, 还可以采用以下方法:
1 )求出延迟大于等于零的当前帧互相关函数的和与延迟小于等于零的当 前帧互相关函数的和的差, 该差值称为第一差值;
2 )求出延迟大于等于零的短时累积互相关函数的和与延迟小于等于零的 短时累积互相关函数的和的差, 该差值称为第二差值;
3 )求第一差值与第二差值之差的绝对值, 得到长时累积互相关函数的加 权系数 "2 ; 通过下述公式求出长时累积互相关函数的加权系数《2 , 但并不限于此:
"2—第一差值-第二差值 | + b , 也可以通过其他的公式来计算。 步骤 602、 判断第一延迟与第二延迟是否相等, 若是, 进入步骤 604, 若否, 进入步骤 603。
该步骤根据第一延迟与第二延迟, 判断第一延迟与第二延迟是否相等, 根 据判断结果进入不同步骤。
步骤 603、 将步骤 601中确定的加权系数《2减小。
该步骤可以是将步骤 601 中确定的加权系数《2与大于零且小于 1的调整 系数相乘。 该调整系数可以直接根据经验进行设置; 或者, 根据长时累积互相 关函数最大值不同选择不同的调整系数。
步骤 604、 维持加权系数《2不变。
实施例三技术方案同样具有实施例二技术方案的效果,另外是可同时参考 累积互相关函数的声场信息。
图 7是本发明实施例四检测信号延迟的方法的流程图。实施例四与实施例 二不同的地方主要在于增加对不同声道信号的延迟变化的有效性进行检测的 过程。
如图 7所示, 包括步骤:
步骤 701 - 704, 与实施例二中的步骤 201 - 204的描述相同。
步骤 705、 对不同声道信号的延迟变化的有效性进行检测。
该步骤内容参见图 8, 图 8是本发明实施例四对不同声道信号的延迟变化 的有效性进行检测的流程图 , 包括步骤:
步骤 801、 获取长时累积互相关函数的平均值 ave、 最大值 peak, 及最大值 对应的第二延迟。
步骤 802、确定门限值 peakO, 统计长时累积互相关函数的取值超过门限值 peakO的数目 count;。
可以根据长时累积互相关函数的平均值 ave和最大值 peak, 确定一个门限 值 peak0。 然后, 统计长时累积互相关函数的取值超过该门限值 peakO的数目 count;。
步骤 803、 获取上一次输出的左、 右声道信号的延迟与第二延迟的差值 Diff。
步骤 804、在差值 Diff小于第一阔值 T1时, 将 count增大例如加 1, 在差 值 Diff大于第二阔值 T2时, 将 count减小例如减 1。
步骤 805、 根据 count及 peak判断第二延迟是否有效。
可以设置与 count相关的第一门限值,与 peak相关的第二门限值,第一门 限值和第二门限值可以根据经验进行取值。 如果 peak大于第二门限值, count 小于第一门限值, 则确定第二延迟为有效, 是稳定的延迟, 可以输出用于后续 的左、 右声道信号的同步调整处理。
需要说明的是, 在实施例三的基础上, 同样可以增加图 8所示的步骤。 图 9是本发明实施例四对延迟变化的有效性进行检测的信号跟踪波形示 意图。
如图 9所示, 波形 a为现有技术的信号跟踪图, 波形 b为本发明实施例的 信号跟踪图, 在位置 c看波形 a, 比较难判断出不同声道信号的延迟变化是否 稳定, 而在位置 c看波形 b, 就比较容易判断出不同声道信号的延迟变化是稳 定。
该实施例四内容可以看出,本发明实施例技术方案通过获取上一次输出的 左、右声道信号的延迟与第二延迟的差值 Diff,根据差值 Diff与第一阔值和第 二阔值的比较关系, 对 count进行调整, 从而使得根据 count及 peak判断第二 延迟是否有效时更为准确 , 避免输出不稳定的延迟进行过多的不必要的切换。 上述内容伴细介绍了本发明实施例检测信号延迟的方法,相应的,本发明 实施例提供一种检测装置及编码器。
图 10是本发明实施例的检测装置结构一示意图。
如图 10所示, 检测装置包括: 获取单元 1001、 第一延迟处理单元 1002、 调整单元 1003、 第二延迟处理单元 1004。
获取单元 1001 , 用于根据获取声道信号间的互相关函数获取第一累积互 目关函数;
第一延迟处理单元 1002, 用于确定所述第一累积互相关函数对应的声道 信号间的第一延迟;
调整单元 1003 , 用于根据所述声道信号间的第一延迟和第二延迟的关系 调整第二累积互相关函数,所述第二延迟在调整所述第二累积互相关函数时获 得且所述第二延迟的首次确定值根据第二累积互相关函数的第二加权系数的 初始值确定;
第二延迟处理单元 1004, 用于确定所述调整后的第二累积互相关函数对 应的第二延迟为检测的声道信号间的延迟。
图 11是本发明实施例的检测装置结构二示意图。
如图 11所示, 所述检测装置的调整单元 1003进一步包括: 第一加权处 理单元 1101、 第二加权处理单元 1102、 更新单元 1103。
其中, 第一加权处理单元 1101 , 用于获取第二累积互相关函数的第二加 权系数的初始值;
第二加权处理单元 1102, 用于在判断所述声道信号间的第一延迟和所述 第二延迟不相等时,将所述第二加权系数的初始值进行减小处理得到减小后的 值;
更新单元 1103 , 根据所述减小后的第二加权系数的值更新所述第二累积 互相关函数。
或者,
第一加权处理单元 1101 , 用于根据所述第一累积互相关函数的声场信息 设置第二累积互相关函数的第二加权系数的值;
第二加权处理单元 1102 , 用于在判断所述声道信号间的第一延迟和所述 第二延迟不相等时, 将所述设置的第二加权系数的值减小得到减小后的值; 更新单元 1103 , 用于根据所述减小后的第二加权系数的值更新所述所述 第二累积互相关函数。
所述第一加权处理单元 1101 可以包括: 第一数值确定单元 1201、 第二 数值确定单元 1202、 数值处理单元 1203。
第一数值确定单元 1201 ,用于确定延迟大于等于 0的当前帧互相关函数的 和与延迟小于等于 0的当前帧互相关函数的和的比值或差值, 作为第一数值; 第二数值确定单元 1202, 用于确定延迟大于等于 0的第一累积互相关函数 的和与延迟小于等于 0的第一累积互相关函数的和的比值或差值, 作为第二数值; 数值处理单元 1203, 用于确定所述第一数值和第二数值之差的绝对值为 所述第二累积互相关函数的第二加权系数的值。
所述检测装置还可以包括: 稳定检测单元 1005。
稳定检测单元 1005可以包括: 第三数值确定单元 1301、 第四数值确定 单元 1302、第四数值确定单元 1302、数值调整单元 1303、有效性判断单元 1304。
第三数值确定单元 1301 , 用于确定所述第二累积互相关函数的取值超过 门限值的数目作为第三数值;
第四数值确定单元 1302, 用于确定已输出的声道信号间的延迟与所述第 二延迟的差值作为第四数值;
数值调整单元 1303 , 用于根据所述第四数值与预设的第一阔值、 第二阐 值的比较关系, 对所述第三数值进行调整;
有效性判断单元 1304, 用于根据调整后的第三数值与对应门限值的比较 关系,及所述第二累积互相关函数的取值中的一个取值与对应门 P艮值的比较关 系, 确定所述第二延迟的有效性。
图 12是本发明实施例的编码器结构示意图。
如图 12所示, 编码器包括: 信号获取装置 121、 检测装置 122。
信号获取装置 121 , 用于获取声道信号;
检测装置 122, 用于根据声道信号间的互相关函数获取第一累积互相关 函数; 确定所述第一累积互相关函数对应的声道信号间的第一延迟;根据所述 声道信号间的第一延迟和第二延迟的关系调整第二累积互相关函数,所述第二 延迟在调整所述第二累积互相关函数时获得且所述第二延迟的首次确定值根 据第二累积互相关函数的第二加权系数的初始值确定;确定所述调整后的第二 累积互相关函数对应的第二延迟为检测的声道信号间的延迟。
检测装置 122具有图 10或 11所述的结构, 具体参见前面的描述, 此处 不再赘述。
综上所述,本发明实施例技术方案通过根据声道信号间的互相关函数获取 第一累积互相关函数;确定所述第一累积互相关函数对应的声道信号间的第一 延迟;根据所述声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数,所述第二延迟在调整所述第二累积互相关函数时获得且所述第二延迟的 首次确定值根据第二累积互相关函数的第二加权系数的初始值确定;在调整所 述第二累积互相关函数后 ,就可以确定其对应的第二延迟为检测的声道信号间 的延迟, 该确定的延迟就可以反映出声道信号的延迟的正负性发生变化的情 况, 从而提高了检测出的信号延迟的准确性。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 例如只读存储器, 磁盘或光盘等。
以上对本发明实施例所提供的检测信号延迟的方法、检测装置及编码器进 述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围 上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种检测信号延迟的方法, 其特征在于, 包括:
根据声道信号间的互相关函数获取第一累积互相关函数;
确定所述第一累积互相关函数对应的声道信号间的第一延迟;
根据所述声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数,所述第二延迟在调整所述第二累积互相关函数时获得且所述第二延迟的 首次确定值根据第二累积互相关函数的第二加权系数的初始值确定;
确定所述调整后的第二累积互相关函数对应的第二延迟为检测的声道信 号间的延迟。
2、 根据权利要求 1所述的检测信号延迟的方法, 其特征在于: 所述根据声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数包括:
获取第二累积互相关函数的第二加权系数的初始值;
在判断所述第一延迟和所述第二延迟不相等时 , 将所述第二加权系数的 初始值进行减小处理得到减小后的值;
根据所述减小后的第二加权系数的值更新所述第二累积互相关函数。
3、 根据权利要求 1所述的检测信号延迟的方法, 其特征在于: 所述根据声道信号间的第一延迟和第二延迟的关系调整第二累积互相关 函数包括:
根据所述第一累积互相关函数的声场信息设置第二累积互相关函数的第 二加权系数的值;
在判断所述第一延迟和所述第二延迟不相等时, 将所述设置的第二加权 系数的值进行减小处理得到减小后的值;
根据所述减小后的第二加权系数的值更新所述第二累积互相关函数。
4、 根据权利要求 3所述的检测信号延迟的方法, 其特征在于: 所述根据第一累积互相关函数的声场信息设置第二累积互相关函数的第 二加权系数的值包括:
确定延迟大于等于 0的当前帧互相关函数的和与延迟小于等于 0的当前帧 互相关函数的和的比值或差值, 作为第一数值; 确定延迟大于等于 0的第一累积互相关函数的和与延迟小于等于 0的第一 累积互相关函数的和的比值或差值, 作为第二数值;
确定所述第一数值和第二数值之差的绝对值为所述第二累积互相关函数 的第二加权系数的值。
5、 根据权利要求 2或 3所述的检测信号延迟的方法, 其特征在于: 所述进行减小处理具体为: 乘以大于零且小于 1的调整系数。
6、根据权利要求 1至 4任一项所述的检测信号延迟的方法,其特征在于: 所述确定所述调整后的第二累积互相关函数的第二延迟为检测的延迟之 后还包括:
确定所述第二累积互相关函数的取值超过门 P艮值的数目作为第三数值; 确定已输出的声道信号间的延迟与所述第二延迟的差值作为第四数值; 根据所述第四数值与预设的第一阔值、 第二阔值的比较关系, 对所述第 三数值进行调整;
根据调整后的第三数值与对应门 P艮值的比较关系 , 及所述第二累积互相 关函数的取值中的一个取值与对应门限值的比较关系,确定所述第二延迟的有 效性。
7、根据权利要求 1至 4任一项所述的检测信号延迟的方法,其特征在于: 所述第一累积互相关函数为短时累积互相关函数, 所述第二累积互相关 函数为长时累积互相关函数。
8、 一种检测装置, 其特征在于, 包括:
获取单元, 用于根据获取声道信号间的互相关函数获取第一累积互相关 函数;
第一延迟处理单元, 用于确定所述第一累积互相关函数对应的声道信号 间的第一延迟;
调整单元, 用于根据所述声道信号间的第一延迟和第二延迟的关系调整 第二累积互相关函数,所述第二延迟在调整所述第二累积互相关函数时获得且 所述第二延迟的首次确定值根据第二累积互相关函数的第二加权系数的初始 值确定;
第二延迟处理单元, 用于确定所述调整后的第二累积互相关函数对应的 第二延迟为检测的声道信号间的延迟。
9、 根据权利要求 8所述的检测装置, 其特征在于, 所述调整单元包括: 第一加权处理单元 , 用于获取第二累积互相关函数的第二加权系数的初 始值;
第二加权处理单元, 用于在判断所述声道信号间的第一延迟和所述第二 延迟不相等时 , 将所述第二加权系数的初始值进行减小处理得到减小后的值; 更新单元, 根据所述减小后的第二加权系数的值更新所述第二累积互相 关函数。
10、根据权利要求 8所述的检测装置, 其特征在于, 所述调整单元包括: 第一加权处理单元, 用于根据所述第一累积互相关函数的声场信息设置 第二累积互相关函数的第二加权系数的值;
第二加权处理单元, 用于在判断所述声道信号间的第一延迟和所述第二 延迟不相等时, 将所述设置的第二加权系数的值减小得到减小后的值;
更新单元, 用于根据所述减小后的第二加权系数的值更新所述所述第二 累积互相关函数。
11、根据权利要求 10所述的检测装置, 其特征在于, 所述第一加权处理 单元包括:
第一数值确定单元,用于确定延迟大于等于 0的当前帧互相关函数的和与 延迟小于等于 0的当前帧互相关函数的和的比值或差值, 作为第一数值;
第二数值确定单元, 用于确定延迟大于等于 0的第一累积互相关函数的和 与延迟小于等于 0的第一累积互相关函数的和的比值或差值, 作为第二数值; 数值处理单元, 用于确定所述第一数值和第二数值之差的绝对值为所述 第二累积互相关函数的第二加权系数的值。
12、根据权利要求 8至 11任一项所述的检测装置, 其特征在于, 所述检 测装置还包括:
第三数值确定单元, 用于确定所述第二累积互相关函数的取值超过门限 值的数目作为第三数值;
第四数值确定单元 , 用于确定已输出的声道信号间的延迟与所述第二延 迟的差值作为第四数值; 数值调整单元, 用于根据所述第四数值与预设的第一阔值、 第二阔值的 比较关系, 对所述第三数值进行调整;
有效性判断单元,用于根据调整后的第三数值与对应门 P艮值的比较关系, 及所述第二累积互相关函数的取值中的一个取值与对应门 P艮值的比较关系 ,确 定所述第二延迟的有效性。
13、 一种编码器, 其特征在于, 包括:
信号获取装置, 用于获取声道信号;
检测装置 ,用于根据声道信号间的互相关函数获取第一累积互相关函数; 确定所述第一累积互相关函数对应的声道信号间的第一延迟;根据所述声道信 号间的第一延迟和第二延迟的关系调整所述第二累积互相关函数,所述第二延 迟在调整所述第二累积互相关函数时获得且所述第二延迟的首次确定值根据 第二累积互相关函数的第二加权系数的初始值确定;确定所述调整后的第二累 积互相关函数对应的第二延迟为检测的声道信号间的延迟。
PCT/CN2009/071669 2009-05-07 2009-05-07 检测信号延迟的方法、检测装置及编码器 Ceased WO2010127489A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP09844241A EP2429218A4 (en) 2009-05-07 2009-05-07 DETECTION SIGNAL DELAY METHOD, SENSOR DEVICE AND ENCODER
PCT/CN2009/071669 WO2010127489A1 (zh) 2009-05-07 2009-05-07 检测信号延迟的方法、检测装置及编码器
KR1020117028739A KR101373594B1 (ko) 2009-05-07 2009-05-07 신호 지연 검출 방법, 검출 장치 및 코더
CN2009801547910A CN102301748B (zh) 2009-05-07 2009-05-07 检测信号延迟的方法、检测装置及编码器
US13/290,809 US20120053714A1 (en) 2009-05-07 2011-11-07 Signal delay detection method, detection apparatus, coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2009/071669 WO2010127489A1 (zh) 2009-05-07 2009-05-07 检测信号延迟的方法、检测装置及编码器

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/290,809 Continuation US20120053714A1 (en) 2009-05-07 2011-11-07 Signal delay detection method, detection apparatus, coder

Publications (1)

Publication Number Publication Date
WO2010127489A1 true WO2010127489A1 (zh) 2010-11-11

Family

ID=43049908

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071669 Ceased WO2010127489A1 (zh) 2009-05-07 2009-05-07 检测信号延迟的方法、检测装置及编码器

Country Status (5)

Country Link
US (1) US20120053714A1 (zh)
EP (1) EP2429218A4 (zh)
KR (1) KR101373594B1 (zh)
CN (1) CN102301748B (zh)
WO (1) WO2010127489A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111095404A (zh) * 2017-09-11 2020-05-01 高通股份有限公司 时间偏移估计

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2395504B1 (en) * 2009-02-13 2013-09-18 Huawei Technologies Co., Ltd. Stereo encoding method and apparatus
CN105448312B (zh) 2014-06-12 2019-02-19 华为技术有限公司 音频同步播放方法、装置及系统
US10074373B2 (en) * 2015-12-21 2018-09-11 Qualcomm Incorporated Channel adjustment for inter-frame temporal shift variations
US10872611B2 (en) * 2017-09-12 2020-12-22 Qualcomm Incorporated Selecting channel adjustment method for inter-frame temporal shift variations
CN114726727A (zh) * 2020-12-21 2022-07-08 深圳市中兴微电子技术有限公司 一种时延调整方法、装置、存储介质及电子装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0255431A (ja) * 1988-08-19 1990-02-23 Matsushita Electric Ind Co Ltd 情報伝送装置
US6035045A (en) * 1996-10-22 2000-03-07 Kabushiki Kaisha Kawai Gakki Seisakusho Sound image localization method and apparatus, delay amount control apparatus, and sound image control apparatus with using delay amount control apparatus
CN1867208A (zh) * 2005-05-18 2006-11-22 索尼株式会社 音频再现设备
JP2007079483A (ja) * 2005-09-16 2007-03-29 Nippon Telegr & Teleph Corp <Ntt> ステレオ信号符号化装置、ステレオ信号復号化装置、ステレオ信号符号化方法、ステレオ信号復号化方法、プログラム及び記録媒体
CN1961511A (zh) * 2004-06-02 2007-05-09 松下电器产业株式会社 声音数据发送/接收装置及声音数据发送/接收方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4890065A (en) * 1987-03-26 1989-12-26 Howe Technologies Corporation Relative time delay correction system utilizing window of zero correction
US6408327B1 (en) * 1998-12-22 2002-06-18 Nortel Networks Limited Synthetic stereo conferencing over LAN/WAN
US6973184B1 (en) * 2000-07-11 2005-12-06 Cisco Technology, Inc. System and method for stereo conferencing over low-bandwidth links
WO2002078388A2 (en) * 2001-03-27 2002-10-03 1... Limited Method and apparatus to create a sound field
KR20050075254A (ko) * 2004-01-16 2005-07-20 현대모비스 주식회사 음성 신호 딜레이 장치 및 그 검출 방법
US7180537B2 (en) * 2004-02-18 2007-02-20 Tektronix, Inc. Relative channel delay measurement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0255431A (ja) * 1988-08-19 1990-02-23 Matsushita Electric Ind Co Ltd 情報伝送装置
US6035045A (en) * 1996-10-22 2000-03-07 Kabushiki Kaisha Kawai Gakki Seisakusho Sound image localization method and apparatus, delay amount control apparatus, and sound image control apparatus with using delay amount control apparatus
CN1961511A (zh) * 2004-06-02 2007-05-09 松下电器产业株式会社 声音数据发送/接收装置及声音数据发送/接收方法
CN1867208A (zh) * 2005-05-18 2006-11-22 索尼株式会社 音频再现设备
JP2007079483A (ja) * 2005-09-16 2007-03-29 Nippon Telegr & Teleph Corp <Ntt> ステレオ信号符号化装置、ステレオ信号復号化装置、ステレオ信号符号化方法、ステレオ信号復号化方法、プログラム及び記録媒体

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111095404A (zh) * 2017-09-11 2020-05-01 高通股份有限公司 时间偏移估计
CN111095404B (zh) * 2017-09-11 2021-12-17 高通股份有限公司 时间偏移估计

Also Published As

Publication number Publication date
CN102301748A (zh) 2011-12-28
US20120053714A1 (en) 2012-03-01
EP2429218A4 (en) 2012-03-28
CN102301748B (zh) 2013-08-07
KR101373594B1 (ko) 2014-03-12
EP2429218A1 (en) 2012-03-14
KR20120020147A (ko) 2012-03-07

Similar Documents

Publication Publication Date Title
JP7443423B2 (ja) マルチチャネル信号の符号化方法およびエンコーダ
EP2979358B1 (en) Volume leveler controller and controlling method
EP3598448B1 (en) Apparatuses and methods for audio classifying and processing
EP3232567B1 (en) Equalizer controller and controlling method
JP2021092805A (ja) マルチチャネル信号を符号化する方法及びエンコーダ
WO2010127489A1 (zh) 检测信号延迟的方法、检测装置及编码器
JP6641027B2 (ja) チャネル間時間差パラメータの安定性を増加させるための方法および装置
WO2008148323A1 (en) A voice activity detecting device and method
US20110246205A1 (en) Method for detecting audio signal transient and time-scale modification based on same
WO2021053264A1 (en) Direction estimation enhancement for parametric spatial audio capture using broadband estimates
CN110491411B (zh) 结合麦克风声源角度和语音特征相似度分离说话人的方法
JP2024081674A (ja) デュアルエンドのメディア・インテリジェンス
CN101848412B (zh) 通道间延迟估计的方法及其装置和编码器
CN112530450A (zh) 频域中的样本精度延迟识别
WO2018234623A1 (en) Spatial audio processing
TW201016027A (en) Tone detector and method of detecting a tone suitable for a robot
CN112786065B (zh) 声源方向的确定
CN116206619A (zh) 语音处理方法、装置、存储介质及电子设备
CN117476029A (zh) 确定空间音频参数
HK1244110B (zh) 均衡器控制器和均衡器控制方法
HK40002235A (zh) 多声道信号的编码方法和编码器
BR112019002364B1 (pt) Método para a codificação de um sinal de múltiplos canais, codificador e meio de armazenamento que pode ser lido por computador
HK1238803B (zh) 音量校平器控制器和控制方法
HK1242852A1 (zh) 音量校平器控制器和控制方法

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980154791.0

Country of ref document: CN

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

Ref document number: 09844241

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2009844241

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20117028739

Country of ref document: KR

Kind code of ref document: A