Video picture switching method and device, equipment and storage medium

By performing voice endpoint detection and audio-video association table query on the audio signal frame, automatic switching of video pictures is realized, which solves the problem of inconvenience and errors in video picture switching caused by manual judgment in the existing technology, and improves efficiency and accuracy.

CN118631953APending Publication Date: 2024-09-10GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310223123.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In existing video conferencing and video teaching scenarios, video screen switching requires manual judgment of the speaker's position, making switching inconvenient and error-prone, affecting efficiency and accuracy.

Method used

By detecting the voice endpoint of the audio signal frame, the target audio input device is automatically determined, and the corresponding video collection device is selected according to the audio and video association table for video screen switching to achieve automatic video screen switching.

Benefits of technology

It improves the efficiency and accuracy of video screen switching, reduces manual intervention, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631953A
    Figure CN118631953A
Patent Text Reader

Abstract

The invention discloses a video picture switching method and device, equipment and a storage medium, and the method comprises the steps: carrying out the voice endpoint detection of an audio signal frame collected by at least one audio input device at a current moment, and obtaining a voice detection result of the corresponding audio signal frame; determining a target audio input device meeting a set audio input condition according to each voice detection result; and determining a target video acquisition device corresponding to the target audio input device, and when a switching evaluation condition is satisfied, selecting a video picture acquired by the target video acquisition device for local playing or coding transmission to remote equipment. By utilizing the method, the voice endpoint detection is performed on the audio signal frame, the corresponding video acquisition device is automatically selected and switched, and the video picture acquired by the target video acquisition device is selected for switching when the condition is met, so that the automatic switching of the video picture is realized, manual intervention and control are not needed, and the efficiency is improved. And the efficiency and the accuracy of video picture switching are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of visual networking technology, and in particular to a method, device, equipment and storage medium for switching video images. Background Art

[0002] With the rapid development of network technology, two-way communications such as video conferencing and video teaching have become widely popular in users' lives, work, and study. In professional video conferencing and video teaching scenarios, multi-view video acquisition is a common requirement, and video images of different people or objects in the scene are often acquired through multiple perspectives.

[0003] In actual applications, the matching video screens can be switched and displayed according to the different speakers in the scene, so as to track the speakers by switching the video screens. The existing video screen switching requires someone to determine which microphone has sound in the background, so as to determine the location of the speaker, and determine which video screen of which angle the location corresponds to, and finally manually switch the video screen matching the microphone to the display screen for output. This manual switching method is inconvenient, and manual judgment may also make mistakes, resulting in incorrect switched video screens. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method, device, equipment and storage medium for switching video screens, which realize automatic switching of video screens and improve the efficiency and accuracy of video screen switching.

[0005] In a first aspect, an embodiment of the present application provides a method for switching video images, including:

[0006] Performing voice endpoint detection on an audio signal frame currently collected by at least one audio input device to obtain a voice detection result of a corresponding audio signal frame;

[0007] Determining a target audio input device that meets a set audio input condition according to each of the voice detection results;

[0008] The target video acquisition device corresponding to the target audio input device is determined, and when a switching evaluation condition is met, the video picture acquired by the target video acquisition device is selected for local playback or encoded transmission to a remote device.

[0009] Furthermore, the step of determining a target audio input device that satisfies a set audio input condition according to each of the voice detection results includes:

[0010] If it is determined that there is a voice signal in each of the voice detection results, determining a target audio input device that meets the set audio input condition according to the signal level of each of the voice signals;

[0011] If it is determined that all of the voice detection results are non-voice signals, a target audio input device that meets the set audio input condition is determined based on the accumulated duration of the non-voice signal state.

[0012] Furthermore, the step of determining a target audio input device that satisfies a set audio input condition according to the signal level of each of the voice signals includes:

[0013] According to the signal levels of the voice signals, determining the audio input device associated with the voice signal corresponding to the maximum signal level, and recording it as the candidate input device;

[0014] Determine whether all audio input devices corresponding to the maximum signal levels determined within a first set time period from the current moment forward are the candidate input devices;

[0015] If so, the candidate input device is determined as a target audio input device that meets the audio input condition.

[0016] Furthermore, the step of determining the target audio input device that meets the set audio input condition according to the accumulated duration of the non-speech signal state includes:

[0017] Determine that the current moment is in a non-speech signal state, and determine the cumulative duration of being in the non-speech signal state;

[0018] If the accumulated duration of the state is greater than the second set duration, the preset audio input device is used as the target audio input device that meets the audio input condition.

[0019] Furthermore, the method further comprises:

[0020] When it is determined that there is a voice signal in each of the voice detection results, if a target audio input device that meets the set audio input condition is not determined according to the signal level of each of the voice signals; or,

[0021] When it is determined that all of the voice detection results are non-speech signals, if the target audio input device that meets the set audio input conditions is not determined based on the cumulative duration of the non-speech signal status, the previous audio input device at the previous moment is used as the target audio input device, and the next moment is used as the new current moment, and the voice endpoint detection of the audio signal frame is returned to be re-performed.

[0022] Further, the determining of the target video acquisition device corresponding to the target audio input device and, when a switching evaluation condition is met, selecting the video picture acquired by the target video acquisition device for local playback or encoding and transmitting to a remote device includes:

[0023] Searching a pre-configured audio-video association table to determine the video acquisition device associated with the target audio input device, and recording it as the target video acquisition device;

[0024] Obtain the target audio input device corresponding to each moment within a third set time period from the current moment forward;

