Vehicle-mounted voice extraction method and system, vehicle, electronic device, and storage medium

By combining the spatial propagation differences of multi-channel audio signals with the visual spatial information and lip features of video images, the problem of target speech being easily misjudged and unstable extraction in in-vehicle voice interaction is solved, achieving robust and accurate speech extraction under complex acoustic conditions.

CN123182705APending Publication Date: 2026-11-27IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611668351.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In in-vehicle voice interaction, existing technologies struggle to stably extract target speech in complex sound fields with multiple speakers, strong noise, strong interference, speaker echoes, and cabin reverberation. Especially under conditions of low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio, target speech is easily misjudged, speech is easily mixed up under strong interference, and speech extraction is unstable under adverse acoustic conditions.

Method used

By combining the spatial propagation differences of multi-channel audio signals with the visual spatial information and lip features of video images, it is determined whether the target object is the current speaker. Then, speech extraction is performed using the spatial location information and lip features of the target object as constraints to obtain an enhanced speech signal.

Benefits of technology

Under complex in-vehicle acoustic conditions such as low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio, it robustly and accurately extracts target enhanced speech with low distortion and is not easily interfered with by other locations, thus improving the robustness and accuracy of in-vehicle speech extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182705A_ABST
    Figure CN123182705A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of artificial intelligence, and provides a vehicle-mounted voice extraction method and system, a vehicle, electronic equipment and a storage medium, the method comprising the following steps: determining audio spatial information based on the spatial propagation difference of a multi-channel audio signal between multiple microphones; determining a target object and visual spatial information and lip features of the target object based on a video image in the vehicle; judging whether the target object is a current speaking object based on the audio spatial information, the visual spatial information and the lip features; if yes, performing voice extraction on the multi-channel audio signal by taking the spatial position information and the lip features of the target object as constraints to obtain an enhanced voice signal of the target object; through the double constraints of the spatial position and the lip features, strong interference voice is effectively suppressed because the spatial position and the pronunciation rhythm of the strong interference voice are inconsistent with those of the target object, so that the enhanced voice with low distortion can still be accurately extracted under complex vehicle-mounted acoustic conditions, and the robustness and accuracy of vehicle-mounted voice extraction are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to an in-vehicle voice extraction method, system, vehicle, electronic device, and storage medium. Background Technology

[0002] With the increasing demand for voice interaction in smart car cockpits, how to stably extract the voice of the target person from a complex sound field with multiple speakers, strong noise, strong interference, speaker echo, and cabin reverberation has become an urgent problem to be solved in the field of in-vehicle voice front-end processing.

[0003] When a vehicle is in motion, there are engine and electric drive noise, tire noise, wind noise, navigation broadcasts, and conversations between passengers. Most of these sound sources are non-stationary. Moreover, the cabin space is small and there are many reflective surfaces. When the target voice reaches different microphones, it contains both direct sound and strong reflections. When the target is far away from some microphones, turns its face, or speaks at a low volume, the channel to be extracted is often in a low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio scenario.

[0004] Traditional solutions typically rely on audio energy comparison or camera vision to extract the target's voice, but this method is prone to failure in situations such as loud noise interference from passengers, target tilting, obstruction, backlighting, and nighttime lighting. Summary of the Invention

[0005] This invention provides a vehicle-mounted speech extraction method, system, vehicle, electronic device, and storage medium to solve the problems in the prior art where the target speaker is easily misidentified, speech is easily mixed up under strong interference, and speech extraction is unstable under poor acoustic conditions.

[0006] This invention provides a method for extracting in-vehicle voice data, comprising: Acquire video images from inside the vehicle, as well as multi-channel audio signals collected by multiple microphones; Based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones, audio spatial information is determined; Based on the video images, the target object inside the vehicle is identified, along with the visual spatial information and lip features of the target object. Based on the audio spatial information, the visual spatial information, and the lip features, it is determined whether the target object is the current speaker; If so, then using the spatial location information of the target object and the lip features as constraints, speech extraction is performed on the multi-channel audio signal to obtain the enhanced speech signal of the target object.

[0007] According to the present invention, an in-vehicle voice extraction method is provided, wherein the audio spatial information includes point-level spatial response and / or region-level spatial response; The determination of audio spatial information based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones includes: The multi-channel audio signal is subjected to time-frequency transformation to obtain the time-frequency domain signal corresponding to each microphone; For each microphone pair consisting of multiple microphones, the cross-correlation function of each microphone pair is determined based on the time-frequency domain signals corresponding to two microphones in each microphone pair; Based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate position in the vehicle coordinate system is determined; Based on the point-level spatial response of each candidate location, the area-level spatial response of each seating area inside the vehicle is determined.

[0008] According to the vehicle-mounted speech extraction method provided by the present invention, the step of determining the point-level spatial response of each candidate position in the vehicle coordinate system based on the cross-correlation function of each microphone pair includes: Based on the aforementioned visual spatial information, the audio search area is determined; Based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate position within the audio search area in the vehicle coordinate system is determined; The process of determining the point-level spatial response of each candidate location in the vehicle coordinate system further includes: Based on the matching degree between the observed transfer function and the acoustic transfer dictionary, the point-level spatial response of each candidate location is corrected; The acoustic transfer dictionary includes acoustic transfer functions from multiple spatial grid points within the active range of the target object to each microphone; The observation transfer function is determined based on the multi-channel audio signal.

[0009] According to a vehicle-mounted speech extraction method provided by the present invention, the step of determining whether the target object is the current speaker based on the audio spatial information, the visual spatial information, and the lip features includes: Based on the synchronization relationship between the lip movements characterized by the lip features and the multi-channel audio signal, the lip sound synchronization probability is determined; Based on the lip-sound synchronization probability, the audio spatial information, and the visual spatial information, the target object is determined as the target posterior probability of the current speaking object; Based on the target posterior probability, it is determined whether the target object is the current speaker.

[0010] According to a vehicle-mounted voice extraction method provided by the present invention, the video images are acquired by multiple cameras at different locations inside the vehicle; The lip features of the target object are determined based on the following steps: From the video images captured by each camera, extract the lip candidate features of the target object, and determine the lip quality score of each camera based on each lip candidate feature; The lip features are determined based on the lip quality scores of each camera and the lip candidate features.

[0011] According to a vehicle-mounted speech extraction method provided by the present invention, the step of extracting speech from the multi-channel audio signal to obtain the enhanced speech signal of the target object includes: Based on the spatial location information, a target guidance vector pointing to the target object is determined; Based on the acoustic features of the multi-channel audio signal, the target steering vector, the audio spatial information, and the lip features, a mask estimation is performed to obtain an interference mask; Based on the interference mask and the target steering vector, speech extraction is performed on the multi-channel audio signal to obtain the enhanced speech signal of the target object.

[0012] According to a vehicle-mounted voice extraction method provided by the present invention, the method further includes: The system confidence level is determined based on the reliability of the audio spatial information, the accuracy of the lip features, and the credibility that the target object is the current speaker. Based on the system confidence level, switching between multiple working modes is performed; The various working modes include: A first mode for speech extraction from the multi-channel audio signal, constrained by the spatial location information of the target object and the lip features; When the reliability of the video image does not meet the preset conditions, a second mode of speech extraction is performed based on the audio spatial information and the spatial location information of the target object; When the reliability of the multi-channel audio signal does not meet the preset conditions, a third mode for speech extraction based on the visual spatial information is used. Furthermore, when the reliability of the video image and the reliability of the multi-channel audio signal do not meet the corresponding preset conditions, the fourth mode of the enhanced speech signal extracted at the previous moment is maintained.

[0013] According to the present invention, a method for extracting in-vehicle voice data includes acquiring in-vehicle video images and multi-channel audio signals collected by multiple microphones, comprising: Acquire the initial video image and the initial audio signal collected by multiple microphones; Based on the same clock, timestamps are written into the initial video image and the initial audio signal. Delay compensation is then performed on the initial video image and the initial audio signal after the timestamps are written to obtain the time-aligned video image and the multi-channel audio signal.

[0014] The present invention also provides an in-vehicle voice extraction system, including multiple microphones disposed in different sound zones inside the vehicle, a camera disposed inside the vehicle, and a processor connected to the multiple microphones and the camera; the processor is used to execute the in-vehicle voice extraction method as described in any of the above claims; The camera's field of view at least partially covers the range of motion of the target object's lips.

[0015] The present invention also provides a vehicle, including the in-vehicle voice extraction system as described above; wherein the plurality of microphones are respectively disposed in the sound zones corresponding to different seating areas within the vehicle.

[0016] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the in-vehicle voice extraction method as described above.

[0017] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle-mounted voice extraction method as described above.

[0018] The in-vehicle speech extraction method, system, vehicle, electronic device, and storage medium provided by this invention complement and jointly utilize audio spatial information, visual spatial information, and lip features. Visual information can provide target location and pronunciation cues when the audio signal-to-noise ratio is low, while audio information can maintain positioning when visual occlusion or poor image quality is present, thus avoiding the problem of single-mode failure. Furthermore, through the dual constraints of spatial location and lip features, strong interference speech is effectively suppressed because its spatial location and pronunciation rhythm are inconsistent with the target object. Therefore, even under complex in-vehicle acoustic conditions such as low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio, it can still robustly and accurately extract target enhanced speech with low distortion and less prone to interference from other locations, thereby greatly improving the robustness and accuracy of in-vehicle speech extraction. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the in-vehicle voice extraction method provided by the present invention; Figure 2 This is an example diagram of the spatial layout of the in-vehicle microphone and camera provided by the present invention; Figure 3 This is an example diagram of the lip quality assessment and perspective selection process provided by the present invention; Figure 4 This is an example diagram of the spatially constrained driver-target speech process provided by the present invention; Figure 5 This is a schematic diagram of the structure of the vehicle-mounted voice extraction device provided by the present invention; Figure 6 This is a schematic diagram of the structure of the in-vehicle voice extraction system provided by the present invention; Figure 7 This is a structural schematic diagram of the vehicle provided by the present invention; Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0022] With the rapid development of intelligent vehicle cockpit technology, in-vehicle voice interaction has become an indispensable and important function in intelligent cockpits, and it is widely used in scenarios such as voice assistants, in-vehicle hands-free calling, in-vehicle conferencing, and driver voice control.

[0023] However, when a vehicle is in motion, there are engine and electric drive noise, tire noise, wind noise, air conditioning noise, structural vibration, in-vehicle music or navigation broadcasts, and conversations between passengers. Most of these sound sources are non-stationary. Furthermore, the cabin space is small and has many reflective surfaces, so when the target voice reaches different microphones, it includes both direct sound and strong reflections.

[0024] When the target person is far from certain microphones, turns their face, or speaks at a low volume, the extraction channel is often in a low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio scenario. Therefore, how to stably and accurately extract the target person's speech from signals with multiple speakers, strong noise, strong interference, speaker echo, and cabin reverberation has become a key problem that urgently needs to be solved in the field of in-vehicle speech signal processing.

[0025] Currently, existing technologies for target speech extraction in vehicle scenarios mainly include the following types of solutions: First, the audio energy partitioning or fixed threshold solution, which compares the short-time energy of signals collected by each microphone, takes the area corresponding to the microphone with the highest energy as the speaker's location, and then selects the signal from that channel or performs fixed gain processing on it; Second, the audio array localization and beamforming solution, which uses time difference of arrival, beam scanning or directional angle of arrival to estimate the sound source location, and then uses delay summation, generalized feature value or deep learning beamforming to extract speech based on the estimated direction.

