Method and device for controlling voice interaction equipment, voice interaction equipment and storage medium
By obtaining the status of people in the preset area in the voice interaction device to control the switching of interaction states between devices, it solves the problem of the voice interaction device monitoring the user's voice data in a wake-up-free state, and achieves the protection of user privacy and the security of the device. Easy to use.
Patent Information
- Application Number
- CN202310893051.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2025-01-21
AI Technical Summary
Voice interactive devices always monitor users' voice data in a wake-up-free interactive state, making it difficult for users to protect their privacy.
By obtaining the status of people in the preset area, the voice interaction device is controlled to switch between the wake-up interaction state and the wake-up-free interaction state. When there are people in the preset area, it switches to the wake-up-free interaction state to facilitate user use; when there are no people, it switches to the wake-up interaction state to protect user privacy.
It achieves the goal of ensuring user privacy while making it convenient for users to use voice interaction devices without affecting the user experience.
Smart Images

Figure CN119339716A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of voice interaction technology, for example, to a method and apparatus for controlling a voice interaction device, a voice interaction device, and a storage medium. Background Art
[0002] The voice interaction device is provided with a wake-up interaction mode. When the voice interaction device is running the wake-up interaction mode, the voice interaction device is in the wake-up interaction state. In this wake-up interaction state, the user needs to use a specific wake-up word to wake up the voice interaction device before he can interact with the voice interaction device by voice. This is more troublesome to use and will affect the user's experience of using the voice interaction device. Therefore, the operation mode of the voice interaction device is usually set to the wake-up-free interaction mode. When the voice interaction device is in the operation mode, the voice interaction device is in the wake-up-free interaction state. In this wake-up-free interaction state, the user can interact with the voice interaction device without a wake-up word, making it more convenient for the user to use the voice interaction device.
[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0004] In the related art, when the voice device is in a wake-up-free interaction state, it will always monitor the user's voice data, making it difficult to protect the user's privacy.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a method and apparatus for controlling a voice interaction device, a voice interaction device, and a storage medium, so as to balance protecting user privacy and facilitating the user to use the voice interaction device.
[0008] In some embodiments, the method for controlling a voice interaction device includes: obtaining the status of personnel in a preset area; and controlling the voice interaction device to switch between a wake-up interaction state and a non-wake-up interaction state according to the status of the personnel.
[0009] In some embodiments, after controlling the voice interaction device to switch between the wake-up interaction state and the wake-up-free interaction state, it includes: when the voice interaction device is in the wake-up-free interaction state, obtaining first voice data; and according to the first voice data, controlling the voice interaction device to switch to the wake-up interaction state.
[0010] In some embodiments, controlling the voice interaction device to switch to a wake-up interaction state based on the first voice data includes: responding to the first voice data when the first voice data includes a voice control instruction; after responding to the first voice data, controlling the voice interaction device to switch to a wake-up interaction state.
[0011] In some embodiments, controlling the voice interaction device to switch to a wake-up interaction state based on the first voice data includes: controlling the voice interaction device to switch to a wake-up interaction state when the first voice data does not include a voice control instruction.
[0012] In some embodiments, after controlling the voice interaction device to switch to the wake-up interaction state, it also includes: after a first preset time period, and when the status of people in the preset area is that there are people, controlling the voice interaction device to switch to the non-wake-up interaction state.
[0013] In some embodiments, obtaining the status of people in the preset area includes: obtaining the status of people in the preset area when receiving an instruction to start the wake-up-free interactive service sent by a user.
[0014] In some embodiments, the method for controlling a voice interaction device further includes: controlling the voice interaction device to issue a preset first voice prompt; the voice prompt indicates whether the voice interaction device is in a wake-up-free interaction state, or whether the user turns on a wake-up-free interaction service.
[0015] In some embodiments, the apparatus for controlling a voice interaction device comprises: a processor and a memory storing program instructions, wherein the processor is configured to execute the method for controlling a voice interaction device as described above when running the program instructions.
[0016] In some embodiments, the voice interaction device includes: a voice interaction device body; and the device for controlling the voice interaction device as described above is installed in the voice interaction device body.
[0017] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, they execute the method for controlling a voice interaction device as described above.
[0018] The method and apparatus for controlling a voice interaction device, the voice interaction device, and the storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:
[0019] By obtaining the status of people in the preset area, and controlling the voice interaction device to switch between the wake-up interaction state and the wake-up-free interaction state according to the status of the people. Since the user is usually in the preset area near the voice interaction device when performing voice interaction with the voice interaction device. In this way, when there are people in the preset area, it can be determined that the person has the idea of performing voice interaction with the voice interaction device. Therefore, the voice interaction device is controlled to switch between the wake-up interaction state and the wake-up-free interaction state according to the status of people in the preset area. When the voice interaction device switches to the wake-up interaction state, the user's voice data will not be obtained all the time, thereby protecting the user's privacy. When switching to the wake-up-free interaction state, it is convenient for the user to use the voice interaction device. This not only protects the user's privacy, but also facilitates the user to use the voice interaction device.
[0020] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0022] Figure 1 is a flow chart of a method for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0023] Figure 2 is another flowchart of a method for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0024] Figure 3 is another flowchart of a method for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0025] Figure 4 is another flowchart of a method for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0026] Figure 5 is another flowchart of a method for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0027] Figure 6 is another flowchart of a method for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0028] Figure 7is a schematic diagram of a device structure for controlling a voice interaction device provided by an embodiment of the present disclosure;
[0029] Figure 8 It is a structural diagram of a voice interaction device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0031] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0032] Unless otherwise stated, the term "plurality" means two or more.
[0033] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0034] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0035] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0036] When a user performs voice interaction with a voice interaction device, the user is usually within a preset area near the voice interaction device. Therefore, by detecting whether a user appears within a preset area near the voice interaction device, it can be determined whether the user wants to perform voice interaction with the voice interaction device. That is, if the user appears within the preset area, it is determined that the user wants to perform voice interaction with the voice interaction device. In this case, the voice interaction device is controlled to switch to a wake-up-free interaction state, which is convenient for the user to use the voice interaction device. If the user does not appear within the preset area, it is determined that the user does not want to perform voice interaction with the voice interaction device. In this case, the voice interaction device is controlled to switch to a wake-up interaction state, and the user needs to use a specific wake-up word to wake up the voice interaction device before voice interaction can be performed with the voice interaction device. The privacy of the user is protected. Thus, both the protection of user privacy and the convenience of users in using voice interaction devices are taken into account.
[0037] The method for controlling a voice interaction device provided in the embodiments of the present disclosure is applied to a voice interaction device. A voice interaction device is a household appliance with a voice interaction function. For example, an air conditioner, a refrigerator, or a stereo with a voice interaction function. The voice interaction device can communicate with other household appliances, user terminals, etc. other than itself by connecting to the Internet, or can directly communicate with other household appliances, user terminals, etc. other than itself as described above by means of Bluetooth, WiFi, etc.
[0038] In this embodiment, the voice interaction device is usually in a state of being connected to the mains when in use. Therefore, the voice interaction device is always in a working state when in use. In order to protect user privacy and facilitate user voice interaction, the voice interaction device needs to switch between the wake-up interaction state and the non-wake-up interaction state.
[0039] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for controlling a voice interaction device, which is applied to the voice interaction device. The method includes:
[0040] Step S101: The voice interaction device obtains the status of people in a preset area.
[0041] Step S102: The voice interaction device switches between a wake-up interaction state and a non-wake-up interaction state according to the status of the person.
[0042] The method for controlling a voice interaction device provided by an embodiment of the present disclosure is adopted, by obtaining the status of personnel in a preset area, and controlling the voice interaction device to switch between a wake-up interaction state and a wake-up-free interaction state according to the status of the personnel. Since the user is usually in a preset area near the voice interaction device when performing voice interaction with the voice interaction device. In this way, when there are people in the preset area, it can be determined that the person has the idea of performing voice interaction with the voice interaction device. Therefore, the voice interaction device is controlled to switch between a wake-up interaction state and a wake-up-free interaction state according to the status of the people in the preset area. When the voice interaction device switches to the wake-up interaction state, the user's voice data will not be obtained all the time, thereby protecting the user's privacy. When switching to the wake-up-free interaction state, it is convenient for the user to use the voice interaction device. This not only protects the user's privacy, but also facilitates the user to use the voice interaction device.
[0043] Optionally, the voice interaction device is provided with an ultrasonic sensor. The voice interaction device obtains the status of people in a preset area, including: the voice interaction device uses an ultrasonic sensor to obtain the status of people in the preset area. Among them, the status of people includes the presence of people and the absence of people. When a user performs voice interaction with a voice interaction device, he or she is usually located within a preset area near the voice interaction device so that the voice interaction device can pick up the user's voice. In this way, by detecting the status of people in the preset area, it can be determined whether there are people in the preset area. When there are people in the preset area, it is determined that the user may want to perform voice interaction with the voice interaction device and has the intention to perform voice interaction. Therefore, when the user has the intention to perform voice interaction, the voice interaction device can be promptly controlled to switch to a wake-up-free interaction state, thereby improving the accuracy of the voice interaction device switching to a wake-up-free state. Thereby, it is achieved that the privacy of the user is protected and it is convenient for the user to use the voice interaction device.
[0044] Further, the person status is determined in the following manner: when the ultrasonic sensor detects that there is a person in the preset area, the person status is determined as the person exists; when the ultrasonic sensor detects that there is no person in the preset area, the person status is determined as the person does not exist.
[0045] Optionally, the preset area is determined in the following manner: an area whose distance from the voice interaction device is greater than or equal to a first preset distance and less than or equal to a second preset distance is determined as a first candidate area. The first candidate area is determined as the preset area. The first preset distance is less than the second preset distance. When a user performs voice interaction with a voice interaction device, the user is generally located near the voice interaction device. In this way, by detecting whether there is a person in the preset area near the voice interaction device, it is possible to more accurately determine whether the user intends to use the voice interaction device.
[0046] Optionally, the first preset distance and the second preset distance are obtained in the following manner: determine the room area of the room where the voice interaction device is located. Perform a table lookup operation in a preset first data table using the room area. Find out the first preset distance and the second preset distance corresponding to the room area. The preset first data table stores the correspondence between the first preset distance, the second preset distance and the room area. For example, when the room area is 15 square meters, the corresponding first preset distance is 1 meter, and the second preset distance is 2.5 meters. When the room area is 30 square meters, the corresponding first preset distance is 1.5 meters, and the second preset distance is 3 meters.
[0047] Optionally, the first preset distance and the second preset distance are obtained by: receiving a preset area instruction sent by a user, and determining the first preset distance and the second preset distance according to the preset area instruction. The preset area instruction includes the first preset distance and the second preset distance. For example, if the preset area instruction sent by the user is to set the first preset distance to 1 meter and the second preset distance to 2.5 meters, the first preset distance is determined to be 1 meter and the second preset distance is determined to be 2.5 meters.
[0048] Optionally, the preset area is determined in the following manner: an area whose distance from the voice interaction device is greater than or equal to a first preset distance and less than or equal to a second preset distance is determined as a first candidate area. A second candidate area is determined, and the second candidate area is an area of the target angle. An overlapping area of the first candidate area and the second candidate area is determined as the preset area.
[0049] Further, the target angle is determined in the following manner: any point on the vertical median of the voice interaction device is determined as a vertex. In the horizontal direction of the vertex, a first ray and a second ray are respectively emitted to the left and right of the vertical median with the vertex as the starting point. The angle formed by the first ray, the second ray and the vertex is determined as the target angle, and the angle of the target angle is less than 180 degrees. For example, the target angle is 120 degrees.
[0050] When using a voice interaction device, the user is generally located directly in front of the voice interaction device, and the range of left and right deviation is not very large. In this way, by limiting the preset area to the overlap range of the first candidate area and the second candidate area, it is possible to further determine whether the user intends to use the voice interaction device based on the user's location habits when using the voice interaction device. This improves the accuracy of detecting whether the user wants to use the voice interaction device.
[0051] In some embodiments, the first ray and the second ray are symmetrical about the perpendicular bisector, that is, the perpendicular bisector bisects the target angle.
[0052] Optionally, obtaining the status of people in the preset area includes: obtaining the status of people in the preset area at preset time intervals. Usually, the status of people in the preset area does not change very frequently. In this way, by obtaining the status of people at preset time intervals, the status of people in the preset area can be determined in time and power consumption can be reduced. In some embodiments, the preset time interval is 5s.
[0053] Optionally, obtaining the status of people in the preset area includes: obtaining the status of people in the preset area when receiving an instruction from the user to start the wake-up-free interactive service. In this way, the status of people in the preset area is obtained only after receiving an instruction from the user to start the wake-up-free interactive service. Thus, the voice interaction device obtains the status of people in the preset area only when the user is aware of it, and switches between the wake-up interaction state and the wake-up-free interaction state according to the status of the people. The privacy of the user can be protected.
[0054] In one embodiment, the user sends a wake-up-free interactive service start instruction to the voice interaction device by performing voice interaction with the voice interaction device. In another embodiment, the user terminal establishes a communication connection with the voice interaction device. The user sends a wake-up-free interactive service start instruction to the voice interaction device through the user terminal. For example, the user terminal is a mobile phone, a tablet, or a smart bracelet.
[0055] Furthermore, according to the status of the person, the voice interaction device is controlled to switch between the wake-up interaction state and the wake-up-free interaction state, including: when the person status is that there is a person, the voice interaction device switches to the wake-up-free interaction state. When the person status is that there is no person, it switches to the wake-up interaction state. In this way, when the person status in the preset area is that there is a person, it means that the user is very likely to use the voice interaction device. At this time, by switching the voice interaction device to the wake-up-free interaction state, the user can directly perform voice interaction with the voice interaction device, which is convenient for the user to use the voice interaction device. When the person status in the preset area is that there is no person, it switches to the wake-up interaction state. At this time, the voice interaction device will not always obtain the user's voice data, thereby protecting the user's privacy. In this way, both the convenience of users using the voice interaction device and the protection of user privacy are taken into account.
[0056] Combination Figure 2 As shown, the embodiment of the present disclosure provides another method for controlling a voice interaction device, which is applied to the voice interaction device. The method includes:
[0057] Step S201: When receiving a command from a user to start a wake-up-free interactive service, the voice interaction device obtains the status of people in a preset area.
[0058] Step S202, determine whether the status of people in the preset area is that there are people. If yes, execute step S203; if not, execute step S204.
[0059] Step S203: the voice interaction device switches to a wake-up-free interaction state.
[0060] Step S204: the voice interaction device switches to a wake-up interaction state.
[0061] Furthermore, after controlling the voice interaction device to switch between the wake-up interaction state and the wake-up-free interaction state, it also includes: when the voice interaction device is in the wake-up-free interaction state, obtaining the first voice data. According to the first voice data, the voice interaction device is controlled to switch to the wake-up interaction state. Among them, the first voice data is audio data within a preset time period. In some embodiments, the preset time period is 15s. Because, when the voice interaction device is in the wake-up-free interaction state, the audio data of the area where the voice interaction device is located will be obtained all the time. When the voice interaction device is in the wake-up interaction state, the audio data of the area where the voice interaction device is located will be obtained after being awakened. In this way, when the voice interaction device is in the wake-up-free interaction state, it switches to the wake-up interaction state according to the first voice data. It can prevent the voice interaction device from always obtaining audio data in the area where the voice interaction device is located. Thereby protecting the privacy of the user.
[0062] Combination Figure 3 As shown, the embodiment of the present disclosure provides another method for controlling a voice interaction device, which is applied to the voice interaction device. The method includes:
[0063] Step S301: When receiving a command from a user to start a wake-up-free interactive service, the voice interaction device obtains the status of people in a preset area.
[0064] Step S302: When the personnel status is that there is a person, the voice interaction device switches to a wake-up-free interaction state.
[0065] Step S303: The voice interaction device obtains first voice data.
[0066] Step S304: the voice interaction device switches to a wake-up interaction state according to the first voice data.
[0067] In some embodiments, the voice interaction device parses the first voice data to obtain a first parsing result. The first parsing result includes: the first voice data includes a voice control instruction, or the first voice data does not include a voice control instruction. The voice control instruction is one or more of a device control instruction, a weather report instruction, and an audio resource playback instruction. In some embodiments, the device control instruction includes turning on the automatic mode of the air conditioner, turning on the ice-making mode of the refrigerator, and controlling the audio to play music. The weather report instruction includes playing the weather conditions of the day, etc. The audio resource playback instruction includes playing the morning news of the day, etc. The device control instruction, the weather report instruction, and the audio resource playback instruction are voice control instructions that are used more frequently when the user interacts with the voice interaction device by voice. In this way, by limiting the scope of the voice control instruction to the device control instruction, the weather report instruction, and the audio resource playback instruction, the accuracy of the voice interaction device responding to the first voice data can be improved.
[0068] Further, the voice interaction device parses the first voice data to obtain a first parsing result, including: the voice interaction device performs text recognition on the first voice data to obtain text information of the first voice data. A preset instruction keyword is searched in the text information, and a table lookup operation is performed in a preset second data table using the found instruction keyword to find a control instruction corresponding to the instruction keyword. The preset second data table stores a correspondence between preset instruction keywords and control instructions. The found control instruction is determined to be a voice control instruction, and the first parsing result is determined to be that the first voice data includes a voice control instruction. The control instructions stored in the second data table include one or more of a device control instruction, a weather report instruction, and an audio resource playback instruction. If the preset instruction keyword is not found in the text information, the first parsing result is determined to be that the first voice data does not include a voice control instruction.
[0069] Optionally, according to the first voice data, controlling the voice interaction device to switch to the wake-up interaction state includes: the voice interaction device responds to the first voice data when the first voice data includes a voice control instruction. After responding to the first voice data, switching to the wake-up interaction state.
[0070] After the voice interaction device responds to the first voice data, it indicates that the voice interaction device has completed the voice control instruction issued by the user to the voice interaction device. Usually, after the user issues a voice control instruction, the voice interaction device will operate according to the voice control instruction, and the user will not have voice interaction with the voice interaction device for a short time. In this way, after the voice interaction device responds to the first voice data, it switches to the wake-up interaction state, which can prevent the voice interaction device from constantly obtaining audio data in the area where the voice interaction device is located. This protects the privacy of the user.
[0071] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for controlling a voice interaction device, which is applied to the voice interaction device. The method includes:
[0072] Step S401: When receiving a command from a user to start a wake-up-free interactive service, the voice interaction device obtains the status of people in a preset area.
[0073] Step S402: When the personnel status is that there is a person, the voice interaction device switches to a wake-up-free interaction state.
[0074] Step S403: The voice interaction device obtains first voice data.
[0075] Step S404: When the first voice data includes a voice control instruction, the voice interaction device responds to the first voice data.
[0076] Step S405: After the voice interaction device responds to the first voice data, the voice interaction device is controlled to switch to a wake-up interaction state.
[0077] Furthermore, when the first voice data includes a voice control instruction, the voice interaction device responds to the first voice data, including: the voice interaction device controls the target device to execute the voice control instruction.
[0078] Further, the target device is determined in the following manner: the target device is determined according to the voice control instruction. Specifically, the device in the voice control instruction is determined as the target device. For example, when the voice control instruction is to turn on the automatic mode of the air conditioner, the target device is determined to be the air conditioner. When the voice control instruction is to turn on the ice-making mode of the refrigerator, the target device is determined to be the refrigerator. When the voice control instruction is to control the audio to play music, the target device is determined to be the audio.
[0079] Furthermore, after responding to the first voice data, switching to the wake-up interaction state includes: after the voice interaction device responds to the first voice data, if no new voice control instructions are obtained within the second preset time length, switching to the wake-up interaction state. In this way, if no new voice control instructions are obtained within the second preset time length after responding to the first voice data, it means that the user only uses the first voice data to issue voice control instructions to the voice interaction device. Switching to the wake-up interaction state at this time can avoid the situation where the voice interaction device misses the user's voice control instructions. Thereby, the response rate of the voice interaction device to the voice control instructions can be improved, and the user experience of using the voice interaction device can be improved. In some embodiments, the second preset time length is 10s.
[0080] Optionally, according to the first voice data, controlling the voice interaction device to switch to the wake-up interaction state includes: when the first voice data does not include voice control instructions, controlling the voice interaction device to switch to the wake-up interaction state. When the first voice data does not include voice control instructions, it means that the user has no intention of performing voice interaction with the voice interaction device. Therefore, the switching of the voice interaction device to the wake-up-free state this time is an erroneous switch. In this way, in the event of an erroneous switch of the voice interaction device, by switching from the wake-up-free interaction state back to the wake-up interaction state, it is possible to prevent the voice interaction device from still obtaining audio data in the area where the voice interaction device is located when the user has no voice interaction. This protects the privacy of the user.
[0081] Combination Figure 5 As shown, the embodiment of the present disclosure provides another method for controlling a voice interaction device, which is applied to the voice interaction device. The method includes:
[0082] Step S501: When receiving a command from a user to start a wake-up-free interactive service, the voice interaction device obtains the status of people in a preset area.
[0083] Step S502: When the personnel status is that there is a person, the voice interaction device switches to a wake-up-free interaction state.
[0084] Step S503: The voice interaction device obtains first voice data.
[0085] Step S504: When the first voice data does not include a voice control instruction, the voice interaction device switches to a wake-up interaction state.
[0086] Optionally, after controlling the voice interaction device to switch to the wake-up interaction state, the method further includes: after a first preset time period, when the status of a person in the preset area is that there is a person, controlling the voice interaction device to switch to the non-wake-up interaction state. In this way, the voice interaction device switches to the non-wake-up interaction state only after the first preset time period, when the status of a person in the preset area is that there is a person. This can prevent the voice interaction device from frequently switching between the wake-up interaction state and the non-wake-up interaction state.
[0087] In some embodiments, when the first voice data includes a voice control instruction, the first preset duration is any value between 3 and 8 minutes. In other embodiments, when the first voice data does not include a voice control instruction, the first preset duration is any value between 0.2 and 2 minutes.
[0088] Further, controlling the voice interaction device to switch to the wake-up-free interaction state includes: controlling the voice interaction device to issue a preset second voice prompt and switch to the wake-up-free interaction state. In this way, when switching from the wake-up interaction state to the wake-up-free interaction state, the user is informed of the current state of the voice interaction device by issuing a second voice prompt to the user. In some embodiments, the preset second voice prompt is "beep".
[0089] Combination Figure 6 As shown, the embodiment of the present disclosure provides another method for controlling a voice interaction device, which is applied to the voice interaction device. The method includes:
[0090] Step S601: When receiving a wake-up-free interactive service start instruction from a user, the voice interaction device obtains the status of people in a preset area.
[0091] Step S602: When the personnel status is that there is a person, the voice interaction device switches to a wake-up-free interaction state.
[0092] Step S603: The voice interaction device obtains the first voice data and determines whether the first voice data includes a voice control instruction. If so, step S606 is executed; if not, step S604 is executed.
[0093] Step S604: the voice interaction device switches to the wake-up interaction state, and then executes step S605.
[0094] Step S605: After the first preset time period, if the status of people in the preset area is that there are people, the voice interaction device is controlled to switch to the wake-up-free interaction state, and returns to execute step S603.
[0095] Step S606: The voice interaction device responds to the first voice data, and then returns to step S604.
[0096] Optionally, after controlling the voice interaction device to switch to the wake-up interaction state, it also includes: when the second voice data is obtained and the second voice data is a multi-round conversation, triggering the voice interaction device to run the multi-round conversation mode. After the multi-round conversation mode ends, switch to the wake-up-free interaction state. Among them, the multi-round conversation is a continuous conversation between the user and the voice interaction device. The multi-round conversation mode represents a mode of responding to the continuous conversation when the user has a continuous conversation with the voice interaction device. In this way, when the user has a continuous conversation with the voice interaction device, the voice interaction device runs the multi-round conversation mode to respond to the continuous conversation. After the multi-round conversation mode ends, it switches to the wake-up-free interaction state, which enables the voice interaction device to achieve compatibility between the multi-round conversation mode and the wake-up-free interaction state.
[0097] Furthermore, the method for controlling the voice interaction device also includes: controlling the voice interaction device to issue a preset first voice prompt; the voice prompt indicates whether the voice interaction device is in a wake-up-free interaction state, or whether the user turns on the wake-up-free interaction service.
[0098] Optionally, the voice prompt indicates whether the user has turned on the wake-up-free interactive service. The method for controlling the voice interaction device includes: when receiving an instruction to turn on the wake-up-free interactive service sent by the user, the voice interaction device issues a preset first voice prompt and obtains the status of people in a preset area. According to the status of the people, the voice interaction device is controlled to switch between the wake-up interaction state and the wake-up-free interaction state. In this way, by issuing the first voice prompt, it is convenient for the user to know that the voice interaction device has turned on the wake-up-free interactive service. It can improve the user's experience of using the voice interaction device.
[0099] In some embodiments, when a voice prompt indicates whether the user has turned on a wake-up-free interactive service, the preset first voice prompt is "The wake-up-free interactive service has been turned on. When the voice interaction device switches to the wake-up-free interactive state, the voice interaction device will beep." For example, when a user sends an instruction to turn on the wake-up-free interactive service to the voice interaction device through voice interaction, the voice interaction device plays the voice prompt content in the form of voice. For another example, when a user sends an instruction to turn on the wake-up-free interactive service through a preset terminal device, the text content corresponding to the first voice prompt is displayed on the screen of the terminal device. For example, the text content is "The wake-up-free interactive service has been turned on. When the voice interaction device switches to the wake-up-free interactive state, the voice interaction device will beep."
[0100] Optionally, the voice prompt indicates whether the voice interaction device is in a wake-up-free interaction state. The method for controlling a voice interaction device includes: upon receiving an instruction from a user to start a wake-up-free interaction service, obtaining a status of personnel in a preset area. According to the status of the personnel, the voice interaction device is controlled to switch between a wake-up interaction state and a wake-up-free interaction state. When switching to the wake-up-free interaction state, a preset first voice prompt is issued. In some embodiments, when the voice prompt indicates whether the voice interaction device is in a wake-up-free interaction state, the preset first voice prompt is "The voice interaction device has switched to the wake-up-free interaction state. After hearing a beep, you can perform voice interaction with the voice interaction device."
[0101] Combination Figure 7As shown, an embodiment of the present disclosure provides a device 100 for controlling a voice interaction device, including a processor 101 and a memory 102. Optionally, the device may also include a communication interface 103 and a bus 104. The processor 101, the communication interface 103, and the memory 102 may communicate with each other through the bus 104. The communication interface 103 may be used for information transmission. The processor 101 may call the logic instructions in the memory 102 to execute the method for controlling a voice interaction device of the above embodiment.
[0102] In addition, the logic instructions in the memory 102 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0103] The memory 102 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 101 executes the function application and parameter processing by running the program instructions / modules stored in the memory 102, that is, the method for controlling the voice interaction device in the above embodiment is implemented.
[0104] The memory 102 may include a program storage area and a parameter storage area, wherein the program storage area may store an operating system and an application required for at least one function; the parameter storage area may store parameters created according to the use of the terminal device, etc. In addition, the memory 102 may include a high-speed random access memory and may also include a non-volatile memory.
[0105] The embodiments of the present disclosure provide a voice interaction device, including: a voice interaction device body, and the above-mentioned device for controlling the voice interaction device. The device for controlling the voice interaction device is installed in the voice interaction device body. The installation relationship described here is not limited to placement inside the voice interaction device, but also includes installation connections with other components of the voice interaction device, including but not limited to physical connections, electrical connections or signal transmission connections. It can be understood by those skilled in the art that the device for controlling the voice interaction device can be adapted to a feasible voice interaction device body, thereby realizing other feasible embodiments.
[0106] In some embodiments, the voice interaction device is an air conditioner. Figure 8 As shown, the air conditioner 200 includes an air conditioner body and the above-mentioned device 100 for controlling a voice interaction device. The device 100 for controlling a voice interaction device is installed on the air conditioner body.
[0107] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for controlling a voice interaction device.
[0108] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0109] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: 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, and other media that can store program codes, or a transient storage medium.
[0110] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0111] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0112] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be 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. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0113] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling a voice interaction device, characterized in that: include: Get the status of people in the preset area; According to the personnel status, the voice interaction device is controlled to switch between a wake-up interaction state and a wake-up-free interaction state.
2. The method according to claim 1, characterized in that After the controlling the voice interaction device to switch between the wake-up interaction state and the wake-up-free interaction state, the method includes: When the voice interaction device is in a wake-up-free interaction state, obtaining first voice data; According to the first voice data, the voice interaction device is controlled to switch to a wake-up interaction state.
3. The method according to claim 2, characterized in that The step of controlling the voice interaction device to switch to a wake-up interaction state according to the first voice data includes: In the case where the first voice data includes a voice control instruction, responding to the first voice data; After responding to the first voice data, the voice interaction device is controlled to switch to a wake-up interaction state.
4. The method according to claim 2, characterized in that: The step of controlling the voice interaction device to switch to a wake-up interaction state according to the first voice data includes: When the first voice data does not include a voice control instruction, the voice interaction device is controlled to switch to a wake-up interaction state.
5. The method according to claim 3 or 4, characterized in that: After controlling the voice interaction device to switch to the wake-up interaction state, the method further includes: After a first preset time period, and when the status of people in the preset area is that there are people, the voice interaction device is controlled to switch to a wake-up-free interaction state.
6. The method according to any one of claims 1 to 4, characterized in that: The obtaining of the status of personnel in the preset area includes: When receiving a command from a user to start a wake-up-free interactive service, the status of people in a preset area is obtained.
7. The method according to claim 6, characterized in that The method further comprises: The voice interaction device is controlled to issue a preset first voice prompt; the voice prompt indicates whether the voice interaction device is in a wake-up-free interaction state, or whether the user turns on the wake-up-free interaction service.
8. A device for controlling a voice interaction device, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling a voice interaction device according to any one of claims 1 to 7 when running the program instructions.
9. A voice interaction device, characterized in that: include: Voice interaction device body; The device for controlling a voice interaction device as described in claim 8 is installed on the voice interaction device body.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for controlling a voice interaction device according to any one of claims 1 to 7 is executed.