[0025] When it is determined according to each of the target audio input devices and the corresponding audio signal frames that the switching evaluation condition is currently met, the video picture captured by the target video capture device is selected for local playback or encoded transmission to a remote device.

[0026] Further, when it is determined that the switching evaluation condition is currently met according to each of the target audio input devices and the corresponding audio signal frames, the video picture captured by the target video capture device is selected for local playback or encoded transmission to a remote device, including:

[0027] When it is determined that each of the target audio input devices is the same audio input device, performing speech quality assessment based on the audio signal frames of each of the target audio input devices;

[0028] If the evaluation value of the voice quality evaluation is greater than the set evaluation threshold, it is determined that the switching evaluation condition is currently met;

[0029] The video images captured by the target video capture device are selected for local playback or encoded transmission to a remote device.

[0030] Furthermore, the method further comprises:

[0031] The audio output device is controlled to output the audio signal frames collected by the target audio input device.

[0032] In a second aspect, an embodiment of the present application provides a video screen switching device, including:

[0033] A speech endpoint detection module, used to perform speech endpoint detection on an audio signal frame currently collected by at least one audio input device, and obtain a speech detection result of a corresponding audio signal frame;

[0034] An audio input device determination module, used to determine a target audio input device that meets a set audio input condition according to each of the voice detection results;

[0035] The video acquisition device determination module is used to determine the target video acquisition device corresponding to the target audio input device, and when the switching evaluation condition is met, select the video picture acquired by the target video acquisition device for local playback or encoded transmission to a remote device.

[0036] In a third aspect, an embodiment of the present application further provides a computer device, including: a memory and one or more processors;

[0037] The memory is used to store one or more programs;

[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the video screen switching method as described in the first aspect above.

[0039] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the video screen switching method as described in the first aspect.

[0040] The above-mentioned method, device, equipment and storage medium for switching video images, the method first performs voice endpoint detection on the audio signal frames collected by at least one audio input device at the current moment to obtain the voice detection results of the corresponding audio signal frames; then, according to each of the voice detection results, the target audio input device that meets the set audio input conditions is determined; finally, the target video acquisition device corresponding to the target audio input device is determined, and when the switching evaluation conditions are met, the video images collected by the target video acquisition device are selected for local playback or encoded transmission to a remote device. The above-mentioned technical scheme of this embodiment mainly performs voice endpoint detection on the audio signal frames collected at the current moment, determines the target audio input device that meets the set audio input conditions according to the voice detection results, automatically selects and switches the corresponding video acquisition device according to the target audio input device, and selects the video images collected by the target video acquisition device for local playback or encoded transmission to a remote device when the conditions are met, thereby realizing automatic switching of video images without manual intervention and control, and improving the efficiency and accuracy of video image switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0042] Figure 1 A schematic diagram of a flow chart of a method for switching video images provided in Embodiment 1 of the present application;

[0043] Figure 2 This is an example diagram of a typical scene of multi-view switching;

[0044] Figure 3 A schematic diagram of a flow chart of a method for switching video images provided in Embodiment 2 of the present application;

[0045] Figure 4A flowchart showing the steps for switching video images in a certain scene;

[0046] Figure 5 A structural block diagram of a video screen switching device provided in Embodiment 3 of the present application;

[0047] Figure 6 A schematic diagram of the structure of a computer device provided in Example 4 of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical scheme and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0049] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0050] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0051] Embodiment 1

[0052] Figure 1 The present invention provides a flowchart of a method for switching video images provided in the first embodiment of the present invention. The method is applicable to the case where video images are automatically switched according to different speakers in a multi-video acquisition device scenario. The method can be executed by a video image switching device, which can be implemented by hardware and / or software and is generally integrated in a computer device.

[0053] In order to more clearly describe the application scenarios of the embodiments of the present application, exemplary examples are given by taking typical scenarios of training scenarios or lecture hall scenarios as examples. In typical scenarios, multi-view video acquisition is a common requirement, and video images of different people or objects in the scene are often acquired through multiple perspectives. For example, one of the perspectives is from the back of the venue to the direction of the stage or podium, that is, on the stage, and the other perspective is from the front of the venue to the direction of the audience, that is, off the stage. From the perspective of distant participants, the desired effect is: if the person on the stage is speaking, the picture of the speaker on the stage should be seen; if the person off the stage is speaking, the picture of the audience off the stage should be seen. This involves the issue of camera perspective switching, which is commonly referred to as directing.

[0054] For example, Figure 2 This is an example of a typical scene of multi-view switching. Figure 2 As shown in the figure, the entire typical scene is divided into three parts, including the stage area, the left area of ​​the stage, and the right area of ​​the stage. Each area is covered by a camera. Usually, the choice of camera angle depends on which area the person is speaking. Among them, there are three cameras, namely angle 1, angle 2 and angle 3; three microphones, microphones Mic1, Mic2 and Mic3. When the host or the audience speaks, the camera angle needs to be switched to achieve video screen switching.

[0055] like Figure 1 As shown, a video screen switching method provided in the first embodiment specifically includes the following steps:

[0056] S101: Perform voice endpoint detection on an audio signal frame currently collected by at least one audio input device to obtain a voice detection result of a corresponding audio signal frame.