[0026] However, all of the above solutions have significant drawbacks. Specifically, for solutions relying on a single audio modality, when multiple microphones are distributed around various seats in the vehicle, the microphone spacing, channel delay, and cabin transfer function are all irregular. Simply comparing energy can lead to positioning errors. In particular, when a passenger in the front passenger seat or rear passenger speaks loudly near their microphone, the speech in the target channel may be heavily interfered with. In this case, it is easy to mistake the interfering passenger for the target speaker, resulting in the extracted speech being mixed in or even completely replaced by the speech of people in other positions. Furthermore, beamforming requires accurate target direction and noise covariance, which are prone to mismatch in near-field, wide-spacing, and irregular microphone layouts in the vehicle. For example, if the target person turns their head, it will cause a drastic change in the target steering vector, making it difficult to maintain accurate extraction of the target speech under low signal-to-noise ratio and low signal-to-interference ratio conditions.

[0027] For solutions that rely on visual single-modal guidance, although the camera can directly provide the location of the target's face and lips, it will fail due to changes in the target's head posture, obstruction by the steering wheel or hands, backlighting, nighttime lighting, insufficient lip pixels, and motion blur. Once the visual information fails, erroneous or low-quality visual features will in turn interfere with the speech enhancement model, which will also lead to a deterioration in the extraction effect.

[0028] In short, existing solutions, due to the inherent limitations of a single modality and the lack of a joint confirmation mechanism between multimodal information, struggle to reliably confirm whether a target person is speaking under strong interference, and also struggle to maintain accurate extraction of target speech under adverse acoustic conditions. This results in low intelligibility and significant distortion of the extracted speech, which is also prone to interference from other locations, seriously affecting the accuracy of in-vehicle voice interaction and user experience.

[0029] To address this issue, this invention provides an in-vehicle speech extraction method. It aims to combine audio spatial information determined by the spatial propagation differences between multiple microphones with visual spatial information and lip features of the target object determined by video images. First, it performs multimodal consistency verification to confirm whether the target object is the current speaker. Then, it uses the target object's spatial location information and lip features to jointly constrain multi-channel speech extraction. This solves the problems of misidentification of the target speaker, easy mixing of speech with other speakers under strong interference, and unstable extraction under adverse acoustic conditions. It achieves stable identification of the target speaker even under complex in-vehicle acoustic conditions such as low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio, and outputs identifiable, low-distortion, and less susceptible to interference from other locations, thus improving the robustness and accuracy of in-vehicle speech extraction.

[0030] Figure 1 This is a flowchart illustrating the in-vehicle voice extraction method provided by the present invention. This method can be applied to an audiovisual fusion processor within a vehicle. The specific execution entity can be a processor integrated into a cockpit domain controller, in-vehicle infotainment system, driver monitoring system, independent voice front-end processor, or the vehicle's central computing platform. The embodiments of the present invention do not impose specific limitations. Figure 1 As shown, the method includes: Step 110: Acquire video images from inside the vehicle, as well as multi-channel audio signals collected by multiple microphones; Step 120: Determine audio spatial information based on the spatial propagation differences of multi-channel audio signals among multiple microphones; determine the target object inside the vehicle, as well as the visual spatial information and lip features of the target object, based on video images; Step 130: Based on audio spatial information, visual spatial information, and lip features, determine whether the target object is the current speaker. Step 140: If yes, then using the spatial location information and lip features of the target object as constraints, perform speech extraction on the multi-channel audio signal to obtain the enhanced speech signal of the target object.

[0031] Specifically, when performing voice extraction, it is first necessary to acquire video images and multi-channel audio signals from inside the vehicle. The video images are images obtained by capturing images of the interior space of the vehicle, which reflect visual information such as the faces, head postures, and lip movements of the people inside the vehicle. These images can be captured by cameras installed inside the vehicle.

[0032] There can be one or more cameras here. They can be visible light cameras, near-infrared cameras, or cameras that are compatible with both visible light and near-infrared. The installation position can be a rearview mirror, driver's side pillar, steering wheel, steering column, or other position that can capture people in the vehicle, as long as its field of view at least partially covers the mouth and lip movement area of ​​the target person. This embodiment of the invention does not limit the number, type, or specific installation position of the cameras.

[0033] Correspondingly, the multi-channel audio signal is a series of audio signals collected by multiple microphones installed inside the vehicle. Each microphone collects one audio signal, i.e., one channel. Here, multiple microphones refer to two or more sound sensors installed in different locations inside the vehicle to collect in-vehicle sound signals. They can be distributed in different locations inside the vehicle, for example, near the sound zones corresponding to different seating areas. Specifically, they can be installed in the headliner, seats, doors, dashboard, armrests, etc. This embodiment of the invention does not limit the number of microphones or their specific installation locations, as long as there are spatial differences in the distribution of the multiple microphones.

[0034] Figure 2 This is an example diagram of the spatial layout of the in-vehicle microphone and camera provided by the present invention, such as... Figure 2 As shown, multiple microphones, such as M1, M2, M3, and M4, can be distributed throughout the vehicle, along with several cameras. Each microphone corresponds to a different audio zone within the vehicle, and the cameras' field of view covers the head and lip movement area of ​​the target person. This allows for the simultaneous acquisition of video images and multi-channel audio signals from inside the vehicle. Furthermore, it should be noted that the video images and multi-channel audio signals can be obtained in real-time from the cameras and microphones, or they can be pre-acquired and stored; this embodiment of the invention does not limit the specific data acquisition method.

[0035] Next, the spatial information of the audio signal can be determined by utilizing the differences in spatial propagation between multiple microphones. It is understandable that, because the multiple microphones are located in different positions within the vehicle, the sound emitted from the same source will exhibit differences in the signals reaching each microphone due to the different propagation paths. This difference is known as spatial propagation difference.

[0036] Specifically, the interior of a vehicle is a near-field environment, where sound waves travel different distances from the sound source to each microphone, resulting in differences in arrival time, phase, and energy. Simultaneously, due to the presence of multiple reflective surfaces within the vehicle, sound travels through different reflection paths to reach each microphone, creating varying relative propagation relationships. These differences reflect the spatial location of the sound source within the vehicle. Therefore, in this embodiment of the invention, the differences arising from the different spatial propagation paths of multi-channel audio signals can be used to deduce the possible spatial location of the sound source, thereby obtaining information characterizing the spatial location or probability distribution of the sound source within the vehicle—i.e., audio spatial information.

[0037] In practical implementation, multi-channel audio signals can be processed to extract features that characterize spatial propagation differences, such as time difference of arrival, cross-channel phase difference, energy difference, coherence, and relative transfer function. Based on these features and the known spatial relationships of the microphones within the vehicle, the spatial location of the sound source within the vehicle or the probability of it falling into different areas of the vehicle can be estimated, thus obtaining audio spatial information. This audio spatial information can be represented as the response or probability of the sound source being located at a specific spatial location within the vehicle, the response or probability of the sound source being located in a certain area within the vehicle, or a combination of both.

[0038] Simultaneously, based on video images, the target object inside the vehicle, along with its visual spatial information and lip features, can be determined. Here, the target object refers to the person whose speech is to be extracted; in a vehicle setting, the target object is typically the person located in the driver's seat area, i.e., the driver. However, this embodiment of the invention does not require biometric identification as a prerequisite. Instead, it can identify the person located in a pre-defined target area, such as the driver's seat area, as the target object, thus adapting to different drivers.

[0039] When actually determining the target object, face detection can be performed on the video image. When a face is detected in the video image, the person corresponding to the detected face is taken as a candidate object. When there are multiple faces, i.e. multiple candidate objects, in the video image, the candidate object located in the pre-defined target area can be further determined as the target object based on the position of each candidate object in the vehicle.

[0040] Based on this, in this embodiment of the invention, it is also necessary to determine the spatial position of the target object inside the vehicle, that is, the visual spatial information of the target object. Specifically, since the installation position and orientation of the camera relative to the vehicle are known or calibrable, the position of the target object's face, head, or lips detected in the video image can be transformed to a unified vehicle coordinate system, thereby obtaining the spatial position of the target object inside the vehicle, that is, the visual spatial information. This can be the three-dimensional spatial coordinates of the target object, the information of the area where the target object is located, or the probability distribution of the target object's spatial position inside the vehicle. This embodiment of the invention does not specifically limit this.

[0041] Meanwhile, in this embodiment of the invention, the lip state and lip movement of the target object can also be extracted from the video image to obtain the lip features of the target object. These features can include static or dynamic features such as the lip contour, lip opening and closing degree, lip corner movement, and key lip point positions, or lip movement embedded features obtained by encoding the above information. This embodiment of the invention does not specifically limit these features. The lip features here can reflect the pronunciation rhythm of the target object and correspond to the temporal changes of the speech emitted by the target object.

[0042] Furthermore, in order to enable the comparison and fusion of audio spatial information and visual spatial information, in this embodiment of the invention, the two can be unified under the same vehicle coordinate system, that is, a vehicle coordinate system O-XYZ is established, in which the X-axis is along the longitudinal direction of the vehicle, the Y-axis is along the transverse direction of the vehicle, and the Z-axis is along the height direction of the vehicle; the spatial position of each microphone, as well as the position and orientation of each camera relative to the vehicle coordinate system, can be pre-calibrated. In this way, the audio spatial information and visual spatial information can be mutually verified under the same coordinate system.

[0043] After this, audio-spatial information, visual-spatial information, and lip features can be used to determine whether the target object is the current speaker. Here, the current speaker refers to the object that is speaking at the current moment, that is, the object that is making a sound.

[0044] It is understandable that in scenarios where there are multiple people inside the vehicle, there may be people in the area where the target is located but not speaking, or there may be people in other areas speaking loudly, causing strong interference to the target channel. Therefore, before extracting the target's voice, it is necessary to first determine whether the target is speaking at the current moment, that is, to determine whether the target is the current speaker, so as to avoid erroneously outputting the voices of other people in the vehicle when the target is not speaking, or mistaking the voices of people in other areas for the target's voice.

[0045] In practice, the judgment can be made by combining audio spatial information, visual spatial information, and lip features. Audio spatial information reflects whether there is a sound coming from the spatial location of the target object; visual spatial information indicates the spatial location of the target object; and the lip features, reflecting the lip movements of the target object, can be compared with the sound changes reflected in the audio signal to determine whether the two are synchronized. Therefore, only when the sound source location indicated by the audio spatial information, the target object location indicated by the visual spatial information, and the synchronization relationship between lip movements and sound reflected by the lip features are consistent can the target object be determined to be the current speaker; otherwise, the target object is determined not to be the current speaker. By combining these three types of information, the probability of mistaking strong interfering speech from the passenger seat or back seat for the target object's speech can be significantly reduced.

[0046] Furthermore, if the determination result indicates that the target object is the current speaker, then speech extraction is performed on the multi-channel audio signal using the target object's spatial location information and lip features as constraints, resulting in an enhanced speech signal for the target object. Here, the target object's spatial location information refers to its spatial position within the vehicle, which can be determined based on visual spatial information and / or audio spatial information; and the constraints refer to using the target object's spatial location information and lip features as guiding or limiting conditions during speech extraction.

