Voice interaction method and related device, equipment and storage medium
By using image target detection to dynamically lock the sound zone in the voice interaction system, the problem of interaction interruption caused by user movement is solved and the reliability and continuity of voice interaction are improved.
Patent Information
- Application Number
- CN202210930532.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-08-02
AI Technical Summary
Existing voice interaction technology can easily exceed the locked sound zone when the user moves, causing interaction interruption and affecting reliability and continuity.
By capturing images for target detection, the sound zone for voice interaction is dynamically locked, and the target detection and sound zone locking processes are repeatedly performed to ensure that the user remains within the locked sound zone even if the user moves during the interaction.
It improves the reliability and continuity of voice interaction, avoids interaction interruptions due to movement, and enhances user experience.
Smart Images

Figure CN115359789B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction technology, and in particular to a voice interaction method and related devices, equipment and storage media. Background Art
[0002] With the rapid development of artificial intelligence technology, human-machine interaction through voice has been widely used in many smart products such as smart homes, mobile terminals, and car-mounted equipment.
[0003] At present, in order to improve the anti-interference ability of voice interaction, the industry generally locks the voice interactive sound zone through the vocalization area of the wake-up word and the position of the voice button. For example, if the voice is awakened on the left, the sound zone is locked to the left, and if the voice is awakened on the right, the sound zone is locked to the right. However, in this way, if the user moves and exceeds the locked sound zone, the user will not be able to use voice interaction continuously. In view of this, how to dynamically lock the sound zone and improve the reliability and continuity of voice interaction has become an urgent problem to be solved. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a voice interaction method and related devices, equipment and storage media, which can dynamically lock the sound zone and improve the reliability and continuity of voice interaction.
[0005] In order to solve the above technical problems, the first aspect of the present application provides a voice interaction method, including: in response to detecting a request to start voice interaction, performing target detection based on a captured image to determine a target area where a requester who initiated the start request is located; based on the target area, locking a first sound zone of the voice interaction; wherein the voice interaction is performed based on a first voice collected in the first sound zone; and re-executing the step of performing target detection based on the captured image to determine the target area where the requester who initiated the start request is located and subsequent steps.
[0006] In order to solve the above-mentioned technical problems, the second aspect of the present application provides a voice interaction device, including: an area determination module, a sound zone locking module and a loop execution module, the area determination module is used to respond to the detection of a voice interaction start request, perform target detection based on the captured image, and determine the target area where the requester who initiated the start request is located; the sound zone locking module is used to lock the first sound zone of the voice interaction based on the target area; wherein the voice interaction is performed based on the first voice collected in the first sound zone; the loop execution module is used to re-execute the step of performing target detection based on the captured image to determine the target area where the requester who initiated the start request is located and subsequent steps.
[0007] In order to solve the above-mentioned technical problems, the third aspect of the present application provides a voice interaction device, including a microphone, a camera, a memory and a processor, the microphone, the camera and the memory are respectively coupled to the processor, the memory stores program instructions, and the processor is used to execute the program instructions to implement the voice interaction method in the above-mentioned first aspect.
[0008] In order to solve the above technical problems, the fourth aspect of the present application provides a computer-readable storage medium, which stores program instructions that can be executed by a processor, and the program instructions are used to implement the voice interaction method of the first aspect.
[0009] In the above scheme, in response to detecting a request to start voice interaction, target detection is performed based on the captured image to determine the target area where the requester who initiated the start request is located, and based on the target area, the first sound zone of the voice interaction is locked, and the voice interaction is performed based on the first voice collected in the first sound zone, and the step of performing target detection based on the captured image to determine the target area where the requester who initiated the start request is located and subsequent steps are re-executed. Since target detection, sound zone locking and other processes are repeatedly executed in a cycle during the voice interaction process, even if movement occurs during the voice interaction process, the sound zone can be dynamically locked following the movement, thereby ensuring as much as possible that the movement will not exceed the locked sound zone, that is, ensuring as much as possible that the interactive voice will not be blocked, that is, ensuring as much as possible that the interaction is maintained during the movement, thereby improving the reliability and continuity of the voice interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a flowchart of an embodiment of the voice interaction method of the present application;
[0011] Figure 2 It is a schematic diagram of an embodiment of the division of sound zones;
[0012] Figure 3 is a schematic diagram of an embodiment of dividing audio zones by user terminals;
[0013] Figure 4 It is a flowchart of another embodiment of the voice interaction method of the present application;
[0014] Figure 5 It is a schematic diagram of the framework of an embodiment of the voice interaction device of the present application;
[0015] Figure 6 It is a schematic diagram of the framework of an embodiment of the electronic device of the present application;
[0016] Figure 7 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0017] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.
[0018] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0019] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the fragment " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.
[0020] See also Figure 1 , Figure 1 This is a flow chart of an embodiment of the voice interaction method of the present application. Specifically, it may include the following steps:
[0021] Step S11: In response to detecting a voice interaction start request, target detection is performed based on the captured image to determine a target area where a requester who initiated the start request is located.
[0022] In one implementation scenario, the opening request can be initiated by voice. Specifically, the requester can send a voice containing a wake-up word, so that if the voice interaction device used to perform voice interaction recognizes that the collected voice contains the wake-up word, it can be determined that the voice interaction opening request is detected. Exemplarily, taking the voice interaction device as a vehicle-mounted device as an example, a person in any position in the car (such as the main driver, the co-driver, the left rear seat, the right rear seat, etc.) can initiate an opening request by voice as a requester; or, taking the voice interaction device as a smart home as an example, a person in any position in the room (such as the living room, dining room, bedroom, etc.) can initiate an opening request by voice as a requester. Other scenarios can be deduced by analogy, and examples are not given one by one here.
[0023] In another implementation scenario, in contrast to the aforementioned initiation of an opening request by voice, an opening request may also be initiated by a button. Specifically, the requester may trigger a button on a voice interaction device for performing voice interaction, so that the voice interaction device may determine that a voice interaction opening request is detected in response to the button being triggered. Exemplarily, taking the voice interaction device as an in-vehicle device as an example, the voice interaction device may include buttons respectively arranged at several positions in the vehicle (such as the main driver's seat, the co-driver's seat, the left rear seat, the right rear seat, etc.), then a person at any position in the vehicle may initiate an opening request by pressing a button as a requester; or, taking the voice interaction device as a smart home as an example, a person at any position in the room (such as a living room, a dining room, a bedroom, etc.) may walk to the front of the voice interaction device and trigger its button, then the person may initiate an opening request by pressing a button as a requester. Other scenarios may be deduced in the same way, and examples are not given one by one here.
[0024] In one implementation scenario, after detecting the start request, a captured image can be obtained, and target detection can be performed on the captured image to determine the target area where the requester is located. It should be noted that the voice interaction device can be integrated with a camera for photographing the environment in which the voice interaction device is located to obtain the above-mentioned captured image. Taking the voice interaction device as a vehicle-mounted device as an example, the voice interaction device may include a camera arranged on the top of the vehicle (or the front of the vehicle), and the camera is used to photograph the vehicle environment to obtain the above-mentioned captured image; or, taking the voice interaction device as a smart home as an example, a camera may be provided on the top of the voice interaction device, and the camera is used to photograph the indoor environment to obtain the above-mentioned captured image. In particular, considering that the indoor environment may be relatively wide, the camera can be set as a wide-angle camera. Other scenarios can be deduced by analogy, and examples are not given one by one here.
[0025] In a specific implementation scenario, in order to facilitate the subsequent locking of the sound zone, the sound pickup range of the voice interaction device can be divided into several sound zones in advance. Figure 2 , Figure 2 Schematic diagram of an embodiment of the division of sound zones. Figure 2 As shown, for the convenience of description, taking the case where the pickup range of the voice interaction device is a rectangle as an example, the pickup range can be divided into four sound zones arranged in two rows and two columns, which are respectively recorded as: sound zone 1, sound zone 2, sound zone 3, and sound zone 4. Of course, in actual application, the pickup range is not limited to a rectangle, but can also be other shapes, such as a circle. For example, when the pickup range is a circle, the pickup range can be divided into several sound zones by a dividing line passing through the center of the circle. For example, the pickup area can be divided into four sound zones by a dividing line passing through the center of the circle at a 90-degree central angle. Other situations can be deduced by analogy, and examples are not given one by one here.
[0026] In a specific implementation scenario, please refer to Figure 2 , for example, the voice interaction device is a vehicle-mounted device, and the sound pickup range of the voice interaction device is inside the car. Then, the sound pickup range can be divided into four sound zones according to the main driver's seat, the co-driver's seat, the left rear seat, and the right rear seat. For example, sound zone 3 corresponds to the main driver's seat area, sound zone 1 corresponds to the co-driver's seat area, sound zone 4 corresponds to the left rear seat area, and sound zone 2 corresponds to the right rear seat area; or, for example, the voice interaction device is a smart home device, and the voice interaction device is located in Figure 2 The intersection of the four sound zones shown in the figure has a pickup range of Figure 2 The largest rectangle shown can be Figure 2 As shown, the sound pickup range is divided into four sound zones, corresponding to different indoor spaces, such as sound zone 3 corresponding to the living room, sound zone 4 corresponding to the dining room, sound zone 2 corresponding to the kitchen, and sound zone 1 corresponding to the bedroom. Other situations can be deduced by analogy, and examples are not given here one by one. It should be noted that the above correspondence is only a possible implementation method in the actual application process, and does not limit the specific division method of the sound zones.
[0027] In a specific implementation scenario, when a voice interaction device is used for the first time, a user terminal (such as a smart phone, tablet computer, etc.) can establish a communication connection with the voice interaction device, such as through Bluetooth, wireless local area network, etc., which is not limited here. On this basis, the user terminal can display the real-time image of the environment captured by the voice interaction device, and receive the sound pickup data sent by the voice interaction device, which may include the sound pickup range of the voice interaction device. On this basis, the user terminal can highlight the image area within the sound pickup range on the real-time image in a preset style. Exemplarily, the image area within the sound pickup range on the real-time image can be filled with a color (such as red) with a certain transparency (such as 60%) to indicate that the user can divide the sound zone in the image area. Based on this, the user terminal can further receive the division instruction operated by the user on the real-time image, so that a number of sound zones can be initialized. Please refer to Figure 3 , Figure 3 This is a schematic diagram of an embodiment of dividing audio zones by user terminals. Figure 3 As shown, taking the voice interaction device as a vehicle-mounted device as an example, the camera in the voice interaction device can be set on the top of the vehicle, so that various positions in the vehicle can be photographed. Figure 3 As shown, the real-time image displayed by the user terminal is a top view of the interior of the vehicle, and the image area within the sound pickup range on the real-time image is filled with grayscale ( Figure 3The real-time images shown are all within the sound pickup range), and the user can operate the division command on the real-time image, such as dividing two horizontal and vertical dividing lines, so as to divide the sound pickup area into four sound zones, namely, the sound zone corresponding to the main driving area, the sound zone corresponding to the co-driving area, the sound zone corresponding to the left rear seat area, and the sound zone corresponding to the right rear seat area. Other situations can be deduced by analogy, and no examples are given here one by one.
[0028] In a specific implementation scenario, target detection can be performed on the captured image to obtain the target position of the requester in the captured image, so that the target area of the requester in the environment where the voice interaction device is located can be determined based on the target position. Specifically, in order to improve the efficiency of target detection, a target detection model can be pre-trained, so that the target detection model can be used to perform target detection on the captured image to obtain the target position of the requester in the captured image. The target detection model may include but is not limited to: Faster RCNN, YOLO, etc., and the network structure of the target detection model is not limited here. In addition, considering that the voice interaction device usually does not move its position during the voice interaction process, the background picture of the captured image and the aforementioned real-time image should remain basically consistent. Therefore, at this time, the target area of the requester can be determined by the target position of the requester. Please continue to refer to Figure 3 If the requester is located at the main driver's seat in the lower left corner of the captured image, it can be determined that the requester is located in the main driver's seat area, that is, the target area is the main driver's seat area. Similarly, if the requester is located at the co-pilot seat in the upper left corner of the captured image, it can be determined that the requester is located in the co-pilot seat area, that is, the target area is the co-pilot seat area. Other situations can be deduced in this way, and no examples are given here one by one.
[0029] In a specific implementation scenario, in order to enable the voice interaction device to continue to accurately perform voice interaction after being repositioned, the voice interaction device can detect whether the background of the captured image changes at a preset time interval, and if so, it can prompt to re-set the sound zone. At this time, the user can control the user terminal to re-establish a communication connection with the voice interaction device, and re-execute the aforementioned steps of displaying the real-time image captured by the voice interaction device of its environment, and receiving the sound pickup data sent by the voice interaction device, as well as subsequent steps, so as to re-set the sound zone.
[0030] Step S12: Based on the target area, lock the first sound zone of the voice interaction.
[0031] In the embodiment of the present disclosure, the voice interaction is performed based on the first voice collected in the first voice zone. That is, although voice signals can be collected in other voice zones other than the first voice zone, these voice signals can be shielded during the voice interaction process, that is, the voice interaction can be performed only based on the first voice collected in the first voice zone. Figure 3, if the first sound zone for voice interaction is locked to the main driving area in the lower left corner, the voice interaction can be performed only based on the first voice collected in the main driving area, and during the voice interaction, the voice signals collected in the co-pilot area, the left rear seat area and the right rear seat area are respectively shielded. Other situations can be deduced by analogy, and examples are not given one by one here. In addition, during the voice interaction process, the orientation of each collected voice signal can be determined by technical methods such as sound source localization. If the orientation of the voice signal matches the first sound zone, the voice signal can be used as the first voice. Otherwise, the voice signal can be shielded during the voice interaction process. The process of determining the orientation of the voice signal can refer to technical details such as sound source localization, which will not be repeated here.
[0032] In an implementation scenario, after determining the target area, the target area can be locked as the first sound zone of voice interaction. Figure 3 If the target area is determined to be the main driving area, the main driving area can be locked as the first sound zone for voice interaction; similarly, if the target area is determined to be the co-pilot area, the co-pilot area can be locked as the first sound zone for voice interaction. Other situations can be deduced by analogy, and no examples are given here one by one.
[0033] In another implementation scenario, different from the aforementioned method, in order to adapt to the scenario where the requester may move significantly in an instant during the voice interaction process (for example, the requester in the main driver's seat turns his head to face the storage compartment in the co-pilot area and speaks after initiating the opening request), the target area and the pickup area adjacent to the target area can also be locked at the same time as the first area for voice interaction.
[0034] It should be noted that after locking the first audio zone of the voice interaction, the first voice collected in the first audio zone can be obtained, and voice interaction can be performed with the requester based on the first voice.
[0035] In one implementation scenario, in order to further improve the robustness of voice interaction, before locking the first sound zone of voice interaction based on the target area, it is possible to first detect whether the target area is within the coverage of voice interaction. If the target area is within the coverage of voice interaction, the step of locking the first sound zone of voice interaction based on the target area is performed. Otherwise, it can be confirmed that voice interaction is not currently supported, and the requester can be prompted that voice interaction is not currently supported, such as broadcasting a voice message "Sorry, we cannot hear you at your location, please move". It should be noted that the coverage of voice interaction is the pickup range of the voice interaction device. In the above method, before locking the first sound zone of voice interaction based on the target area, it is possible to first detect whether the target area is within the coverage of voice interaction. If the target area is locked based on the target area, the first sound zone of voice interaction can be ensured to be within the coverage of voice interaction before subsequent voice interaction is performed, which helps to improve the robustness of voice interaction. When it is determined that the target area is not within the coverage of voice interaction, the requester is prompted that voice interaction is not currently supported, so that when voice interaction is not supported, the user can perceive it, which helps to improve the user experience.
[0036] Step S13: re-execute the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and the subsequent steps.
[0037] In one implementation scenario, after locking the first sound zone of voice interaction, the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and subsequent steps can be re-executed, so that the sound zone can be dynamically locked following the movement of the requester.
[0038] In another implementation scenario, different from the aforementioned method, in order to further reduce the large amount of overhead caused by target detection on the captured image, before re-executing the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and the subsequent steps, it is also possible to first predict whether there is a risk of change in the currently locked first sound zone. If so, the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and the subsequent steps can be re-executed. It should be noted that the specific process of risk prediction can be referred to the following public embodiments, which will not be repeated here.
[0039] In the above scheme, in response to detecting a request to start voice interaction, target detection is performed based on the captured image to determine the target area where the requester who initiated the start request is located, and based on the target area, the first sound zone of the voice interaction is locked, and the voice interaction is performed based on the first voice collected in the first sound zone, and the step of performing target detection based on the captured image to determine the target area where the requester who initiated the start request is located and subsequent steps are re-executed. Since target detection, sound zone locking and other processes are repeatedly executed in a cycle during the voice interaction process, even if movement occurs during the voice interaction process, the sound zone can be dynamically locked following the movement, thereby ensuring as much as possible that the movement will not exceed the locked sound zone, that is, ensuring as much as possible that the interactive voice will not be blocked, that is, ensuring as much as possible that the interaction is maintained during the movement, thereby improving the reliability and continuity of the voice interaction.
[0040] See also Figure 4 , Figure 4 This is a flow chart of another embodiment of the voice interaction method of the present application. Specifically, it may include the following steps:
[0041] Step S401: receiving a request for starting voice interaction from a requester.
[0042] For details, please refer to the aforementioned disclosed embodiments, which will not be described again here.
[0043] Step S402: Target detection is performed based on the captured image to determine the target area where the requester who initiated the opening request is located.
[0044] For details, please refer to the aforementioned disclosed embodiments, which will not be described again here.
[0045] Step S403: Detect whether the target area is within the coverage of the voice interaction. If so, execute step S404; otherwise, execute step S408.
[0046] It should be noted that the coverage range of the voice interaction is the sound pickup range of the voice interaction device. If the target area is within the coverage range of the voice interaction, it can be confirmed that the voice interaction is performed normally, otherwise it can be confirmed that the voice interaction cannot be performed normally.
[0047] Step S404: Based on the target area, lock the first audio zone of the voice interaction.
[0048] For details, please refer to the aforementioned disclosed embodiments, which will not be described again here.
[0049] Step S405: predict whether there is a risk of change in the first sound zone currently locked, if so, execute step S406, otherwise execute step S407.
[0050] Specifically, if it is predicted that the currently locked first sound zone has a risk of change, the aforementioned step S402 and subsequent steps need to be re-executed to perform target detection on the latest captured image, so as to dynamically change the currently locked first sound zone in a timely manner when there is a risk of change. If it is predicted that the currently locked first sound zone does not have a risk of change, step S405 is re-executed to continuously re-predict whether the currently locked first sound zone has a risk of change, so that once it is predicted that there is a risk of change, the currently locked first sound zone can be dynamically changed in a timely manner. Exemplarily, while acquiring the first voice collected in the first sound zone, the second voice collected in the second sound zone can be acquired. As mentioned above, the second sound zone is adjacent to the first sound zone. Please refer to Figure 2 , if the No. 3 sound zone is the first sound zone, then the second sound zone adjacent to the first sound zone may include at least one of the No. 1 sound zone and the No. 4 sound zone. Other situations can be deduced by analogy, and examples are not given here one by one. On this basis, a prediction can be made based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first sound zone. In the above method, by obtaining the second voice collected in the second sound zone, and the second sound zone is adjacent to the first sound zone, and then predicting based on the first voice and the second voice, it is determined whether there is a risk of change in the currently locked first sound zone. Therefore, there is no need to perform calculations on the captured image. It is only necessary to predict whether there is a risk of change in the currently locked first sound zone based on the collected first voice and the second voice, which helps to reduce the computing load.
[0051] In an implementation scenario, after obtaining the first voice and the second voice, the first change of the signal strength of the first voice can be obtained, and the second change of the signal strength of the second voice can be obtained, so that based on the first change and the second change, it can be determined whether the currently locked first sound zone has a risk of change. It should be noted that the first change may include: the signal strength of the first voice becomes stronger, the signal strength of the first voice does not become stronger (that is, it becomes weaker or unchanged), the signal strength of the first voice becomes weaker, and the signal strength of the first voice does not become weaker (that is, it becomes stronger or unchanged). Similarly, the second change may include: the signal strength of the second voice becomes stronger, the signal strength of the second voice does not become stronger, the signal strength of the second voice becomes weaker, and the signal strength of the second voice does not become weaker. In addition, the change of signal strength represents the change in the time domain dimension, such as the first change represents the change of the signal strength of the first voice when it is currently collected and intersects with the last collection, and the second change represents the change of the signal strength of the second voice when it is currently collected compared with the last collection. The above method determines whether there is a risk of change in the currently locked first sound zone through the first change in signal strength of the first voice and the second change in signal strength of the second voice. That is, it is only necessary to measure the change in signal strength to predict whether there is a risk of change in the currently locked first sound zone, so it can help to further reduce the computing load.
[0052] In a specific implementation scenario, in response to the first change condition including the signal strength of the first voice becoming weaker and the second change condition including the signal strength of the second voice not becoming weaker, it can be determined that the currently locked first sound zone has a risk of change. In the above manner, when the first change condition includes the signal strength of the first voice becoming weaker and the second change condition includes the signal strength of the second voice not becoming weaker, it is determined that the currently locked first sound zone has a risk of change. That is, once the requester has a tendency to move away from the first sound zone, it will be immediately determined that the currently locked first sound zone has a risk of change, thereby re-performing target detection on the latest captured image, which helps to further dynamically change the currently locked first sound zone in a timely manner.
[0053] In a specific implementation scenario, in response to the first change condition including that the signal strength of the first voice does not weaken and the second change condition including that the signal strength of the second voice weakens, it can be determined that there is no risk of change in the currently locked first sound zone. In the above manner, when the first change condition includes that the signal strength of the first voice does not weaken and the second change condition includes that the signal strength of the second voice weakens, it is determined that there is no risk of change in the currently locked first sound zone, thereby eliminating the need to re-perform target detection on the latest captured image, which helps to reduce the computational load.
[0054] In a specific implementation scenario, in order to improve the immediacy of dynamically locked sound zones as much as possible, in other situations other than the above two situations, such as the first change situation includes the signal strength of the first voice weakening and the second change situation includes the signal strength of the second voice weakening, the first change situation includes the signal strength of the first voice not weakening and the second change situation includes the signal strength of the second voice not weakening, it can also be determined that there is a risk of change in the currently locked first sound zone, so that target detection can be re-performed on the latest captured image.
[0055] In one implementation scenario, in order to further improve the immediacy of dynamically locking the sound zone, after obtaining the first voice and the second voice, and before making a prediction based on the two, it is possible to first detect whether the first voice and the second voice are valid voices (i.e., contain human voice signals), and if both are valid voices, then make a prediction based on the first voice and the second voice to determine whether the currently locked first sound zone has a risk of change. In the above method, before predicting whether the currently locked first sound zone has a risk of change based on the first voice and the second voice, first detect whether the first voice and the second voice are valid voices, and if both are valid voices, then make a prediction based on the change in signal strength, so as to ensure that the change can reflect the requester's movement trend as accurately as possible, and then predict whether the currently locked first sound zone has a risk of change, thereby improving the prediction accuracy as much as possible.
[0056] In a specific implementation scenario, different from the aforementioned first voice and the second voice being both valid voices, if at least one of the first voice and the second voice is a blank voice (i.e., does not contain a human voice signal), the target detection based on the captured image can be re-executed to determine the target area where the requester who initiated the opening request is located and the subsequent steps, that is, re-detect the target on the latest captured image. In the above method, since at least one of the first voice and the second voice is a blank voice, it can be considered that the requester has not made a voice. At this time, in order to avoid the requester having moved and not following up in time, resulting in the inability to achieve subsequent voice interaction, the target detection based on the latest captured image and the subsequent steps are immediately re-executed, so that the immediacy of dynamically locking the sound zone can be further improved.
[0057] Step S406: re-execute step S402 and subsequent steps.
[0058] Specifically, as mentioned above, if it is predicted that the currently locked first sound zone has a risk of change, the step of performing target detection based on the captured image and subsequent steps can be re-executed to improve the immediacy of the dynamically locked sound zone as much as possible.
[0059] It should be noted that in the embodiments of the present disclosure, when re-performing target detection based on a captured image, the captured image referred to may be the latest captured image. For example, the voice interaction device may continue to shoot, and when it is determined that target detection needs to be re-performed, target detection may be performed on the latest captured image.
[0060] Step S407: Re-execute step S405 and subsequent steps.
[0061] Specifically, as described above, if it is predicted that the first tone zone currently locked has no risk of change, it may be re-predicted whether the first tone zone currently locked has risk of change.
[0062] Step S408: Prompt the requester that voice interaction is not currently supported.
[0063] For details, please refer to the relevant description in the aforementioned disclosed embodiments, which will not be repeated here.
[0064] It should be noted that after the first sound zone for voice interaction is locked in the aforementioned step S404, the requester may also make a voice during the above-mentioned risk prediction and re-execution of target detection. At this time, voice interaction can still be performed based on the first voice collected in the currently locked first sound zone. If the first sound zone for voice interaction is re-locked, voice interaction can be performed based on the first voice collected in the newly locked first sound zone.
[0065] The above scheme, after locking the first sound zone of voice interaction based on the target area, and before re-executing the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and the subsequent steps, predicts whether there is a risk of change in the currently locked first sound zone, and when there is a risk of change in the currently locked first sound zone, re-executing the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and the subsequent steps, can reduce the frequency of target detection based on captured images as much as possible, help to ensure that the interaction is maintained during movement as much as possible, and reduce the computing load as much as possible while improving the reliability and continuity of the voice interaction.
[0066] See also Figure 5 , Figure 5It is a schematic diagram of a framework of an embodiment of a voice interaction device 50 of the present application. The voice interaction device 50 includes: an area determination module 51, a sound zone locking module 52 and a loop execution module 53. The area determination module 51 is used to perform target detection based on the captured image in response to detecting a voice interaction start request, and determine the target area where the requester who initiated the start request is located; the sound zone locking module 52 is used to lock the first sound zone of the voice interaction based on the target area; wherein the voice interaction is performed based on the first voice collected in the first sound zone; the loop execution module 53 is used to re-execute the step of performing target detection based on the captured image and determining the target area where the requester who initiated the start request is located and subsequent steps.
[0067] In the above scheme, in response to detecting a request to start voice interaction, target detection is performed based on the captured image to determine the target area where the requester who initiated the start request is located, and based on the target area, the first sound zone of the voice interaction is locked, and the voice interaction is performed based on the first voice collected in the first sound zone, and the step of performing target detection based on the captured image to determine the target area where the requester who initiated the start request is located and subsequent steps are re-executed. Since target detection, sound zone locking and other processes are repeatedly executed in a cycle during the voice interaction process, even if movement occurs during the voice interaction process, the sound zone can be dynamically locked following the movement, thereby ensuring as much as possible that the movement will not exceed the locked sound zone, that is, ensuring as much as possible that the interactive voice will not be blocked, that is, ensuring as much as possible that the interaction is maintained during the movement, thereby improving the reliability and continuity of the voice interaction.
[0068] In some disclosed embodiments, the voice interaction device 50 also includes a risk prediction module for predicting whether there is a risk of change in the currently locked first sound zone. The loop execution module 53 is specifically used to respond to the risk of change in the currently locked first sound zone by re-executing the step of performing target detection based on the captured image and determining the target area where the requester who initiated the opening request is located, as well as subsequent steps.
[0069] In some disclosed embodiments, the risk prediction module includes an acquisition submodule for acquiring a second voice collected in a second sound zone; wherein the second sound zone is adjacent to the first sound zone; the risk prediction module includes a prediction submodule for making predictions based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first sound zone.
[0070] In some disclosed embodiments, the prediction submodule includes an intensity change acquisition unit, which is used to obtain a first change in signal strength of the first voice and a second change in signal strength of the second voice; the prediction submodule includes a change risk determination unit, which is used to determine whether there is a risk of change in the currently locked first sound zone based on the first change and the second change.
[0071] In some disclosed embodiments, the change risk determination unit includes a first determination subunit for determining that there is a change risk in the currently locked first sound zone in response to the first change situation including that the signal strength of the first voice is weakened and the second change situation including that the signal strength of the second voice is not weakened; the change risk determination unit includes a second determination subunit for determining that there is no change risk in the currently locked first sound zone in response to the first change situation including that the signal strength of the first voice is not weakened and the second change situation including that the signal strength of the second voice is weakened.
[0072] In some disclosed embodiments, the risk prediction module includes a detection submodule for detecting whether the first voice and the second voice are valid voices; the prediction submodule is specifically used to respond to the first voice and the second voice being both valid voices, to make a prediction based on the first voice and the second voice, to determine whether there is a risk of change in the currently locked first sound zone.
[0073] In some disclosed embodiments, the loop execution module 53 is also used to, in response to at least one of the first voice and the second voice being a blank voice, re-execute the step of performing target detection based on the captured image, determining the target area where the requester who initiated the opening request is located, and subsequent steps.
[0074] In some disclosed embodiments, the voice interaction device 50 also includes a loop prediction module for re-executing the step of predicting whether the currently locked first sound zone has a risk of change and subsequent steps in response to the currently locked first sound zone having no risk of change.
[0075] In some disclosed embodiments, the voice interaction device 50 also includes a coverage detection module for detecting whether the target area is within the coverage range of the voice interaction; the sound zone locking module 52 is specifically used to lock the first sound zone of the voice interaction based on the target area in response to the target area being within the coverage range of the voice interaction.
[0076] In some disclosed embodiments, the voice interaction device 50 further includes an interaction prompting module for prompting the requester that voice interaction is not currently supported in response to the target area being out of the coverage of the voice interaction.
[0077] See also Figure 6 , Figure 6It is a schematic diagram of the framework of an embodiment of a voice interaction device 60 of the present application. The voice interaction device 60 includes a memory 61, a processor 62, a microphone 63 and a camera 64, and the memory 61, the microphone 63 and the camera 64 are respectively coupled to the processor 62, the memory 61 stores program instructions, and the processor 62 is used to execute the program instructions to implement the steps in any of the above-mentioned voice interaction method embodiments. Specifically, the voice interaction device 60 may include but is not limited to: desktop computers, laptop computers, servers, mobile phones, tablet computers, smart speakers, learning robots, story robots, vehicle-mounted terminals, vehicle computers, etc., which are not limited here. It should be noted that the number of microphones 63 contained in the voice interaction device 60 may not be limited to Figure 6 The number of cameras 64 in the voice interaction device 60 may also be limited to Figure 6 The one shown may also be provided with two, three, etc., which is not limited here.
[0078] Specifically, the processor 62 is used to control itself as well as the memory 61, the microphone 63 and the camera 64 to implement the steps in any of the above-mentioned voice interaction method embodiments. The processor 62 can also be referred to as a CPU (Central Processing Unit). The processor 62 may be an integrated circuit chip having the ability to process signals. The processor 62 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. In addition, the processor 62 may be implemented by an integrated circuit chip.
[0079] In the above scheme, since target detection, sound zone locking and other processes are repeatedly executed in a loop during the voice interaction process, even if movement occurs during the voice interaction process, the sound zone can be dynamically locked along with the movement, thereby ensuring as much as possible that the movement does not exceed the locked sound zone, that is, ensuring as much as possible that the interactive voice will not be blocked, that is, ensuring as much as possible that the interaction is maintained during the movement, thereby improving the reliability and continuity of the voice interaction.
[0080] See also Figure 7 , Figure 7Schematic diagram of a framework of an embodiment of a computer-readable storage medium 70 of the present application. The computer-readable storage medium 70 stores program instructions 71 that can be executed by a processor, and the program instructions 71 are used to implement the steps in any of the above-mentioned voice interaction method embodiments.
[0081] In the above scheme, since target detection, sound zone locking and other processes are repeatedly executed in a loop during the voice interaction process, even if movement occurs during the voice interaction process, the sound zone can be dynamically locked along with the movement, thereby ensuring as much as possible that the movement does not exceed the locked sound zone, that is, ensuring as much as possible that the interactive voice will not be blocked, that is, ensuring as much as possible that the interaction is maintained during the movement, thereby improving the reliability and continuity of the voice interaction.
[0082] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0083] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0084] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0086] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0088] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
Claims
1. A voice interaction method, characterized in that: include: In response to detecting a voice interaction start request, performing target detection based on the captured image to determine a target area where a requester who initiated the start request is located; Based on the target area, locking a first sound zone of the voice interaction; wherein the voice interaction is performed based on a first voice collected in the first sound zone; Predict whether the currently locked first tone zone has a risk of change; In response to the risk of change of the currently locked first sound zone, re-execute the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and subsequent steps; The predicting whether there is a risk of change in the first audio zone currently locked includes: Acquire a second voice collected in a second sound zone; wherein the second sound zone is adjacent to the first sound zone; Prediction is performed based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first sound zone.
2. The method according to claim 1, characterized in that: The predicting based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first voice zone includes: Obtaining a first change in signal strength of the first voice, and obtaining a second change in signal strength of the second voice; Based on the first change condition and the second change condition, it is determined whether there is a risk of change in the currently locked first sound zone.
3. The method according to claim 2, characterized in that The determining, based on the first change condition and the second change condition, whether there is a risk of change in the first sound zone currently locked includes: In response to the first change condition including the signal strength of the first voice becoming weaker and the second change condition including the signal strength of the second voice not becoming weaker, determining that there is a risk of change in the currently locked first audio zone; In response to the first change condition including that the signal strength of the first sound zone does not become weaker and the second change condition including that the signal strength of the second voice becomes weaker, it is determined that there is no risk of change in the currently locked first sound zone.
4. The method according to claim 1, characterized in that: After acquiring the second voice collected in the second sound zone and before predicting based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first sound zone, the method further includes: Detecting whether the first voice and the second voice are valid voices; The predicting based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first voice zone includes: In response to the first voice and the second voice being both valid voices, a prediction is performed based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first sound zone.
5. The method according to claim 4, characterized in that The method further comprises: In response to at least one of the first voice and the second voice being a blank voice, the step of performing target detection based on the captured image to determine the target area where the requester who initiated the opening request is located and subsequent steps are re-executed.
6. The method according to claim 1, characterized in that The method further comprises: In response to the first sound zone currently locked not having the risk of change, the step of predicting whether the first sound zone currently locked has the risk of change and subsequent steps are re-executed.
7. The method according to claim 1, characterized in that Before locking the first sound zone of the voice interaction based on the target area, the method further includes: Detecting whether the target area is within the coverage of the voice interaction; The step of locking the first sound zone of the voice interaction based on the target area includes: In response to the target area being within the coverage of the voice interaction, a first audio zone of the voice interaction is locked based on the target area.
8. The method according to claim 7, characterized in that The method further comprises: In response to the target area not being within the coverage of the voice interaction, the requester is prompted that the voice interaction is not currently supported.
9. A voice interaction device, characterized in that: include: an area determination module, configured to, in response to detecting a voice interaction start request, perform target detection based on the captured image and determine a target area where a requester who initiated the start request is located; A voice zone locking module, used to lock a first voice zone of the voice interaction based on the target area; wherein the voice interaction is performed based on a first voice collected in the first voice zone; A risk prediction module is used to predict whether there is a risk of change in the first tone zone currently locked; a loop execution module, configured to, in response to a risk of change in the currently locked first sound zone, re-execute the step of performing target detection based on the captured image and determining the target area where the requester who initiated the opening request is located, and subsequent steps; Among them, the risk prediction module includes an acquisition submodule, which is used to acquire a second voice collected in a second sound zone; wherein, the second sound zone is adjacent to the first sound zone; the risk prediction module includes a prediction submodule, which is used to make predictions based on the first voice and the second voice to determine whether there is a risk of change in the currently locked first sound zone.
10. A voice interaction device, characterized in that: It includes a microphone, a camera, a memory and a processor, wherein the microphone, the camera and the memory are respectively coupled to the processor, the memory stores program instructions, and the processor is used to execute the program instructions to implement the voice interaction method described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the voice interaction method described in any one of claims 1 to 8.
Citation Information
Patent Citations
Electronic device for controlling speaker and operating method thereof
CN110073678A
Speech recognition method and device, equipment and medium
CN111640428A
Voice control method and system based on image and voiceprint recognition and vehicle
CN111724797A
Voice interaction method and device, computer readable storage medium and electronic equipment
CN112397065A
Voice processing method and device, storage medium and electronic equipment
CN113270095A
