WO2020042603A1 - Voice control method, module, household appliance, system and computer storage medium - Google Patents

Voice control method, module, household appliance, system and computer storage medium Download PDF

Info

Publication number
WO2020042603A1
WO2020042603A1 PCT/CN2019/079935 CN2019079935W WO2020042603A1 WO 2020042603 A1 WO2020042603 A1 WO 2020042603A1 CN 2019079935 W CN2019079935 W CN 2019079935W WO 2020042603 A1 WO2020042603 A1 WO 2020042603A1
Authority
WO
WIPO (PCT)
Prior art keywords
control instruction
instruction
comparison
time difference
control
Prior art date
Application number
PCT/CN2019/079935
Other languages
French (fr)
Chinese (zh)
Inventor
张新健
Original Assignee
广东美的制冷设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东美的制冷设备有限公司 filed Critical 广东美的制冷设备有限公司
Publication of WO2020042603A1 publication Critical patent/WO2020042603A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Definitions

  • the present application relates to the technical field of household appliances, and in particular, to a voice control method, a voice recognition module, a home appliance, a system, and a computer-readable storage medium.
  • the above-mentioned home appliances are usually provided with a voice recognition module and a control chip (such as MCU, CPU, DSP, single-chip microcomputer, and embedded devices), and the voice recognition module and the control chip are communicated through a communication interface (such as UART (Universal Asynchronous Receiver) / transmitter (asynchronous transceiver), SPI (Serial Peripheral Interface), Wi-Fi interface, Zigbee interface, mobile cellular interface, etc.) for control instruction interaction, the voice recognition module can control the executed control Instructions to broadcast, but the above voice control scheme at least the following
  • the user may issue multiple voice control instructions to ensure that the home voice recognition module can recognize it.
  • the voice recognition module may misidentify the same control instruction as multiple control instructions under noise interference, and After the instructions are executed, multiple repeated control instructions are broadcast to the user, which leads the user to mistakenly believe that the home appliance has malfunctioned, which seriously affects the user's experience.
  • This application is intended to solve at least one of the technical problems existing in the prior art or related technologies.
  • an object of the present application is to provide a voice control method.
  • Another object of the present application is to provide a speech recognition module.
  • Another object of the present application is to provide a home appliance.
  • Another object of the present application is to provide a system.
  • Another object of the present application is to provide a computer-readable storage medium.
  • a voice control method including: broadcasting an executed first control instruction, and storing the first control instruction as a comparison instruction; in response to a user's Voice input information to generate a second control instruction to be broadcast; detect the time difference between the timestamp of the second control instruction and the timestamp of the comparison instruction; determine whether the second control instruction is required based on the magnitude relationship between the time difference and the preset time difference
  • the control instruction and the comparison instruction perform data bit comparison to determine whether the second control instruction is broadcast.
  • the executed first control instruction is broadcasted, and the first control instruction is stored as a comparison instruction. Since the misidentified repeated control instruction is usually generated in a short time, the time stamp of the control instruction is relatively If it is close, then when generating the second control instruction to be broadcast, first, by comparing the timestamp between the second control instruction and the comparison instruction, it is determined whether the second control instruction is a misidentified repeated control instruction. The timestamps between the second control instruction and the comparison instruction are very close, then it is necessary to further compare whether the data bits are the same, and then more accurately determine whether the second control instruction is a misidentified duplicate control instruction.
  • the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset
  • the voice recognition module only enters the wake-up mode when the control instruction is received, and forwards the control instruction to the hardware drive module (or control chip) of the home appliance.
  • Each duration in the wake-up mode is greater than or equal to a preset time difference, preferably The preset time difference is set to 1 second to 5 seconds.
  • a first storage area and a second storage area are respectively provided for storing a second control instruction and a comparison instruction to be broadcast, wherein the first storage area and the second storage area are preferably first-in-first-out storage space,
  • the pointer moves gradually from the head to the tail of the queue.
  • the control instruction pointed by the pointer is the object to be compared. After the comparison, the control instruction is cleared to release the buffer space.
  • the comparison instruction when judging whether the second control instruction (first in the queue of the first storage area) is repeated, the comparison instruction is in the first queue of the second storage area, and so on, according to the second storage area
  • the internal comparison instruction sequentially judges the second control instruction to be broadcast in the first storage area.
  • the preset time difference is an empirical value determined through a large amount of experimental data, that is, a misrecognition control instruction generated by the voice recognition module may only be generated within the above preset time difference. Therefore, when it is detected that the time difference exceeds the preset time difference, then It can be determined that the second control instruction is not a control instruction generated by misidentification.
  • the cycle of each pointer movement in the second storage area is greater than or equal to the preset time difference, that is, the time that the pointer points to the first control instruction in the queue of the second storage area is greater than or equal to the preset time difference.
  • the second storage area is empty, it means that there is no comparison instruction that has been broadcast within the preset time difference. Waiting for the second control instruction at the top of the queue in the first storage area to finish executing, you can directly broadcast it.
  • the second control instruction it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically Including: when detecting that the time difference is less than or equal to the preset time difference, comparing whether the data length bit of the second control instruction is the same as the data length bit of the comparison instruction; determining whether the data length bit of the second control instruction is the same as the data length of the comparison instruction When the bits are the same, compare whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction; when it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
  • the data length bit of the control instruction refers to the length of the data packet. In order to improve the detection efficiency and accuracy, it is preferred to first determine whether the data length bit of the comparison instruction is the same as the data length bit of the second control instruction. If the bits are different, it can be determined that the comparison command and the second control command are different voice input information. At this time, the second control command needs to be executed and the voice is broadcasted. If the data length is the same, then the two controls are further judged. Whether the data indication bits of the instructions are the same, to further improve the accuracy and reliability of the voice control scheme defined in the present application.
  • the magnitude relationship between the time difference and the preset time difference it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically It also includes: when detecting that the time difference is less than or equal to a preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction is the same according to the coding order of the control instruction; When each data bit is the same, it is determined not to broadcast the second control instruction.
  • the language broadcasting function can be turned on or off at any time as an independent process, and it does not interfere with the speech recognition function, then after the control instruction is executed, it is necessary to check whether the speech broadcasting function is turned on. Then determine whether to broadcast the second control instruction. After waiting for the second control instruction to finish broadcasting, copy it as a new comparison instruction to the second storage area. If the voice broadcast function is not enabled, the second control instruction is not broadcasted. It is not copied to the second storage area.
  • determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and the preset time difference includes: detecting that the time difference is less than or equal to the preset time difference.
  • the data bits in the second control instruction include multiple redundant data bits and information data bits.
  • the redundant data bits are used to indicate the communication rules
  • the information data bits are used to indicate the data content of the control information. Even if the second control instruction is different from the comparison instruction, the redundant data bits may be the same. Therefore, By detecting whether the specified data bit of the second control instruction is the same as the specified data bit of the comparison instruction when it is detected that the time difference is less than or equal to the preset time difference, preferably, the specified data bit is the above-mentioned information data bit, and no redundancy is required. The comparison of the data bits can effectively improve the accuracy and reliability of judging whether the second control instruction is broadcast.
  • determining whether to broadcast according to the execution result of the second control instruction specifically includes: When the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined that the second control instruction is an instruction that needs to be broadcasted; when receiving feedback information that the second control instruction has been executed, at a preset time interval The second control instruction is broadcasted within.
  • the second control instruction when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is not necessary to compare the redundant data bits, and the second control instruction can be determined to be an instruction that needs to be broadcast. At the same time, when receiving feedback information that the second control instruction has been executed, broadcasting the second control instruction within a preset time interval is beneficial to improving the reliability and accuracy of the voice broadcast.
  • generating a second control instruction to be broadcast in response to the user's voice input information specifically includes: in response to the user's voice input information, performing voice input information according to a preset encoding algorithm Encoding to generate a second control instruction; adding a timestamp to the generated second control instruction; arranging the generated second control instructions in order according to the order of adding the timestamps.
  • a second control instruction is generated by encoding the speech input information according to a preset encoding algorithm in response to the user's speech input information, and adding a timestamp to the generated second control instruction.
  • the timestamp is used for The time interval between the second control instruction and the comparison instruction is calculated, and the time stamp added to the control instruction is always the same.
  • a speech recognition module including: a memory, a processor, and a program stored on the memory and executable on the processor.
  • the program is executed by the processor, the voice is implemented as described above. Control method steps.
  • the voice recognition module as a separate communication device, can work independently and interact with the control instructions with the server.
  • the voice recognition module implements the steps of the above voice control method
  • the core solution is based on the second storage area.
  • the comparison instruction in the sequence judges the control instructions in the first storage area in order to reduce the number of times the control instructions are repeatedly executed or the number of voice announcements, thereby reducing the user's confusion caused by repeatedly broadcasting the control instructions.
  • a home appliance including: the above-mentioned voice recognition module; and a control chip capable of performing data interaction with the voice recognition module and capable of executing control instructions.
  • the control chip of the home appliance receives the voice input information issued by the user through the voice recognition module, and the voice recognition module converts the language instruction into a signal that can be recognized by the control chip.
  • the control chip usually refers to MCUs, CPUs, DSPs, microcontrollers, and embedded devices in home appliances. After executing the control function corresponding to the voice input information, it can broadcast to the user through the voice recognition module. The execution of the control instruction is completed.
  • a home appliance including: a voice recognition module, a memory, a processor, and a program stored on the memory and executable on the processor.
  • the program is implemented when the program is executed by the processor. Steps of the above voice control method.
  • the voice recognition module has functions of analyzing voice input information, storing control instructions, and adding time stamps to the control instructions.
  • the voice recognition module is designed on the remote controller of the air conditioner, and does not need to The hardware structure or circuit structure is improved, and the task of judging whether the control instruction is a misidentified repetitive instruction is implemented by the control chip of the air conditioner body, and only the corresponding software code needs to be written in the control chip.
  • a system including: a server; the above-mentioned voice recognition module, the server and the voice recognition module can perform control instruction interaction; and / or the above-mentioned home appliance, server, and home appliance can Perform control instruction interaction.
  • the above-mentioned voice recognition module has functions of analyzing voice input information, storing control instructions, and adding time stamps to the control instructions.
  • the voice recognition module is provided on a terminal device, such as a notebook computer, a tablet computer, a desktop computer,
  • the terminal device converts the received voice input information into control instructions and sends them to the home appliance through the server.
  • the control chip of the home appliance can execute the above control instructions. After the home appliance completes the execution of the control instruction, The server sends feedback to the terminal device that the control instruction has been executed, and the terminal device reports to the user that the control instruction has been executed and completed.
  • the home appliance is one of a rice cooker, a soymilk machine, an electric pressure cooker, an electric kettle, a wall breaker, a refrigerator, an air conditioner, a computer, an audio device, a washing machine, and a water heater.
  • a computer-readable storage medium on which a computer program is stored, and the computer program is executed to implement the voice control method as described above.
  • FIG. 1 shows a schematic flowchart of a voice control method according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a storage area of a voice control method according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application.
  • FIG. 4 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application.
  • FIG. 5 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 8 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 1 shows a schematic flowchart of a voice control method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a storage area of a voice control method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application.
  • FIG. 4 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application.
  • FIG. 5 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • FIG. 8 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
  • a voice control method includes: Step S102, broadcasting an executed first control instruction, and storing the first control instruction as a comparison instruction; Step S104, in response to a user's Input information by voice to generate a second control instruction to be broadcast; step S106, detecting a time difference between the time stamp of the second control instruction and the time stamp of the comparison instruction; step S108, according to the magnitude relationship between the time difference and the preset time difference, It is determined whether a data bit comparison is required for the second control instruction and the comparison instruction, and then it is determined whether the second control instruction is broadcast.
  • the executed first control instruction is broadcasted, and the first control instruction is stored as a comparison instruction. Since the misidentified repeated control instruction is usually generated in a short time, the time stamp of the control instruction is relatively If it is close, then when generating the second control instruction to be broadcast, first, by comparing the timestamp between the second control instruction and the comparison instruction, it is determined whether the second control instruction is a misidentified repeated control instruction. The timestamps between the second control instruction and the comparison instruction are very close, then it is necessary to further compare whether the data bits are the same, and then more accurately determine whether the second control instruction is a misidentified duplicate control instruction.
  • the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset
  • the voice recognition module only enters the wake-up mode when the control instruction is received, and forwards the control instruction to the hardware drive module (or control chip) of the home appliance.
  • Each duration in the wake-up mode is greater than or equal to a preset time difference, preferably The preset time difference is set to 1 second to 5 seconds.
  • a first storage area and a second storage area are respectively provided for storing a second control instruction and a comparison instruction to be broadcast, wherein the first storage area and the second storage area are preferably first-in-first-out storage space,
  • the pointer moves gradually from the head to the tail of the queue.
  • the control instruction pointed by the pointer is the object to be compared. After the comparison, the control instruction is cleared to release the buffer space.
  • the comparison instruction when judging whether the second control instruction (first in the queue of the first storage area) is repeated, the comparison instruction is in the first queue of the second storage area, and so on, according to the second storage area
  • the internal comparison instruction sequentially judges the second control instruction to be broadcast in the first storage area.
  • the preset time difference is an empirical value determined through a large amount of experimental data, that is, a misrecognition control instruction generated by the voice recognition module may only be generated within the above preset time difference. Therefore, when it is detected that the time difference exceeds the preset time difference, then It can be determined that the second control instruction is not a control instruction generated by misidentification.
  • the cycle of each pointer movement in the second storage area is greater than or equal to the preset time difference, that is, the time that the pointer points to the first control instruction in the queue of the second storage area is greater than or equal to the preset time difference.
  • the second storage area is empty, it means that there is no comparison instruction that has been broadcast within the preset time difference. Waiting for the second control instruction at the top of the queue in the first storage area to finish executing, you can directly broadcast it.
  • the second control instruction it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically Including: when detecting that the time difference is less than or equal to the preset time difference, comparing whether the data length bit of the second control instruction is the same as the data length bit of the comparison instruction; determining whether the data length bit of the second control instruction is the same as the data length of the comparison instruction When the bits are the same, compare whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction; when it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
  • the data length bit of the control instruction refers to the length of the data packet. In order to improve the detection efficiency and accuracy, it is preferred to first determine whether the data length bit of the comparison instruction is the same as the data length bit of the second control instruction. If the bits are different, it can be determined that the comparison command and the second control command are different voice input information. At this time, the second control command needs to be executed and the voice is broadcasted. If the data length is the same, then the two controls are further judged. Whether the data indication bits of the instructions are the same, to further improve the accuracy and reliability of the voice control scheme defined in the present application.
  • the magnitude relationship between the time difference and the preset time difference it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically It also includes: when detecting that the time difference is less than or equal to a preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction is the same according to the coding order of the control instruction; When each data bit is the same, it is determined not to broadcast the second control instruction.
  • the language broadcasting function can be turned on or off at any time as an independent process, and it does not interfere with the speech recognition function, then after the control instruction is executed, it is necessary to check whether the speech broadcasting function is turned on. Then determine whether to broadcast the second control instruction. After waiting for the second control instruction to finish broadcasting, copy it as a new comparison instruction to the second storage area. If the voice broadcast function is not enabled, the second control instruction is not broadcasted. It is not copied to the second storage area.
  • determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and the preset time difference includes: detecting that the time difference is less than or equal to the preset time difference.
  • the data bits in the second control instruction include multiple redundant data bits and information data bits.
  • the redundant data bits are used to indicate the communication rules
  • the information data bits are used to indicate the data content of the control information. Even if the second control instruction is different from the comparison instruction, the redundant data bits may be the same. Therefore, By detecting whether the specified data bit of the second control instruction is the same as the specified data bit of the comparison instruction when it is detected that the time difference is less than or equal to the preset time difference, preferably, the specified data bit is the above-mentioned information data bit, and no redundancy is required. The comparison of the data bits can effectively improve the accuracy and reliability of judging whether the second control instruction is broadcast.
  • determining whether to broadcast according to the execution result of the second control instruction specifically includes: When the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined that the second control instruction is an instruction that needs to be broadcasted; when receiving feedback information that the second control instruction has been executed, at a preset time interval The second control instruction is broadcasted within.
  • the second control instruction when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is not necessary to compare the redundant data bits, and the second control instruction can be determined to be an instruction that needs to be broadcast. At the same time, when receiving feedback information that the second control instruction has been executed, broadcasting the second control instruction within a preset time interval is beneficial to improving the reliability and accuracy of the voice broadcast.
  • generating a second control instruction to be broadcast in response to the user's voice input information specifically includes: in response to the user's voice input information, performing voice input information according to a preset encoding algorithm Encoding to generate a second control instruction; adding a timestamp to the generated second control instruction; arranging the generated second control instructions in order according to the order of adding the timestamps.
  • a second control instruction is generated by encoding the speech input information according to a preset encoding algorithm in response to the user's speech input information, and adding a timestamp to the generated second control instruction.
  • the timestamp is used for The time interval between the second control instruction and the comparison instruction is calculated, and the time stamp added to the control instruction is always the same.
  • the voice control method includes: after detecting that the first control instruction pointed by the pointer of the first storage area has been executed, copying it to the second storage area and recording it as a comparison instruction; When the pointer of the first storage area points to the second control instruction, the time difference between the time stamp of the second control instruction and the time stamp of the comparison instruction pointed to by the pointer of the second storage area is calculated; according to the size between the time difference and the preset time difference The relationship determines whether to broadcast the second control instruction.
  • the time stamp of the second control instruction is calculated when the pointer of the first storage area points to the second control instruction.
  • the time difference between the timestamp and the comparison instruction can accurately and reliably detect whether the second control instruction is a misidentified duplicate instruction.
  • the size relationship determines whether to broadcast the second control instruction, especially when the time difference is small, it is necessary to further analyze whether the content of the control instruction and the comparison instruction are duplicated, and then determine whether to broadcast the second control instruction by voice.
  • the first storage area 200 stores a plurality of second control instructions 202, instructions 203, ... instructions 20n arranged in a timestamp order, n is a positive integer greater than or equal to 3, and pointer A points to the top of the queue.
  • the broadcasted first control instruction is copied to the second storage area 300, that is, the above comparison instruction 201, and is pointed by the pointer B as the first queue of the second storage area 300.
  • the default language playback function is enabled.
  • the second control instruction 202 is compared with the comparison instruction 201.
  • the time stamp of the second control instruction 202 and the comparison instruction 201 are determined.
  • the time difference between the timestamps and includes the following:
  • the pointer B of the second storage area 300 points to the comparison instruction 202, and the time stamp of the second control instruction 203 and the comparison instruction 202 are calculated.
  • the pointer A points to the next second control instruction 204 and clears the previous one.
  • Second control instruction 203 As shown in FIG. 4, after the comparison instruction 202 is copied to the second storage area 300, the pointer B of the second storage area 300 points to the comparison instruction 202, and the time stamp of the second control instruction 203 and the comparison instruction 202 are calculated. The time difference between the timestamps, and it is determined that the time difference is less than or equal to the preset time difference, but the data length bits of the two are the same and the data indication bits are the same.
  • the pointer A points to the next second control instruction 204 and clears the previous one. Second control instruction 203
  • a voice control method includes: Step S502, receiving voice input information sent by a user, and converting the voice input information into a voice command; and step S504, determining whether the voice command is in If the set control information matches, if yes, go to step S506; if not, go to step S508; step S506, wake up the voice recognition module, convert the voice command into a control command and send it to the control chip; step S508, clear the voice command Step S510, determine whether the duration of the wake-up mode reaches the preset duration; if so, go to step S512; if not, go to step S514; step S512, the voice recognition module enters the sleep mode; step S514, the voice recognition module maintains the wake-up mode .
  • the voice recognition module in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset
  • the voice recognition module enters the wake-up mode and forwards the control instruction to the hardware drive module (or control chip) of the home appliance.
  • Each duration in the wake-up mode is greater than or equal to a preset
  • the time difference preferably, the preset time difference is set to 1 second to 5 seconds.
  • a voice control method includes: Step S602, determining whether the communication interface receives a control instruction, and if so, executing step S604, and if not, ending; and step S604, The received control instruction is time stamped; step S606, the time-stamped control instruction is added to the first storage area; and step S608, the data analysis process of the first storage area is executed.
  • a voice control method includes: starting to execute a data analysis process of a first storage area; step S702, determining whether a comparison instruction is provided in a second storage area, and if yes, performing steps In step S704, if no, execute step S712; in step S704, determine the timestamp of the first comparison instruction in the queue of the second storage area; and in step S706, determine the time between the comparison instruction and the second control instruction of the queue first in the first storage area.
  • step S712 analyzes the second control instruction in the first queue of the first storage area; step S714, determines whether the second control instruction in the first queue of the first storage area has been executed, and if so, executes step S716, if not, go back to step S714; step S716, determine whether to enable the voice broadcast function, and if so, then Go to step S720, if not, go to step S718; step S718, don't perform voice broadcast; step S720, broadcast the successful voice; step S722, copy the executed and broadcast second control instruction to the tail of the queue in the second storage area As a new comparison instruction; step S724, the pointer controlling the first storage area points to the next second control instruction; step S726,
  • a voice control method includes: starting to execute a comparison process between a first storage area and a second storage area; and step S802, judging a second first in a queue of the first storage area. Check whether the data length bit of the control instruction is consistent with the data length bit of the first queue in the second storage area. If yes, go to step S806; if not, go to step S804; step S804, determine the first queue in the first storage area.
  • step S806 determines whether the data indication bit of the second control instruction of the second control instruction is consistent with the data indication bit of the first instruction in the queue of the second storage area; if yes, go to step S806; if no, go to step S808; step S806, the first storage area
  • step S808 analyzes the second control instruction in the first queue of the first storage area; step S810, determines whether the second control instruction in the first queue of the first storage area has been executed, and if so, then Step S814 is performed, and if not, step S810 is performed; step S812, no voice broadcast is performed; step S814, judgment If no, enable the voice broadcast function.
  • step S816 If so, go to step S816; if not, go to step S812; step S816, broadcast the successfully executed voice; step S818, copy the executed second control instruction to the tail of the queue in the second storage area As a new comparison instruction; step S820, the pointer controlling the first storage area points to the next second control instruction; step S822, determining whether there is a second control instruction in the first storage area, and if so, executing step S824, and if not, The process ends; step S824, the data analysis process of the first storage area is executed.
  • a computer-readable storage medium is also provided, and a computer program is stored on the computer program.
  • the following steps are implemented: broadcasting the executed first control instruction, and transmitting the first control instruction.
  • Stored as a comparison instruction in response to the user's voice input information, generating a second control instruction to be broadcast; detecting a time difference between the time stamp of the second control instruction and the time stamp of the comparison instruction; according to the time difference between the time difference and the preset time difference
  • the size relationship determines whether a data bit comparison between the second control instruction and the comparison instruction is required, and then determines whether the second control instruction is broadcast.
  • the executed first control instruction is broadcasted, and the first control instruction is stored as a comparison instruction. Since the misidentified repeated control instruction is usually generated in a short time, the time stamp of the control instruction is relatively If it is close, then when generating the second control instruction to be broadcast, first, by comparing the timestamp between the second control instruction and the comparison instruction, it is determined whether the second control instruction is a misidentified repeated control instruction. The timestamps between the second control instruction and the comparison instruction are very close, then it is necessary to further compare whether the data bits are the same, and then more accurately determine whether the second control instruction is a misidentified duplicate control instruction.
  • the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset
  • the voice recognition module only enters the wake-up mode when the control instruction is received, and forwards the control instruction to the hardware drive module (or control chip) of the home appliance.
  • Each duration in the wake-up mode is greater than or equal to a preset time difference, preferably The preset time difference is set to 1 second to 5 seconds.
  • a first storage area and a second storage area are respectively provided for storing a second control instruction and a comparison instruction to be broadcast, wherein the first storage area and the second storage area are preferably first-in-first-out storage space,
  • the pointer moves gradually from the head to the tail of the queue.
  • the control instruction pointed by the pointer is the object to be compared. After the comparison, the control instruction is cleared to release the buffer space.
  • the comparison instruction when judging whether the second control instruction (first in the queue of the first storage area) is repeated, the comparison instruction is in the first queue of the second storage area, and so on, according to the second storage area
  • the internal comparison instruction sequentially judges the second control instruction to be broadcast in the first storage area.
  • the preset time difference is an empirical value determined through a large amount of experimental data, that is, a misrecognition control instruction generated by the voice recognition module may only be generated within the above preset time difference. Therefore, when it is detected that the time difference exceeds the preset time difference, then It can be determined that the second control instruction is not a control instruction generated by misidentification.
  • the cycle of each pointer movement in the second storage area is greater than or equal to the preset time difference, that is, the time that the pointer points to the first control instruction in the queue of the second storage area is greater than or equal to the preset time difference.
  • the second storage area is empty, it means that there is no comparison instruction that has been broadcast within the preset time difference. Waiting for the second control instruction at the top of the queue in the first storage area to finish executing, you can directly broadcast it.
  • the second control instruction it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically Including: when detecting that the time difference is less than or equal to the preset time difference, comparing whether the data length bit of the second control instruction is the same as the data length bit of the comparison instruction; determining whether the data length bit of the second control instruction is the same as the data length of the comparison instruction When the bits are the same, compare whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction; when it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
  • the data length bit of the control instruction refers to the length of the data packet. In order to improve the detection efficiency and accuracy, it is preferred to first determine whether the data length bit of the comparison instruction is the same as the data length bit of the second control instruction. If the bits are different, it can be determined that the comparison command and the second control command are different voice input information. At this time, the second control command needs to be executed and the voice is broadcasted. If the data length is the same, then the two controls are further judged. Whether the data indication bits of the instructions are the same, to further improve the accuracy and reliability of the voice control scheme defined in the present application.
  • the magnitude relationship between the time difference and the preset time difference it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically It also includes: when detecting that the time difference is less than or equal to a preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction is the same according to the coding order of the control instruction; When each data bit is the same, it is determined not to broadcast the second control instruction.
  • the language broadcasting function can be turned on or off at any time as an independent process, and it does not interfere with the speech recognition function, then after the control instruction is executed, it is necessary to check whether the speech broadcasting function is turned on. Then determine whether to broadcast the second control instruction. After waiting for the second control instruction to finish broadcasting, copy it as a new comparison instruction to the second storage area. If the voice broadcast function is not enabled, the second control instruction is not broadcasted. It is not copied to the second storage area.
  • determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and the preset time difference includes: detecting that the time difference is less than or equal to the preset time difference.
  • the data bits in the second control instruction include multiple redundant data bits and information data bits.
  • the redundant data bits are used to indicate the communication rules
  • the information data bits are used to indicate the data content of the control information. Even if the second control instruction is different from the comparison instruction, the redundant data bits may be the same. Therefore, By detecting whether the specified data bit of the second control instruction is the same as the specified data bit of the comparison instruction when it is detected that the time difference is less than or equal to the preset time difference, preferably, the specified data bit is the above-mentioned information data bit, and no redundancy is required. The comparison of the data bits can effectively improve the accuracy and reliability of judging whether the second control instruction is broadcast.
  • determining whether to broadcast according to the execution result of the second control instruction specifically includes: When the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined that the second control instruction is an instruction that needs to be broadcasted; when receiving feedback information that the second control instruction has been executed, at a preset time interval The second control instruction is broadcasted within.
  • the second control instruction when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is not necessary to compare the redundant data bits, and the second control instruction can be determined to be an instruction that needs to be broadcast. At the same time, when receiving feedback information that the second control instruction has been executed, broadcasting the second control instruction within a preset time interval is beneficial to improving the reliability and accuracy of the voice broadcast.
  • generating a second control instruction to be broadcast in response to the user's voice input information specifically includes: in response to the user's voice input information, performing voice input information according to a preset encoding algorithm Encoding to generate a second control instruction; adding a timestamp to the generated second control instruction; arranging the generated second control instructions in order according to the order of adding the timestamps.
  • a second control instruction is generated by encoding the speech input information according to a preset encoding algorithm in response to the user's speech input information, and adding a timestamp to the generated second control instruction.
  • the timestamp is used for The time interval between the second control instruction and the comparison instruction is calculated, and the time stamp added to the control instruction is always the same.
  • the present application proposes a voice control method, module, home appliance, system, and computer storage medium, broadcasts the executed first control instruction, and stores the first control instruction
  • the misidentified repetitive control instructions are usually generated in a short time, so the timestamps of the control instructions are relatively close.
  • the second control instruction to be broadcast first, the second The timestamp between the control instruction and the comparison instruction to determine whether the second control instruction is a misidentified duplicate control instruction. If the timestamp between the second control instruction and the comparison instruction is very close, then the data bits need to be further compared. Whether they are the same, and then it is more accurately judged whether the second control instruction is a misidentified repeated control instruction.
  • this application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
  • any reference signs placed between parentheses shall not be construed as limiting the claim.
  • the word “comprising” does not exclude the presence of elements or steps not listed in a claim.
  • the word “a” or “an” preceding a part does not exclude the presence of a plurality of such parts.
  • the application can be implemented by means of hardware comprising several distinct parts, and by means of a suitably programmed computer. In the unit claim listing several devices, several of these devices may be embodied by the same hardware item.
  • the use of the words first, second, and third does not imply any order. These words can be interpreted as names.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided is a voice control method, comprising: broadcasting an executed first control instruction, and storing the first control instruction as a comparison instruction (S102); generating a second control instruction to be broadcast in response to voice input information of a user (S104); detecting a time difference between a timestamp of the second control instruction and a timestamp of the comparison instruction (S106); and according to a size relationship between the time difference and a pre-set time difference, determining whether it is necessary to perform data bit comparison on the second control instruction and the comparison instruction, so as to determine whether the second control instruction is broadcast (S108). By means of the method, the broadcasting of continuous control instructions is reduced, and the usage experience of a user is improved. Further provided are a voice recognition module, a household appliance, a system and a computer storage medium.