[0057] In this embodiment, one or more audio input devices and one or more video acquisition devices may be arranged in the application scene. The audio input device is used to acquire audio signal frames in the scene in real time. The video acquisition device is installed according to a set viewing angle, and each video acquisition device is aimed at a designated area of ​​the site, and can acquire video images of the designated area. The video acquisition device and the audio input device have a static one-to-many correspondence, that is, one video acquisition device corresponds to at least one or more audio input devices; one audio input device must correspond to one video acquisition device. Among them, the audio input device can be a microphone or other device, and the video acquisition device can be a camera or other device.

[0058] In this embodiment, the audio input device simultaneously collects audio signals, performs voice activity detection (VAD) on the audio signal frames currently collected by the audio input device, and uses the characteristics of the voice signal to determine whether someone is speaking in the corresponding audio input device. Voice endpoint detection is used to identify the presence and absence of voice in the audio signal. When voice is detected, the output is 1, otherwise, the output is 0.

[0059] It is understandable that when multiple audio input devices collect audio signals, each audio input device will correspond to the audio signal frame collected at the current moment. By performing voice endpoint detection on each audio signal frame, a voice detection result of each audio signal frame can be obtained. Among them, the voice detection result may be that there is a voice signal in the voice detection result or the voice detection result is all non-voice signals.

[0060] S102: Determine a target audio input device that meets a set audio input condition according to each speech detection result.

[0061] In this embodiment, according to the different speakers in the scene, the matching video screens are switched and displayed, so as to track the speakers' screens by switching the video screens. Since one audio input device must correspond to one video acquisition device, in order to determine which video acquisition device to switch to, the speaker can be determined first, and the speaker can be determined based on the audio signal frames collected by the audio input device. This step is equivalent to determining the audio input device corresponding to the speaker to be tracked based on each voice detection result.

[0062] It is important to know that the speech detection results may include multiple situations. One situation is that all speech detection results are non-speech signals, another situation is that one of the speech detection results has a speech signal, and another situation is that multiple speech detection results have speech signals. Among them, if all speech detection results are non-speech signals, it can be shown that no one is currently speaking; if one speech detection result has a speech signal, it can be shown that one person is currently speaking; if multiple speech detection results have speech signals, it can be shown that multiple people are currently speaking.

[0063] Among them, the target audio input device can be understood as the audio input device corresponding to the speaker to be tracked. In this embodiment, different audio input conditions are set for different voice detection results to determine the target audio input device. Exemplarily, if all voice detection results are non-voice signals, the default audio input device is determined as the target input device. If there is a voice detection result with a voice signal, the audio input device corresponding to the voice detection result is determined as the target input device. If there are multiple voice detection results with voice signals, the audio input device with the strongest voice signal can be selected as the target input device.

[0064] In this embodiment, in order to avoid frequent switching of video screens, a time window parameter is introduced. Taking the current moment as a reference, take the set time length forward to determine the voice signal within the set time length. For the case where there are no voice signals, by analyzing the voice signals within the set time length, it is determined whether the audio input device has not collected any voice signals within the set time length. If so, the default audio input device can be determined as the target audio input device. For the case where there is a voice signal, the audio input device with the strongest voice signal can be used as a candidate, and by analyzing the signal level of the voice signal within the set time length, it is determined whether the audio input device with the strongest voice signal within the set time length has always been the candidate. If so, the candidate can be used as the target audio input device.

[0065] Specifically, this step can use different set audio input conditions according to each voice detection result to determine the target audio input device that meets the set audio input conditions. The target audio input device can be used as a basis for subsequently determining which video acquisition device to switch to capture the picture. It can be understood that each audio input device is numbered in advance, and the number is used as an identification of the audio input device. After determining the target audio input device, the number of the target audio input device can be obtained.

[0066] S103: Determine the target video acquisition device corresponding to the target audio input device, and when the switching evaluation condition is met, select the video picture acquired by the target video acquisition device for local playback or encoding and transmitting to the remote device.

[0067] In this embodiment, the video acquisition device and the audio input device are in a static one-to-many correspondence, that is, one video acquisition device corresponds to one or more audio acquisition devices, and one audio input device must correspond to one video acquisition device. Each audio input device corresponds to a number, and each video acquisition device corresponds to a number. According to the arrangement of the audio input device and the video acquisition device in the scene, the correspondence between the video input device and the video acquisition device can be predetermined. The correspondence between the audio input device and the video acquisition device can be represented in the form of an audio-video association table, and the number of the audio input device is corresponded to the number of the video acquisition device to form an audio-video association table. The correspondence between the audio input device and the video acquisition device can be represented by P[n], P[n] = the video acquisition device corresponding to the nth audio input device, where n represents the number of the audio input device.

[0068] After the target audio input device is determined, the target video acquisition device corresponding to the target audio input device can be determined according to the correspondence between the audio input device and the video acquisition device, that is, by querying the pre-configured audio-video association table. Figure 2 As shown, in this scene, three microphones correspond to three cameras respectively. When microphone 1 is determined as the target audio input device, the video acquisition device of view 1 can be determined as the target video acquisition device based on the correspondence between the audio input device and the video acquisition device.

[0069] Considering that, after determining the target video acquisition device, the viewing angle is directly switched to the viewing angle of the target video acquisition device, the switching logic of the video acquisition device can be expressed as: when the determined target audio input device is the default audio input device, the viewing angle is switched to the viewing angle of the target video acquisition device corresponding to the default audio input device; when the determined target audio input device is a certain audio input device, the viewing angle is switched to the viewing angle of the target video acquisition device corresponding to the audio input device. However, according to the switching logic of the video acquisition device, a problem is often faced, that is, the target video acquisition device will be switched due to on-site noise interference. If you simply rely on increasing the set window time length, the frequency of switching will be reduced, but this problem cannot be completely solved. Therefore, in this embodiment, the voice quality evaluation dimension is introduced into the switching logic to reduce the impact of on-site noise on camera switching and enhance the user experience.