[0047] In other words, when extracting target speech from multi-channel audio signals, on the one hand, the spatial location information of the target object is used to make the extraction result spatially point to the location of the target object, thereby suppressing interference and noise from other spatial locations; on the other hand, the pronunciation rhythm of the target object reflected by the lip features is used to make the extraction result consistent with the lip movement of the target object in time, thereby suppressing sound components that are inconsistent with the lip movement of the target object, such as the speech of other people and echoes that are out of sync with the lips, as interference.

[0048] In practical implementation, speech extraction can be performed on multi-channel audio signals based on the spatial location information of the target object and lip features. This allows for the estimation of the target object's speech under both spatial and temporal constraints, resulting in an enhanced speech signal for the target object. This enhanced speech signal refers to the speech signal extracted from the multi-channel audio signal that is enhanced relative to other interfering sound sources and noise, and corresponds to the speech signal of the target object.

[0049] Here, the enhanced speech signal has a higher signal-to-noise ratio, signal-to-interference ratio, and signal-to-return ratio compared to the signal directly acquired by any single microphone. That is, noise, interference speech, and echo are all suppressed, resulting in a clearer, more identifiable, and less distorted speech signal.

[0050] It is understandable that by employing dual constraints of spatial location and lip features, even if the speech of the target object is covered by interference speech or noise from other passengers, the embodiments of the present invention can still maintain the correct extraction direction. That is, in low signal-to-interference ratio (SIR) scenarios, even if the speech in other regions has higher energy, it is suppressed as interference because its time-frequency changes are inconsistent with the lip movements of the target object. In low SIR scenarios, the lip movements of the target object can provide articulation cues unrelated to acoustic energy when acoustic information fails, thereby maintaining the extraction of the target object's speech. In low SIR scenarios, the lip position and lip synchronization relationship of the target object help correct the extraction direction and avoid treating echoes as target speech, thus outputting a recognizable, low-distortion, and less susceptible to interference speech from other locations even under adverse acoustic conditions.

[0051] Additionally, it should be noted that if the judgment result indicates that the target object is not the current speaker, speech extraction will not be performed for the time being, or the processing result of the previous moment will be temporarily maintained and the output gain will be reduced, thereby avoiding the output of incorrect speech when the target object is not speaking.

[0052] The in-vehicle speech extraction method provided by this invention complements and utilizes audio spatial information, visual spatial information, and lip features. Visual information can provide target location and pronunciation cues when the audio signal-to-noise ratio is low, while audio information can maintain positioning when visual occlusion or poor image quality is present, thus avoiding the problem of single-mode failure. Furthermore, through the dual constraints of spatial location and lip features, strong interference speech is effectively suppressed because its spatial location and pronunciation rhythm are inconsistent with the target object. Therefore, even under complex in-vehicle acoustic conditions such as low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio, it can still robustly and accurately extract target enhanced speech with low distortion and less prone to interference from other locations, thereby greatly improving the robustness and accuracy of in-vehicle speech extraction.

[0053] Based on the above embodiments, the audio spatial information includes point-level spatial response and / or region-level spatial response; the audio spatial information is determined based on the spatial propagation differences of multi-channel audio signals among multiple microphones, including: Time-frequency transformation is performed on the multi-channel audio signals to obtain the time-frequency domain signals corresponding to each microphone; For each microphone pair consisting of multiple microphones, the cross-correlation function of each microphone pair is determined based on the time-frequency domain signals corresponding to the two microphones in each microphone pair. Based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate location in the vehicle coordinate system is determined; Based on the point-level spatial response of each candidate location, the regional-level spatial response of each seating area inside the vehicle is determined.

[0054] Specifically, the process of determining audio spatial information based on the spatial propagation differences of multi-channel audio signals among multiple microphones may include: It is understandable that the audio signal acquired by the microphone is a time-domain signal, while the spatial propagation differences of the sound source between different microphones, especially the phase difference and time delay difference, are easier to characterize and calculate in the time-frequency domain. Therefore, in this embodiment of the invention, the multi-channel audio signal can be transformed into a signal with both time and frequency dimensions to obtain a time-frequency domain signal.

[0055] Specifically, this can involve first framing and windowing each audio signal, and then performing a short-time Fourier transform. Alternatively, other transformation methods that can obtain a time-frequency representation can be used. This embodiment of the invention does not limit the specific method used.

[0056] For the audio signals of each microphone Taking frame segmentation and short-time Fourier transform as an example, the time-frequency domain signals corresponding to each microphone can be obtained. ,in Number the microphones. For frequency points, For frame number.

[0057] It should be noted that the first The audio signal captured by a microphone typically contains a mixture of various components, including the target's speech, interference speech, noise, and echoes. This can be represented as: In the formula, For the target object, such as the driver's voice; Interference messages from passengers in the front passenger seat, back seat, or other passengers; For the first The audio signals collected by each microphone include road noise, wind noise, and air conditioning noise. For the first The audio signal collected by each microphone contains the echo and residue from the vehicle's speakers. For the target object's voice to reach the first Acoustic transfer function of each microphone; To interfere with the speech reaching the first Acoustic transfer function of each microphone; This represents the total number of microphones inside the vehicle.

[0058] It should be noted here that, This represents the condition for summing the interfering sound sources. In the complex sound field of a vehicle with multiple sound sources, besides the target sound sources such as the driver's seat... In addition, there may be interfering noises from other passengers such as the front passenger and rear passengers. This means that during the summation operation, all other interfering sound sources besides the target object are traversed. Thus, the interference voice it emits and its corresponding acoustic transfer function It is added to the current microphone's observed signal.

[0059] It is precisely because the acoustic transfer functions of different sound sources, such as the target speech and interference speech, are different when they reach different microphones that the time-frequency domain signals corresponding to each microphone contain spatial propagation differences that can reflect the spatial location of the sound source.

[0060] Next, for each microphone pair consisting of multiple microphones, the cross-correlation function of each microphone pair can be determined based on the time-frequency domain signals corresponding to the two microphones in each pair. Here, a microphone pair refers to a combination of any two microphones from multiple microphones. For example, when there are four microphones in the car, any two microphones can form a microphone pair, resulting in six microphone pairs: (1,2), (1,3), (1,4), (2,3), (2,4), and (3,4). The cross-correlation function measures the degree of correlation between the signals received by the two microphones in a microphone pair at different time delays. When the sound source signal arrives at the two microphones with a certain time delay difference, the cross-correlation function will show a peak at that time delay difference. Therefore, the cross-correlation function can reflect the time delay information of the sound source relative to the microphone pair, and thus reflect the spatial location of the sound source.

[0061] In practical implementation, the cross-correlation function can be calculated based on the time-frequency domain signals corresponding to the two microphones in each microphone pair. Specifically, a generalized cross-correlation function can be used, such as the phase-transform weighted generalized cross-correlation GCC-PHAT. Alternatively, other spatial characteristics such as cross-channel phase difference, coherence, energy difference, and relative transfer function can be calculated at the same time as or instead of the cross-correlation function. This embodiment of the invention does not limit this.

[0062] Taking generalized cross-correlation as an example, for microphones With microphone The generalized cross-correlation of the microphone pair can be expressed as: In the formula, and microphones With microphone The corresponding time-frequency domain signal; Indicates conjugate; For time delay; This represents the total number of frequency points. For the first Time-of-frame microphone With microphone The microphone pair formed in time delay The cross-correlation function value at the specified location. Due to amplitude normalization (i.e., phase transformation weighting) of the time-frequency domain signal, this cross-correlation function exhibits good robustness to reverberation and non-stationary noise within the vehicle.

[0063] Then, based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate location in the vehicle coordinate system can be determined. Here, candidate location refers to a pre-defined spatial position within the vehicle coordinate system where the sound source might be located; it can be a three-dimensional point in the vehicle coordinate system. , For example, spatial grid points divided at certain intervals within the vehicle's interior space or the area where the target object's head can move; or candidate seat areas corresponding to seats inside the vehicle, for example... In this embodiment of the invention, there are no limitations on the form or number of candidate positions. Point-level spatial response refers to the audio spatial response value at each candidate position, which is used to characterize the probability that the sound source is located at that candidate position. The larger the response value, the more likely the sound source is located at that candidate position.

[0064] In actual calculations, considering that the interior of the vehicle is a near-field environment and the microphones may be irregularly spaced with wide intervals, using a far-field plane wave model would result in positioning errors. Therefore, in this embodiment of the invention, the theoretical time delay of each candidate position relative to each microphone pair can be calculated based on a near-field spherical propagation model. That is, assuming the sound source is located at the candidate location. Position the candidate to the microphone Distance to microphone Dividing the distance difference between the two microphones by the speed of sound yields the theoretical time delay difference between the sound source and the two microphones. Then, the correlation values ​​of the cross-correlation functions of all microphone pairs at their respective theoretical time delays are calculated. By accumulating the results, the point-level spatial response at the candidate location can be obtained. .

[0065] Here, the point-level spatial response can be specifically expressed as: In the formula, Indicates microphone With microphone Any microphone pair that can be formed.

[0066] Understandably, when the sound source is indeed located at the candidate location... At that time, the cross-correlation function of each microphone pair will be at the corresponding theoretical time delay. The peak value appears at a certain point, and the accumulated point-level spatial response is as follows. The larger it gets, the bigger it becomes.

[0067] Conversely, if the sound source is not located at the candidate location The correlation values ​​of each microphone pair at the theoretical time delay are generally small, resulting in a smaller point-level spatial response after accumulation.

[0068] Therefore, point-level spatial response It can provide the most likely coordinates of the sound source inside the vehicle, making it suitable for precise sound source localization or drawing spatial heat maps of sound sources inside the vehicle.

[0069] Then, based on the point-level spatial response of each candidate location, the region-level spatial response of each seat area inside the vehicle can be determined. Here, the seat area is a predefined three-dimensional spatial area in the vehicle coordinate system that corresponds to each seat inside the vehicle; for example, the driver's seat area can be defined as the target area ΩD, and the passenger seat area ΩP, the main rear area ΩRL, and the secondary rear area ΩRR can also be defined separately; the region-level spatial response refers to the audio spatial response value corresponding to each seat area, which is used to characterize the probability that the sound source belongs to that seat area.

[0070] In practical implementation, the point-level spatial response of each candidate position falling within each seating area can be integrated or accumulated to obtain the region-level spatial response of each seating area. .

[0071] Here, the regional spatial response can be specifically expressed as: In the formula, Indicates the first One seating area; Indicates candidate position Belongs to the One seating area; Represented as the first Frame time The regional spatial response of each seating area.

[0072] Compared to point-level spatial response, area-level spatial response can indicate which seat area in the vehicle the sound source is more likely to belong to, and is therefore more suitable for tasks such as seat recognition and driver / passenger differentiation.

[0073] It should be noted that the audio spatial information in the embodiments of the present invention may include at least one of the above-mentioned point-level spatial response and region-level spatial response. That is, the audio spatial information may include only point-level spatial response, or only region-level spatial response, or both point-level spatial response and region-level spatial response. The embodiments of the present invention do not limit this.