Description

语音控制方法、模块、家电设备、系统和计算机存储介质Voice control method, module, home appliance equipment, system and computer storage medium
本申请要求于2018年08月27日提交中国专利局、申请号为201810979063.4、发明名称为“语音控制方法、模块、家电设备、系统和计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on August 27, 2018 with the Chinese Patent Office, application number 201810979063.4, and the invention name as "Voice Control Method, Module, Home Appliance, System, and Computer Storage Medium", its entire content Incorporated by reference in this application.
技术领域Technical field
本申请涉及家用电器技术领域,具体而言,涉及一种语音控制方法、一种语音识别模块、一种家电设备、一种系统和一种计算机可读存储介质。The present application relates to the technical field of household appliances, and in particular, to a voice control method, a voice recognition module, a home appliance, a system, and a computer-readable storage medium.
背景技术Background technique
家电设备比如空调、电风扇、厨具和冰箱等作为生活电器,已成为人们必不可少的产品,随着人工智能技术的快速发展,具备语音识别功能的家电产品也层出不穷,极大的改善了用户的使用体验。Home appliances such as air conditioners, electric fans, kitchenware, and refrigerators have become essential products for people. With the rapid development of artificial intelligence technology, home appliances with voice recognition have also emerged endlessly, greatly improving users. Experience.
相关技术中,上述家电设备通常设有语音识别模块和控制芯片(如MCU、CPU、DSP、单片机和嵌入式设备等),语音识别模块与控制芯片之间通过通信接口(如UART(Universal Asynchronous Receiver/transmitter,异步收发传输器)、SPI(Serial Peripheral Interface,串行外设接口)、Wi-Fi接口、紫蜂接口和移动蜂窝接口等)进行控制指令交互,语音识别模块能够对已执行的控制指令进行播报,但是,上述语音控制方案至少存在以下In related technologies, the above-mentioned home appliances are usually provided with a voice recognition module and a control chip (such as MCU, CPU, DSP, single-chip microcomputer, and embedded devices), and the voice recognition module and the control chip are communicated through a communication interface (such as UART (Universal Asynchronous Receiver) / transmitter (asynchronous transceiver), SPI (Serial Peripheral Interface), Wi-Fi interface, Zigbee interface, mobile cellular interface, etc.) for control instruction interaction, the voice recognition module can control the executed control Instructions to broadcast, but the above voice control scheme at least the following
技术问题:technical problem:
用户在嘈杂背景环境下,可能发出多次语音的控制指令来保证家语音识别模块能够识别,另外,语音识别模块也可能在噪声干扰下将同一控制指令误识别为多个控制指令,并且在控制指令被执行后,向用户播报多次重复的控制指令,进而导致用户误以为家电设备出现了故障,严重地影响了用户的使用体验。In a noisy background environment, the user may issue multiple voice control instructions to ensure that the home voice recognition module can recognize it. In addition, the voice recognition module may misidentify the same control instruction as multiple control instructions under noise interference, and After the instructions are executed, multiple repeated control instructions are broadcast to the user, which leads the user to mistakenly believe that the home appliance has malfunctioned, which seriously affects the user's experience.
申请内容Application content
本申请旨在至少解决现有技术或相关技术中存在的技术问题之一。This application is intended to solve at least one of the technical problems existing in the prior art or related technologies.
为此,本申请的一个目的在于提供一种语音控制方法。Therefore, an object of the present application is to provide a voice control method.
本申请的另一个目的在于提供一种语音识别模块。Another object of the present application is to provide a speech recognition module.
本申请的另一个目的在于提供一种家电设备。Another object of the present application is to provide a home appliance.
本申请的另一个目的在于提供一种系统。Another object of the present application is to provide a system.
本申请的另一个目的在于提供一种计算机可读存储介质。Another object of the present application is to provide a computer-readable storage medium.
为了实现上述目的,根据本申请的第一方面的实施例,提供了一种语音控制方法,包括:播报已执行的第一控制指令,并将第一控制指令存储为对比指令;响应于用户的语音输入信息,生成待播报的第二控制指令;检测第二控制指令的时间戳与对比指令的时间戳之间的时间差;根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报。In order to achieve the above object, according to an embodiment of the first aspect of the present application, a voice control method is provided, including: broadcasting an executed first control instruction, and storing the first control instruction as a comparison instruction; in response to a user's Voice input information to generate a second control instruction to be broadcast; detect the time difference between the timestamp of the second control instruction and the timestamp of the comparison instruction; determine whether the second control instruction is required based on the magnitude relationship between the time difference and the preset time difference The control instruction and the comparison instruction perform data bit comparison to determine whether the second control instruction is broadcast.
在该技术方案中,播报已执行的第一控制指令,并将第一控制指令存储为对比指令,由于误识别的重复控制指令通常是在短时间内生成的,因此,控制指令的时间戳较为接近,那么,在生成待播报的第二控制指令时,首先,通过比对第二控制指令与对比指令之间的时间戳,来判断第二控制指令是否为误识别的重复控制指令,如果第二控制指令与对比指令之间的时间戳非常接近,那么需要进一步地比对数据位是否相同,进而更加准确地判断第二控制指令是否为误识别的重复控制指令。In this technical solution, the executed first control instruction is broadcasted, and the first control instruction is stored as a comparison instruction. Since the misidentified repeated control instruction is usually generated in a short time, the time stamp of the control instruction is relatively If it is close, then when generating the second control instruction to be broadcast, first, by comparing the timestamp between the second control instruction and the comparison instruction, it is determined whether the second control instruction is a misidentified repeated control instruction. The timestamps between the second control instruction and the comparison instruction are very close, then it is necessary to further compare whether the data bits are the same, and then more accurately determine whether the second control instruction is a misidentified duplicate control instruction.
其中,上述语音控制方法是在语音识别模块中实现的,而为了降低语音识别模块的功耗,语音识别模块通常属于休眠模式,在将用户发出的语音输入信息转换为指令并确定其中包括预设的控制指令时,语音识别模块才进入苏醒模式,并将控制指令转发至家用电器的硬件驱动模块(或称为控制芯片),苏醒模式下的每次持续时间大于或等于预设时间差,优选地,预设时间差被设置为1秒~5秒。Wherein, the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset The voice recognition module only enters the wake-up mode when the control instruction is received, and forwards the control instruction to the hardware drive module (or control chip) of the home appliance. Each duration in the wake-up mode is greater than or equal to a preset time difference, preferably The preset time difference is set to 1 second to 5 seconds.
优选地,分别设置第一存储区域和第二存储区域,分别用于存储待播报的第二控制指令和对比指令,其中,第一存储区域和第二存储区域优选为先入先出的存储空间,指针由队列头部向尾部逐渐移动,指针指向的控制指令是进行比对的对象,而经过比对后的控制指令即被清除掉,以释放缓存空间。Preferably, a first storage area and a second storage area are respectively provided for storing a second control instruction and a comparison instruction to be broadcast, wherein the first storage area and the second storage area are preferably first-in-first-out storage space, The pointer moves gradually from the head to the tail of the queue. The control instruction pointed by the pointer is the object to be compared. After the comparison, the control instruction is cleared to release the buffer space.
本领域技术人员能够理解的是,在判断上述第二控制指令(位于第一存储区域的队列首位)是否重复时,对比指令位于第二存储区域的队列首位,以此类推,根据第二存储区域内的对比指令对第一存储区域内待播报的第二控制指令依次进行判断。Those skilled in the art can understand that when judging whether the second control instruction (first in the queue of the first storage area) is repeated, the comparison instruction is in the first queue of the second storage area, and so on, according to the second storage area The internal comparison instruction sequentially judges the second control instruction to be broadcast in the first storage area.
另外,预设时间差是通过大量实验数据确定的经验值,也即语音识别模块生成的误识别的控制指令仅可能在上述预设时间差内产生,因此,在检测到时间差超过预设时间差时,则可以确定第二控制指令不是误识别产生的控制指令。In addition, the preset time difference is an empirical value determined through a large amount of experimental data, that is, a misrecognition control instruction generated by the voice recognition module may only be generated within the above preset time difference. Therefore, when it is detected that the time difference exceeds the preset time difference, then It can be determined that the second control instruction is not a control instruction generated by misidentification.
值得特别指出的是,第二存储区域的指针每次移动的周期大于或等于 上述预设时间差,即指针指向第二存储区域的队列首位的控制指令的时间大于或等于上述预设时间差,另外,在第二存储区域为空时,说明预设时间差内不存在已播报的对比指令,等待第一存储区域的队列首位的第二控制指令完成执行,即可直接播对其进行播报。It is worth pointing out that the cycle of each pointer movement in the second storage area is greater than or equal to the preset time difference, that is, the time that the pointer points to the first control instruction in the queue of the second storage area is greater than or equal to the preset time difference. In addition, When the second storage area is empty, it means that there is no comparison instruction that has been broadcast within the preset time difference. Waiting for the second control instruction at the top of the queue in the first storage area to finish executing, you can directly broadcast it.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报,具体包括:在检测到时间差小于或等于预设时间差时,比对第二控制指令的数据长度位与对比指令的数据长度位是否相同;在确定第二控制指令的数据长度位与对比指令的数据长度位相同时,比对第二控制指令携带的数据指示位与对比指令的数据指示位是否相同;在确定第二控制指令携带的数据指示位与对比指令的数据指示位相同时,确定不播报第二控制指令。In any of the above technical solutions, preferably, according to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically Including: when detecting that the time difference is less than or equal to the preset time difference, comparing whether the data length bit of the second control instruction is the same as the data length bit of the comparison instruction; determining whether the data length bit of the second control instruction is the same as the data length of the comparison instruction When the bits are the same, compare whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction; when it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
在该技术方案中,通过在检测到时间差小于或等于预设时间差,如果能够进一步地确定第二控制指令的数据长度位与对比指令的数据长度位相同,且确定第二控制指令携带的数据指示位与对比指令的数据指示位相同,则可以确定第二控制指令由于语音识别模块误识别或用户重复语音输入信息而产生的,因此作为误识别的重复指令,即不需要被执行,也不需要再次被语音播报。In this technical solution, by detecting that the time difference is less than or equal to a preset time difference, if it can be further determined that the data length bit of the second control instruction is the same as the data length bit of the comparison instruction, and the data indication carried by the second control instruction is determined If the bit is the same as the data indication bit of the comparison instruction, it can be determined that the second control instruction is generated due to misrecognition by the voice recognition module or the user repeatedly inputs voice information. Therefore, as a misidentified repetitive instruction, it does not need to be executed or required. Voiced again.
其中,控制指令的数据长度位是指数据包的长度,为了提高检测的效率和准确度,优选地,先判断对比指令的数据长度位是否与第二控制指令的数据长度位相同,如果数据长度位不同,则可以确定对比指令和第二控制指令为不同的语音输入信息,此时第二控制指令是需要被执行且语音播报的,而如果数据长度位相同,再进一步地判断上述两个控制指令的数据指示位是否相同,以进一步地提高本申请限定的语音控制方案的准确性和可靠性。The data length bit of the control instruction refers to the length of the data packet. In order to improve the detection efficiency and accuracy, it is preferred to first determine whether the data length bit of the comparison instruction is the same as the data length bit of the second control instruction. If the bits are different, it can be determined that the comparison command and the second control command are different voice input information. At this time, the second control command needs to be executed and the voice is broadcasted. If the data length is the same, then the two controls are further judged. Whether the data indication bits of the instructions are the same, to further improve the accuracy and reliability of the voice control scheme defined in the present application.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报,具体还包括:在检测到时间差小于或等于预设时间差时,按照控制指令的编码顺序依次比对第二控制指令与对比指令的每个数据位是否相同;在依次确定第二控制指令与对比指令的每个数据位均相同时,确定不播报第二控制指令。In any of the above technical solutions, preferably, according to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically It also includes: when detecting that the time difference is less than or equal to a preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction is the same according to the coding order of the control instruction; When each data bit is the same, it is determined not to broadcast the second control instruction.
在该技术方案中,由于将用户的语音输入信息生成控制指令的算法是一致的,即对比指令与第二控制指令的编码结构是相同的,因此,通过在检测到时间差小于或等于预设时间差时,按照控制指令的编码顺序依次比对第二控制指令与对比指令的每个数据位是否相同,可以最大程度地提高 比对第二控制指令与对比指令的准确地和可靠性。In this technical solution, since the algorithm of generating the user's voice input information for the control instruction is the same, that is, the encoding structure of the comparison instruction and the second control instruction is the same, therefore, when the detected time difference is less than or equal to the preset time difference In this case, comparing each data bit of the second control instruction and the comparison instruction in sequence according to the encoding order of the control instruction can improve the accuracy and reliability of the comparison between the second control instruction and the comparison instruction to the greatest extent.
另外,如果语言播报功能作为一个独立的进程,是可以被随时开启或关闭的,其与语音识别功能之间互不干扰,那么,在控制指令被执行完毕后,需要检测语音播报功能是否开启,进而确定是否播报第二控制指令,在等待第二控制指令完成播报后,再将其作为新的对比指令拷贝至第二存储区域,如果语音播报功能未开启,则不播报第二控制指令,也不将其拷贝至第二存储区域。In addition, if the language broadcasting function can be turned on or off at any time as an independent process, and it does not interfere with the speech recognition function, then after the control instruction is executed, it is necessary to check whether the speech broadcasting function is turned on. Then determine whether to broadcast the second control instruction. After waiting for the second control instruction to finish broadcasting, copy it as a new comparison instruction to the second storage area. If the voice broadcast function is not enabled, the second control instruction is not broadcasted. It is not copied to the second storage area.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系确定是否对第二控制指令和对比指令进行比对,具体还包括:在检测到时间差小于或等于预设时间差时,比对第二控制指令的指定数据位与对比指令的指定数据位是否相同;在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,根据第二控制指令的执行结果确定是否播报。In any of the above technical solutions, preferably, determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and the preset time difference, and specifically includes: detecting that the time difference is less than or equal to the preset time difference. When determining whether the designated data bit of the second control instruction is the same as the designated data bit of the comparison instruction; when it is determined that the designated data bit of the second control instruction is not the same as the designated data bit of the comparison instruction, according to the execution of the second control instruction The result determines whether to broadcast.
在该技术方案中,在根据语音输入信息生成待播报的第二控制指令时,为了减小数据交互冲突,在第二控制指令中的数据位中包括多个冗余数据位和信息数据位,其中,冗余数据位是用于指示通信规则,而信息数据位是用于指示控制信息的数据内容,即使第二控制指令与对比指令不同,其冗余数据位也可能是相同的,因此,通过在检测到时间差小于或等于预设时间差时,比对第二控制指令的指定数据位与对比指令的指定数据位是否相同,优选地,指定数据位为上述信息数据位,不需要对冗余数据位进行比对,能够有效地提升判断第二控制指令是否播报的准确性和可靠性。In this technical solution, when generating the second control instruction to be broadcast according to the voice input information, in order to reduce data interaction conflicts, the data bits in the second control instruction include multiple redundant data bits and information data bits. Among them, the redundant data bits are used to indicate the communication rules, and the information data bits are used to indicate the data content of the control information. Even if the second control instruction is different from the comparison instruction, the redundant data bits may be the same. Therefore, By detecting whether the specified data bit of the second control instruction is the same as the specified data bit of the comparison instruction when it is detected that the time difference is less than or equal to the preset time difference, preferably, the specified data bit is the above-mentioned information data bit, and no redundancy is required. The comparison of the data bits can effectively improve the accuracy and reliability of judging whether the second control instruction is broadcast.
在上述任一技术方案中,优选地,在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,根据第二控制指令的执行结果确定是否播报,具体包括:在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,确定第二控制指令为需要进行播报的指令;在接收到第二控制指令已被执行的反馈信息时,在预设时间间隔内对第二控制指令进行播报。In any of the above technical solutions, preferably, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, determining whether to broadcast according to the execution result of the second control instruction specifically includes: When the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined that the second control instruction is an instruction that needs to be broadcasted; when receiving feedback information that the second control instruction has been executed, at a preset time interval The second control instruction is broadcasted within.
在该技术方案中,在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,不需要比对冗余数据位,即可确定第二控制指令为需要进行播报的指令,同时,通过在接收到第二控制指令已被执行的反馈信息时,在预设时间间隔内对第二控制指令进行播报,有利于提高语音播报的可靠性和准确性。In this technical solution, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is not necessary to compare the redundant data bits, and the second control instruction can be determined to be an instruction that needs to be broadcast. At the same time, when receiving feedback information that the second control instruction has been executed, broadcasting the second control instruction within a preset time interval is beneficial to improving the reliability and accuracy of the voice broadcast.
在上述任一技术方案中,优选地,响应于用户的语音输入信息,生成待播报的第二控制指令,具体包括:响应于用户的语音输入信息,按照预设的编码算法对语音输入信息进行编码,以生成第二控制指令;对生成的 第二控制指令添加时间戳;按照时间戳的添加顺序依次排列生成的第二控制指令。In any of the above technical solutions, preferably, generating a second control instruction to be broadcast in response to the user's voice input information specifically includes: in response to the user's voice input information, performing voice input information according to a preset encoding algorithm Encoding to generate a second control instruction; adding a timestamp to the generated second control instruction; arranging the generated second control instructions in order according to the order of adding the timestamps.
在该技术方案中,通过响应于用户的语音输入信息,按照预设的编码算法对语音输入信息进行编码,以生成第二控制指令;对生成的第二控制指令添加时间戳,时间戳用于计算第二控制指令与对比指令之间的时间间隔,并且对控制指令添加的时间戳是始终不变的。In this technical solution, a second control instruction is generated by encoding the speech input information according to a preset encoding algorithm in response to the user's speech input information, and adding a timestamp to the generated second control instruction. The timestamp is used for The time interval between the second control instruction and the comparison instruction is calculated, and the time stamp added to the control instruction is always the same.
根据本申请的第二方面的技术方案,提供了一种语音识别模块,包括:存储器、处理器及存储在存储器上并可在处理器上运行的程序,程序被处理器执行时实现如上述语音控制方法的步骤。According to the technical solution of the second aspect of the present application, a speech recognition module is provided, including: a memory, a processor, and a program stored on the memory and executable on the processor. When the program is executed by the processor, the voice is implemented as described above. Control method steps.
在该技术方案中,语音识别模块作为一个单独的通信设备,能够独立工作且与服务器之间进行控制指令交互,语音识别模块在实现上述语音控制方法的步骤时,核心方案是根据第二存储区域内的对比指令对第一存储区域内的控制指令依次进行判断,以减少控制指令被重复执行次数或语音播报次数,进而降低用户因重复播报控制指令而产生的困扰。In this technical solution, the voice recognition module, as a separate communication device, can work independently and interact with the control instructions with the server. When the voice recognition module implements the steps of the above voice control method, the core solution is based on the second storage area. The comparison instruction in the sequence judges the control instructions in the first storage area in order to reduce the number of times the control instructions are repeatedly executed or the number of voice announcements, thereby reducing the user's confusion caused by repeatedly broadcasting the control instructions.
根据本申请的第三方面的技术方案,提供了一种家电设备,包括:上述语音识别模块;控制芯片,能够与语音识别模块之间进行数据交互,且能够执行控制指令。According to the technical solution of the third aspect of the present application, a home appliance is provided, including: the above-mentioned voice recognition module; and a control chip capable of performing data interaction with the voice recognition module and capable of executing control instructions.
在该技术方案中,通过在家电设备中设置语音识别模块,一方面,家电设备的控制芯片通过语音识别模块接收用户发出的语音输入信息,并且语音识别模块将语言指令转换为可被控制芯片识别的控制指令,另一方面,控制芯片通常是指家电设备中的MCU、CPU、DSP、单片机和嵌入式设备等,在执行完成语音输入信息对应的控制功能后,能够通过语音识别模块向用户播报完成了控制指令的执行。In this technical solution, by providing a voice recognition module in the home appliance, on the one hand, the control chip of the home appliance receives the voice input information issued by the user through the voice recognition module, and the voice recognition module converts the language instruction into a signal that can be recognized by the control chip. On the other hand, the control chip usually refers to MCUs, CPUs, DSPs, microcontrollers, and embedded devices in home appliances. After executing the control function corresponding to the voice input information, it can broadcast to the user through the voice recognition module. The execution of the control instruction is completed.
根据本申请的第四方面的技术方案,提供了一种家电设备,包括:语音识别模块、存储器、处理器及存储在存储器上并可在处理器上运行的程序,程序被处理器执行时实现上述语音控制方法的步骤。According to the technical solution of the fourth aspect of the present application, a home appliance is provided, including: a voice recognition module, a memory, a processor, and a program stored on the memory and executable on the processor. The program is implemented when the program is executed by the processor. Steps of the above voice control method.
在该技术方案中,上述语音识别模块具备解析语音输入信息、存储控制指令、为控制指令添加时间戳的功能,例如,语音识别模块设计于空调器的遥控器上,不需要对空调器本体的硬件结构或电路结构进行改进,而将判别控制指令是否为误识别的重复指令的工作交由空调器本体的控制芯片来实现,仅仅需要在控制芯片中写入相应的软件代码即可。In this technical solution, the voice recognition module has functions of analyzing voice input information, storing control instructions, and adding time stamps to the control instructions. For example, the voice recognition module is designed on the remote controller of the air conditioner, and does not need to The hardware structure or circuit structure is improved, and the task of judging whether the control instruction is a misidentified repetitive instruction is implemented by the control chip of the air conditioner body, and only the corresponding software code needs to be written in the control chip.
根据本申请的第五方面的技术方案,提供了一种系统,包括:服务器;上述的语音识别模块,服务器和语音识别模块能够进行控制指令交互;和/或上述家电设备,服务器和家电设备能够进行控制指令交互。According to the technical solution of the fifth aspect of the present application, a system is provided, including: a server; the above-mentioned voice recognition module, the server and the voice recognition module can perform control instruction interaction; and / or the above-mentioned home appliance, server, and home appliance can Perform control instruction interaction.
在该技术方案中,上述语音识别模块具备解析语音输入信息、存储控 制指令、为控制指令添加时间戳的功能,例如,语音识别模块设于终端设备上,如笔记本电脑、平板电脑、台式电脑、音乐播放器和手机等,终端设备将接收到的语音输入信息转换为控制指令,并通过服务器发送至家电设备,家电设备的控制芯片能够执行上述控制指令,家电设备在完成控制指令的执行后,通过服务器向终端设备反馈已执行完成控制指令,终端设备向用户播报已执行完成上述控制指令。In this technical solution, the above-mentioned voice recognition module has functions of analyzing voice input information, storing control instructions, and adding time stamps to the control instructions. For example, the voice recognition module is provided on a terminal device, such as a notebook computer, a tablet computer, a desktop computer, For a music player and a mobile phone, the terminal device converts the received voice input information into control instructions and sends them to the home appliance through the server. The control chip of the home appliance can execute the above control instructions. After the home appliance completes the execution of the control instruction, The server sends feedback to the terminal device that the control instruction has been executed, and the terminal device reports to the user that the control instruction has been executed and completed.
在上述任一技术方案中,优选地,家电设备为电饭煲、豆浆机、电压力锅、电水壶、破壁机、冰箱、空调器、电脑、音响设备、洗衣机和热水器中的一种。In any of the above technical solutions, preferably, the home appliance is one of a rice cooker, a soymilk machine, an electric pressure cooker, an electric kettle, a wall breaker, a refrigerator, an air conditioner, a computer, an audio device, a washing machine, and a water heater.
根据本申请的第六个方面的技术方案,提供了一种计算机可读存储介质,其上存储有计算机程序,上述计算机程序被执行时实现如上述语音控制方法。According to the technical solution of the sixth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed to implement the voice control method as described above.
本申请的附加方面和优点将在下面的描述部分中给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in the following description part, which will become apparent from the following description, or be learned through practice of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本申请的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1示出了根据本申请的一个实施例的语音控制方法的示意流程图;FIG. 1 shows a schematic flowchart of a voice control method according to an embodiment of the present application;
图2示出了根据本申请的一个实施例的语音控制方法的存储区域的示意图;FIG. 2 is a schematic diagram of a storage area of a voice control method according to an embodiment of the present application; FIG.
图3示出了根据本申请的另一个实施例的语音控制方法的存储区域的示意图;FIG. 3 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application; FIG.
图4示出了根据本申请的另一个实施例的语音控制方法的存储区域的示意图;4 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application;
图5示出了根据本申请的另一个实施例的语音控制方法的示意流程图;5 shows a schematic flowchart of a voice control method according to another embodiment of the present application;
图6示出了根据本申请的另一个实施例的语音控制方法的示意流程图;6 shows a schematic flowchart of a voice control method according to another embodiment of the present application;
图7示出了根据本申请的另一个实施例的语音控制方法的示意流程图;7 shows a schematic flowchart of a voice control method according to another embodiment of the present application;
图8示出了根据本申请的另一个实施例的语音控制方法的示意流程图。FIG. 8 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
具体实施方式detailed description
为了能够更清楚地理解本申请的上述目的、特征和优点,下面结合附图和具体实施方式对本申请进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to more clearly understand the foregoing objectives, features, and advantages of the present application, the present application is described in further detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本申请,但是, 本申请还可以采用其他不同于在此描述的其他方式来实施,因此,本申请的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present application. However, the present application can also be implemented in other ways than those described herein. Therefore, the scope of protection of the present application is not limited to the specifics disclosed below. Limitations of Examples.
下面结合图1至图8对根据本申请的实施例的语音控制方法进行具体说明。The voice control method according to the embodiment of the present application will be specifically described below with reference to FIGS. 1 to 8.
图1示出了根据本申请的一个实施例的语音控制方法的示意流程图。FIG. 1 shows a schematic flowchart of a voice control method according to an embodiment of the present application.
图2示出了根据本申请的一个实施例的语音控制方法的存储区域的示意图。FIG. 2 is a schematic diagram of a storage area of a voice control method according to an embodiment of the present application.
图3示出了根据本申请的另一个实施例的语音控制方法的存储区域的示意图。FIG. 3 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application.
图4示出了根据本申请的另一个实施例的语音控制方法的存储区域的示意图。FIG. 4 is a schematic diagram of a storage area of a voice control method according to another embodiment of the present application.
图5示出了根据本申请的另一个实施例的语音控制方法的示意流程图。FIG. 5 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
图6示出了根据本申请的另一个实施例的语音控制方法的示意流程图。FIG. 6 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
图7示出了根据本申请的另一个实施例的语音控制方法的示意流程图。FIG. 7 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
图8示出了根据本申请的另一个实施例的语音控制方法的示意流程图。FIG. 8 shows a schematic flowchart of a voice control method according to another embodiment of the present application.
实施例一Example one
如图1所示,根据本申请的一个实施例的语音控制方法,包括:步骤S102,播报已执行的第一控制指令,并将第一控制指令存储为对比指令;步骤S104,响应于用户的语音输入信息,生成待播报的第二控制指令;步骤S106,检测第二控制指令的时间戳与对比指令的时间戳之间的时间差;步骤S108,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报。As shown in FIG. 1, a voice control method according to an embodiment of the present application includes: Step S102, broadcasting an executed first control instruction, and storing the first control instruction as a comparison instruction; Step S104, in response to a user's Input information by voice to generate a second control instruction to be broadcast; step S106, detecting a time difference between the time stamp of the second control instruction and the time stamp of the comparison instruction; step S108, according to the magnitude relationship between the time difference and the preset time difference, It is determined whether a data bit comparison is required for the second control instruction and the comparison instruction, and then it is determined whether the second control instruction is broadcast.
在该技术方案中,播报已执行的第一控制指令,并将第一控制指令存储为对比指令,由于误识别的重复控制指令通常是在短时间内生成的,因此,控制指令的时间戳较为接近,那么,在生成待播报的第二控制指令时,首先,通过比对第二控制指令与对比指令之间的时间戳,来判断第二控制指令是否为误识别的重复控制指令,如果第二控制指令与对比指令之间的时间戳非常接近,那么需要进一步地比对数据位是否相同,进而更加准确地判断第二控制指令是否为误识别的重复控制指令。In this technical solution, the executed first control instruction is broadcasted, and the first control instruction is stored as a comparison instruction. Since the misidentified repeated control instruction is usually generated in a short time, the time stamp of the control instruction is relatively If it is close, then when generating the second control instruction to be broadcast, first, by comparing the timestamp between the second control instruction and the comparison instruction, it is determined whether the second control instruction is a misidentified repeated control instruction. The timestamps between the second control instruction and the comparison instruction are very close, then it is necessary to further compare whether the data bits are the same, and then more accurately determine whether the second control instruction is a misidentified duplicate control instruction.
其中,上述语音控制方法是在语音识别模块中实现的,而为了降低语音识别模块的功耗,语音识别模块通常属于休眠模式,在将用户发出的语音输入信息转换为指令并确定其中包括预设的控制指令时,语音识别模块才进入苏醒模式,并将控制指令转发至家用电器的硬件驱动模块(或称为控制芯片),苏醒模式下的每次持续时间大于或等于预设时间差,优选地,预设时间差被设置为1秒~5秒。Wherein, the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset The voice recognition module only enters the wake-up mode when the control instruction is received, and forwards the control instruction to the hardware drive module (or control chip) of the home appliance. Each duration in the wake-up mode is greater than or equal to a preset time difference, preferably The preset time difference is set to 1 second to 5 seconds.
优选地,分别设置第一存储区域和第二存储区域,分别用于存储待播报的第二控制指令和对比指令,其中,第一存储区域和第二存储区域优选为先入先出的存储空间,指针由队列头部向尾部逐渐移动,指针指向的控制指令是进行比对的对象,而经过比对后的控制指令即被清除掉,以释放缓存空间。Preferably, a first storage area and a second storage area are respectively provided for storing a second control instruction and a comparison instruction to be broadcast, wherein the first storage area and the second storage area are preferably first-in-first-out storage space, The pointer moves gradually from the head to the tail of the queue. The control instruction pointed by the pointer is the object to be compared. After the comparison, the control instruction is cleared to release the buffer space.
本领域技术人员能够理解的是,在判断上述第二控制指令(位于第一存储区域的队列首位)是否重复时,对比指令位于第二存储区域的队列首位,以此类推,根据第二存储区域内的对比指令对第一存储区域内待播报的第二控制指令依次进行判断。Those skilled in the art can understand that when judging whether the second control instruction (first in the queue of the first storage area) is repeated, the comparison instruction is in the first queue of the second storage area, and so on, according to the second storage area The internal comparison instruction sequentially judges the second control instruction to be broadcast in the first storage area.
另外,预设时间差是通过大量实验数据确定的经验值,也即语音识别模块生成的误识别的控制指令仅可能在上述预设时间差内产生,因此,在检测到时间差超过预设时间差时,则可以确定第二控制指令不是误识别产生的控制指令。In addition, the preset time difference is an empirical value determined through a large amount of experimental data, that is, a misrecognition control instruction generated by the voice recognition module may only be generated within the above preset time difference. Therefore, when it is detected that the time difference exceeds the preset time difference, then It can be determined that the second control instruction is not a control instruction generated by misidentification.
值得特别指出的是,第二存储区域的指针每次移动的周期大于或等于上述预设时间差,即指针指向第二存储区域的队列首位的控制指令的时间大于或等于上述预设时间差,另外,在第二存储区域为空时,说明预设时间差内不存在已播报的对比指令,等待第一存储区域的队列首位的第二控制指令完成执行,即可直接播对其进行播报。It is worth pointing out that the cycle of each pointer movement in the second storage area is greater than or equal to the preset time difference, that is, the time that the pointer points to the first control instruction in the queue of the second storage area is greater than or equal to the preset time difference. In addition, When the second storage area is empty, it means that there is no comparison instruction that has been broadcast within the preset time difference. Waiting for the second control instruction at the top of the queue in the first storage area to finish executing, you can directly broadcast it.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报,具体包括:在检测到时间差小于或等于预设时间差时,比对第二控制指令的数据长度位与对比指令的数据长度位是否相同;在确定第二控制指令的数据长度位与对比指令的数据长度位相同时,比对第二控制指令携带的数据指示位与对比指令的数据指示位是否相同;在确定第二控制指令携带的数据指示位与对比指令的数据指示位相同时,确定不播报第二控制指令。In any of the above technical solutions, preferably, according to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically Including: when detecting that the time difference is less than or equal to the preset time difference, comparing whether the data length bit of the second control instruction is the same as the data length bit of the comparison instruction; determining whether the data length bit of the second control instruction is the same as the data length of the comparison instruction When the bits are the same, compare whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction; when it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
在该技术方案中,通过在检测到时间差小于或等于预设时间差,如果能够进一步地确定第二控制指令的数据长度位与对比指令的数据长度位相同,且确定第二控制指令携带的数据指示位与对比指令的数据指示位相同,则可以确定第二控制指令由于语音识别模块误识别或用户重复语音输入信息而产生的,因此作为误识别的重复指令,即不需要被执行,也不需要再次被语音播报。In this technical solution, by detecting that the time difference is less than or equal to a preset time difference, if it can be further determined that the data length bit of the second control instruction is the same as the data length bit of the comparison instruction, and the data indication carried by the second control instruction is determined If the bit is the same as the data indication bit of the comparison instruction, it can be determined that the second control instruction is generated due to misrecognition by the voice recognition module or the user repeatedly inputs voice information. Therefore, as a misidentified repetitive instruction, it does not need to be executed or required. Voiced again.
其中,控制指令的数据长度位是指数据包的长度,为了提高检测的效率和准确度,优选地,先判断对比指令的数据长度位是否与第二控制指令的数据长度位相同,如果数据长度位不同,则可以确定对比指令和第二控 制指令为不同的语音输入信息,此时第二控制指令是需要被执行且语音播报的,而如果数据长度位相同,再进一步地判断上述两个控制指令的数据指示位是否相同,以进一步地提高本申请限定的语音控制方案的准确性和可靠性。The data length bit of the control instruction refers to the length of the data packet. In order to improve the detection efficiency and accuracy, it is preferred to first determine whether the data length bit of the comparison instruction is the same as the data length bit of the second control instruction. If the bits are different, it can be determined that the comparison command and the second control command are different voice input information. At this time, the second control command needs to be executed and the voice is broadcasted. If the data length is the same, then the two controls are further judged. Whether the data indication bits of the instructions are the same, to further improve the accuracy and reliability of the voice control scheme defined in the present application.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报,具体还包括:在检测到时间差小于或等于预设时间差时,按照控制指令的编码顺序依次比对第二控制指令与对比指令的每个数据位是否相同;在依次确定第二控制指令与对比指令的每个数据位均相同时,确定不播报第二控制指令。In any of the above technical solutions, preferably, according to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically It also includes: when detecting that the time difference is less than or equal to a preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction is the same according to the coding order of the control instruction; When each data bit is the same, it is determined not to broadcast the second control instruction.
在该技术方案中,由于将用户的语音输入信息生成控制指令的算法是一致的,即对比指令与第二控制指令的编码结构是相同的,因此,通过在检测到时间差小于或等于预设时间差时,按照控制指令的编码顺序依次比对第二控制指令与对比指令的每个数据位是否相同,可以最大程度地提高比对第二控制指令与对比指令的准确地和可靠性。In this technical solution, since the algorithm of generating the user's voice input information for the control instruction is the same, that is, the encoding structure of the comparison instruction and the second control instruction is the same, therefore, by detecting that the time difference is less than or equal to the preset time difference In this case, comparing each data bit of the second control instruction and the comparison instruction in sequence according to the encoding order of the control instruction can improve the accuracy and reliability of the comparison between the second control instruction and the comparison instruction to the greatest extent.
另外,如果语言播报功能作为一个独立的进程,是可以被随时开启或关闭的,其与语音识别功能之间互不干扰,那么,在控制指令被执行完毕后,需要检测语音播报功能是否开启,进而确定是否播报第二控制指令,在等待第二控制指令完成播报后,再将其作为新的对比指令拷贝至第二存储区域,如果语音播报功能未开启,则不播报第二控制指令,也不将其拷贝至第二存储区域。In addition, if the language broadcasting function can be turned on or off at any time as an independent process, and it does not interfere with the speech recognition function, then after the control instruction is executed, it is necessary to check whether the speech broadcasting function is turned on. Then determine whether to broadcast the second control instruction. After waiting for the second control instruction to finish broadcasting, copy it as a new comparison instruction to the second storage area. If the voice broadcast function is not enabled, the second control instruction is not broadcasted. It is not copied to the second storage area.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系确定是否对第二控制指令和对比指令进行比对,具体还包括:在检测到时间差小于或等于预设时间差时,比对第二控制指令的指定数据位与对比指令的指定数据位是否相同;在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,根据第二控制指令的执行结果确定是否播报。In any of the above technical solutions, preferably, determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and the preset time difference, and specifically includes: detecting that the time difference is less than or equal to the preset time difference. When determining whether the designated data bit of the second control instruction is the same as the designated data bit of the comparison instruction; when it is determined that the designated data bit of the second control instruction is not the same as the designated data bit of the comparison instruction, according to the execution of the second control instruction The result determines whether to broadcast.
在该技术方案中,在根据语音输入信息生成待播报的第二控制指令时,为了减小数据交互冲突,在第二控制指令中的数据位中包括多个冗余数据位和信息数据位,其中,冗余数据位是用于指示通信规则,而信息数据位是用于指示控制信息的数据内容,即使第二控制指令与对比指令不同,其冗余数据位也可能是相同的,因此,通过在检测到时间差小于或等于预设时间差时,比对第二控制指令的指定数据位与对比指令的指定数据位是否相同,优选地,指定数据位为上述信息数据位,不需要对冗余数据位进行比对,能够有效地提升判断第二控制指令是否播报的准确性和可靠性。In this technical solution, when generating the second control instruction to be broadcast according to the voice input information, in order to reduce data interaction conflicts, the data bits in the second control instruction include multiple redundant data bits and information data bits. Among them, the redundant data bits are used to indicate the communication rules, and the information data bits are used to indicate the data content of the control information. Even if the second control instruction is different from the comparison instruction, the redundant data bits may be the same. Therefore, By detecting whether the specified data bit of the second control instruction is the same as the specified data bit of the comparison instruction when it is detected that the time difference is less than or equal to the preset time difference, preferably, the specified data bit is the above-mentioned information data bit, and no redundancy is required. The comparison of the data bits can effectively improve the accuracy and reliability of judging whether the second control instruction is broadcast.
在上述任一技术方案中,优选地,在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,根据第二控制指令的执行结果确定是否播报,具体包括:在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,确定第二控制指令为需要进行播报的指令;在接收到第二控制指令已被执行的反馈信息时,在预设时间间隔内对第二控制指令进行播报。In any of the above technical solutions, preferably, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, determining whether to broadcast according to the execution result of the second control instruction specifically includes: When the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined that the second control instruction is an instruction that needs to be broadcasted; when receiving feedback information that the second control instruction has been executed, at a preset time interval The second control instruction is broadcasted within.
在该技术方案中,在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,不需要比对冗余数据位,即可确定第二控制指令为需要进行播报的指令,同时,通过在接收到第二控制指令已被执行的反馈信息时,在预设时间间隔内对第二控制指令进行播报,有利于提高语音播报的可靠性和准确性。In this technical solution, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is not necessary to compare the redundant data bits, and the second control instruction can be determined to be an instruction that needs to be broadcast. At the same time, when receiving feedback information that the second control instruction has been executed, broadcasting the second control instruction within a preset time interval is beneficial to improving the reliability and accuracy of the voice broadcast.
在上述任一技术方案中,优选地,响应于用户的语音输入信息,生成待播报的第二控制指令,具体包括:响应于用户的语音输入信息,按照预设的编码算法对语音输入信息进行编码,以生成第二控制指令;对生成的第二控制指令添加时间戳;按照时间戳的添加顺序依次排列生成的第二控制指令。In any of the above technical solutions, preferably, generating a second control instruction to be broadcast in response to the user's voice input information specifically includes: in response to the user's voice input information, performing voice input information according to a preset encoding algorithm Encoding to generate a second control instruction; adding a timestamp to the generated second control instruction; arranging the generated second control instructions in order according to the order of adding the timestamps.
在该技术方案中,通过响应于用户的语音输入信息,按照预设的编码算法对语音输入信息进行编码,以生成第二控制指令;对生成的第二控制指令添加时间戳,时间戳用于计算第二控制指令与对比指令之间的时间间隔,并且对控制指令添加的时间戳是始终不变的。In this technical solution, a second control instruction is generated by encoding the speech input information according to a preset encoding algorithm in response to the user's speech input information, and adding a timestamp to the generated second control instruction. The timestamp is used for The time interval between the second control instruction and the comparison instruction is calculated, and the time stamp added to the control instruction is always the same.
实施例二Example two
根据本申请的另一个实施例的语音控制方法,包括:在检测到第一存储区域的指针指向的第一控制指令已被执行后,将其拷贝至第二存储区域并记作对比指令;在第一存储区域的指针指向第二控制指令时,计算第二控制指令的时间戳与第二存储区域的指针指向的对比指令的时间戳之间的时间差;根据时间差与预设时间差之间的大小关系确定是否播报第二控制指令。The voice control method according to another embodiment of the present application includes: after detecting that the first control instruction pointed by the pointer of the first storage area has been executed, copying it to the second storage area and recording it as a comparison instruction; When the pointer of the first storage area points to the second control instruction, the time difference between the time stamp of the second control instruction and the time stamp of the comparison instruction pointed to by the pointer of the second storage area is calculated; according to the size between the time difference and the preset time difference The relationship determines whether to broadcast the second control instruction.
在该技术方案中,由于第二存储区域内的对比指令均为已播报的第一控制指令,因此,通过在第一存储区域的指针指向第二控制指令时,计算第二控制指令的时间戳与对比指令的时间戳之间的时间差,能够准确且可靠地检测出第二控制指令是否为误识别的重复指令,为了进一步地提高语音控制方案的准确性,继续根据时间差与预设时间差之间的大小关系确定是否播报第二控制指令,尤其是在时间差较小时,需要进一步地分析控制指令与对比指令的内容是否重复,进而确定是否对第二控制指令进行语音播报。In this technical solution, since the comparison instructions in the second storage area are all broadcasted first control instructions, the time stamp of the second control instruction is calculated when the pointer of the first storage area points to the second control instruction. The time difference between the timestamp and the comparison instruction can accurately and reliably detect whether the second control instruction is a misidentified duplicate instruction. In order to further improve the accuracy of the voice control scheme, continue to calculate the difference between the time difference and the preset time difference. The size relationship determines whether to broadcast the second control instruction, especially when the time difference is small, it is necessary to further analyze whether the content of the control instruction and the comparison instruction are duplicated, and then determine whether to broadcast the second control instruction by voice.
如图2所示,第一存储区域200内存储有按时间戳顺序排列的多个第二控制指令202、指令203……指令20n,n为大于等于3的正整数,指针A指向于队列首位的第二控制指令202,另外,已播报的第一控制指令被拷贝至第二存储区域300,即上述对比指令201,并作为第二存储区域300的队列首位而被指针B指向。As shown in FIG. 2, the first storage area 200 stores a plurality of second control instructions 202, instructions 203, ... instructions 20n arranged in a timestamp order, n is a positive integer greater than or equal to 3, and pointer A points to the top of the queue. In addition, the broadcasted first control instruction is copied to the second storage area 300, that is, the above comparison instruction 201, and is pointed by the pointer B as the first queue of the second storage area 300.
首先,默认语言播放功能是开启的,在需要判断控制指令202是否需要被播报时,第二控制指令202和对比指令201进行比对,其次,确定第二控制指令202的时间戳与对比指令201的时间戳之间的时间差,并包括以下具体情况:First, the default language playback function is enabled. When it is necessary to determine whether the control instruction 202 needs to be broadcasted, the second control instruction 202 is compared with the comparison instruction 201. Second, the time stamp of the second control instruction 202 and the comparison instruction 201 are determined. The time difference between the timestamps and includes the following:
(1)如果时间差大于预设时间差,则等待第二控制指令202被执行后,确定需要对其进行播报,并将其拷贝至第二存储区域300。(1) If the time difference is greater than the preset time difference, after the second control instruction 202 is executed, it is determined that it needs to be broadcasted and copied to the second storage area 300.
(2)如果时间差小于或等于预设时间差,则比对第二控制指令202与对比指令201是否相同,优选地,先比对二者的数据长度位是否相同,如果数据长度位相同,再比对二者的数据指示位是否相同。(2) If the time difference is less than or equal to the preset time difference, compare whether the second control instruction 202 and the comparison instruction 201 are the same. Preferably, first compare whether the data length bits of the two are the same. If the data length bits are the same, then compare The data indicates whether the bits are the same.
(3)如果数据长度位和数据指示位均相同,则确定第二控制指令202是误识别对比指令201的重复控制指令。(3) If both the data length bit and the data indication bit are the same, determine that the second control instruction 202 is a duplicate control instruction that misidentifies the comparison instruction 201.
(4)如图3所示,如果数据长度位或数据指示位不同,则等待第二控制指令202被执行后,确定需要对其进行播报,将其拷贝至第二存储区域300,第二存储区域300的指针B指向新的对比指令(即第二控制指令202),以等待判断第一存储区域的下一个第二控制指令203是否需要播报。(4) As shown in FIG. 3, if the data length bits or data indication bits are different, after the second control instruction 202 is executed, it is determined that it needs to be broadcasted, and it is copied to the second storage area 300, and the second storage The pointer B of the area 300 points to a new comparison instruction (ie, the second control instruction 202), waiting to determine whether the next second control instruction 203 of the first storage area needs to be broadcast.
(5)如图4所示,在将对比指令202拷贝至第二存储区域300后,第二存储区域300的指针B指向对比指令202,计算第二控制指令203的时间戳与对比指令202的时间戳之间的时间差,并确定时间差小于或等于预设时间差,但是,二者的数据长度位相同且数据指示位相同,此时,指针A指向下一个第二控制指令204,且清除上一个第二控制指令203。(5) As shown in FIG. 4, after the comparison instruction 202 is copied to the second storage area 300, the pointer B of the second storage area 300 points to the comparison instruction 202, and the time stamp of the second control instruction 203 and the comparison instruction 202 are calculated. The time difference between the timestamps, and it is determined that the time difference is less than or equal to the preset time difference, but the data length bits of the two are the same and the data indication bits are the same. At this time, the pointer A points to the next second control instruction 204 and clears the previous one. Second control instruction 203.
实施例三Example three
如图5所示,根据本申请的另一个实施例的语音控制方法,包括:步骤S502,接收用户发出的语音输入信息,将语音输入信息转换为语音指令;步骤S504,判断语音指令是否与预设的控制信息匹配,若是,则执行步骤S506,若否,则执行步骤S508;步骤S506,唤醒语音识别模块,并将语音指令转换为控制指令并发送至控制芯片;步骤S508,清除上述语音指令;步骤S510,判断苏醒模式的持续时长是否达到预设时长,若是,则执行步骤S512,若否,则执行步骤S514;步骤S512,语音识别模块进入休眠模式;步骤S514,语音识别模块保持苏醒模式。As shown in FIG. 5, a voice control method according to another embodiment of the present application includes: Step S502, receiving voice input information sent by a user, and converting the voice input information into a voice command; and step S504, determining whether the voice command is in If the set control information matches, if yes, go to step S506; if not, go to step S508; step S506, wake up the voice recognition module, convert the voice command into a control command and send it to the control chip; step S508, clear the voice command Step S510, determine whether the duration of the wake-up mode reaches the preset duration; if so, go to step S512; if not, go to step S514; step S512, the voice recognition module enters the sleep mode; step S514, the voice recognition module maintains the wake-up mode .
其中,上述语音控制方法是在语音识别模块中实现的,而为了降低语 音识别模块的功耗,语音识别模块通常属于休眠模式,在将用户发出的语音输入信息转换为指令并确定其中包括预设的控制指令(唤醒词)时,语音识别模块才进入苏醒模式,并将控制指令转发至家用电器的硬件驱动模块(或称为控制芯片),苏醒模式下的每次持续时间大于或等于预设时间差,优选地,预设时间差被设置为1秒~5秒。Wherein, the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset When the control command (wake word) is activated, the voice recognition module enters the wake-up mode and forwards the control instruction to the hardware drive module (or control chip) of the home appliance. Each duration in the wake-up mode is greater than or equal to a preset The time difference, preferably, the preset time difference is set to 1 second to 5 seconds.
实施例四Embodiment 4
如图6所示,根据本申请的另一个实施例的语音控制方法,包括:步骤S602,判断通信接口是否接收到控制指令,若是,则执行步骤S604,若否,则结束;步骤S604,对接收到的控制指令添加时间戳;步骤S606,将添加时间戳后的控制指令添加至第一存储区域;步骤S608,执行第一存储区域的数据解析流程。As shown in FIG. 6, a voice control method according to another embodiment of the present application includes: Step S602, determining whether the communication interface receives a control instruction, and if so, executing step S604, and if not, ending; and step S604, The received control instruction is time stamped; step S606, the time-stamped control instruction is added to the first storage area; and step S608, the data analysis process of the first storage area is executed.
实施例五Example 5
如图7所示,根据本申请的另一个实施例的语音控制方法,包括:开始执行第一存储区域的数据解析流程;步骤S702,判断第二存储区域是否有对比指令,若是,则执行步骤S704,若否,则执行步骤S712;步骤S704,确定第二存储区域的队列首位的对比指令的时间戳;步骤S706,判断对比指令与第一存储区域的队列首位的第二控制指令之间的时间差是否大于或等于预设时间差,若是,则执行步骤S710,若否,则执行步骤S708;步骤S708,执行第一存储区域与第二存储区域的比对流程;步骤S710,第二存储区域的指针移动至下一条对比指令;步骤S712,解析第一存储区域的队列首位的第二控制指令;步骤S714,判断第一存储区域的队列首位的第二控制指令是否已执行,若是,则执行步骤S716,若否,则返回执行步骤S714;步骤S716,判断是否开启语音播报功能,若是,则执行步骤S720,若否,则执行步骤S718;步骤S718,不进行语音播报;步骤S720,播报执行成功的语音;步骤S722,将执行且播报的第二控制指令拷贝至第二存储区域的队列尾部,作为新的对比指令;步骤S724,控制第一存储区域的指针指向下一个第二控制指令;步骤S726,判断第一存储区域是否有控制指令,若是,则执行步骤S702,若否,则结束。As shown in FIG. 7, a voice control method according to another embodiment of the present application includes: starting to execute a data analysis process of a first storage area; step S702, determining whether a comparison instruction is provided in a second storage area, and if yes, performing steps In step S704, if no, execute step S712; in step S704, determine the timestamp of the first comparison instruction in the queue of the second storage area; and in step S706, determine the time between the comparison instruction and the second control instruction of the queue first in the first storage area. Whether the time difference is greater than or equal to the preset time difference, if yes, go to step S710; if not, go to step S708; step S708, execute the comparison process between the first storage area and the second storage area; step S710, the second storage area The pointer moves to the next comparison instruction; step S712, analyzes the second control instruction in the first queue of the first storage area; step S714, determines whether the second control instruction in the first queue of the first storage area has been executed, and if so, executes step S716, if not, go back to step S714; step S716, determine whether to enable the voice broadcast function, and if so, then Go to step S720, if not, go to step S718; step S718, don't perform voice broadcast; step S720, broadcast the successful voice; step S722, copy the executed and broadcast second control instruction to the tail of the queue in the second storage area As a new comparison instruction; step S724, the pointer controlling the first storage area points to the next second control instruction; step S726, determining whether there is a control instruction in the first storage area; if yes, step S702 is performed; if not, the process ends .
实施例六Example Six
如图8所示,根据本申请的另一个实施例的语音控制方法,包括:开始执行第一存储区域和第二存储区域的对比流程;步骤S802,判断第一存储区域的队列首位的第二控制指令的数据长度位与第二存储区域的队列首位的对比指令的数据长度位是否一致,若是,则执行步骤S806,若否,则执行步骤S804;步骤S804,判断第一存储区域的队列首位的第二控制指令的数据指示位与第二存储区域的队列首位的对比指令的数据指示位是否一 致,若是,则执行步骤S806,若否,则执行步骤S808;步骤S806,第一存储区域的指针移动至下一条第二控制指令;步骤S808,解析第一存储区域的队列首位的第二控制指令;步骤S810,判断第一存储区域的队列首位的第二控制指令是否已执行,若是,则执行步骤S814,若否,则返回执行步骤S810;步骤S812,不进行语音播报;步骤S814,判断是否开启语音播报功能,若是,则执行步骤S816,若否,则执行步骤S812;步骤S816,播报执行成功的语音;步骤S818,将执行完的第二控制指令拷贝至第二存储区域的队列尾部,作为新的对比指令;步骤S820,控制第一存储区域的指针指向下一个第二控制指令;步骤S822,判断第一存储区域是否有第二控制指令,若是,则执行步骤S824,若否,则结束;步骤S824,执行第一存储区域的数据解析流程。As shown in FIG. 8, a voice control method according to another embodiment of the present application includes: starting to execute a comparison process between a first storage area and a second storage area; and step S802, judging a second first in a queue of the first storage area. Check whether the data length bit of the control instruction is consistent with the data length bit of the first queue in the second storage area. If yes, go to step S806; if not, go to step S804; step S804, determine the first queue in the first storage area. Whether the data indication bit of the second control instruction of the second control instruction is consistent with the data indication bit of the first instruction in the queue of the second storage area; if yes, go to step S806; if no, go to step S808; step S806, the first storage area The pointer moves to the next second control instruction; step S808, analyzes the second control instruction in the first queue of the first storage area; step S810, determines whether the second control instruction in the first queue of the first storage area has been executed, and if so, then Step S814 is performed, and if not, step S810 is performed; step S812, no voice broadcast is performed; step S814, judgment If no, enable the voice broadcast function. If so, go to step S816; if not, go to step S812; step S816, broadcast the successfully executed voice; step S818, copy the executed second control instruction to the tail of the queue in the second storage area As a new comparison instruction; step S820, the pointer controlling the first storage area points to the next second control instruction; step S822, determining whether there is a second control instruction in the first storage area, and if so, executing step S824, and if not, The process ends; step S824, the data analysis process of the first storage area is executed.
实施例七Example Seven
根据本申请的实施例,还提出了一种计算机可读存储介质,其上存储有计算机程序,上述计算机程序被执行时实现以下步骤:播报已执行的第一控制指令,并将第一控制指令存储为对比指令;响应于用户的语音输入信息,生成待播报的第二控制指令;检测第二控制指令的时间戳与对比指令的时间戳之间的时间差;根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报。According to the embodiment of the present application, a computer-readable storage medium is also provided, and a computer program is stored on the computer program. When the computer program is executed, the following steps are implemented: broadcasting the executed first control instruction, and transmitting the first control instruction. Stored as a comparison instruction; in response to the user's voice input information, generating a second control instruction to be broadcast; detecting a time difference between the time stamp of the second control instruction and the time stamp of the comparison instruction; according to the time difference between the time difference and the preset time difference The size relationship determines whether a data bit comparison between the second control instruction and the comparison instruction is required, and then determines whether the second control instruction is broadcast.
在该技术方案中,播报已执行的第一控制指令,并将第一控制指令存储为对比指令,由于误识别的重复控制指令通常是在短时间内生成的,因此,控制指令的时间戳较为接近,那么,在生成待播报的第二控制指令时,首先,通过比对第二控制指令与对比指令之间的时间戳,来判断第二控制指令是否为误识别的重复控制指令,如果第二控制指令与对比指令之间的时间戳非常接近,那么需要进一步地比对数据位是否相同,进而更加准确地判断第二控制指令是否为误识别的重复控制指令。In this technical solution, the executed first control instruction is broadcasted, and the first control instruction is stored as a comparison instruction. Since the misidentified repeated control instruction is usually generated in a short time, the time stamp of the control instruction is relatively If it is close, then when generating the second control instruction to be broadcast, first, by comparing the timestamp between the second control instruction and the comparison instruction, it is determined whether the second control instruction is a misidentified repeated control instruction. The timestamps between the second control instruction and the comparison instruction are very close, then it is necessary to further compare whether the data bits are the same, and then more accurately determine whether the second control instruction is a misidentified duplicate control instruction.
其中,上述语音控制方法是在语音识别模块中实现的,而为了降低语音识别模块的功耗,语音识别模块通常属于休眠模式,在将用户发出的语音输入信息转换为指令并确定其中包括预设的控制指令时,语音识别模块才进入苏醒模式,并将控制指令转发至家用电器的硬件驱动模块(或称为控制芯片),苏醒模式下的每次持续时间大于或等于预设时间差,优选地,预设时间差被设置为1秒~5秒。Wherein, the above-mentioned voice control method is implemented in a voice recognition module, and in order to reduce the power consumption of the voice recognition module, the voice recognition module usually belongs to a sleep mode, and converts the voice input information issued by the user into an instruction and determines that it includes a preset The voice recognition module only enters the wake-up mode when the control instruction is received, and forwards the control instruction to the hardware drive module (or control chip) of the home appliance. Each duration in the wake-up mode is greater than or equal to a preset time difference, preferably The preset time difference is set to 1 second to 5 seconds.
优选地,分别设置第一存储区域和第二存储区域,分别用于存储待播报的第二控制指令和对比指令,其中,第一存储区域和第二存储区域优选为先入先出的存储空间,指针由队列头部向尾部逐渐移动,指针指向的控 制指令是进行比对的对象,而经过比对后的控制指令即被清除掉,以释放缓存空间。Preferably, a first storage area and a second storage area are respectively provided for storing a second control instruction and a comparison instruction to be broadcast, wherein the first storage area and the second storage area are preferably first-in-first-out storage space, The pointer moves gradually from the head to the tail of the queue. The control instruction pointed by the pointer is the object to be compared. After the comparison, the control instruction is cleared to release the buffer space.
本领域技术人员能够理解的是,在判断上述第二控制指令(位于第一存储区域的队列首位)是否重复时,对比指令位于第二存储区域的队列首位,以此类推,根据第二存储区域内的对比指令对第一存储区域内待播报的第二控制指令依次进行判断。Those skilled in the art can understand that when judging whether the second control instruction (first in the queue of the first storage area) is repeated, the comparison instruction is in the first queue of the second storage area, and so on, according to the second storage area The internal comparison instruction sequentially judges the second control instruction to be broadcast in the first storage area.
另外,预设时间差是通过大量实验数据确定的经验值,也即语音识别模块生成的误识别的控制指令仅可能在上述预设时间差内产生,因此,在检测到时间差超过预设时间差时,则可以确定第二控制指令不是误识别产生的控制指令。In addition, the preset time difference is an empirical value determined through a large amount of experimental data, that is, a misrecognition control instruction generated by the voice recognition module may only be generated within the above preset time difference. Therefore, when it is detected that the time difference exceeds the preset time difference, then It can be determined that the second control instruction is not a control instruction generated by misidentification.
值得特别指出的是,第二存储区域的指针每次移动的周期大于或等于上述预设时间差,即指针指向第二存储区域的队列首位的控制指令的时间大于或等于上述预设时间差,另外,在第二存储区域为空时,说明预设时间差内不存在已播报的对比指令,等待第一存储区域的队列首位的第二控制指令完成执行,即可直接播对其进行播报。It is worth pointing out that the cycle of each pointer movement in the second storage area is greater than or equal to the preset time difference, that is, the time that the pointer points to the first control instruction in the queue of the second storage area is greater than or equal to the preset time difference. In addition, When the second storage area is empty, it means that there is no comparison instruction that has been broadcast within the preset time difference. Waiting for the second control instruction at the top of the queue in the first storage area to finish executing, you can directly broadcast it.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报,具体包括:在检测到时间差小于或等于预设时间差时,比对第二控制指令的数据长度位与对比指令的数据长度位是否相同;在确定第二控制指令的数据长度位与对比指令的数据长度位相同时,比对第二控制指令携带的数据指示位与对比指令的数据指示位是否相同;在确定第二控制指令携带的数据指示位与对比指令的数据指示位相同时,确定不播报第二控制指令。In any of the above technical solutions, preferably, according to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically Including: when detecting that the time difference is less than or equal to the preset time difference, comparing whether the data length bit of the second control instruction is the same as the data length bit of the comparison instruction; determining whether the data length bit of the second control instruction is the same as the data length of the comparison instruction When the bits are the same, compare whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction; when it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
在该技术方案中,通过在检测到时间差小于或等于预设时间差,如果能够进一步地确定第二控制指令的数据长度位与对比指令的数据长度位相同,且确定第二控制指令携带的数据指示位与对比指令的数据指示位相同,则可以确定第二控制指令由于语音识别模块误识别或用户重复语音输入信息而产生的,因此作为误识别的重复指令,即不需要被执行,也不需要再次被语音播报。In this technical solution, by detecting that the time difference is less than or equal to a preset time difference, if it can be further determined that the data length bit of the second control instruction is the same as the data length bit of the comparison instruction, and the data indication carried by the second control instruction is determined If the bit is the same as the data indication bit of the comparison instruction, it can be determined that the second control instruction is generated due to misrecognition by the voice recognition module or the user repeatedly inputs voice information. Therefore, as a misidentified repetitive instruction, it does not need to be executed or required. Voiced again.
其中,控制指令的数据长度位是指数据包的长度,为了提高检测的效率和准确度,优选地,先判断对比指令的数据长度位是否与第二控制指令的数据长度位相同,如果数据长度位不同,则可以确定对比指令和第二控制指令为不同的语音输入信息,此时第二控制指令是需要被执行且语音播报的,而如果数据长度位相同,再进一步地判断上述两个控制指令的数据指示位是否相同,以进一步地提高本申请限定的语音控制方案的准确性和 可靠性。The data length bit of the control instruction refers to the length of the data packet. In order to improve the detection efficiency and accuracy, it is preferred to first determine whether the data length bit of the comparison instruction is the same as the data length bit of the second control instruction. If the bits are different, it can be determined that the comparison command and the second control command are different voice input information. At this time, the second control command needs to be executed and the voice is broadcasted. If the data length is the same, then the two controls are further judged. Whether the data indication bits of the instructions are the same, to further improve the accuracy and reliability of the voice control scheme defined in the present application.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系,确定是否需要对第二控制指令和对比指令进行数据位比对,进而确定第二控制指令是否播报,具体还包括:在检测到时间差小于或等于预设时间差时,按照控制指令的编码顺序依次比对第二控制指令与对比指令的每个数据位是否相同;在依次确定第二控制指令与对比指令的每个数据位均相同时,确定不播报第二控制指令。In any of the above technical solutions, preferably, according to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison between the second control instruction and the comparison instruction is required, and then whether the second control instruction is broadcast, specifically It also includes: when detecting that the time difference is less than or equal to a preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction is the same according to the coding order of the control instruction; When each data bit is the same, it is determined not to broadcast the second control instruction.
在该技术方案中,由于将用户的语音输入信息生成控制指令的算法是一致的,即对比指令与第二控制指令的编码结构是相同的,因此,通过在检测到时间差小于或等于预设时间差时,按照控制指令的编码顺序依次比对第二控制指令与对比指令的每个数据位是否相同,可以最大程度地提高比对第二控制指令与对比指令的准确地和可靠性。In this technical solution, since the algorithm of generating the user's voice input information for the control instruction is the same, that is, the encoding structure of the comparison instruction and the second control instruction is the same, therefore, by detecting that the time difference is less than or equal to the preset time difference In this case, comparing each data bit of the second control instruction and the comparison instruction in sequence according to the encoding order of the control instruction can improve the accuracy and reliability of the comparison between the second control instruction and the comparison instruction to the greatest extent.
另外,如果语言播报功能作为一个独立的进程,是可以被随时开启或关闭的,其与语音识别功能之间互不干扰,那么,在控制指令被执行完毕后,需要检测语音播报功能是否开启,进而确定是否播报第二控制指令,在等待第二控制指令完成播报后,再将其作为新的对比指令拷贝至第二存储区域,如果语音播报功能未开启,则不播报第二控制指令,也不将其拷贝至第二存储区域。In addition, if the language broadcasting function can be turned on or off at any time as an independent process, and it does not interfere with the speech recognition function, then after the control instruction is executed, it is necessary to check whether the speech broadcasting function is turned on. Then determine whether to broadcast the second control instruction. After waiting for the second control instruction to finish broadcasting, copy it as a new comparison instruction to the second storage area. If the voice broadcast function is not enabled, the second control instruction is not broadcasted. It is not copied to the second storage area.
在上述任一技术方案中,优选地,根据时间差与预设时间差之间的大小关系确定是否对第二控制指令和对比指令进行比对,具体还包括:在检测到时间差小于或等于预设时间差时,比对第二控制指令的指定数据位与对比指令的指定数据位是否相同;在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,根据第二控制指令的执行结果确定是否播报。In any of the above technical solutions, preferably, determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and the preset time difference, and specifically includes: detecting that the time difference is less than or equal to the preset time difference. When determining whether the designated data bit of the second control instruction is the same as the designated data bit of the comparison instruction; when it is determined that the designated data bit of the second control instruction is not the same as the designated data bit of the comparison instruction, according to the execution of the second control instruction The result determines whether to broadcast.
在该技术方案中,在根据语音输入信息生成待播报的第二控制指令时,为了减小数据交互冲突,在第二控制指令中的数据位中包括多个冗余数据位和信息数据位,其中,冗余数据位是用于指示通信规则,而信息数据位是用于指示控制信息的数据内容,即使第二控制指令与对比指令不同,其冗余数据位也可能是相同的,因此,通过在检测到时间差小于或等于预设时间差时,比对第二控制指令的指定数据位与对比指令的指定数据位是否相同,优选地,指定数据位为上述信息数据位,不需要对冗余数据位进行比对,能够有效地提升判断第二控制指令是否播报的准确性和可靠性。In this technical solution, when generating the second control instruction to be broadcast according to the voice input information, in order to reduce data interaction conflicts, the data bits in the second control instruction include multiple redundant data bits and information data bits. Among them, the redundant data bits are used to indicate the communication rules, and the information data bits are used to indicate the data content of the control information. Even if the second control instruction is different from the comparison instruction, the redundant data bits may be the same. Therefore, By detecting whether the specified data bit of the second control instruction is the same as the specified data bit of the comparison instruction when it is detected that the time difference is less than or equal to the preset time difference, preferably, the specified data bit is the above-mentioned information data bit, and no redundancy is required. The comparison of the data bits can effectively improve the accuracy and reliability of judging whether the second control instruction is broadcast.
在上述任一技术方案中,优选地,在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,根据第二控制指令的执行结果确定是否播报,具体包括:在确定第二控制指令的指定数据位与对比指令的指定 数据位不相同时,确定第二控制指令为需要进行播报的指令;在接收到第二控制指令已被执行的反馈信息时,在预设时间间隔内对第二控制指令进行播报。In any of the above technical solutions, preferably, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, determining whether to broadcast according to the execution result of the second control instruction specifically includes: When the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined that the second control instruction is an instruction that needs to be broadcasted; when receiving feedback information that the second control instruction has been executed, at a preset time interval The second control instruction is broadcasted within.
在该技术方案中,在确定第二控制指令的指定数据位与对比指令的指定数据位不相同时,不需要比对冗余数据位,即可确定第二控制指令为需要进行播报的指令,同时,通过在接收到第二控制指令已被执行的反馈信息时,在预设时间间隔内对第二控制指令进行播报,有利于提高语音播报的可靠性和准确性。In this technical solution, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is not necessary to compare the redundant data bits, and the second control instruction can be determined to be an instruction that needs to be broadcast. At the same time, when receiving feedback information that the second control instruction has been executed, broadcasting the second control instruction within a preset time interval is beneficial to improving the reliability and accuracy of the voice broadcast.
在上述任一技术方案中,优选地,响应于用户的语音输入信息,生成待播报的第二控制指令,具体包括:响应于用户的语音输入信息,按照预设的编码算法对语音输入信息进行编码,以生成第二控制指令;对生成的第二控制指令添加时间戳;按照时间戳的添加顺序依次排列生成的第二控制指令。In any of the above technical solutions, preferably, generating a second control instruction to be broadcast in response to the user's voice input information specifically includes: in response to the user's voice input information, performing voice input information according to a preset encoding algorithm Encoding to generate a second control instruction; adding a timestamp to the generated second control instruction; arranging the generated second control instructions in order according to the order of adding the timestamps.
在该技术方案中,通过响应于用户的语音输入信息,按照预设的编码算法对语音输入信息进行编码,以生成第二控制指令;对生成的第二控制指令添加时间戳,时间戳用于计算第二控制指令与对比指令之间的时间间隔,并且对控制指令添加的时间戳是始终不变的。In this technical solution, a second control instruction is generated by encoding the speech input information according to a preset encoding algorithm in response to the user's speech input information, and adding a timestamp to the generated second control instruction. The timestamp is used for The time interval between the second control instruction and the comparison instruction is calculated, and the time stamp added to the control instruction is always the same.
以上结合附图详细说明了本申请的技术方案,本申请提出了一种语音控制方法、模块、家电设备、系统和计算机存储介质,播报已执行的第一控制指令,并将第一控制指令存储为对比指令,由于误识别的重复控制指令通常是在短时间内生成的,因此,控制指令的时间戳较为接近,那么,在生成待播报的第二控制指令时,首先,通过比对第二控制指令与对比指令之间的时间戳,来判断第二控制指令是否为误识别的重复控制指令,如果第二控制指令与对比指令之间的时间戳非常接近,那么需要进一步地比对数据位是否相同,进而更加准确地判断第二控制指令是否为误识别的重复控制指令。The technical solution of the present application has been described in detail above with reference to the accompanying drawings. The present application proposes a voice control method, module, home appliance, system, and computer storage medium, broadcasts the executed first control instruction, and stores the first control instruction In order to compare the instructions, the misidentified repetitive control instructions are usually generated in a short time, so the timestamps of the control instructions are relatively close. When generating the second control instruction to be broadcast, first, the second The timestamp between the control instruction and the comparison instruction to determine whether the second control instruction is a misidentified duplicate control instruction. If the timestamp between the second control instruction and the comparison instruction is very close, then the data bits need to be further compared. Whether they are the same, and then it is more accurately judged whether the second control instruction is a misidentified repeated control instruction.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流 程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate Means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本申请可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding a part does not exclude the presence of a plurality of such parts. The application can be implemented by means of hardware comprising several distinct parts, and by means of a suitably programmed computer. In the unit claim listing several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third does not imply any order. These words can be interpreted as names.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the following claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the claims of the present application and their equivalent technologies, and this application is also intended to include these changes and modifications.