[0070] Among them, the mean subjective opinion score (MOS) is introduced into the switching evaluation condition. In international standards, the MOS value is uniformly used to evaluate the quality of compressed voice received by the system. The MOS value can be determined in the following two ways: 1) Based on the mapping of signal-to-noise ratio to MOS score. The signal-to-noise ratio method is relatively easy to implement, with a small amount of calculation, and has a good effect on steady-state noise detection, but the detection effect on non-steady-state noise is not good. The specific mapping relationship from signal-to-noise ratio to MOS score can be expressed as:

[0071]

[0072] 2) Evaluation based on deep learning. The basic principle is to input the Mel spectrum coefficients or Mel spectrum cepstral coefficients into the neural network model to calculate a MOS score. The method based on the neural network model has a large amount of calculation, but it is effective in detecting non-steady-state noise. In this embodiment, the deep learning evaluation method is preferably adopted.

[0073] In this embodiment, after introducing the switching evaluation condition, the switching logic of the video acquisition device can be expressed as: when the target audio input device is determined to be the default audio input device, the viewing angle is switched to the viewing angle of the target video acquisition device corresponding to the default audio input device; when it is further determined that when the target audio input device is a certain audio input device, when it is determined that the evaluation value MOS of the voice quality evaluation within the set time is greater than the set evaluation threshold, the viewing angle is switched to the viewing angle of the target video acquisition device corresponding to the audio input device.

[0074] Specifically, the target video acquisition device corresponding to the target audio input device is determined by querying the audio-video association table, and when the switching evaluation condition is met, the video image captured by the target video acquisition device is selected for local playback or encoded transmission to a remote device.

[0075] It is understandable that in this embodiment, after executing step S103 to determine the target video acquisition device corresponding to the target audio input device, and when the switching evaluation condition is met, the video screen captured by the target video acquisition device is selected for local playback or encoded transmission to the remote device, and then the process will return to step S101 to perform voice endpoint detection on the audio signal frame currently captured by at least one audio input device to obtain the voice detection result of the corresponding audio signal frame. The audio signal frames are continuously collected and voice endpoint detection is performed to determine whether to switch the video screen later. When the video screen switching condition is met, the video screen is switched.

[0076] A method for switching video images provided in the first embodiment of the present application first performs voice endpoint detection on the audio signal frames collected by at least one audio input device at the current moment to obtain the voice detection results of the corresponding audio signal frames; then, according to each of the voice detection results, a target audio input device that meets the set audio input conditions is determined; finally, a target video acquisition device corresponding to the target audio input device is determined, and when the switching evaluation conditions are met, the video images collected by the target video acquisition device are selected for local playback or encoded transmission to a remote device. Using this method, voice endpoint detection is mainly performed on the audio signal frames collected at the current moment, and the target audio input device that meets the set audio input conditions is determined according to the voice detection results. The corresponding video acquisition device is automatically selected and switched according to the target audio input device, and when the conditions are met, the video images collected by the target video acquisition device are selected for local playback or encoded transmission to a remote device, thereby realizing automatic switching of video images without manual intervention and control, and improving the efficiency and accuracy of video image switching.

[0077] Embodiment 2

[0078] Figure 3 A flow chart of a method for switching video screens provided in Example 2 of the present application. This embodiment is based on the above-mentioned embodiment. In this embodiment, the target audio input device that meets the set audio input conditions can be determined according to each of the voice detection results. Specifically, if it is determined that there is a voice signal in each of the voice detection results, then the target audio input device that meets the set audio input conditions is determined according to the signal level of each of the voice signals; if it is determined that each of the voice detection results is a non-voice signal, then the target audio input device that meets the set audio input conditions is determined according to the cumulative duration of the non-voice signal state.

[0079] At the same time, this embodiment can also determine the target video acquisition device corresponding to the target audio input device, and when the switching evaluation condition is met, select the video picture captured by the target video acquisition device for local playback or encoded transmission to the remote device. Specifically expressed as: search a pre-configured audio and video association table, determine the video acquisition device associated with the target audio input device, and record it as the target video acquisition device; obtain the target audio input device corresponding to each moment within a third set time period from the current moment to the present; according to each of the target audio input devices and the corresponding audio signal frames, determine that when the switching evaluation condition is currently met, select the video picture captured by the target video acquisition device for local playback or encoded transmission to the remote device.

[0080] like Figure 3 As shown, a video screen switching method provided in Embodiment 2 of the present application specifically includes the following operations:

[0081] S201: Perform voice endpoint detection on an audio signal frame currently collected by at least one audio input device to obtain a voice detection result of a corresponding audio signal frame.

[0082] Among them, the function of voice endpoint detection (VAD) is to use the characteristics of the voice signal to determine whether the corresponding microphone is speaking; if there is a voice signal, VAD = 1, otherwise VAD = 0. Specifically, voice endpoint detection is performed on the audio signal frame currently collected by at least one audio input device to obtain the voice detection result of the corresponding audio signal frame.

[0083] S202: If it is determined that there is a voice signal in each voice detection result, determine a target audio input device that meets the set audio input condition according to the signal level of each voice signal.