[0074] Furthermore, it is worth noting that, in the traditional approach, after obtaining the spatial response, only the location with the largest response is typically taken as the sound source location. ,Right now Only the position with the largest response is retained, while the rest of the information is discarded; among them, Indicates the preset candidate position in the entire vehicle coordinate system. The process involves a traversal search to find and extract elements that enable the point-level spatial response. The exact location of the maximum value is obtained, and this location is used as the final estimated sound source location. .

[0075] However, this approach has obvious limitations in in-vehicle scenarios. For example, when the regional spatial response after integrating the four seat areas is 0.8 for the driver's seat, 0.75 for the passenger's seat, 0.1 for the driver's seat and 0.05 for the passenger's seat, although the maximum value appears in the driver's seat area, the responses of both the driver's seat and the passenger's seat are very high and difficult to distinguish from each other. This indicates that there is obvious uncertainty in the positioning at this time. If only a single maximum value is taken, this uncertainty information will be completely discarded, which can easily lead to misjudgment.

[0076] Therefore, in this embodiment of the invention, the probability distribution and its uncertainty after integration over each seating area can be stored. This means preserving the entire spatial response distribution; furthermore, the spatial response distribution can be time-tracked using methods such as Kalman filtering and temporal neural networks, thereby further smoothing and stabilizing the audio spatial information in the time dimension.

[0077] In this embodiment of the invention, the mutual information of all microphone pairs is fused in a unified vehicle coordinate system according to a near-field spherical propagation model. This fully utilizes the spatial propagation differences between multiple microphones, adapting to near-field, wide-spacing, and irregular microphone layouts within the vehicle. It avoids the positioning errors caused by simply comparing energy or using a far-field plane wave model. Simultaneously, by providing point-level and region-level spatial responses and preserving the complete spatial response distribution rather than just taking a single maximum value, it can support both accurate sound source localization and seat-level speaker differentiation. It also retains positioning uncertainty information for speaker identification and speech extraction reference, thereby improving the accuracy and reliability of audio spatial information.

[0078] Based on the above embodiments, the point-level spatial response of each candidate location in the vehicle coordinate system is determined based on the cross-correlation function of each microphone pair, including: Determine the audio search area based on visual spatial information; Based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate location within the audio search area in the vehicle coordinate system is determined; After determining the point-level spatial response of each candidate location in the vehicle coordinate system, the following steps are also included: Based on the matching degree between the observed transfer function and the acoustic transfer dictionary, the point-level spatial response at each candidate location is corrected; The acoustic transfer dictionary includes the acoustic transfer functions from multiple spatial grid points within the target object's active range to each microphone; The observation transfer function is determined based on multi-channel audio signals.

[0079] Specifically, the process of determining the point-level spatial response of each candidate location in the vehicle coordinate system based on the cross-correlation function of each microphone pair can include: Understandably, when determining the point-level spatial response, it is theoretically necessary to traverse all candidate positions in the vehicle coordinate system, calculate the theoretical time delay of each candidate position relative to each microphone pair, and accumulate the correlation values ​​of the cross-correlation functions of all microphone pairs at the corresponding theoretical time delays.

[0080] However, when candidate locations are divided into grids at small intervals throughout the vehicle interior, a large number of candidate locations need to be traversed, resulting in a large computational load. Furthermore, in low signal-to-noise ratio scenarios, in-vehicle noise and reverberation can easily form spurious peaks at candidate locations far from the real sound source, interfering with the localization results.

[0081] Considering that the visual spatial information of the target object can directly provide the spatial position of the target object's face, head, or lips in the vehicle coordinate system—for example, the three-dimensional position of the target object's lips can be detected from video images—this embodiment of the invention utilizes visual spatial information to narrow down the search range on the audio side, i.e., determining the audio search area based on visual spatial information. Here, the audio search area refers to the spatial range used for audio spatial response calculation in the vehicle coordinate system, defined according to visual spatial information. Specifically, it can be a three-dimensional spatial area formed by expanding outwards by a preset size from the target object's position indicated by the visual spatial information, such as the three-dimensional position of the lips; or it can be the seating area of ​​the target object and its adjacent area indicated by the visual spatial information. This embodiment of the invention does not limit the specific shape and size of the audio search area, as long as it can cover the possible vocal positions of the target object.

[0082] Then, based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate position within the audio search area in the vehicle coordinate system can be determined. That is, after determining the audio search area, it is not necessary to traverse all candidate positions in the vehicle coordinate system. For each candidate position falling within the audio search area, the theoretical time delay of these candidate positions relative to each microphone pair is calculated based on the near-field spherical propagation model. The correlation values ​​of the cross-correlation functions of all microphone pairs at the corresponding theoretical time delays are then summed to obtain the point-level spatial response of each candidate position within the audio search area. The specific calculation method has been described in detail above and will not be repeated here.

[0083] Thus, the number of candidate locations to be traversed is greatly reduced, which can significantly improve the real-time performance of the processing while reducing the amount of computation. At the same time, since the search range is limited to the space in which the target object may be located, noise sources far away from the target object and false peaks formed by noise and reverberation reflection points are excluded from the search area. Therefore, the number of false peaks can be reduced in low signal-to-noise ratio scenarios, thereby improving the robustness of localization.

[0084] Furthermore, considering that the microphones inside the vehicle may be irregularly spaced with wide spacing, and that the vehicle interior has a small space and many reflective surfaces, sound propagates through multiple paths when it reaches each microphone from the sound source. The point-level spatial response calculated based solely on the theoretical time delay under the free-field assumption may still deviate from the real sound field. Therefore, in this embodiment of the invention, after determining the point-level spatial response, the point-level spatial response at each candidate position can be corrected based on the matching degree between the observed transfer function and the acoustic transfer dictionary.