Claims (11)

  1. 一种语音控制方法,其中,包括:A voice control method, including:
    播报已执行的第一控制指令,并将所述第一控制指令存储为对比指令;Broadcast the executed first control instruction, and store the first control instruction as a comparison instruction;
    响应于用户的语音输入信息,生成待播报的第二控制指令;Generating a second control instruction to be broadcast in response to the user's voice input information;
    检测所述第二控制指令的时间戳与所述对比指令的时间戳之间的时间差;Detecting a time difference between a time stamp of the second control instruction and a time stamp of the comparison instruction;
    根据所述时间差与预设时间差之间的大小关系,确定是否需要对所述第二控制指令和所述对比指令进行数据位比对,进而确定所述第二控制指令是否播报。According to the magnitude relationship between the time difference and the preset time difference, it is determined whether a data bit comparison of the second control instruction and the comparison instruction is required, and then it is determined whether the second control instruction is broadcast.
  2. 根据权利要求1所述的语音控制方法,其中,根据所述时间差与预设时间差之间的大小关系,确定是否需要对所述第二控制指令和所述对比指令进行数据位比对,进而确定所述第二控制指令是否播报,具体包括:The voice control method according to claim 1, wherein, according to a magnitude relationship between the time difference and a preset time difference, it is determined whether a data bit comparison of the second control instruction and the comparison instruction is required, and then determine Whether the second control instruction is broadcast specifically includes:
    在检测到所述时间差小于或等于所述预设时间差时,比对所述第二控制指令的数据长度位与所述对比指令的数据长度位是否相同;When detecting that the time difference is less than or equal to the preset time difference, comparing whether a data length bit of the second control instruction is the same as a data length bit of the comparison instruction;
    在确定所述第二控制指令的数据长度位与所述对比指令的数据长度位相同时,比对所述第二控制指令携带的数据指示位与所述对比指令的数据指示位是否相同;When determining that the data length bit of the second control instruction is the same as the data length bit of the comparison instruction, comparing whether the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction;
    在确定所述第二控制指令携带的数据指示位与所述对比指令的数据指示位相同时,确定不播报所述第二控制指令。When it is determined that the data indication bit carried by the second control instruction is the same as the data indication bit of the comparison instruction, it is determined not to broadcast the second control instruction.
  3. 根据权利要求2所述的语音控制方法,其中,根据所述时间差与预设时间差之间的大小关系,确定是否需要对所述第二控制指令和所述对比指令进行数据位比对,进而确定所述第二控制指令是否播报,具体还包括:The voice control method according to claim 2, wherein, according to a magnitude relationship between the time difference and a preset time difference, it is determined whether a data bit comparison of the second control instruction and the comparison instruction is required, and then determine Whether the second control instruction is broadcast specifically further includes:
    在检测到所述时间差小于或等于所述预设时间差时,按照控制指令的编码顺序依次比对所述第二控制指令与所述对比指令的每个数据位是否相同;When detecting that the time difference is less than or equal to the preset time difference, sequentially comparing whether each data bit of the second control instruction and the comparison instruction are the same according to the encoding order of the control instruction;
    在依次确定所述第二控制指令与所述对比指令的每个数据位均相同时,确定不播报所述第二控制指令。When it is determined in sequence that each data bit of the second control instruction and the comparison instruction are the same, it is determined not to broadcast the second control instruction.
  4. 根据权利要求2所述的语音控制方法,其中,根据所述时间差与预设时间差之间的大小关系确定是否对所述第二控制指令和所述对比指令进行比对,具体还包括:The voice control method according to claim 2, wherein determining whether to compare the second control instruction and the comparison instruction according to a magnitude relationship between the time difference and a preset time difference, further comprising:
    在检测到所述时间差小于或等于所述预设时间差时,比对所述第二控制指令的指定数据位与所述对比指令的指定数据位是否相同;When detecting that the time difference is less than or equal to the preset time difference, comparing whether a designated data bit of the second control instruction is the same as a designated data bit of the comparison instruction;
    在确定所述第二控制指令的指定数据位与所述对比指令的指定数据位 不相同时,根据所述第二控制指令的执行结果确定是否播报。When it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, whether to broadcast is determined according to the execution result of the second control instruction.
  5. 根据权利要求4所述的语音控制方法,其中,在确定所述第二控制指令的指定数据位与所述对比指令的指定数据位不相同时,根据所述第二控制指令的执行结果确定是否播报,具体包括:The voice control method according to claim 4, wherein, when it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, it is determined whether or not it is based on an execution result of the second control instruction. Broadcast, including:
    在确定所述第二控制指令的指定数据位与所述对比指令的指定数据位不相同时,确定所述第二控制指令为需要进行播报的指令;When it is determined that the designated data bit of the second control instruction is different from the designated data bit of the comparison instruction, determining that the second control instruction is an instruction that needs to be broadcasted;
    在接收到所述第二控制指令已被执行的反馈信息时,在预设时间间隔内对所述第二控制指令进行播报。When feedback information that the second control instruction has been executed is received, the second control instruction is broadcasted within a preset time interval.
  6. 根据权利要求1至5中任一项所述的语音控制方法,其中,响应于用户的语音输入信息,生成待播报的第二控制指令,具体包括:The voice control method according to any one of claims 1 to 5, wherein in response to a user's voice input information, generating a second control instruction to be broadcasted specifically includes:
    响应于用户的语音输入信息,按照预设的编码算法对所述语音输入信息进行编码,以生成所述第二控制指令;In response to the user's voice input information, encoding the voice input information according to a preset coding algorithm to generate the second control instruction;
    对生成的所述第二控制指令添加时间戳;Adding a timestamp to the generated second control instruction;
    按照所述时间戳的添加顺序依次排列生成的所述第二控制指令。The generated second control instructions are arranged in sequence according to the order of adding the time stamps.
  7. 一种语音识别模块,其中,包括:A speech recognition module, including:
    存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至6中任一项所述的语音控制方法的步骤。A memory, a processor, and a program stored on the memory and executable on the processor, the program implementing the voice control method according to any one of claims 1 to 6 when executed by the processor A step of.
  8. 一种家电设备,其中,包括:A home appliance including:
    如权利要求7所述的语音识别模块;The speech recognition module according to claim 7;
    控制芯片,能够与所述语音识别模块之间进行控制指令交互,且能够执行所述控制指令。The control chip can perform control instruction interaction with the voice recognition module, and can execute the control instruction.
  9. 一种家电设备,其中,包括:A home appliance including:
    语音识别模块、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求1至6中任一项所述的语音控制方法的步骤。A speech recognition module, a memory, a processor, and a program stored on the memory and executable on the processor, and when the program is executed by the processor, the program is implemented according to any one of claims 1 to 6. Steps of the voice control method.
  10. 一种系统,其中,包括:A system including:
    服务器;server;
    如权利要求7所述的语音识别模块,所述服务器和所述语音识别模块能够进行控制指令交互;The voice recognition module according to claim 7, wherein the server and the voice recognition module can perform control instruction interaction;
    和/或如权利要求8或9所述的家电设备,所述服务器和所述家电设备能够进行控制指令交互。And / or the home appliance according to claim 8 or 9, the server and the home appliance can perform control instruction interaction.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被执行时,实现如权利要求1至6中任一项所述的语音控制方法的步骤。A computer-readable storage medium having stored thereon a computer program, wherein when the computer program is executed, the steps of the voice control method according to any one of claims 1 to 6 are implemented.