[0084] In this embodiment, if it is determined that there is a voice signal in each voice detection result, the signal level of the voice signal is calculated, and the maximum signal level is further detected. Specifically, based on the VAD value and the signal level value, the maximum signal level and the corresponding audio input device number are found in a time window. Assuming that there are N microphones, the possible output value is n (0≤n≤N). If 1≤n≤N, it means that the audio input device numbered n contains a voice signal and the signal is the strongest. The audio input device that contains the voice signal and the strongest signal is used as the target audio input device that meets the set audio input conditions.

[0085] Furthermore, according to the signal level of each speech signal, the step of determining the target audio input device that meets the set audio input condition can be expressed as:

[0086] a1) According to the signal level of each speech signal, determine the audio input device associated with the speech signal corresponding to the maximum signal level and record it as the candidate input device.

[0087] Specifically, the signal level of each voice signal is calculated, and the maximum signal level is determined, and the audio input device associated with the voice signal corresponding to the maximum signal level is used as a candidate input device. This step is used to determine the audio input device used by the speaker. In order to prevent the video screen from being switched when a voice signal is detected and the signal level is the maximum, further determination is required in this implementation.

[0088] b1) Determine whether all audio input devices corresponding to the maximum signal levels determined within a first set time period from the current moment to the present moment are candidate input devices.

[0089] The first set duration may refer to the minimum duration required for the signal level to be selected as the audio input device 1 to N, wherein a typical value of the first set duration may be 200ms. Specifically, it is determined whether the audio input devices corresponding to the maximum signal levels determined within the first set duration from the current moment to the present are all candidate input devices.

[0090] c1) If yes, the candidate input device is determined as the target audio input device that meets the audio input condition.

[0091] Specifically, if the audio input devices corresponding to the maximum signal levels determined within the first set time period from the current moment to the present are all candidate input devices, that is, the signal level of the audio signal collected by the candidate input device has been the maximum for the first set time period, then the candidate input device is determined as the target audio input device that meets the audio input conditions.

[0092] S203: If it is determined that all the speech detection results are non-speech signals, determine a target audio input device that meets the set audio input condition according to the accumulated duration of the non-speech signal state.

[0093] In this embodiment, if it is determined that all speech detection results are non-speech signals, it is necessary to determine the cumulative duration of the state of the non-speech signal, and determine the target audio input device that meets the set audio input condition based on the cumulative duration of the state of the non-speech signal. Specifically, assuming that there are N microphones, the possible output value is n (0≤n≤N). If n=0, it means that no audio input device contains a speech signal.

[0094] Further, determining a target audio input device that meets a set audio input condition according to the accumulated duration of the state of the non-speech signal includes:

[0095] a2) determining that the current moment is in a non-speech signal state, and determining the cumulative duration of the state in the non-speech signal state.

[0096] The non-speech signal state means that all speech detection results are non-speech signals, indicating that no one is speaking at the current moment. Specifically, determining that the current moment is in the non-speech signal state, and further determining the cumulative duration of the state in the non-speech signal state, can be understood as the cumulative duration of no one speaking.

[0097] b2) If the accumulated duration of the state is greater than the second set duration, a preset audio input device is used as a target audio input device that meets the audio input condition.

[0098] The second set duration may refer to the minimum duration required for the signal level to be selected as 0, and a typical value of the second set duration may be 500ms. Specifically, it is determined whether the cumulative duration of the state is greater than the second set duration. If the cumulative duration of the state is greater than the second set duration, the pre-set audio input device is used as the target audio input device that meets the audio input condition. The pre-set audio input device may be user-defined.

[0099] S204: Search a pre-configured audio-video association table to determine a video acquisition device associated with the target audio input device, and record it as the target video acquisition device.

[0100] It can be known that the correspondence between the video input device and the video acquisition device can be predetermined according to the arrangement of the audio input device and the video acquisition device in the scene. The correspondence between the audio input device and the video acquisition device can be represented in the form of an audio-video association table, and the number of the audio input device is corresponded to the number of the video acquisition device, and the audio-video association table is pre-configured. After the target audio input device is determined, the audio-video association table can be searched according to the number of the target audio input device to determine the number of the video acquisition device associated with the number of the target audio input device, and the video acquisition device corresponding to the number is recorded as the target video acquisition device.

[0101] S205: Obtain the target audio input device corresponding to each moment within a third set time period from the current moment forward.

[0102] The third set duration can be determined based on historical data experience values, and the third set duration is typically set to 1.0s. Specifically, the target audio input device corresponding to each moment within the third set duration from the current moment forward is obtained. The target audio input device corresponding to each moment can be identified based on the audio input device number.

[0103] S206: When it is determined that the switching evaluation condition is currently satisfied according to each target audio input device and the corresponding audio signal frame, the video picture captured by the target video capture device is selected for local playback or encoded transmission to a remote device.

[0104] In this embodiment, it is determined whether the target audio input device corresponding to each moment within the third set time period from the current moment forward is the same audio input device. If so, a voice quality evaluation is performed on the audio signal frame of the audio input device. If the voice quality evaluation satisfies the evaluation condition, it is determined that the switching evaluation condition is currently met, and the video picture collected by the target video acquisition device is selected for playback on the local display screen or encoded and transmitted to the remote device.

[0105] Further, according to each target audio input device and the corresponding audio signal frame, when it is determined that the switching evaluation condition is currently met, the video picture captured by the target video capture device is selected for local playback or encoded transmission to the remote device, including:

