Voice interaction method and device for voice equipment

By introducing a switching module and multiple voice modules into the voice device, and selecting the main module for interaction according to the working status, the problem of multiple sets of voice service conflicts in the existing technology is solved, and multiple sets of voice services can be used on one device without human intervention. Voice service features.

CN115346523BActive Publication Date: 2024-10-22MEDIATEK SINGAPORE PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110529498.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-14
Publication Date
2024-10-22
Estimated Expiration
2041-05-14

AI Technical Summary

Technical Problem

Existing voice devices can only support one set of voice services. Users who want to use multiple sets of voice services need to purchase multiple devices, and multiple sets of voice services on the same device are prone to conflicts.

Method used

Design a voice device that includes a switching module and at least two voice modules. By determining the working status of each voice module, a main voice module is selected for interaction and the interaction of the remaining modules is suspended to avoid conflicts.

Benefits of technology

It enables multiple sets of voice services to be used on one voice device without manual switching, solves the problem of conflict between multiple sets of voice services in the device, and improves user experience and device efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115346523B_ABST
    Figure CN115346523B_ABST
Patent Text Reader

Abstract

The present application discloses a voice interaction method and device for a voice device. The voice device includes at least two voice modules, and the voice interaction method for the voice device includes: determining the working status of at least two voice modules; based on a preset principle and the working status of at least two voice modules, selecting one voice module from at least two voice modules for voice interaction, and suspending the voice interaction of the remaining voice modules. The present application can solve the problem of conflicts among multiple voice services in the same voice device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of voice equipment, and in particular to a voice interaction method and device for a voice equipment. Background Art

[0002] Currently, most voice devices only support one set of voice services. For example, Xiaomi speakers only support Xiaomi voice services, Google alarm clocks only support Google voice services, and some modern smart cars only support Alex voice services. In this way, users can only use one set of voice services on one voice device. If users want to use two or more voice services, they need to buy more than two devices.

[0003] In order to allow a user to use two or more voice services on a voice device, at least two voice services may be loaded on the same voice device, but this may cause a voice service conflict problem. Summary of the invention

[0004] The present application provides a voice interaction method and apparatus for a voice device to solve the problem of conflicts among multiple voice services in the same voice device.

[0005] To solve the above problems, the present application provides a voice interaction method of a voice device, the voice device includes a switching module and at least two voice modules, and the voice interaction method includes:

[0006] Determining the working status of at least two voice modules;

[0007] Based on a preset principle and the working status of at least two voice modules, one voice module is selected from the at least two voice modules for voice interaction, and the voice interactions of the remaining voice modules are suspended.

[0008] In order to solve the above problems, the present application also provides a voice device, which includes:

[0009] Recording devices;

[0010] Playback device;

[0011] At least two voice modules, each voice module is in communication connection with the recording device and the playing device;

[0012] The switching module is connected in communication with at least two voice modules, the recording device and the playing device, and is used to execute the above method.

[0013] To solve the above problems, the present application also provides a voice device, which includes a recording device, a playback device and a processor; the processor is communicatively connected to the recording device and the playback device, and the processor is used to execute instructions to implement the above method.

[0014] To solve the above problems, the present application also provides a computer-readable storage medium for storing instructions / program data, which can be executed to implement the above method.

[0015] The voice device of the present application can select one voice module from multiple voice modules for voice interaction based on the working status of the voice modules corresponding to the multiple voice services, and suspend the voice interaction of the remaining voice modules. That is, the voice device can determine the voice module for voice interaction based on the working status of the multiple voice modules. Therefore, the present invention can solve the problem of conflicts among multiple voice services in the voice device without the need for manual determination. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 It is a structural schematic diagram of a traditional voice device implementation method;

[0018] Figure 2 It is a structural diagram of an implementation method of a voice device of the present application;

[0019] Figure 3 It is a structural diagram of an implementation method of a voice device of the present application;

[0020] Figure 4 It is a flowchart of an implementation method of a voice interaction method of a voice device of the present application;

[0021] Figure 5 It is a flowchart of an implementation method of a voice interaction method of a voice device of the present application;

[0022] Figure 6 This is a schematic diagram of the principle of an embodiment of a voice interaction method of a voice device of the present application;

[0023] Figure 7 It is a flowchart of an implementation method of a voice interaction method of a voice device of the present application;

[0024] Figure 8 This is a schematic diagram of the principle of an embodiment of a voice interaction method of a voice device of the present application;

[0025] Fig. 9 This is a schematic diagram of the principle of an embodiment of a voice interaction method of a voice device of the present application;

[0026] Fig.10 This is a schematic diagram of the principle of an embodiment of a voice interaction method of a voice device of the present application;

[0027] Fig.11 It is a flowchart of an implementation method of a voice interaction method of a voice device of the present application;

[0028] Fig.12 This is a schematic diagram of the principle of an embodiment of a voice interaction method of a voice device of the present application;