[0085] The acoustic transfer dictionary is a pre-built dictionary used to describe the acoustic transfer characteristics inside the vehicle. It includes the acoustic transfer functions from multiple spatial grid points within the target object's activity range to each microphone. Specifically, multiple spatial grid points can be divided within the allowable movement range of the target object's (e.g., the driver's) head, and the acoustic transfer function (RTF) from each spatial grid point to each microphone can be obtained. The spatial grid points are associated with and stored with their corresponding acoustic transfer functions, thus forming the acoustic transfer dictionary.

[0086] Here, the acoustic transfer function corresponding to each spatial grid point can be obtained by actual measurement. For example, when the vehicle is off the production line or during maintenance calibration, a calibration signal can be played at each spatial grid point and collected by each microphone to obtain the acoustic transfer function from each spatial grid point to each microphone. Alternatively, it can be obtained by simulation. For example, it can be obtained by acoustic simulation based on the vehicle's interior geometry and acoustic parameters. This embodiment of the invention does not specifically limit this.

[0087] Understandably, since the acoustic transfer dictionary is constructed specifically for the in-vehicle environment of a particular vehicle model, its acoustic transfer functions already include real acoustic transfer characteristics such as multipath reflections within the vehicle. Therefore, compared to the theoretical free-field model, it can more realistically depict the propagation process from the sound source to each microphone. In other words, in this embodiment of the invention, the theoretical free-field time delay can also be replaced with an acoustic transfer dictionary adapted to the vehicle model to accommodate irregular wide-pitch microphone layouts and in-vehicle multipath environments.

[0088] The observation transfer function is a transfer function determined based on multi-channel audio signals, reflecting the acoustic transmission characteristics currently observed. Specifically, in this embodiment of the invention, the relative transfer function between the current sound source and each microphone can be estimated online based on the time-frequency domain signals corresponding to each microphone, and this estimate can be used as the observation transfer function. This embodiment of the invention does not limit the specific estimation method of the observation transfer function.

[0089] Based on this, the matching degree between the observed transfer function and each dictionary entry in the acoustic transfer dictionary, i.e., the acoustic transfer function corresponding to each spatial grid point, can be calculated, and this matching degree can be used to correct the point-level spatial response of each candidate location. The matching degree here is used to measure the similarity between the observed transfer function and the dictionary entry, and it can be specifically measured by correlation coefficient, cosine similarity, reciprocal of distance metric, etc., which are not limited in this embodiment of the present invention.

[0090] Understandably, if the observed transfer function matches the acoustic transfer function corresponding to a certain spatial grid point in the acoustic transfer dictionary with a high degree of matching, it means that the current sound source is likely located near that spatial grid point. In this case, the point-level spatial response of the candidate location corresponding to that spatial grid point can be enhanced. Conversely, if the matching degree is low, it means that the sound source is less likely to be located at that candidate location. In this case, the point-level spatial response of that candidate location can be weakened.

[0091] Here, the specific method of correction can be to multiply the matching degree as a weight by the point-level spatial response, or to sum the matching degree with the point-level spatial response according to a preset ratio. This embodiment of the invention does not limit the specific method of correction. The corrected point-level spatial responses of each candidate position can then be used to determine the subsequent region-level spatial response and to identify the speaking object.

[0092] In this embodiment of the invention, visual information is used to guide audio localization, which reduces the computational load caused by traversing all candidate positions and also reduces the number of spurious peaks in low signal-to-noise ratio scenarios, demonstrating the effective supplementation of the visual modality to the audio modality. In addition, the inclusion of real acoustic transmission characteristics such as multipath reflections inside the vehicle into the localization process overcomes the defect of the free field propagation assumption being prone to mismatch in the near field of the vehicle and the irregular wide-spacing microphone layout, further improving the accuracy of point-level spatial response.

[0093] Based on the above embodiments, step 130 includes: Based on the synchronization relationship between lip movements characterized by lip features and multi-channel audio signals, the lip sound synchronization probability is determined. Based on lip-sound synchronization probability, audio spatial information, and visual spatial information, the target object is determined as the target posterior probability of the current speaking object. Based on the posterior probability of the target, determine whether the target object is the current speaker.

[0094] Specifically, the process of determining whether a target object is the current speaker based on audio spatial information, visual spatial information, and lip features includes the following steps: First, considering that when a person speaks, the opening and closing of their lips, the movement of the corners of their mouth, and other lip movements are synchronized with the speech they produce in time, that is, the rhythm of lip movements corresponds to the energy fluctuations and changes in the content of speech. Conversely, if a person's lips are moving in the car, but the time variation of the currently collected speech is not consistent with the lip movements, it means that the currently collected speech is likely not from that person, but from other people or the echo from the car's speakers.

[0095] Therefore, in this embodiment of the invention, the synchronization relationship between lip movements and multi-channel audio signals can be used to determine whether the target object is speaking. Here, synchronization refers to the consistency between the temporal changes in lip movements represented by lip features and the temporal changes in sound reflected by the multi-channel audio signals; the lip-sound synchronization probability is the probability value representing the likelihood of the target object's lip movements synchronizing with speech. The higher the lip-sound synchronization probability, the greater the likelihood that the current speech is being produced by the target object.

[0096] Specifically, this can involve extracting lip movement information and visual-speech activity information of the target object from lip features, such as the time-varying sequence of lip opening and closing; simultaneously, extracting sound activity information from multi-channel audio signals, such as changes in speech envelope, phoneme information, or other speech features over time. Considering the potential time deviations introduced by acquisition and transmission between the audio and video links, this embodiment of the invention can compare the consistency between lip movements and changes in speech envelope, phoneme information, or speech features within an allowable audio-video time deviation range to obtain the lip-sound synchronization probability. This comparison can be performed by calculating the correlation between the lip opening and closing sequence and the speech envelope sequence, or by outputting synchronization confidence through a pre-trained audio-video synchronization discrimination network; this embodiment of the invention does not specifically limit this approach.

[0097] Next, based on lip-sound synchronization probability, audio spatial information, and visual spatial information, the target posterior probability that the target object is the current speaker is determined, i.e., the probability that the target object is the current speaker. Specifically, since lip-sound synchronization probability, audio spatial information, and visual spatial information provide evidence of whether the target object is speaking from different perspectives—audio spatial information reflects whether the sound comes from the spatial location of the target object, visual spatial information reflects whether the target object is indeed located in the target area, and lip-sound synchronization probability reflects whether the target object's lip movements are synchronized with the sound—integrating the three provides a more reliable basis for judgment.

[0098] In one feasible implementation, the posterior probability of the target can be obtained by weighted fusion of the probabilities of various types of information, specifically expressed as: In the formula, Indicates the first Frame time location The probability that the person is the target speaker, i.e., the target posterior probability; Indicates visual judgment of location It is the probability of the location of the target object, which can be determined by visual spatial information; This represents the probability of whether lip movements and sounds are synchronized, i.e., the probability of lip-sound synchronization. This indicates the prior confidence level of whether the seat where the target object is located is occupied or whether the target object's trajectory is continuous. This prior confidence level is optional and can be determined by combining the results of seat occupancy, steering wheel side position, or driver monitoring.

[0099] , , , These are the weights of four types of information: audio, vision, synchronization, and seat priors, used to adjust the importance of each type of information during fusion.

[0100] It should be noted that the weights of various information types can be fixed values ​​set in advance, or they can be dynamically adjusted according to the reliability of each type of information. For example, when there is high noise in the car and weak audio information, the weight of visual information can be increased. Weight of synchronization information This makes judgments rely more on visual and synchronous evidence; when the target's lips are obscured or in scenes with poor image quality, such as at night, the weight of audio information can be increased. This allows for greater reliance on audio evidence in judgments. In this way, the advantages of each modality of information can be adaptively leveraged in different scenarios, preventing a decline in the quality of any particular modality from having an excessive impact on the judgment result.

[0101] Then, based on the target posterior probability, it can be determined whether the target object is the current speaker. That is, the target posterior probability is compared with a preset probability threshold. When the target posterior probability is greater than or equal to the probability threshold, the target object is determined to be the current speaker; otherwise, when the target posterior probability is less than the probability threshold, the target object is determined not to be the current speaker.

[0102] In addition, the posterior probability of the target object can be compared with the posterior probabilities of other positions in the vehicle. When the posterior probability of the target object's position is significantly higher than the posterior probabilities of other positions, the target object is determined to be the current speaker.

[0103] It is understandable that the target posterior probability will only reach a high value when the visual position, audio position, and lip-sound synchronization relationship are consistent with each other, thus confirming that the target object is the current active speaker. When the passenger or rear passenger speaks loudly, although the audio spatial information may show a high response at their location, the lip-sound synchronization probability is low because the sound is not synchronized with the lip movement of the target object. Therefore, the fused target posterior probability is also low, and the target object will not be misjudged as the current speaker, nor will the interfering speech be mistaken for the target speech.

[0104] In this embodiment of the invention, audio spatial evidence, visual spatial evidence, and lip-sync evidence are unified under a probabilistic framework for joint judgment. The target object is confirmed as the current speaker only when the three types of evidence are consistent with each other. The fusion weight can be dynamically adjusted according to the reliability of each modal information. In the in-vehicle scenario where multiple speakers speak at the same time and strong noise and strong interference coexist, the probability of misidentifying the strong interference voice of the passenger or rear seat as the voice of the target object is significantly reduced. This avoids false triggering when the target object is not speaking and improves the accuracy and robustness of the speaker identification.

[0105] Based on the above embodiments, the video images are acquired by multiple cameras located at different positions inside the vehicle; The lip features of the target object are determined based on the following steps: From the video images captured by each camera, extract the lip candidate features of the target object, and determine the lip quality score of each camera based on each lip candidate feature; Based on the lip quality scores of each camera and each lip candidate feature, lip features are determined.

[0106] Specifically, considering that in a vehicle-mounted scenario, it is difficult for a single camera to always guarantee continuous visibility of the lips, for example, when the target object turns its head to look at the rearview mirror, a certain camera may only capture the side profile, when both hands turn the steering wheel, a certain camera may be blocked, the camera near the window may be affected by strong light outside the vehicle, and the camera with a more stable field of view may have insufficient resolution of the lips. If the same camera is always used, incorrect or low-quality visual features will interfere with subsequent speech extraction. Therefore, in this embodiment of the invention, video images can be acquired by multiple cameras in different positions inside the vehicle, and the lip features of the target object can be selected from multiple cameras.

[0107] Here, multiple cameras are placed in different locations inside the vehicle. By capturing images of the target object from different perspectives, the viewpoints of each camera can complement each other.

[0108] In one feasible implementation, three cameras C1 to C3 can be installed inside the vehicle, see [reference needed]. Figure 2 It can be seen that camera C1 is located on the driver's side A-pillar to provide a side-front view of the target object's face, head, and lips. Specifically, it can be located at the upper or lower end of the driver's side A-pillar. Camera C2 is located in the rearview mirror to provide a mid-to-long-distance view of the target object and supplement lip information when the steering wheel is obstructed. Specifically, it can be located on or near the mirror body or mirror base. Camera C3 is located near the steering wheel or steering column to provide close-range frontal or upward-looking lip information, suitable for high-resolution lip detection. Specifically, it can be located on the wheel rim, wheel hub, or steering column.

[0109] The fields of view of the three cameras shall at least partially cover the active area of ​​the target object’s head and lips. Each camera may be a visible light camera, a near-infrared camera, or a camera that is compatible with both. The specific installation point may vary depending on the vehicle model, but its position and orientation relative to the vehicle coordinate system need to be pre-calibrated. This embodiment of the invention does not limit the number, type, or specific installation location of the cameras.

[0110] Based on this, the process of determining the lip features of the target object may specifically include: First, face detection, keypoint detection, head pose estimation, and lip region of interest cropping can be performed on the video images captured by each camera. This yields information such as the target object's face center, lip contour, head pose, lip opening and closing degree, mouth corner movement, detection confidence, and occlusion ratio. Since the lip-related features obtained at this stage have not yet been optimized and are still candidate lip information, they are called lip candidate features.

[0111] It should be noted that during the extraction of lip candidate features, the detected head or lip rays can be transformed to the vehicle coordinate system based on the extrinsic parameters of each camera. If the fields of view of two cameras overlap, multi-view triangulation can be performed to determine the 3D position of the target object; otherwise, the 3D position can be estimated using face scale, seat depth priors, etc. Furthermore, when multiple faces exist in the same frame, the positions of each face can be projected onto the seat areas inside the vehicle, and faces that fall within the target area and have continuous trajectories can be selected as the target objects. This ensures that the lip candidate features extracted by each camera correspond to the same target object.

[0112] Then, the lip quality score of each camera can be determined based on each lip candidate feature. This score represents the degree to which the lip image captured by each camera is suitable as a source of lip information. The higher the lip quality score, the more suitable the camera is to provide lip information. Figure 3 This is an example diagram of the lip quality assessment and perspective selection process provided by the present invention, such as... Figure 3 As shown, the images of the target object's lips captured by each camera are examined separately, and a quality score is calculated for each image. This score mainly considers factors such as whether the lips are fully visible, whether the image is clear, whether the lighting is appropriate, whether the lips are obscured, whether the key points are reliably positioned, and whether the lips are stable in continuous images.

[0113] In one feasible implementation, the lip quality fraction can be expressed as: In the formula, Indicates the first Time-of-frame camera Lip quality score; This indicates quality evaluation items, such as visibility, frontal gaze, number of lip pixels, sharpness, lighting, key point confidence, lip-voice synchronization, etc. Indicates the first The weight of each evaluation item; Indicates the first The evaluation item in the first Frame score; Indicates the first The degree of occlusion of the frame; Indicates the first The cost of switching cameras in frames, i.e., switching from the currently used camera to another camera. The cost incurred is to suppress unnecessary frequent switching; and These are the weights for occlusion and switching, respectively. It's understandable that the higher the score for each evaluation item, the lower the degree of occlusion, and the smaller the switching cost, the higher the camera's lip quality score, making it more suitable as a source of lip information.

[0114] Next, you can choose the camera with the highest lip quality score as the source of lip information, that is, use the lip candidate features corresponding to that camera as the lip features of the target object; or you can fuse the lip candidate features corresponding to several cameras with high lip quality scores, such as the top two cameras, for example, by weighting the lip quality scores of each camera and using the fused features as the lip features of the target object.

[0115] Furthermore, the implementation of lip selection can also be rule-weighted, learning quality network, gated cross-view Transformer, etc., and the embodiments of the present invention are not limited to these.

[0116] Furthermore, considering that frequent switching between multiple cameras without switching hysteresis would lead to discontinuity in lip features, thus affecting the stability of subsequent speech extraction, in order to avoid frequent camera switching, switching can only be performed when the lip quality score of the new camera is consistently higher than that of the current camera and exceeds a set threshold. That is, switching hysteresis and a minimum hold time are introduced, and a short-term smooth transition is performed on the lip features of the old and new cameras during switching. Specifically, the lip features of the old and new cameras can be cross-gradually changed to ensure the continuity of lip features before and after switching.

[0117] In addition, before switching, it is possible to check whether the person seen by the new camera is in the same position as the target object, that is, to perform cross-camera spatial consistency verification; after switching, it is possible to continue to check whether the lip movements are synchronized with the sound. If the check fails, the camera is immediately switched back to the original camera. This can avoid mistaking other passengers, mirror reflections or temporary obstructions for the target object, and also avoid sudden changes in voice output caused by camera switching.

[0118] In this embodiment of the invention, multiple cameras are used to cover complementary perspectives, and lip information is selected based on real-time lip quality. This ensures that high-quality lip features can still be obtained even in scenarios where a single camera is prone to failure, such as when the target object's head is turned, the steering wheel or hand is obstructing the view, backlighting, or nighttime illumination. This avoids erroneous or low-quality visual features interfering with speech extraction. At the same time, by introducing a switching cost into the quality score, and combining it with switching hysteresis and feature smooth transition, the continuity and anti-shake properties of lip features are guaranteed. This provides a stable and reliable visual input for subsequent lip-sound synchronization judgment and speech extraction constrained by lip features, improving the robustness of the entire in-vehicle speech extraction process under complex visual conditions.

[0119] Based on the above embodiments, step 140 includes: Based on spatial location information, determine the target guidance vector pointing to the target object; An interference mask is obtained by estimating the mask based on the acoustic features of the multi-channel audio signal, the target steering vector, the audio spatial information, and the lip features. Based on interference masking and target guidance vector, speech extraction is performed on multi-channel audio signals to obtain enhanced speech signals of the target object.

[0120] Specifically, the process of extracting speech from multi-channel audio signals to obtain the enhanced speech signal of the target object can include: First, the target steering vector can be determined based on spatial location information. This vector describes the relative amplitude and phase relationship between the microphones when the sound emitted from the target object reaches each microphone. It can characterize the spatial propagation characteristics of sound from the target object's location to the microphone array. Alternatively, it can be understood as the target steering vector pointing to the location of the target object in space.

[0121] Specifically, based on the spatial location information of the target object, such as the three-dimensional position of the target object's lips obtained by visual positioning, combined with the known coordinates of each microphone in the vehicle coordinate system, the distance and time delay from the target object's position to each microphone can be calculated according to the near-field propagation model, thereby obtaining the target steering vector pointing to the target object at each frequency point; or, further, an acoustic transfer dictionary can be combined to incorporate the acoustic transfer function corresponding to the target object's position into the determination process of the target steering vector, making it more consistent with the real acoustic transfer characteristics inside the vehicle. The specific method for determining the target steering vector is not limited in the embodiments of the present invention.

[0122] It should be noted that, unlike traditional solutions that estimate the target direction based solely on audio peaks, the target steering vector in this embodiment of the invention is not determined solely by the audio peaks in the noise, but is jointly determined by the lip position of the target object, vehicle geometry, and other factors. Therefore, even if the target object's speech is interfered with by passengers or covered by noise, causing the audio side to be unable to accurately estimate the target direction, the target steering vector can still maintain the correct spatial pointing.

[0123] Next, the interference mask can be estimated based on the acoustic characteristics, target steering vector, audio spatial information, and lip features of the multi-channel audio signal. Here, acoustic characteristics are features extracted from the multi-channel audio signal that characterize the acoustic properties of the signal. These can include the spectrum of the multi-channel audio signal (such as the time-frequency domain signal corresponding to each microphone), cross-channel phase difference, energy difference, arrival time difference, and other cross-channel spatial features. The mask refers to the weight representing the proportion of a certain component in each time-frequency unit in the time-frequency domain. The interference mask is the mask that represents the proportion of interference and noise components in each time-frequency unit. The greater the proportion of interference and noise components in a time-frequency unit, the larger the value of the interference mask corresponding to that time-frequency unit.

[0124] Figure 4 This is an example diagram of the spatially constrained driver-target speech process provided by the present invention, such as... Figure 4 As shown, in one feasible implementation, acoustic features such as multi-channel spectrum, inter-channel phase difference (IPD), energy difference (ILD), and time-of-arrival (TDOA), along with target steering vectors, audio spatial information, and lip features, can be input into a multimodal target mask estimator for mask estimation. This target mask estimator can be composed of convolutional networks, temporal convolutional networks, recurrent networks, or Transformers, and can utilize a cross-modal attention mechanism to allow each time-frequency unit to query lip features at the same or adjacent times, thereby determining whether the components of that time-frequency unit are consistent with the lip movements of the target object.

[0125] The mask output by the estimator may include a target mask representing the speech components of the target object, an interference mask representing interference and noise components, and an echo mask representing echo components. The embodiments of the present invention do not limit the specific network structure of the mask estimator or the type of mask output.

[0126] Understandably, since the mask estimation process utilizes both spatial and lip information, speech from other spatial locations, whose spatial characteristics do not match the target steering vector, and sound components that are out of sync with the target object's lip movements, whose time-frequency variations are inconsistent with the lip embedding, will all be included in the interference mask, thus achieving an accurate characterization of the interference components.

[0127] Then, the interference covariance matrix can be estimated using the interference mask. This involves applying the interference mask to the time-frequency domain signal of the multi-channel audio signal and statistically obtaining the interference covariance matrix. Correspondingly, the target covariance matrix can be estimated using the target mask. Based on this, a spatial filter can be constructed using the interference covariance matrix and the target steering vector to perform spatial filtering on the multi-channel audio signal, thereby extracting the speech of the target object.

[0128] In one feasible implementation, a target-direction distortion-free constraint can be applied to the minimum variance distortion-free response MVDR beamformer based on the target steering vector. This means minimizing interference and noise power in the output while ensuring distortion-free signal transmission in the target direction. The weights of the spatial filter can then be expressed as: In the formula, These are the weights of the spatial filter; For the interference covariance matrix; The target guidance vector; Indicates conjugate transpose; To prevent regularization terms with a denominator of zero; This is a multi-channel observation vector, that is, a vector composed of the time-frequency domain signals corresponding to the multi-channel audio signals; The output is the result of spatial filtering of the target object, and the enhanced speech signal of the target object can be obtained based on this output.

[0129] It is understandable that, since the target steering vector is determined by the lip position of the target object and the vehicle geometry information, and the interference covariance matrix is ​​estimated by the interference mask which is constrained by both spatial and lip information, the beamformer can still maintain the correct spatial constraints even if the speech of the target object is interfered with by passengers or covered by noise. This enables the lossless extraction of the speech of the target object and the effective suppression of interference noise.

[0130] It should be noted that, in addition to MVDR beamforming, the embodiments of the present invention can also use generalized eigenvalue beamforming, linearly constrained minimum variance beamforming, multi-channel Wiener filtering, neural beamforming, direct temporal audiovisual separation network, etc. to achieve speech extraction, as long as it is constrained by the spatial location and lip features of the target object. The embodiments of the present invention do not limit the specific spatial filtering or separation method.

[0131] The speech extraction process in this embodiment of the invention remains robust under various harsh acoustic conditions: for low signal-to-interference ratio (SIR) scenarios, lip features provide target cues consistent with the target object's pronunciation rhythm; even if the voices from the passenger seat and rear seats have higher energy, they are classified as interference masks because their time-frequency changes are inconsistent with the target object's lip movements, and will not be included in the extraction results; for low SIR scenarios, visual speech activity can trigger the preservation of the target speech when acoustic speech activity detection fails, while the spatial constraints imposed by the target steering vector can reduce noise leakage; for low SIR scenarios, the lip position of the target object can correct the target steering vector corresponding to the direct sound, and lip synchronization information can avoid treating late reverberation and echoes that are out of sync with the lips as new targets.

[0132] Furthermore, considering that speaker echoes may be mixed into the multi-channel audio signal when the vehicle speakers are playing music, navigation, or making remote voice calls, embodiments of the present invention can also perform echo cancellation and residual post-filtering based on speech extraction. That is, when the vehicle speakers are playing sound, a playback reference signal can be obtained from the vehicle's audio system, and echo cancellation can be performed on the multi-channel audio signal. Alternatively, the echo mask can be jointly estimated within the multimodal target mask estimator; embodiments of the present invention do not limit this.

[0133] Echo cancellation can be achieved using methods such as block-based frequency domain adaptive filtering, Kalman filtering, and neural echo cancellation. Furthermore, dual-talk detection can be performed based on the target's lip movements; when the target's lip movements are strong and the spatial posterior points to the target's location, it indicates that the target is speaking simultaneously with the speaker. In this case, the update of the adaptive filter used for echo cancellation can be limited to prevent the accidental cancellation of the target's near-end speech. Afterward, a post-filter based on lip-sync with the target can be used for residual noise / residual echo post-filtering, resulting in an enhanced speech signal of the target and frame-level extraction confidence.

[0134] It should be noted that, in the absence of a playback reference signal, blind residual echo suppression can be achieved using multi-channel coherence, prior knowledge of the known speaker region, and visual dual-talk information. Thus, by combining dual-talk protection based on lip-voice activity with residual post-filtering conditioned on lip-sync, echo components can be further suppressed in in-vehicle infotainment scenarios.

[0135] In this embodiment of the invention, a target orientation vector jointly determined by visual positioning and vehicle geometry is used to apply target direction preservation constraints to spatial filtering. This ensures that the spatial constraints do not rely on easily interfered audio peak estimation, and the correct extraction direction can still be maintained even if the target speech is covered by strong interference or noise. Furthermore, spatial information and lip features are fused in the mask estimation, so that components inconsistent with the spatial position or pronunciation rhythm of the target object are accurately classified into the interference mask, thereby obtaining reliable interference noise statistics. The two work together to achieve a deep integration of spatial constraints and audiovisual constraints. As a result, even under conditions of low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-mixing ratio, the enhanced speech of the target object can still be output as identifiable, low-distortion, and not easily mixed with interference speech from other locations, significantly improving the quality and robustness of vehicle speech extraction.

[0136] Based on the above embodiments, the method further includes: The system confidence level is determined based on the reliability of audio spatial information, the accuracy of lip features, and the credibility of the target object being the current speaker. Based on system confidence, it switches between multiple working modes; Multiple working modes include: The first mode for speech extraction from multi-channel audio signals, constrained by the spatial location information and lip features of the target object; When the reliability of the video image does not meet the preset conditions, a second mode is used to extract speech based on audio spatial information and the spatial location information of the target object. A third mode for speech extraction based on visual spatial information is used when the reliability of multi-channel audio signals does not meet preset conditions. Furthermore, when the reliability of the video image and the reliability of the multi-channel audio signal do not meet the corresponding preset conditions, the fourth mode of the enhanced speech signal extracted at the previous moment is maintained.

[0137] Specifically, considering that the actual in-vehicle environment is dynamic and changing, for example, the camera may be temporarily unable to provide a clear image of the lips due to obstruction, backlighting or nighttime lighting, and the audio side may be temporarily unable to provide reliable spatial positioning due to strong noise or strong interference. If the same processing method is used regardless of the actual quality of various types of information, it is easy to cause errors in the extraction results or sudden changes in the output when a certain modal information fails.

[0138] Therefore, in this embodiment of the invention, the system confidence level, i.e. the credibility of the current speech extraction process, can be determined based on the reliability of audio spatial information, the accuracy of lip features, and the credibility of the target object as the current speaker. This reflects the real-time quality of various types of information.

[0139] The reliability of audio spatial information is used to characterize the reliability of audio-side spatial positioning results. It can be determined based on the distribution of point-level and / or region-level spatial responses. For example, when the spatial response distribution is concentrated and the peak is prominent, it indicates that the audio positioning is relatively reliable and has a high reliability. Conversely, when the spatial response distribution is scattered and the responses of multiple regions are close to each other and difficult to distinguish, it indicates that the audio positioning has significant uncertainty and has a low reliability. It can also be determined in conjunction with indicators such as the signal-to-noise ratio of the current audio signal, but this embodiment of the invention does not limit this.

[0140] The accuracy of lip features characterizes the accuracy of the acquired lip features, and can be determined based on the quality of the lips in the camera image. For example, it is determined by factors such as whether the lips are fully visible, whether the image is clear, whether the lighting is appropriate, whether they are obstructed, and whether the key point positions are reliable. The credibility of the target being the current speaker characterizes the reliability of the judgment result, and can be determined based on factors such as the continuity of target position tracking and the probability of lip-sound synchronization.

[0141] Specifically, the overall system confidence can be obtained by weighted summation, taking the minimum value, or inputting the above three types of indicators into a pre-trained confidence assessment model. In other words, in this embodiment of the invention, the overall confidence can be calculated based on information such as audio localization, camera image quality, target object position tracking, and lip-sync, and the working mode can be selected accordingly.

[0142] Next, the system can switch between multiple operating modes based on its confidence level. These operating modes refer to different speech extraction and processing methods employed under varying information quality conditions. It's understandable that the system confidence level and the reliability of its constituent components reflect the usability of the current audio and visual information. Switching between these modes ensures that the most reliable information is prioritized under all conditions, thus achieving failover.

[0143] Specifically, the working modes can include the following four types: The first mode is a speech extraction mode that uses the spatial location information and lip features of the target object as constraints on multi-channel audio signals. This mode corresponds to the case where both audio and visual information are reliable. In this case, both audio and visual information are used to determine the target object and extract speech. That is, speech extraction is performed with the spatial location information and lip features of the target object as constraints, thereby obtaining the best extraction effect. This mode is the normal operating mode.

[0144] The second mode is used for speech extraction based on audio spatial information and the spatial location information of the target object when the reliability of the video image does not meet the preset conditions. Here, the reliability of the video image is used to characterize the usability of the video image, which can be determined based on camera image quality, lip detection confidence, etc. When the camera image quality is low, such as when the camera is obstructed, the image is blurry, there is backlighting, or insufficient nighttime lighting, causing the reliability of the video image to be lower than the corresponding preset conditions, such as the preset reliability threshold, it indicates that the visual information is temporarily unavailable or unreliable. At this time, the second mode, which is audio-driven, is entered. This mode mainly relies on audio localization for speech extraction and can use the most recent reliable spatial location information of the target object as a spatial constraint, while gradually expanding the search range on the audio side to maintain the tracking and extraction of the target object during the period of missing visual information.

[0145] The third mode is a speech extraction mode based on visual spatial information when the reliability of the multi-channel audio signal does not meet preset conditions. Specifically, when the audio signal-to-noise ratio is low, such as due to strong in-vehicle noise or interference, causing the reliability of the multi-channel audio signal to fall below the corresponding preset conditions, such as a preset reliability threshold, it indicates that the spatial positioning on the audio side is temporarily unreliable. In this case, if at least one camera can clearly capture the lips of the target object, the third vision-driven mode can be entered. This mode primarily relies on visual spatial information to determine the direction of the target object and perform speech extraction. For example, the target object's position can be directly obtained from visual positioning, and spatial constraints can be constructed, thus maintaining the extraction of the target speech even when audio information fails.

[0146] The fourth mode is used when the reliability of both the video image and the multi-channel audio signal fails to meet the corresponding preset conditions. In this mode, the enhanced speech signal extracted at the previous moment is retained. Specifically, when both types of information are temporarily unreliable, to avoid outputting erroneous extraction results, a hold mode is entered, temporarily retaining the most recent reliable processing result—the enhanced speech signal extracted at the previous moment. Furthermore, the output gain can be reduced to minimize the impact of potential erroneous output. Further, in this mode, if it is still impossible to reliably confirm the target as the current speaker, high-risk voice commands will not be executed, i.e., a rejection state will be entered, thus avoiding accidental triggering of high-risk operations when information is unreliable. When the camera obstruction is removed and audio conditions are restored, the system can smoothly return to normal operating mode, avoiding abrupt changes in speech output caused by mode switching.

[0147] It should be noted that the aforementioned mode switching based on system confidence can be implemented using a confidence state machine, that is, switching between normal, audio-dominant, visual-dominant, hold, and reject states according to system confidence. Furthermore, in implementations using multiple cameras, camera switching and target object tracking can use the same set of state judgments as this state machine. For example, before switching cameras, it is checked whether the person seen by the new camera is in the same position as the current target object. After switching, it is further checked whether the lip movements are synchronized with the sound. If the check fails, the system immediately reverts to the original camera, thereby avoiding mistaking other occupants, mirror reflections, or temporary obstructions for the target object, and also avoiding sudden changes in voice output caused by camera switching. This embodiment of the invention does not impose specific limitations on this aspect.

[0148] In this embodiment of the invention, by comprehensively evaluating the real-time quality of various types of information, and accordingly realizing adaptive switching of working modes and failure degradation, audio can maintain tracking when visually occluded, vision can maintain target direction when the audio signal-to-noise ratio is too low, and the reliable result of the previous moment is maintained and the output gain is reduced when both types of information are unreliable. This avoids the problem of overall failure caused by single-mode failure and ensures the continuity and security of speech extraction under various complex vehicle conditions.

[0149] Based on the above embodiments, step 110 includes: Acquire the initial video image and the initial audio signal collected by multiple microphones; Based on the same clock, timestamps are written into the initial video image and initial audio signal. Delay compensation is then performed on the initial video image and initial audio signal after the timestamps are written to obtain time-aligned video images and multi-channel audio signals.

[0150] Specifically, considering the fusion of audio spatial information, visual spatial information, and lip features, as well as the determination of the synchronization relationship between lip movements and speech, all of these are based on the temporal alignment of audio and video. If the audio link and video link each use independent clocks, or if the acquisition and transmission delays of each sensor are not compensated, there will be a time deviation between audio and video, which will lead to errors in lip-sound synchronization judgment and inaccurate spatial information fusion. Therefore, in this embodiment of the invention, the process of acquiring video images inside the vehicle and multi-channel audio signals acquired by multiple microphones may specifically include the following steps: First, it is necessary to acquire the initial video image and the initial audio signals captured by multiple microphones. Here, the initial video image refers to the raw video image directly captured by the camera, before time alignment processing; correspondingly, the initial audio signal refers to the raw audio signal directly captured by each microphone, before time alignment processing.

[0151] Because the cameras and microphones are independent of each other, their acquisition times, acquisition rhythms, and signal transmission paths may differ. Therefore, the initial video image and the initial audio signal, as well as the initial audio signals themselves, are not synchronized in time.

[0152] Therefore, in this embodiment of the invention, timestamps can be written into the initial video image and the initial audio signal based on a common clock. Here, a common clock is a clock reference from the same source that is commonly referenced by both the audio and video links. Writing timestamps for each signal based on a common clock means marking the acquisition time of each initial audio signal and each initial video image frame under the same time reference. Only in this way can the timestamps of each signal be comparable, and cross-sensor time alignment be performed accordingly.

[0153] Preferably, for the audio side, the audio acquisition of each microphone can use the same audio codec clock, so that the audio signals of each channel are synchronized at the sampling level; for the video side, the video image can be acquired by hardware triggering, or it can be aligned according to the vehicle high-precision time synchronization protocol, so as to ensure that the timestamp of the video image is under the same time reference as the audio side.

[0154] Based on the timestamps, further delay compensation is performed. It is understood that even if all signals are marked with timestamps under the same time base, each sensor link still has inherent delays. For example, each microphone channel has a fixed acquisition delay, each camera has exposure and transmission delays, and there is a total audio-video offset between the audio and video links. If these delays are not compensated, a time deviation will still remain between the audio and video. Therefore, in this embodiment of the invention, the fixed acquisition delay of each microphone channel, the exposure and transmission delays of each camera, and the total audio-video offset can be pre-measured and saved, and compensation is performed on each signal based on the saved delays.

[0155] In detail, for audio signals, delay compensation can include integer sample point compensation and fractional sample point compensation. When the delay is an integer multiple of the sampling period, compensation is achieved by shifting integer sample points. When the delay is less than one sampling period or contains non-integer multiples, fractional sample point compensation is achieved through fractional delay filtering or similar methods, thus achieving fine alignment at the sample point level. For video images, the timestamp can be corrected based on its exposure and transmission delays to ensure that the video image corresponds to the audio signal in time. After the above timestamp writing and delay compensation, a time-aligned video image and multi-channel audio signal can be obtained.

[0156] It should be noted that, in addition to the aforementioned time synchronization, the embodiments of the present invention can also perform spatial calibration on each sensor to establish a unified cross-sensor reference in conjunction with time alignment. That is, microphone geometry and channel response can be obtained during vehicle assembly or maintenance calibration. For example, a broadband calibration signal can be played sequentially through the vehicle's speakers to estimate the impulse response, channel gain, and time delay from the speakers to each microphone; the extrinsic parameters of each camera can be estimated using a calibration board or known structural points within the vehicle. Furthermore, during normal user operation, a small-scale online self-calibration can be performed based on stable ambient sound or in-vehicle audio playback to address the slow changes in sensors over time. However, the calibration amount needs to be limited to prevent calibration drift. The embodiments of the present invention do not limit the specific calibration and self-calibration methods.

[0157] In this embodiment of the invention, a unified and accurate cross-sensor time reference is established between audio and video by writing timestamps and delay compensation using the same source clock. This overcomes the audio-video time deviation problem caused by the lack of a unified time reference in traditional solutions, thereby ensuring the accuracy of subsequent judgment of the synchronization relationship between lip movements and speech, as well as the effectiveness of the fusion of audio spatial information and visual spatial information. This lays a time synchronization foundation for the reliable fusion of multimodal information in the entire vehicle speech extraction process.

[0158] Based on the above embodiments, considering that mask estimation, lip-sound synchronization discrimination, and lip quality assessment can all be implemented by neural networks, and that neural networks need to be trained before they can be used, the above models can also be trained in the embodiments of the present invention.

[0159] In detail, the first step is to construct training data. Here, training data can include multi-channel synchronized in-vehicle audio recordings, lip video of the target object captured simultaneously by each camera, near-speaking reference speech of the target object, and optional reference signals played by the vehicle's infotainment system.

[0160] Taking a vehicle equipped with four microphones and three cameras as an example, the training data can include four-channel synchronous in-vehicle recordings, driver's lip video captured synchronously by the three cameras, driver's near-speaking reference speech, and reference signal played by the vehicle's infotainment system. Among these, the near-speaking reference speech can be used as a training label for speech extraction, which is used to measure the difference between the enhanced speech signal extracted by the model and the real target speech.

[0161] However, relying solely on data collected from real vehicles is often insufficient to cover all operating conditions in in-vehicle scenarios, and data collection costs are high. Therefore, in this embodiment of the invention, real vehicle data and synthetic data can be used together. Here, the synthetic data can be obtained based on multi-seat room impulse response synthesis, that is, by using the room impulse responses from each seat to each microphone in the vehicle to convolve clean speech to generate simulated multi-channel in-vehicle recordings.

[0162] Furthermore, to enhance the model's robustness under various complex conditions, various perturbations can be randomly superimposed on the training data. Specifically, on the audio side, road noise, wind noise, air conditioning noise, music echo, and interfering speech from the passenger seat and rear seats can be randomly superimposed to simulate harsh acoustic conditions such as low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio. On the video side, camera occlusion, exposure changes, and video frame drops can be randomly superimposed to simulate scenarios with dynamic changes in visual information quality. In addition, audio-video offsets can be randomly introduced to simulate the possible residual time deviation between audio and video, thereby enabling the trained model to have good adaptability to the aforementioned perturbations.

[0163] Based on this, the model can be trained using the constructed training data. The loss term during the training process may include scale-invariant signal-to-interference-ratio loss, spectral reconstruction loss, target orientation preservation loss, lip-sync loss, seat localization loss, and camera selection stability loss.

[0164] Among them, the scale-invariant signal-to-interference-ratio loss is used to measure the difference in signal-to-interference-ratio between the enhanced speech signal extracted by the model and the near-sound reference speech, so that the model outputs target speech with low distortion and high signal-to-interference-ratio.

[0165] The spectral reconstruction loss is used to measure the difference in the spectrum between the enhanced speech signal extracted by the model and the near-talk reference speech, in order to constrain the spectrum of the model output to be consistent with the real target speech.

[0166] The target orientation preservation loss constrains the model to maintain the correct spatial orientation of the target object during extraction, preventing the extraction direction from shifting to interfering positions. The lip-voice synchronization loss constrains the synchronization relationship between the lip features and speech features learned by the model, improving the accuracy of lip-voice synchronization judgment.

[0167] Seat localization loss is used to constrain the model's accuracy in locating the seat region to which the sound source belongs. Camera selection stability loss is used to constrain the stability of lip viewpoint selection in multi-camera scenarios, suppressing frequent camera switching.

[0168] It is understood that the above-mentioned losses can be used individually, or they can be weighted and summed according to preset weights to form the total loss for joint training. This embodiment of the invention does not limit this. After the above training, various models that can stably perform speaker identification and target speech extraction in complex in-vehicle scenarios can be obtained.

[0169] In this embodiment of the invention, real vehicle data is mixed with data synthesized based on the impulse response of a multi-seat room, and various perturbations such as noise, interference, echo, camera occlusion, exposure changes, video frame drops, and audio-visual offset are randomly superimposed to construct training data, so that the model is fully exposed to various complex working conditions during the training phase. At the same time, through the joint constraints of multiple training objectives such as scale-invariant signal-to-interference-plus-distortion ratio loss, spectrum reconstruction loss, target orientation preservation loss, and lip-voice synchronization loss, the model is optimized in many aspects such as speech extraction quality, spatial orientation preservation, lip-voice synchronization judgment, seat positioning, and viewpoint selection stability. This effectively improves the robustness and generalization ability of the trained model under complex in-vehicle conditions such as low signal-to-noise ratio, low signal-to-interference-plus-distortion ratio, low signal-to-return ratio, and dynamic changes in visual information quality.

[0170] The in-vehicle voice extraction device provided by the present invention is described below. The in-vehicle voice extraction device described below can be referred to in correspondence with the in-vehicle voice extraction method described above.

[0171] Figure 5 This is a schematic diagram of the structure of the in-vehicle voice extraction device provided by the present invention, as shown below. Figure 5 As shown, the device includes: The acquisition unit 510 is used to acquire video images inside the vehicle and multi-channel audio signals collected by multiple microphones; The processing unit 520 is configured to determine audio spatial information based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones; and to determine a target object inside the vehicle, as well as the visual spatial information and lip features of the target object, based on the video image. The judgment unit 530 is used to determine whether the target object is the current speaking object based on the audio spatial information, the visual spatial information and the lip features; Extraction unit 540 is used to extract speech from the multi-channel audio signal if the target object's spatial location information and lip features are used as constraints to obtain the enhanced speech signal of the target object.

[0172] The in-vehicle speech extraction device provided by this invention complements and utilizes audio spatial information, visual spatial information, and lip features. Visual information can provide target location and pronunciation cues when the audio signal-to-noise ratio is low, while audio information can maintain positioning when visual occlusion is present or the picture quality is poor, thus avoiding the problem of single-mode failure. Furthermore, through the dual constraints of spatial location and lip features, strong interference speech is effectively suppressed because its spatial location and pronunciation rhythm are inconsistent with the target object. Therefore, even under complex in-vehicle acoustic conditions such as low signal-to-noise ratio, low signal-to-interference ratio, and low signal-to-return ratio, it can still robustly and accurately extract the target object's enhanced speech with low distortion and less prone to interference from other locations, thereby greatly improving the robustness and accuracy of in-vehicle speech extraction.

[0173] This invention also provides an in-vehicle voice extraction system. Figure 6 This is a schematic diagram of the vehicle-mounted voice extraction system provided by the present invention, as shown below. Figure 6 As shown, the in-vehicle voice extraction system 600 includes multiple microphones 610 disposed in different sound zones inside the vehicle, a camera 620 disposed inside the vehicle, and a processor 630 connected to the multiple microphones and the camera; the processor is used to execute the in-vehicle voice extraction method as described in any of the above claims; the field of view of the camera at least partially covers the range of lip movements of the target object.

[0174] The present invention also provides a vehicle, Figure 7 This is a structural schematic diagram of the vehicle provided by the present invention, such as... Figure 7 As shown, the vehicle includes the in-vehicle voice extraction system 600 as described above; wherein the plurality of microphones are respectively disposed in the sound zones corresponding to different seating areas within the vehicle.

[0175] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute an in-vehicle speech extraction method. This method includes: acquiring video images inside the vehicle and multi-channel audio signals collected by multiple microphones; determining audio spatial information based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones; determining a target object inside the vehicle, as well as the visual spatial information and lip features of the target object, based on the video images; determining whether the target object is the current speaker based on the audio spatial information, the visual spatial information, and the lip features; if so, performing speech extraction on the multi-channel audio signals using the spatial location information and lip features of the target object as constraints to obtain an enhanced speech signal of the target object.

[0176] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0177] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the in-vehicle speech extraction method provided by the above methods, the method comprising: acquiring video images inside the vehicle and multi-channel audio signals collected by multiple microphones; determining audio spatial information based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones; determining a target object inside the vehicle, as well as the visual spatial information and lip features of the target object based on the video images; determining whether the target object is the current speaker based on the audio spatial information, the visual spatial information, and the lip features; if so, performing speech extraction on the multi-channel audio signals constrained by the spatial location information and the lip features of the target object to obtain an enhanced speech signal of the target object.