PCT/CN2019/079935 2018-08-27 2019-03-27 Voice control method, module, household appliance, system and computer storage medium WO2020042603A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810979063.4A CN109308897B (en) 2018-08-27 2018-08-27 Voice control method, module, household appliance, system and computer storage medium
CN201810979063.4 2018-08-27

Publications (1)

Publication Number Publication Date
WO2020042603A1 true WO2020042603A1 (en) 2020-03-05

Family

ID=65223891

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/079935 WO2020042603A1 (en) 2018-08-27 2019-03-27 Voice control method, module, household appliance, system and computer storage medium

Country Status (2)

Country Link
CN (1) CN109308897B (en)
WO (1) WO2020042603A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114974308A (en) * 2022-06-20 2022-08-30 宁波奥克斯电气股份有限公司 Automatic testing method and system for voice module

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308897B (en) * 2018-08-27 2022-04-26 广东美的制冷设备有限公司 Voice control method, module, household appliance, system and computer storage medium
CN111833584B (en) * 2019-04-17 2022-03-01 百度在线网络技术(北京)有限公司 Device control method, control device, control system, and storage medium
CN111830836B (en) * 2019-04-17 2024-10-11 百度在线网络技术(北京)有限公司 Control method and device of household appliance, sound box and computer storage medium
WO2021142999A1 (en) 2020-01-17 2021-07-22 青岛海信传媒网络技术有限公司 Content-based voice broadcasting method and display device
CN113141527B (en) * 2020-01-17 2022-06-14 青岛海信传媒网络技术有限公司 Voice playing method based on content and display equipment
CN111369993B (en) * 2020-03-03 2023-06-20 珠海格力电器股份有限公司 Control method, control device, electronic equipment and storage medium
CN111831113B (en) * 2020-05-29 2024-03-29 惠州华阳通用电子有限公司 Equipment control method and device
CN112256230B (en) * 2020-10-16 2024-07-05 广东美的厨房电器制造有限公司 Menu interaction method and system and storage medium
CN114320988B (en) * 2021-12-31 2023-05-23 珠海格力电器股份有限公司 Control method and control device for fan shaking
CN115834267A (en) * 2022-11-08 2023-03-21 深圳智尚未来科技有限公司 Internet of things voice intelligent application method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1612208A (en) * 2003-10-30 2005-05-04 台达电子工业股份有限公司 Voice identifying method
US9288590B2 (en) * 2013-08-09 2016-03-15 Samsung Electronics Co., Ltd. Hearing device and method of low power operation thereof
CN105810188A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
US9911414B1 (en) * 2013-12-20 2018-03-06 Amazon Technologies, Inc. Transient sound event detection
CN108172219A (en) * 2017-11-14 2018-06-15 珠海格力电器股份有限公司 method and device for recognizing voice
CN109308897A (en) * 2018-08-27 2019-02-05 广东美的制冷设备有限公司 Sound control method, module, household appliance, system and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831894B (en) * 2012-08-09 2014-07-09 华为终端有限公司 Command processing method, command processing device and command processing system
CN103970260B (en) * 2013-01-31 2017-06-06 华为技术有限公司 A kind of non-contact gesture control method and electric terminal equipment
CN104503252A (en) * 2014-12-16 2015-04-08 广东美的厨房电器制造有限公司 Household appliance, control method thereof, and information interaction system for household appliance
CN105323251A (en) * 2015-11-13 2016-02-10 飞天诚信科技股份有限公司 Method for realizing voice broadcast authentication and cloud authentication server
CN106982155A (en) * 2016-01-18 2017-07-25 中兴通讯股份有限公司 A kind of phonetic order processing method, device and intelligent gateway

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1612208A (en) * 2003-10-30 2005-05-04 台达电子工业股份有限公司 Voice identifying method
US9288590B2 (en) * 2013-08-09 2016-03-15 Samsung Electronics Co., Ltd. Hearing device and method of low power operation thereof
US9911414B1 (en) * 2013-12-20 2018-03-06 Amazon Technologies, Inc. Transient sound event detection
CN105810188A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN108172219A (en) * 2017-11-14 2018-06-15 珠海格力电器股份有限公司 method and device for recognizing voice
CN109308897A (en) * 2018-08-27 2019-02-05 广东美的制冷设备有限公司 Sound control method, module, household appliance, system and computer storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114974308A (en) * 2022-06-20 2022-08-30 宁波奥克斯电气股份有限公司 Automatic testing method and system for voice module