[0029] Fig.13 It is a flowchart of an implementation method of a voice interaction method of a voice device of the present application;

[0030] Fig.14 This is a schematic diagram of the principle of an embodiment of a voice interaction method of a voice device of the present application;

[0031] Fig.15 It is a structural diagram of an implementation method of a voice device of the present application;

[0032] Fig.16 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0033] Description and drawings illustrate the principle of the present application. It will therefore be appreciated that those skilled in the art will be able to design various arrangements, although the arrangement is not explicitly described or shown herein, it embodies the principle of the present application and is included in the scope of the present application. In addition, all examples described herein are mainly and explicitly intended for teaching purposes, to assist readers in understanding the principles of the present application and the concepts provided by the inventors, so as to deepen the field, and all examples should not be interpreted as being limited to such specific examples and conditions of elaboration. In addition, unless otherwise specified (for example, "or in addition" or "or in an alternative"), the term "or" as used herein refers to non-exclusive "or" (that is, "and / or"). Moreover, the various embodiments described herein are not necessarily mutually exclusive, because some embodiments can be combined with one or more other embodiments to form new embodiments.

[0034] Currently, most voice devices only support one set of voice services. For example, Xiaomi speakers only support Xiaomi voice services, Google alarm clocks only support Google voice services, and some modern smart cars only support Alex voice services. In this way, users can only use one set of voice services on one voice device. If users want to use two or more voice services, they need to buy more than two devices.

[0035] In order to allow a user to use two or more voice services on a voice device, at least two voice services may be loaded on the same voice device, but this may cause a voice service conflict problem.

[0036] In order to solve the problem of conflicts among multiple voice services in the same voice device, the on / off state of each voice service in the same voice device can be controlled by pressing a button to restart the system, so as to switch multiple voice services in the same voice device by pressing a button to restart the system. Figure 1 As shown, when one voice service is turned on by the key restart system, the other voice services are turned off. In such a voice device with a key restart system, multiple voice systems cannot be turned on (alive) at the same time, and manual switching is required to select the voice service to be used.

[0037] Based on this, the present application proposes a voice device that does not require manual switching of voice services.

[0038] Specifically, Figure 2 As shown, the voice device 10 has a switching module 12. When there is a conflict among multiple voice services in the voice device 10, the switching module 12 can select one from the multiple voice modules 11 as the main voice module based on the working states of the voice modules 11 corresponding to the multiple voice services, and use the remaining voice modules as backup voice services, and restrict the activities of the backup voice modules, so that the voice device 10 can perform voice interaction through the main voice module, that is, the voice device 10 can determine the voice module 11 for voice interaction with the user based on the operating conditions of the multiple voice modules 11 without manual determination.

[0039] The specific structure of the voice device 10 can be as follows Figure 3 As shown, the voice device 10 includes a recording device 14 , a playing device 13 , a switching module 12 and at least two voice modules 11 .

[0040] The recording device 14 may include recording hardware 141 (microphone or earphone, etc.) and recording software 142 (input driver). The playback device 13 may include playback hardware 131 (speaker or earphone, etc.) and playback software 132 (output driver).