[0106] a3) When it is determined that each target audio input device is the same audio input device, speech quality assessment is performed based on the audio signal frames of each target audio input device.

[0107] Specifically, when it is determined that each target audio input device is the same audio input device, it indicates that the signal level of one audio input device is the largest within the set time, and it is necessary to further perform voice quality evaluation on the audio signal frames of each target audio input device to reduce the impact of on-site noise on camera switching and enhance user experience. The voice quality evaluation can be performed based on: mapping the signal-to-noise ratio to MOS points and based on deep learning evaluation. In this embodiment, the deep learning evaluation method is preferably adopted.

[0108] b3) If the evaluation value of the speech quality evaluation is greater than the set evaluation threshold, it is determined that the switching evaluation condition is currently met.

[0109] The set evaluation threshold can be adjusted according to the actual scenario, and a typical value of the evaluation threshold is 3. Specifically, if the evaluation value of the speech quality evaluation is greater than the set evaluation threshold, it indicates that the speech quality satisfies the requirement, and it is determined that the switching evaluation condition is currently met.

[0110] c3) Selecting the video images captured by the target video capture device for local playback or encoding and transmitting to a remote device.

[0111] A method for switching video images provided in the second embodiment of the present invention specifies the process of determining the target audio input device, and also specifies the process of how to determine the video images captured by the target video acquisition device. The method provided in this embodiment determines the target audio input device for the cases where there is a voice signal and the cases where there is no voice signal, respectively, based on whether there is a voice signal in the voice detection result; further, based on the audio-video association table, the video acquisition device associated with the target audio input device is determined, and based on the switching evaluation conditions, it is determined whether to select the video images captured by the target video acquisition device for local playback or encoded transmission to a remote device, thereby realizing automatic switching of video images without manual intervention and control, improving the efficiency and accuracy of video image switching, and in addition, introducing voice quality evaluation in the logic of video acquisition device switching makes video image switching more stable, improving user experience.

[0112] As an optional embodiment of the embodiment of the present invention, based on the above embodiment, the method further includes:

[0113] When it is determined that there is a voice signal in each voice detection result, if a target audio input device that meets the set audio input condition is not determined according to the signal level of each voice signal; or,

[0114] When it is determined that all speech detection results are non-speech signals, if the target audio input device that meets the set audio input conditions is not determined based on the cumulative duration of the non-speech signal status, the previous audio input device at the previous moment is used as the target audio input device, and the next moment is used as the new current moment, and the speech endpoint detection of the audio signal frame is returned to be re-performed.

[0115] Specifically, when there is a voice signal or all are non-voice signals in each voice detection result, when the target audio input device that meets the set audio input condition is not determined, the previous audio input device at the previous moment is used as the target audio input device, that is, the state of the previous moment is kept unchanged. The next moment is used as the new current moment, and the voice endpoint detection of the audio signal frame is returned again.

[0116] As an optional embodiment of the embodiment of the present invention, based on the above embodiment, the method further includes: controlling the audio output device to output the audio signal frames collected by the target audio input device.

[0117] Specifically, while selecting the video images captured by the target video capture device for local playback or encoded transmission to the remote device, the audio output device is controlled to output the audio signal frames captured by the target audio input device.

[0118] This optional embodiment realizes that when the video picture captured by the target video capture device is selected for local playback or encoded and transmitted to a remote device, an audio signal is output at the same time, thereby realizing synchronous playback of audio and video.

[0119] In order to more clearly illustrate the technical solution of the embodiment of the present application, taking a certain scene as an example, the steps of switching the video screen are described. Figure 4 This is a flow chart showing the steps for switching video screens in a certain scene. Figure 4 As shown, the specific steps include:

[0120] S1. Perform voice endpoint detection on an audio signal frame currently collected by at least one audio input device to obtain a voice detection result of a corresponding audio signal frame.

[0121] S2. If it is determined that there is a speech signal in each speech detection result, determine the audio input device associated with the speech signal corresponding to the maximum signal level according to the signal level of each speech signal, and record it as the candidate input device.

[0122] S3, determining whether all audio input devices corresponding to the maximum signal levels determined within a first set time period from the current moment to the present moment are candidate input devices, if so, executing step S4, if not, returning to executing step S1.

[0123] S4. Determine the candidate input device as the target audio input device that meets the audio input condition.

[0124] S5. If it is determined that all the speech detection results are non-speech signals, determine that the current moment is in a non-speech signal state, and determine the cumulative duration of the state in the non-speech signal state.

[0125] S6. Determine whether the accumulated duration of the state is greater than the second set duration. If so, execute step S7; if not, return to execute step S1.

[0126] S7. Use the preset audio input device as the target audio input device that meets the audio input condition.

[0127] S8. Search a pre-configured audio-video association table to determine the video acquisition device associated with the target audio input device, and record it as the target video acquisition device.

[0128] S9. Obtain the target audio input device corresponding to each moment within a third set time period from the current moment forward.

[0129] S10, determining whether each target audio input device is the same audio input device, if so, executing step S11, if not, returning to executing step S1.

[0130] S11 . Perform speech quality assessment based on the audio signal frames of each target audio input device.

[0131] S12: Determine whether the evaluation value of the speech quality evaluation is greater than the set evaluation threshold. If so, execute step S13; if not, return to execute step S1.

[0132] S13: Determine whether the current switching evaluation condition is met.