Also Published As

Publication number Publication date
CN109308897B (en) 2022-04-26
CN109308897A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
WO2020042603A1 (en) Voice control method, module, household appliance, system and computer storage medium
TWI665584B (en) A voice controlling system and method
WO2021036512A1 (en) Method and apparatus for controlling smart home device
KR102387567B1 (en) Method and apparatus for speech recognition
US11373646B2 (en) Household appliance control method, device and system, and intelligent air conditioner by determining user sound source location based on analysis of mouth shape
CN101452290B (en) Intelligent appliance control system based on speech recognition and wireless sensing net
KR102346302B1 (en) Electronic apparatus and Method of operating voice recognition in the electronic apparatus
US8972252B2 (en) Signal processing apparatus having voice activity detection unit and related signal processing methods
KR101510860B1 (en) Service Method and Server for Providing Application Comprehended User Intention
CN103999517B (en) The extraction and analysis of audio characteristic data
CN112130918B (en) Intelligent device awakening method, device and system and intelligent device
WO2017206725A1 (en) Smart refrigerator, server and language control system and method
JP2016526205A (en) Method and apparatus for controlling voice activation
CN111192590B (en) Voice wake-up method, device, equipment and storage medium
WO2022111103A1 (en) Remote controller control method and system, storage medium, and electronic device
CN111197841A (en) Control method, control device, remote control terminal, air conditioner, server and storage medium
TW201926324A (en) Emotion recognizing system and method, and smart robot using the same
CN112233676B (en) Intelligent device awakening method and device, electronic device and storage medium
WO2018028360A1 (en) Control method and device for smart robot, and robot
CN111754997A (en) Control device and operation method thereof, and voice interaction device and operation method thereof
CN111028831B (en) Voice awakening method and device
CN109324516A (en) Interface switching method and device, control equipment and storage medium
WO2018023515A1 (en) Gesture and emotion recognition home control system
CN111179924B (en) Method and system for optimizing awakening performance based on mode switching
WO2018023514A1 (en) Home background music control system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19854706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19854706

Country of ref document: EP

Kind code of ref document: A1