[0178] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the in-vehicle speech extraction method provided by the methods described above. This method includes: acquiring a video image inside the vehicle and multi-channel audio signals collected by multiple microphones; determining audio spatial information based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones; determining a target object inside the vehicle, as well as the visual spatial information and lip features of the target object, based on the video image; determining whether the target object is the current speaker based on the audio spatial information, the visual spatial information, and the lip features; and if so, performing speech extraction on the multi-channel audio signals, constrained by the spatial location information and lip features of the target object, to obtain an enhanced speech signal of the target object.

[0179] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0180] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for extracting in-vehicle voice data, characterized in that, include: Acquire video images from inside the vehicle, as well as multi-channel audio signals collected by multiple microphones; Based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones, audio spatial information is determined; Based on the video images, the target object inside the vehicle is identified, along with the visual spatial information and lip features of the target object. Based on the audio spatial information, the visual spatial information, and the lip features, it is determined whether the target object is the current speaker; If so, then using the spatial location information of the target object and the lip features as constraints, speech extraction is performed on the multi-channel audio signal to obtain the enhanced speech signal of the target object.

2. The in-vehicle voice extraction method according to claim 1, characterized in that, The audio spatial information includes point-level spatial response and / or region-level spatial response; The determination of audio spatial information based on the spatial propagation differences of the multi-channel audio signals among the multiple microphones includes: The multi-channel audio signal is subjected to time-frequency transformation to obtain the time-frequency domain signal corresponding to each microphone; For each microphone pair consisting of multiple microphones, the cross-correlation function of each microphone pair is determined based on the time-frequency domain signals corresponding to two microphones in each microphone pair; Based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate position in the vehicle coordinate system is determined; Based on the point-level spatial response of each candidate location, the area-level spatial response of each seating area inside the vehicle is determined.