[0133] S14: Select the video images captured by the target video capture device for local playback or encoding and transmitting to a remote device.

[0134] Embodiment 3

[0135] Figure 5 This is a structural block diagram of a video screen switching device provided in the third embodiment of the present application. The device is suitable for automatically switching video screens according to different speakers in a multi-video acquisition device scenario. The device can be implemented by hardware and / or software and is generally integrated in a computer device. Figure 5As shown, the device includes: a voice endpoint detection module 31, an audio input device determination module 32 and a video acquisition device determination module 33.

[0136] The speech endpoint detection module 31 is used to perform speech endpoint detection on the audio signal frame currently collected by at least one audio input device to obtain the speech detection result of the corresponding audio signal frame;

[0137] An audio input device determination module 32, configured to determine a target audio input device that meets a set audio input condition according to each of the speech detection results;

[0138] The video acquisition device determination module 33 is used to determine the target video acquisition device corresponding to the target audio input device, and when the switching evaluation condition is met, select the video picture acquired by the target video acquisition device for local playback or encoded transmission to a remote device.

[0139] A device for switching video images provided in the third embodiment of the present invention performs voice endpoint detection on the audio signal frames collected at the current moment, determines the target audio input device that meets the set audio input conditions according to the voice detection results, automatically selects and switches the corresponding video acquisition device according to the target audio input device, and selects the video image collected by the target video acquisition device for local playback or encoded transmission to a remote device when the conditions are met, thereby realizing automatic switching of video images without manual intervention and control, thereby improving the efficiency and accuracy of video image switching.

[0140] Furthermore, the audio input device determination module 32 includes:

[0141] A first audio input determination unit, configured to determine a target audio input device that meets a set audio input condition according to a signal level of each of the voice signals if it is determined that there is a voice signal in each of the voice detection results;

[0142] The second audio input determination unit is used to determine a target audio input device that meets the set audio input condition according to the accumulated duration of the non-speech signal state if it is determined that all the speech detection results are non-speech signals.

[0143] Furthermore, the first audio input determination unit is specifically configured to:

[0144] According to the signal levels of the voice signals, determining the audio input device associated with the voice signal corresponding to the maximum signal level, and recording it as the candidate input device;

[0145] Determine whether all audio input devices corresponding to the maximum signal levels determined within a first set time period from the current moment forward are the candidate input devices;

[0146] If so, the candidate input device is determined as a target audio input device that meets the audio input condition.

[0147] Furthermore, the second audio input determination unit is specifically configured to:

[0148] Determine that the current moment is in a non-speech signal state, and determine the cumulative duration of being in the non-speech signal state;

[0149] If the accumulated duration of the state is greater than the second set duration, the preset audio input device is used as the target audio input device that meets the audio input condition.

[0150] Furthermore, the device also includes a return module, which is used to:

[0151] When it is determined that there is a voice signal in each of the voice detection results, if a target audio input device that meets the set audio input condition is not determined according to the signal level of each of the voice signals; or,

[0152] When it is determined that all of the voice detection results are non-speech signals, if the target audio input device that meets the set audio input conditions is not determined based on the cumulative duration of the non-speech signal status, the previous audio input device at the previous moment is used as the target audio input device, and the next moment is used as the new current moment, and the voice endpoint detection of the audio signal frame is returned to be re-performed.

[0153] Furthermore, the video acquisition device determination module 33 includes:

[0154] A video acquisition device determination unit, used to search a pre-configured audio-video association table, determine the video acquisition device associated with the target audio input device, and record it as the target video acquisition device;

[0155] An audio input device acquisition unit, used to acquire a target audio input device corresponding to each moment within a third set time period from the current moment forward;

[0156] The video picture playing unit is used to select the video picture captured by the target video capturing device for local playback or encoded transmission to a remote device when determining that the switching evaluation condition is currently met based on each of the target audio input devices and the corresponding audio signal frames.

[0157] Furthermore, the video picture playing unit is specifically used for:

[0158] When it is determined that each of the target audio input devices is the same audio input device, performing speech quality assessment based on the audio signal frames of each of the target audio input devices;

[0159] If the evaluation value of the voice quality evaluation is greater than the set evaluation threshold, it is determined that the switching evaluation condition is currently met;

[0160] The video images captured by the target video capture device are selected for local playback or encoded transmission to a remote device.

[0161] Furthermore, the device also includes an audio output module, which is used to:

[0162] The audio output device is controlled to output the audio signal frames collected by the target audio input device.

[0163] The video screen switching device provided in the embodiment of the present invention can execute the video screen switching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0164] Embodiment 4

[0165] Figure 6 This is a schematic diagram of the structure of a computer device provided in Embodiment 4 of the present application. The computer device includes: a processor 41, a memory 42, an input device 43, and an output device 44. The number of processors 41 in the computer device can be one or more. Figure 6 In the example, a processor 41 is used. The number of memories 42 in the computer device can be one or more. Figure 6 A memory 42 is taken as an example. The processor 41, memory 42, input device 43 and output device 44 of the computer device can be connected through a bus or other means. Figure 6 In the embodiment, the computer device may be a computer, a notebook or a smart tablet.

[0166] The memory 42, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the computer device described in any embodiment of the present invention (for example, the voice endpoint detection module 31, the audio input device determination module 32 and the video acquisition device determination module 33 in the video screen switching device). The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0167] The input device 43 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the display device. It can also be a camera for acquiring images and a sound pickup device for acquiring audio data. The output device 44 can include audio devices such as speakers. It should be noted that the specific composition of the input device 43 and the output device 44 can be set according to actual conditions.