[0041] Each voice module 11 is integrated with a set of voice services, and different voice modules 11 have different integrated voice services. Each voice module 11 is connected to the recording device 14 and the playback device 13 in communication, so that each voice module 11 can obtain the voice collected by the recording device 14 from the recording device 14, and can send its own playback content (for example, the reply content in response to the user's request) to the playback device 13 for the playback device 13 to play.

[0042] Each voice module 11 may be integrated with a keyword recognition submodule 111 , a voice analysis submodule 112 and a playback control submodule 113 . When each voice module 11 obtains the collected voice from the recording device 14, the keyword recognition submodule 111 performs keyword recognition on the collected voice; if the keyword recognition submodule 111 recognizes a keyword from the collected voice (for example, the keyword "Google" is recognized from "OK, Google! what's the time"), the collected voice will be sent to the voice analysis submodule 112. When the keyword recognition submodule 111 recognizes the keyword, the working state of the voice module 11 can be changed from the standby state (IDLE) to the awake state (Hotword); the voice analysis submodule 112 performs voice analysis on the collected voice. When the voice analysis submodule 112 performs voice analysis on the collected voice, the working state of the voice module 11 can be changed from the awake state (Hotword) to the parsing state (Detecting); if the voice analysis submodule 112 completes the parsing of the collected voice, it will let the playback control submodule 113 send the playback content (for example, the reply content in response to the user's request) to the playback device 13 so that the playback device 13 can play it. At this time, the working state of the voice module 11 changes from the parsing state (Detecting) to the feedback state (Responding). When the playing device 13 finishes playing the content played by the voice module 11, the state of the voice module 11 changes to the standby state again.

[0043] The switching module 12 is used to select a voice module from the multiple voice modules 11 for voice interaction and suspend the voice interaction of the remaining voice modules based on preset principles and the respective working states of the voice modules 11 corresponding to the multiple voice services when there is a conflict between the multiple voice services in the voice device 10, or when the working state of at least one voice module 11 changes, thereby avoiding conflicts between the multiple voice services in the same voice device 10.

[0044] Among them, pausing the voice interaction of the voice module may refer to: when the user issues a voice command to the voice device, the voice device will not reply to the user through the paused voice module. The method of pausing the voice interaction of the remaining voice modules is not limited, as long as the purpose is achieved. For example, pausing / interrupting / stopping the work of the remaining voice modules (exemplarily, allowing the remaining voice modules to pause keyword recognition of the collected voice of the recording device 14, or allowing the remaining voice modules to pause sending their own playback content to the playback device 13); not playing the playback content of the remaining voice modules (for example, pausing / stopping the playback content of the relevant voice modules, or muting the playback content of the relevant voice modules); restoring the remaining voice modules to standby mode; maintaining the current state of the remaining voice modules; caching the playback content of the remaining voice modules; not providing the collected voice to the remaining voice modules; or disconnecting the remaining voice modules, etc., the selection of these pause methods may be slightly different in different scenarios.

[0045] Optionally, the switching module 12 is connected to each voice module 11 in communication, so that the switching module 12 can obtain the working state information from each voice module 11, so that the switching module 12 selects a voice module 11 for voice interaction based on the working states of multiple voice modules 11, and suspends the voice interaction of the remaining voice modules 11. In addition, the switching module 12 can also send instructions to the voice module 11 so that the voice module 11 performs the operation corresponding to the instruction. For example, the switching module 12 can send an instruction to restore the standby state to the voice module 11 so that the corresponding voice module 11 stops the current work and returns to the standby state. For example, the switching module 12 can send a pause instruction to the voice module 11 so that the corresponding voice module 11 suspends the execution of the current work (for example, maintains the corresponding working state). For example, the switching module 12 can send a work continuation instruction to the voice module 11 so that the corresponding voice module 11 resumes the execution of the previous work (for example, starting from the current working state, continuing to execute the subsequent working state).

[0046] The switching module 12 can be connected to the playback device 13 in communication. The switching module 12 can send various control instructions to the playback device 13, such as an instruction to play the playback content of at least one voice module 11, and an instruction not to play the playback content of at least one voice module 11 (for example, an instruction to pause / stop playing the playback content of at least one voice module 11, an instruction to mute the playback content of at least one voice module 11), and an instruction to resume playing the playback content of at least one voice module 11 (for example, an instruction to continue playing the playback content of at least one voice module 11, or an instruction to cancel the mute of the playback content of at least one voice module 11). When the playback device 13 obtains an instruction not to play the playback content of a certain voice module 11 (for example, not to play the playback content of the AVS voice module) from the switching module 12, even if the playback device 13 obtains the playback content of the voice module, the playback device 13 will not broadcast it. For the playback device 13, the priority of the instruction issued by the switching module 12 is higher than the priority of the instruction issued by the voice module 11.

[0047] The switching module 12 can be connected to the recording device 14 for communication. The switching module 12 can send various control instructions to the recording device 14, for example, an instruction not to send the collected voice to a specific voice module, for example, an instruction not to send the collected voice to the AVS voice module. In this way, the recording device 14 responds to the instruction not to send the collected voice to the specific voice module, and only sends the collected voice to other voice modules 11 in the voice device 10 except the specific voice module, so that the specific voice module will not receive the collected voice. In addition, the switching module 12 can also send an instruction to the recording device 14 to send the collected voice only to a specific voice module, for example, "an instruction to send the collected voice to the AVS voice module", so that the recording device 14 can only send the currently collected voice to the AVS voice module.

[0048] In addition, the voice device 10 of the present application may also include an echo cancellation module, which is used to perform echo cancellation on the collected voice of the playback device 13.

[0049] In one embodiment, the echo cancellation module can be integrated into the voice module 11 (for example, in the keyword recognition submodule 111), and each voice module 11 can be integrated with an echo cancellation module, so that after the voice module 11 obtains the collected voice, it will perform echo cancellation on the collected voice to ensure that the voice module 11 can accurately determine whether there are keywords in the collected voice and perform voice analysis to ensure the quality of voice interaction.

[0050] In another embodiment, the echo cancellation module may be integrated into the recording device 14. Each time the recording device 14 collects a voice, the echo cancellation module in the recording device 14 may perform echo cancellation on the collected voice, and the recording device 14 sends the collected voice after echo cancellation to the voice module 11. To ensure the quality of echo cancellation, the playback device 13 may send the playback content to the echo cancellation module, so that the echo cancellation module performs echo cancellation on the collected voice based on the playback content.

[0051] The voice interaction method of the voice device 10 will be described in detail below. The flowchart of the voice interaction method in one embodiment is as follows: Figure 4 As shown, the voice interaction method of the voice device of this embodiment includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The execution order of each step of this embodiment can be changed arbitrarily without violating the technical idea of ​​this application.

[0052] S101: Determine the working status of at least two voice modules.

[0053] The working status of at least two voice modules in the voice device can be determined first, so that based on a preset principle and the working status of the at least two voice modules, one voice module is selected from the at least two voice modules for voice interaction, and the voice interaction of the remaining voice modules is suspended.

[0054] Optionally, when the working state of the voice module changes, the voice module may inform the switching module of its changed working state, so that the switching module knows the real-time working state of each voice module.

[0055] In another embodiment, the switching module may inquire each voice module about the working status of each voice module at intervals.

[0056] Therefore, step S101 described in this embodiment may occur when the working state of any voice module changes, or may occur at a time point when the switching module periodically inquires about the working state of each voice module.

[0057] The working state of the voice module may include a standby state (IDLE), a wake-up state (Hotword), a parsing state (Detecting) and a feedback state (Responding).

[0058] S102: Based on a preset principle and the working status of at least two voice modules, one voice module is selected from the at least two voice modules for voice interaction, and the voice interactions of the remaining voice modules are suspended.

[0059] After determining the working status of at least two voice modules, the switching module can select one voice module from the at least two voice modules for voice interaction based on a preset principle and the working status of the at least two voice modules, and suspend the voice interaction of the remaining voice modules.

[0060] Optionally, the method of pausing the voice interaction of the remaining voice modules includes but is not limited to at least one of the following methods: pausing / interrupting / stopping the work of the remaining voice modules (for example, pausing keyword recognition of the collected voice of the recording device); controlling the playback device not to play the playback content of the remaining voice modules (for example, pausing / stopping the playback content of the relevant voice module, or muting the playback content of the relevant voice module); restoring the remaining voice modules to standby state; maintaining the current state of the remaining voice modules; caching the playback content of the remaining voice modules; controlling the recording device not to provide the collected voice to the remaining voice modules; disconnecting the remaining voice modules, etc. The selection of these pause actions may be slightly different in different scenarios.

[0061] It is understandable that when all voice modules are in normal working condition, all voice modules can obtain collected audio from the recording device and can perform keyword recognition on the collected audio, so that when a user uses a voice service, the voice module corresponding to the voice service can respond in time.

[0062] In addition, in some embodiments, when the working state of the voice module selected for voice interaction changes to a feedback state or a standby state, the voice interaction of the remaining paused voice modules can be restored to normal operation. The restoration of normal operation includes but is not limited to: restoring the work of the voice module (for example, resuming keyword recognition of the collected voice of the recording device, and restoring the normal state transition process); controlling the playback device to play the playback content of the voice module; controlling the recording device to provide the collected voice to the voice module, etc. In this way, the remaining voice modules that have resumed normal operation can respond to the constraints of various preset principles provided by the present invention. When the working state of the voice module selected for voice interaction changes to a feedback state, the voice interaction of the remaining paused voice modules is restored to normal operation, which can enable multiple voice services of the voice module to achieve a short-term simultaneous operation state (for example, while the selected voice module is performing voice broadcasting, the restored voice module can normally monitor the voice instructions used; or while the selected voice module is performing voice broadcasting, the restored voice module can normally perform keyword analysis, etc.), which can improve the operating efficiency of the voice device.

[0063] In this embodiment, based on the working status of each voice module corresponding to the multiple voice services, a voice module is selected from the multiple voice modules, and the voice device performs voice interaction through the selected voice module, and the voice interaction of the remaining voice modules is suspended. That is, the voice device can determine the voice module for voice interaction with the user based on the operating conditions of the multiple voice modules, thereby solving the problem of conflict among multiple voice services in the voice device without the need for manual determination.

[0064] Optionally, different preset principles can be set corresponding to different scenarios, that is, in a specific implementation, the voice device can implement one or more of the preset principles of the present invention. The following content will describe four of the preset principles in detail. As an example, the voice device only implements one of the preset principles at the same time. In addition, the voice device can switch between different preset principles, and the time point of switching is usually preferably when all voice modules are in the IDLE state. For example, in the first time period, the voice device can implement the first call first response principle, in the second time period, the voice device can switch to implement the call interruption principle, in the third time period, the voice device can switch to implement the analysis non-interruptible principle, and in the fourth time period, the voice device can switch to the step-by-step response principle. When to implement which preset principle can be freely set by the user.

[0065] The first preset principle, the first-call-first-response principle, will be introduced in detail below. Figure 5-Figure 6 As shown, the voice interaction method of the voice device of this embodiment includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The steps of this embodiment can be changed in any execution order without violating the technical idea of ​​this application.

[0066] S201: Determine the working status of at least two voice modules.

[0067] S202: If it is confirmed that one voice module is in an awake state and the other voice modules are in a standby state based on the working status of at least two voice modules, the awakened voice module is selected as the voice module for voice interaction, and the voice interaction of the remaining voice modules is suspended.

[0068] As mentioned above, optionally, when the working state of the voice module changes, the voice module may inform the switching module of its changed working state, so that the switching module knows the real-time working state of each voice module. In addition, in another embodiment, the switching module may inquire about the working state of each voice module from each voice module every time period. Therefore, step S201 described in this embodiment may occur when the working state of any voice module changes, or may occur at the time point when the switching module periodically inquires about the working state of each voice module.

[0069] The working state of the voice module may include a standby state (IDLE), a wake-up state (Hotword), a parsing state (Detecting) and a feedback state (Responding).

[0070] In this embodiment, the method of pausing the voice interaction of the voice module may include at least one of the following methods: controlling the playback device not to play the playback content of the voice module (for example, pausing / stopping the playback content provided by the voice module, or muting the playback content provided by the voice module); keeping the voice module in standby mode; controlling the recording device not to provide the collected voice to the voice module; disconnecting the voice module, etc.

[0071] like Figure 6 As shown, if the user uses the GVA voice service first, the GVA voice service will be responded to first; if the user uses the AVS service first, the AVS service will be responded to first. That is, the judgment is based on who enters the wake-up (hotword) state first. The voice module that enters the hotword state first will be used as the voice module for voice interaction, and the voice services of other voice modules will be suspended. Figure 6 In the embodiment of the present invention, as an example, the GVA first enters the awakening (hotword) state, so in this embodiment, the switching module (marked as MiraVoice in the figure) uses the GVA as the voice module for voice interaction and suspends the voice interaction of the AVS, and as an example, Figure 6 The way to suspend AVS is to keep the AVS voice module in standby mode.

[0072] Optionally, in this embodiment, when the selected voice module (eg, Figure 6 When the working state of the GVA voice module in the voice module is changed to the feedback state or the standby state, the voice interaction of the remaining voice modules can be restored to normal operation. In this embodiment, the restoration of normal operation includes but is not limited to: restoring the operation of the voice module (for example, enabling the voice module to normally perform the state transition process); controlling the playback device to play the playback content of the voice module; controlling the recording device to provide the collected voice to the voice module, etc. In this way, the remaining voice modules that have been restored to normal operation can respond to the constraints of various preset principles provided by the present invention again.

[0073] The second preset principle, the call interruption principle, will be described in detail below. Figure 7 , Figure 8 , Fig. 9 and Fig.10 As shown. Figure 7As shown, the voice interaction method of the voice device of this embodiment includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The steps of this embodiment can be changed in any execution order without violating the technical idea of ​​this application.

[0074] S301: Determine the working status of at least two voice modules.

[0075] S302: If, based on the working status of at least two voice modules, it is confirmed that at least one voice module is in the awake state, and the remaining voice modules are in any one of the analysis state, feedback state or standby state, the voice module that last enters the awake state is selected as the voice module for voice interaction, and the voice interaction of the remaining voice modules is suspended.

[0076] As mentioned above, optionally, when the working state of the voice module changes, the voice module may inform the switching module of its changed working state, so that the switching module knows the real-time working state of each voice module. In addition, in another embodiment, the switching module may inquire about the working state of each voice module from each voice module every time period. Therefore, step S301 described in this embodiment may occur when the working state of any voice module changes, or may occur at the time point when the switching module periodically inquires about the working state of each voice module.

[0077] The working state of the voice module may include a standby state (IDLE), a wake-up state (Hotword), a parsing state (Detecting) and a feedback state (Responding).

[0078] In this embodiment, the pause may include at least one of the following ways: pause / interrupt / stop the operation of the voice module (for example, pause keyword recognition of the collected voice of the recording device), control the playback device not to play the playback content of the voice module (for example, pause / stop playback of the playback content provided by the voice module, or mute the playback content provided by the voice module), restore the voice module to standby state, maintain the current state of the voice module, control the recording device not to provide the collected voice to the voice module, disconnect the voice module, etc. In a specific implementation, a suitable pause action can be selected according to the actual application scenario. In a specific implementation, when the remaining voice modules are in standby state, this embodiment becomes the aforementioned first preset principle.

[0079] like Figure 8As shown, if the user uses the AVS voice service first, the AVS voice service will be responded to first. In this embodiment, when the AVS is in the Responding state, the GVA voice service enters the hotword state. In response to the GVA voice service entering the hotword state, the switching module (marked as MiraVoice in the figure) uses the GVA voice module as the voice module for voice interaction and pauses (interrupts) the playback of the AVS. Figure 8 In the embodiment, as an example, the way to pause AVS is to restore the AVS voice module to standby mode and control the playback device not to play the playback content of the AVS voice module (for example, pause / stop playing the playback content provided by the voice module, or mute the playback content provided by the voice module).

[0080] like Fig. 9 , the user uses the GVA voice service first, then the GVA voice service will be responded to first. In this embodiment, when the GVA is in the wake-up (hotword) state, the AVS voice service enters the wake-up (hotword) state. In response to the AVS voice service being the latest voice module to enter the wake-up state, the switching module (marked as MiraVoice in the figure) uses the AVS voice module as the voice module for voice interaction and suspends (interrupts) the GVA voice service. Fig. 9 In the embodiment, as an example, the way to pause GVA is to restore the GVA voice module to standby state and control the playback device not to play the playback content of the GVA voice module (for example, pause / stop playing the playback content provided by the voice module, or mute the playback content provided by the voice module), and control the recording device not to provide the collected voice to the voice module GVA.

[0081] like Fig.10 , the user uses the GVA voice service first, then the GVA voice service will be responded to first. In this embodiment, when the GVA is in the analyzing (Detecting) state, the AVS voice service enters the awakening (hotword) state. In response to the AVS voice service entering the awakening state, the switching module (marked as MiraVoice in the figure) uses the AVS voice module as the voice module for voice interaction and suspends (interrupts) the original GVA voice service. Fig.10 In the embodiment, as an example, the way to pause GVA is to disconnect the GVA voice module and control the playback device not to play the playback content of the GVA voice module (for example, pause / stop playing the playback content provided by the voice module, or mute the playback content provided by the voice module), and control the recording device not to provide the collected voice to the voice module GVA.

[0082] Optionally, in the call interruption principle, when the selected voice module (e.g. Figure 8The GVA voice module in Fig. 9 and Fig.10 When the working state of the AVS voice module in the system changes to the feedback state or the standby state, the remaining voice modules (for example, Figure 8 AVS voice module in Fig. 9 and Fig.10 The voice interaction of the GVA voice module in the . Figure 8 In the embodiment of, as an example, the way to restore the normal operation of AVS is to enable AVS to switch between various states normally and control the playback device to play the playback content of the AVS voice module. Fig. 9 In the embodiment, as an example, the normal operation of GVA is restored by enabling GVA to switch between various states normally and controlling the playback device to play the playback content of the AVS voice module and controlling the recording device to provide the collected voice to the voice module GVA. Fig.10 In the embodiment of the invention, as an example, the normal operation of GVA is restored by reconnecting the GVA voice module and controlling the playback device to play the playback content of the GVA voice module, and controlling the recording device to provide the collected voice to the voice module GVA. In this way, the remaining voice modules in the normal operation state can respond to the constraints of various preset principles provided by the present invention again.

[0083] The third preset principle, the principle of uninterruptible analysis, will be introduced in detail below. Figure 11-Figure 12 As shown, the voice interaction method of the voice device of this embodiment includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The steps of this embodiment can be changed in any execution order without violating the technical idea of ​​this application.

[0084] S401: Determine the working status of at least two voice modules.

[0085] S402: If, based on the working status of at least two voice modules, it is confirmed that one voice module is in a parsing state and the other voice modules are in a wake-up state or a standby state, the voice module in the parsing state is selected as the voice module for voice interaction, and the voice interaction of the remaining voice modules is suspended.

[0086] In this embodiment, the pause may include: pausing / interrupting / stopping the operation of the voice module (for example, pausing keyword recognition of the collected voice of the recording device), controlling the playback device not to play the playback content of the voice module (for example, pausing / stopping the playback content provided by the voice module, or muting the playback content provided by the voice module), keeping the voice module in the current state, restoring the voice module to the standby state, controlling the recording device not to provide the collected voice to the voice module, disconnecting the voice module, etc. In a specific implementation, a suitable pause action may be selected according to the actual application scenario.

[0087] As an example, Fig.12 As shown in the figure, when the user requests two voice services at the same time, the switching module (marked as MiraVoice in the figure) selects the voice module that enters the Detecting state first as the voice module for voice interaction and suspends the voice interaction of the remaining voice modules. Fig.12 In the Detecting state, the GVA voice service enters the Detecting state first, so it is selected as the voice module for voice interaction and the AVS voice interaction is suspended. Fig.12 In the embodiment of the present invention, as an example, the method of pausing AVS is to restore the state of AVS to the standby state, control the playback device not to play the playback content of the AVS voice module (for example, pause / stop playback of the playback content provided by the voice module, or mute the playback content provided by the voice module), and control the recording device not to provide the collected voice to the voice module AVS. Optionally, in this embodiment, when the selected voice module (for example, Fig.12 When the working state of the GVA voice module in the system changes to the feedback state or the standby state, the voice interaction of the remaining voice modules can be restored to normal operation. Fig.12 In the embodiment, as an example, the normal operation of AVS is restored so that AVS can make normal state transition, control the playback device to play the playback content of the AVS voice module, and control the recording device to provide the collected voice to the voice module AVS. In this way, the remaining voice modules that have been restored to normal operation can respond to the constraints of various preset principles provided by the present invention again.

[0088] The fourth preset principle, the step-by-step response principle, will be introduced in detail below. Figure 13-14 As shown, the voice interaction method of the voice device of this embodiment includes the following steps: It can be understood that it should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The execution order of each step of this embodiment can be changed arbitrarily without violating the technical ideas of this application.

[0089] S501: Determine the working status of at least two voice modules.

[0090] S502: If, based on the working status of at least two voice modules, it is confirmed that the working status of at least two voice modules has been switched to the awake state, and the state switching time of the voice module that was last switched to the awake state and the state switching time of at least one other voice module that was switched to the awake state are less than a preset duration, one voice module for voice interaction is selected from all voice modules whose state switching time interval is less than the preset duration in a preset order, and the voice interaction of the remaining voice modules is suspended.

[0091] like Fig.14 As shown, when the user requests two voice services (GVA and AVS) at the same time, that is, the time interval between the voice modules corresponding to the two voice services reaching the awake state is shorter than the preset duration, the switching module (marked as MiraVoice in the figure) will first select the voice module corresponding to one of the voice services (e.g., GVA) as the voice module for voice interaction, and suspend the voice interaction of the remaining voice modules (e.g., AVS). In this embodiment, the suspension includes keeping the voice module in the current state and buffering the running data of the voice module, so that when the corresponding voice module is subsequently selected as the voice module for voice interaction in a preset order, the subsequent voice interaction can be performed from the maintained state.

[0092] The preset sequence may be the sequence in which the voice modules are switched to the wake-up state ( Fig.14 The embodiment shown is in this order). Or the preset order can be the order of priority of the voice modules. The preset order can also be the order in which the switching module randomly arranges and combines the voice modules.

[0093] If the currently selected voice module has switched to the feedback state or the standby state, and the currently selected voice module is not the last voice module in the preset order, then continue to execute the steps of selecting a voice module for voice interaction from all voice modules whose state switching time interval is less than the preset time length in the preset order, and suspending the voice interaction of the remaining voice modules, until the selected voice module is the last voice module in the preset order. Fig.14 In the illustrated embodiment, when the GVA has switched to the feedback state or the standby state, and because the GVA voice module is not the last voice module in the preset order, the AVS continues to be selected as the voice module for voice interaction. In this embodiment, after the AVS is selected as the voice module for voice interaction, the AVS continues to execute subsequent states from the maintained wake-up state, that is, continues to execute analysis, response and other states.

[0094] See also Fig.15 , Fig.15It is a structural diagram of an implementation of the voice device 20 of the present application. The voice device 20 of the present application includes a processor 22, a recording device and a playback device, the processor 22 is coupled to the recording device and the playback device, and the processor 22 is used to execute instructions to implement the method provided by any implementation of the voice interaction method of the present application and any non-conflicting combination.

[0095] The voice device 20 can be a terminal such as a mobile phone, a laptop computer, or a server, or an Internet of Things device such as a refrigerator, an air conditioner, etc. that forms a local area network with the foot wear device.

[0096] The processor 22 may also be referred to as a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip having signal processing capabilities. The processor 22 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 gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor, or the processor 22 may also be any conventional processor, etc.

[0097] The voice device 20 may further include a memory 21 for storing instructions and data required for the processor 22 to run.

[0098] See also Fig.16 , Fig.16 It is a schematic diagram of the structure of the computer-readable storage medium in the implementation mode of the present application. The computer-readable storage medium 30 of the embodiment of the present application stores instructions / program data 31, and when the instructions / program data 31 are executed, the method provided by any embodiment of the above-mentioned method of the present application and any non-conflicting combination is implemented. Among them, the instructions / program data 31 can form a program file and be stored in the above-mentioned storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a computer, a server, a mobile phone, a tablet and other devices.

[0099] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0100] 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.

[0101] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0102] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A voice interaction method for a voice device, characterized in that: The voice device includes at least two voice modules, and the voice interaction method includes: Determining the working status of the at least two voice modules; Based on a preset principle and the working status of the at least two voice modules, select one voice module from the at least two voice modules for voice interaction, and suspend the voice interaction of the remaining voice modules; The working state is a standby state, a wake-up state, a parsing state or a feedback state. When each of the voice modules recognizes a keyword from the collected voice, it changes from the standby state to the wake-up state. When each of the voice modules performs voice analysis on the collected voice, it changes from the wake-up state to the parsing state. When each of the voice modules completes the parsing of the collected voice and sends the playback content to the playback device, it changes from the parsing state to the feedback state. After the voice interaction of the remaining voice modules is suspended, in response to the working state of the selected voice module being changed to the feedback state or the standby state, the voice interaction of the remaining voice modules is restored to normal operation.

2. The voice interaction method according to claim 1, characterized in that: The step of selecting one voice module from the at least two voice modules for voice interaction based on a preset principle and the working status of the at least two voice modules, and suspending the voice interaction of the remaining voice modules comprises: In response to the first voice module being the voice module that has recently entered the awakened state, the first voice module is selected for voice interaction, and the voice interactions of the remaining voice modules are suspended.

3. The voice interaction method according to claim 2, characterized in that: In response to the first voice module being the voice module that has recently entered the awakened state, the step of selecting the first voice module for voice interaction and pausing the voice interactions of the remaining voice modules includes: If, based on the working status of the at least two voice modules, it is confirmed that at least one voice module is in the awake state, and the remaining voice modules are in any one of the analysis state, feedback state or standby state, the voice module that has recently entered the awake state is selected as the voice module for voice interaction, and the voice interaction of the remaining voice modules is paused.

4. The voice interaction method according to claim 1, characterized in that: The step of selecting one voice module from the at least two voice modules for voice interaction based on a preset principle and the working status of the at least two voice modules, and suspending the voice interaction of the remaining voice modules comprises: In response to the first voice module being in a parsing state and the remaining voice modules not yet entering the parsing state, the first voice module is selected for voice interaction, and the voice interactions of the remaining voice modules are paused.

5. The voice interaction method according to claim 4, characterized in that: In response to the first voice module being in the parsing state and the other voice modules not yet entering the parsing state, the step of selecting the first voice module for voice interaction and pausing the voice interaction of the other voice modules comprises: If, based on the working status of the at least two voice modules, it is confirmed that one voice module is in a parsing state and the other voice modules are in a wake-up state or a standby state, the voice module in the parsing state is selected as the voice module for voice interaction, and the voice interaction of the remaining voice modules is suspended.

6. The voice interaction method according to any one of claims 1 to 5, characterized in that: The step of pausing the voice interaction of the remaining voice modules includes at least one of the following methods: Controlling the playback device not to play the playback content of the remaining voice modules; Controlling the recording device not to provide the collected voice to the remaining voice modules; Pause / interrupt / stop the operation of the remaining voice modules; Restoring the remaining voice modules to a standby state; Maintaining the current status of the remaining voice modules; Disconnect the remaining voice modules.

7. The voice interaction method according to claim 1, characterized in that: The step of restoring the voice interaction of the remaining voice modules to normal operation comprises at least one of the following methods: Controlling the playback device to play the playback content of the remaining voice modules; Controlling the recording device to provide the collected voice to the remaining voice modules; Enable the remaining voice modules to switch working states normally; Reconnect the remaining voice modules.

8. The voice interaction method according to claim 1, characterized in that: The step of selecting one voice module from the at least two voice modules for voice interaction based on a preset principle and the working status of the at least two voice modules, and suspending the voice interaction of the remaining voice modules comprises: If, based on the working status of the at least two voice modules, it is determined that the working status of at least two voice modules has been switched to the wake-up state, and the interval between the state switching time of the voice module that last switched to the wake-up state and the state switching time of at least one other voice module that switched to the wake-up state is less than a preset duration, one voice module for voice interaction is selected from all voice modules whose state switching time interval is less than the preset duration in a preset order, and the voice interaction of the remaining voice modules is suspended.

9. The voice interaction method according to claim 8, characterized in that: The pausing the voice interaction of the remaining voice modules includes: keeping the remaining voice modules in a current state and buffering the operation data of the remaining voice modules.

10. The voice interaction method according to claim 8 or 9, characterized in that: Also includes: If the currently selected voice module has switched to the feedback state or the standby state, and the currently selected voice module is not the last voice module in the preset order, repeat the steps of selecting a voice module for voice interaction from all voice modules whose state switching time interval is less than the preset time length in the preset order, and pausing the voice interaction of the remaining voice modules until the selected voice module is the last voice module in the preset order.

11. The voice interaction method according to claim 10, characterized in that: When a voice module for voice interaction is selected from all voice modules whose state switching time interval is less than the preset time length in a preset order, the selected voice module is made to perform subsequent voice interaction from the maintained state.

12. A voice device, characterized in that: The voice device comprises: Recording devices; Playback device; At least two voice modules, each of which is in communication with the recording device and the playing device; A switching module is communicatively connected with at least two of the voice modules, the recording device and the playing device, and is used to execute the method described in any one of claims 1-11.

13. A voice device, characterized in that: The voice device includes a recording device, a playback device and a processor; the processor is communicatively connected to the recording device and the playback device, and the processor is used to execute instructions to implement the method as described in any one of claims 1-11.

14. A computer-readable storage medium, characterized in that: The computer storage medium stores a program file capable of implementing any one of the methods in claims 1-11.