3. The in-vehicle voice extraction method according to claim 2, characterized in that, The determination of the point-level spatial response of each candidate location in the vehicle coordinate system based on the cross-correlation function of each microphone pair includes: Based on the aforementioned visual spatial information, the audio search area is determined; Based on the cross-correlation function of each microphone pair, the point-level spatial response of each candidate position within the audio search area in the vehicle coordinate system is determined; The process of determining the point-level spatial response of each candidate location in the vehicle coordinate system further includes: Based on the matching degree between the observed transfer function and the acoustic transfer dictionary, the point-level spatial response of each candidate location is corrected; The acoustic transfer dictionary includes acoustic transfer functions from multiple spatial grid points within the active range of the target object to each microphone; The observation transfer function is determined based on the multi-channel audio signal.

4. The vehicle-mounted voice extraction method according to any one of claims 1 to 3, characterized in that, The step of determining whether the target object is the current speaker based on the audio spatial information, the visual spatial information, and the lip features includes: Based on the synchronization relationship between the lip movements characterized by the lip features and the multi-channel audio signal, the lip sound synchronization probability is determined; Based on the lip-sound synchronization probability, the audio spatial information, and the visual spatial information, the target object is determined as the target posterior probability of the current speaking object; Based on the target posterior probability, it is determined whether the target object is the current speaker.

