Device and method for adaptation of virtual 3D audio to a real room
11668600 · 2023-06-06
Assignee
Inventors
- Liyun PANG (Munich, DE)
- Fons Adriaensen (Munich, DE)
- Song Li (Hannover, DE)
- Roman Schlieper (Hannover, DE)
Cpc classification
H04S2420/01
ELECTRICITY
International classification
Abstract
The invention relates to the technical fields of binaural audio rendering and, to this end, estimation of room acoustic parameters like reverberation time. In particular, the invention provides a device and method for estimating such acoustic parameters. The device is configured to record an acoustic signal, particularly a speech signal, to estimate a frequency-dependent reverberation time in a lower frequency range based on the recorded acoustic signal, and to extend the frequency-dependent reverberation time to a higher frequency range based on a predetermined model to obtain an extended frequency-dependent reverberation time. Virtual 3D audio can thus be adapted to a real room.
Claims
1. A device for estimating acoustic parameters, wherein the device is configured to: record an acoustic signal; estimate a frequency-dependent reverberation time in a lower frequency range based on the recorded acoustic signal; extend the frequency-dependent reverberation time to a higher frequency range based on a predetermined model to obtain an extended frequency-dependent reverberation time; synthesize a Binaural Room Impulse Response (BRIR) based on the extended frequency-dependent reverberation time; estimate a mixing time based on the extended frequency-dependent reverberation time; and synthesize the BRIR based further on the mixing time, wherein the synthesizing the BRIR based further on the mixing time comprises: reshaping white noise or white Gaussian noise according to the extended frequency-dependent reverberation time to synthesize the late reverberation part; truncating the late reverberation part according to the mixing time and a window function; and combining a Head Related Transfer Function for a direct part and/or early reflection with the truncated later reverberation part to obtain an entire BRIR.
2. The device according to claim 1, wherein: the lower frequency range includes frequencies below 8 kHz; and the higher frequency range includes frequencies above 8 kHz.
3. The device according to claim 1, wherein the device is further configured to: estimate the frequency-dependent reverberation time in the lower frequency range by performing blind estimation.
4. The device according to claim 1, wherein the predetermined model describes a reverberation time change from lower frequencies included in the lower frequency range to higher frequencies included in the higher frequency range.
5. The device according to claim 1, wherein the device is further configured to: build the predetermined model by analyzing Room Impulse Responses (RIRs) of multiple different room types.
6. The device according claim 1, wherein the device is further configured to: smooth the frequency-dependent reverberation time over the lower frequency range before extending it to the higher frequency range.
7. The device according to claim 6, wherein the device is further configured to: calculate coefficients for the predetermined model from a single reverberation time of the smoothed frequency-dependent reverberation time at a determined frequency in the lower frequency range, in order to extend it to the higher frequency range based on the predetermined model.
8. The device according to claim 1, wherein the device is further configured to: estimate the frequency-dependent reverberation time in the lower frequency range by: filtering the recorded acoustic signal with a filter bank; and estimating a reverberation time in each of multiple frequency channels of the filtered acoustic signal based on a blind estimation method.
9. The device according to claim 1, wherein the device is further configured to: estimate a mixing time based on the extended frequency-dependent reverberation time.
10. The device according to claim 9, wherein the device is further configured to: estimate the mixing time by: multiplying a single reverberation time of the extended frequency-dependent reverberation time at a determined frequency in the lower frequency range by a predetermined factor; or calculating a room volume based on the extended frequency-dependent reverberation time and calculating the mixing time based on the room volume.
11. The device according to claim 1, wherein the device is further configured to: synthesize the BRIR by: using the extended frequency-dependent reverberation time to synthesize a late reverberation part of the BRIR; and using the mixing time to adjust the start time of the late reverberation part in the synthesized BRIR.
12. A method for estimating acoustic parameters, the method comprising: recording an acoustic signal; estimating a frequency-dependent reverberation time in a lower frequency range based on the recorded acoustic signal; extending the frequency-dependent reverberation time to a higher frequency range based on a predetermined model to obtain an extended frequency-dependent reverberation time; synthesizing a Binaural Room Impulse Response (BRIR) based on the extended frequency-dependent reverberation time; estimating a mixing time based on the extended frequency-dependent reverberation time; and synthesizing the BRIR based further on the mixing time, wherein the synthesizing the BRIR based further on the mixing time comprises: reshaping white noise or white Gaussian noise according to the extended frequency-dependent reverberation time to synthesize the late reverberation part; truncating the late reverberation part according to the mixing time and a window function; and combining a Head Related Transfer Function for a direct part and/or early reflection with the truncated later reverberation part to obtain an entire BRIR.
13. A non-transitory computer readable medium comprising program code that when executed by a computer, configure the computer to perform a method comprising: recording an acoustic signal; estimating a frequency-dependent reverberation time in a lower frequency range based on the recorded acoustic signal; extending the frequency-dependent reverberation time to a higher frequency range based on a predetermined model to obtain an extended frequency-dependent reverberation time; synthesizing a Binaural Room Impulse Response (BRIR) based on the extended frequency-dependent reverberation time; estimating a mixing time based on the extended frequency-dependent reverberation time; and synthesizing the BRIR based further on the mixing time, wherein the synthesizing the BRIR based further on the mixing time comprises: reshaping white noise or white Gaussian noise according to the extended frequency-dependent reverberation time to synthesize the late reverberation part; truncating the late reverberation part according to the mixing time and a window function; and combining a Head Related Transfer Function for a direct part and/or early reflection with the truncated later reverberation part to obtain an entire BRIR.
14. The device according to claim 1, wherein the extended frequency-dependent reverberation time is determined further based on the frequency-dependent reverberation time in the lower frequency range.
15. The method according to claim 12, wherein the extended frequency-dependent reverberation time is determined further based on the frequency-dependent reverberation time in the lower frequency range.
16. The non-transitory computer readable medium according to claim 13, wherein the extended frequency-dependent reverberation time is determined further based on the frequency-dependent reverberation time in the lower frequency range.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) The above described aspects and implementation forms of the invention will be explained in the following description of specific embodiments in relation to the enclosed drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
DETAILED DESCRIPTION OF EMBODIMENTS
(25)
(26) The device 100 may comprise processing circuitry 110 configured to perform the various operations and methods described below. The processing circuitry 110 may comprise hardware and software. In one embodiment, the processing circuitry 110 comprises one or more processors (not shown) and a non-volatile memory (not shown) connected to the one or more processors. The non-volatile memory may carry executable program code which, when executed by the one or more processors, causes the device 100 to perform said operations or methods.
(27) The device 100 is configured to record 102 an acoustic signal 101, particularly a speech signal. The recording 102 may be done by means of a mono microphone, binaural microphone or the like. By recording the acoustic signal 101 it becomes a recorded acoustic signal 103.
(28) The device 100 is further configured to estimate 104 a frequency-dependent reverberation time 105 in a lower frequency range based on the recorded acoustic signal 103. The estimating 104 may be performed by the processing circuitry 110, which may include a filter bank (not shown). The lower frequency range may include frequencies below 8 kHz, for example frequencies between 1.4 kHz and 8 kHz. The estimation 104 may be done by blind estimation.
(29) The device 100 is further configured to extend 106 the estimated frequency-dependent reverberation time 105 for the lower frequency range to a higher frequency range, wherein the extending 106 bases on a predetermined model 107. Thereby, an extended frequency-dependent reverberation time 108 is obtained. The extending 106 may be performed by the processing circuitry 110 which may include one or more smoothing filters (not shown). The higher frequency range may include frequencies above 8 kHz, for example, frequencies between 8 kHz and 18 kHz. The predetermined model 107 may describe a reverberation time change from the lower frequencies included in the lower frequency range to the higher frequencies included in the higher frequency range. The model 107 may be built, by the device 100 or beforehand by another device, by analyzing RIRs of multiple different rooms (types, geometries, sizes).
(30)
(31) More details of the device 100 (and correspondingly the method 200) are described below according to further embodiments of the invention, wherein all embodiments build on the general embodiment of the device 100 shown in
(32)
(33)
(34) An example of the blind estimation 104 shown in
(35) However, the estimated reverberation time 105 is still frequency-limited up to 8 kHz, due to the frequency range of the speech signals 101. In addition, in the case of a noisy environment, the accuracy of the obtained reverberation time may not be overly robust in low to mid frequencies (e.g., from 1.4 kHz to 8 kHz). Due to the lack of a blindly estimated reverberation time in mid to high frequencies, it would be difficult to exactly synthesize the late reverberation part in a BRIR based on the reverberation time 105. Therefore, the device 100 is further configured to obtain a frequency-dependent reverberation time 108 in a full frequency range (e.g. 1.4-18 kHz). To this end, the device 100 is configured to extend 106 (here smooth and extend 400) the reverberation time 105, in order to obtain the extended frequency-dependent reverberation time 108.
(36)
T.sub.60,mid to high=aƒ.sub.mid to high.sup.2+bƒ.sub.mid to high+T.sub.60.4 kHz (1)
(37) T.sub.60,mid to high is the reverberation time in mid to high frequencies, T.sub.60.4 kHz is the reverberation time at 4 kHz, and ƒ.sub.mid to high denotes mid to high center frequencies of the filter bank 500. The parameter a is usually larger than 0, while b is usually smaller than 0. These parameters can be obtained using the following equations:
a=c1T.sub.60.4 kHz.sup.3+d1T.sub.60.4 kHz.sup.2+e1T.sub.60.4 kHz+g1 (2)
b=c2T.sub.60.4 kHz.sup.3+d2T.sub.60.4 kHz.sup.2+e2T.sub.60.4 kHz+g2 (3)
(38) These equations (Eq. 2 and 3) for calculating the parameters a and b may be determined through analyzing large database of RIRs 603. The parameters c1, c2, d1, d2, e1, e2, gland g2 are, for example: 0.003227, −0.03699, −0.006, 0.0581, 0.005581, −0.1155, −0.0005413, 0.008851, which values may be determined based on an AIR RIR database. For an actual real room, the reverberation time at 4 kHz (T.sub.60.4 kHz) should first be estimated, then the reverberation time at mid to high frequencies may be calculated based on the model 107 (Eq. 1). It is also possible to use other models 107 (e.g. fitting functions) to calculate the extended reverberation time 108 in mid to high frequencies, e.g., exponential function, higher order polynomial function etc.
(39) In summary, smoothing of the reverberation time 105 from, for example, 1.4 kHz to 8 kHz, may be performed after the blind estimation 104 of the reverberation time 105 using, for instance, the maximum likelihood method. Then, the reverberation time at 4 kHz may be used to calculate the coefficients a and b. After that, the extended reverberation time 108, for example, from 8 kHz to 18 kHz may be obtained based on the proposed model 107 (Eq. 1).
(40) The mixing time 402 describes the time of transition from early reflections to late reverberation in RIRs/BRIRs (see
(41)
(42) Based on the estimated room acoustic parameters of the actual room (e.g., frequency-dependent extended reverberation time 108 and optionally the mixing time 402), it is possible to synthesize BRIRs, which adapt very well to the actual room.
(43) An example of how to synthesize the BRIRs in a device 100 according to an embodiment of the invention is shown in
(44) In particular, as shown in
(45)
(46) A is the scaling factor of the late reverberation, which depends on the source-listener distance, and is usually limited between 0 and 1. Further, n is the sample number, and ƒ.sub.s is the sampling frequency. For example, A, n, and ƒ.sub.s can be set to 1, 8196 samples, and 48 kHz, respectively. Then, the reshaped Gaussian white noise 905 in each frequency channel may be summed up 906 to obtain the synthesized reverberation 907 for the left and right ear.
(47) After that, the obtained reverberation 907 can be further truncated 908 by a window based on the estimated mixing time 402 to adapt to the synthesized BRIRs. To guarantee smooth transitions between early reflections and late reverberation without perceptible artefacts, a window for example with 10 ms long rise time may be applied to truncate 908 the synthesized late reverberation. Thereby, a synthesized late reverberation 909 after windowing is obtained, based on which the BRIRs can be synthesized 910.
(48) The performance of the device 100 (and correspondingly the method 200) to obtain the full frequency band reverberation time 108 is illustrated by simulation results in
(49)
(50)
(51) A BRIR can be considered as the sum of direct sound, early reflections and late reverberation.
(52) In the following, devices 100 according to specific embodiments of the invention are described. The embodiments are divided into two parts: Firstly, analysis of reverberation time (specific embodiments 1 and 2) and, secondly, synthesis of BRIRs (specific embodiments 3, 4 and 5).
(53) Embodiment 1 is shown in
(54) Embodiment 2 is shown in
(55) Embodiment 3 is shown in
(56) Embodiment 4 is shown in
(57) Embodiment 5 is shown in
(58) There are many ways to simulate 2102 the early reflections 2103, e.g., image-source method, ray tracing method, etc. To simulate 2102 the early reflections 2013, the position of sound source and the listener in the room should be first defined by user. In addition, the geometry (length, width, and height) of the room should be either estimated by using external sensor, e.g., AR-headset, or provided by the user. Based on the geometry of the room, position of the listener and the virtual sound source, the early reflections can be simulated for example using image-source method. The number of the image sources depends on the performance of the smart devices. The late reverberation 909 calculated according to the reverberation time 108 is then added into the synthesized BRIR according to the mixing time 402.
(59) The invention has been described in conjunction with various embodiments as examples as well as implementations. However, other variations can be understood and effected by those persons skilled in the art and practicing the claimed invention, from the studies of the drawings, this disclosure and the independent claims. In the claims as well as in the description the word “comprising” does not exclude other elements or steps and the indefinite article “a” or “an” does not exclude a plurality. A single element or other unit may fulfill the functions of several entities or items recited in the claims. The mere fact that certain measures are recited in the mutual different dependent claims does not indicate that a combination of these measures cannot be used in an advantageous implementation.