[0168] The processor 41 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 42, that is, implements the above-mentioned course recommendation method.

[0169] The computer device provided above can be used to execute the video screen switching method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0170] Embodiment 5

[0171] Embodiment 5 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute a method for switching video images when executed by a computer processor, including:

[0172] Performing voice endpoint detection on an audio signal frame currently collected by at least one audio input device to obtain a voice detection result of a corresponding audio signal frame;

[0173] Determining a target audio input device that meets a set audio input condition according to each of the voice detection results;

[0174] The target video acquisition device corresponding to the target audio input device is determined, and when a switching evaluation condition is met, the video picture acquired by the target video acquisition device is selected for local playback or encoded transmission to a remote device.

[0175] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the operation of the video screen switching method as described above, and can also execute related operations in the video screen switching method provided by any embodiment of the present invention, and has corresponding functions and beneficial effects.

[0176] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a robot, a personal computer, a server, or a network device, etc.) to execute the video screen switching method described in any embodiment of the present application.

[0177] It is worth noting that in the above-mentioned video screen switching device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0178] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0179] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for switching video images, characterized in that: include: Performing voice endpoint detection on an audio signal frame currently collected by at least one audio input device to obtain a voice detection result of a corresponding audio signal frame; Determining a target audio input device that meets a set audio input condition according to each of the voice detection results; The target video acquisition device corresponding to the target audio input device is determined, and when a switching evaluation condition is met, the video picture acquired by the target video acquisition device is selected for local playback or encoded transmission to a remote device.

2. The method according to claim 1, characterized in that The step of determining a target audio input device that meets a set audio input condition according to each of the voice detection results comprises: If it is determined that there is a voice signal in each of the voice detection results, determining a target audio input device that meets the set audio input condition according to the signal level of each of the voice signals; If it is determined that all of the voice detection results are non-voice signals, a target audio input device that meets the set audio input condition is determined based on the accumulated duration of the non-voice signal state.

3. The method according to claim 2, characterized in that The step of determining a target audio input device that meets a set audio input condition according to the signal level of each of the voice signals comprises: According to the signal levels of the voice signals, determining the audio input device associated with the voice signal corresponding to the maximum signal level, and recording it as the candidate input device; Determine whether all audio input devices corresponding to the maximum signal levels determined within a first set time period from the current moment forward are the candidate input devices; If so, the candidate input device is determined as a target audio input device that meets the audio input condition.

4. The method according to claim 2, characterized in that: The step of determining a target audio input device that meets a set audio input condition according to the accumulated duration of the non-speech signal state includes: Determine that the current moment is in a non-speech signal state, and determine the cumulative duration of being in the non-speech signal state; If the accumulated duration of the state is greater than the second set duration, the preset audio input device is used as the target audio input device that meets the audio input condition.

5. The method according to claim 2, characterized in that: Also includes: When it is determined that there is a voice signal in each of the voice detection results, if a target audio input device that meets the set audio input condition is not determined according to the signal level of each of the voice signals; or, When it is determined that all of the voice detection results are non-speech signals, if the target audio input device that meets the set audio input conditions is not determined based on the cumulative duration of the non-speech signal status, the previous audio input device at the previous moment is used as the target audio input device, and the next moment is used as the new current moment, and the voice endpoint detection of the audio signal frame is returned to be re-performed.

6. The method according to claim 1, characterized in that The step of determining a target video acquisition device corresponding to the target audio input device and, when a switching evaluation condition is met, selecting a video image acquired by the target video acquisition device for local playback or encoding and transmitting to a remote device comprises: Searching a pre-configured audio-video association table to determine the video acquisition device associated with the target audio input device, and recording it as the target video acquisition device; Obtain the target audio input device corresponding to each moment within a third set time period from the current moment forward; When it is determined according to each of the target audio input devices and the corresponding audio signal frames that the switching evaluation condition is currently met, the video picture captured by the target video capture device is selected for local playback or encoded transmission to a remote device.

7. The method according to claim 6, characterized in that The step of determining, based on each of the target audio input devices and the corresponding audio signal frames, that the switching evaluation condition is currently satisfied, selecting the video picture captured by the target video capture device for local playback or encoding and transmitting to a remote device comprises: When it is determined that each of the target audio input devices is the same audio input device, performing speech quality assessment based on the audio signal frames of each of the target audio input devices; If the evaluation value of the voice quality evaluation is greater than the set evaluation threshold, it is determined that the switching evaluation condition is currently met; The video images captured by the target video capture device are selected for local playback or encoded transmission to a remote device.

8. The method according to any one of claims 1 to 7, characterized in that: Also includes: The audio output device is controlled to output the audio signal frames collected by the target audio input device.

9. A video screen switching device, characterized in that: include: A speech endpoint detection module, used to perform speech endpoint detection on an audio signal frame currently collected by at least one audio input device, and obtain a speech detection result of a corresponding audio signal frame; An audio input device determination module, used to determine a target audio input device that meets a set audio input condition according to each of the voice detection results; The video acquisition device determination module is used to determine the target video acquisition device corresponding to the target audio input device, and when the switching evaluation condition is met, select the video picture acquired by the target video acquisition device for local playback or encoded transmission to a remote device.

10. A computer device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the method according to any one of claims 1 to 8 when executed by a computer processor.