5. The vehicle-mounted voice extraction method according to any one of claims 1 to 3, characterized in that, The video images were captured by multiple cameras located at different positions inside the vehicle; The lip features of the target object are determined based on the following steps: From the video images captured by each camera, extract the lip candidate features of the target object, and determine the lip quality score of each camera based on each lip candidate feature; The lip features are determined based on the lip quality scores of each camera and the lip candidate features.

6. The vehicle-mounted voice extraction method according to any one of claims 1 to 3, characterized in that, The step of extracting speech from the multi-channel audio signal to obtain the enhanced speech signal of the target object includes: Based on the spatial location information, a target guidance vector pointing to the target object is determined; Based on the acoustic features of the multi-channel audio signal, the target steering vector, the audio spatial information, and the lip features, a mask estimation is performed to obtain an interference mask; Based on the interference mask and the target steering vector, speech extraction is performed on the multi-channel audio signal to obtain the enhanced speech signal of the target object.

7. The in-vehicle voice extraction method according to any one of claims 1 to 3, characterized in that, The method further includes: The system confidence level is determined based on the reliability of the audio spatial information, the accuracy of the lip features, and the credibility that the target object is the current speaker. Based on the system confidence level, switching between multiple working modes is performed; The various working modes include: A first mode for speech extraction from the multi-channel audio signal, constrained by the spatial location information of the target object and the lip features; When the reliability of the video image does not meet the preset conditions, a second mode of speech extraction is performed based on the audio spatial information and the spatial location information of the target object; When the reliability of the multi-channel audio signal does not meet the preset conditions, a third mode for speech extraction based on the visual spatial information is used. Furthermore, when the reliability of the video image and the reliability of the multi-channel audio signal do not meet the corresponding preset conditions, the fourth mode of the enhanced speech signal extracted at the previous moment is maintained.

8. The vehicle-mounted voice extraction method according to any one of claims 1 to 3, characterized in that, The acquisition of video images inside the vehicle and multi-channel audio signals collected by multiple microphones includes: Acquire the initial video image and the initial audio signal collected by multiple microphones; Based on the same clock, timestamps are written into the initial video image and the initial audio signal. Delay compensation is then performed on the initial video image and the initial audio signal after the timestamps are written to obtain the time-aligned video image and the multi-channel audio signal.

9. A vehicle-mounted voice extraction system, characterized in that, It includes multiple microphones located in different sound zones inside the vehicle, a camera located inside the vehicle, and a processor connected to the multiple microphones and the camera; The processor is used to execute the in-vehicle voice extraction method as described in any one of claims 1 to 8; The camera's field of view at least partially covers the range of motion of the target object's lips.

10. A vehicle, characterized in that, The system includes the in-vehicle voice extraction system as described in claim 9; wherein the plurality of microphones are respectively located in the sound zones corresponding to different seating areas within the vehicle.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the in-vehicle voice extraction method as described in any one of claims 1 to 8.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the in-vehicle voice extraction method as described in any one of claims 1 to 8.