CN105741840B - Voice control method and device - Google Patents

Voice control method and device Download PDF

Info

Publication number
CN105741840B
CN105741840B CN201610211626.6A CN201610211626A CN105741840B CN 105741840 B CN105741840 B CN 105741840B CN 201610211626 A CN201610211626 A CN 201610211626A CN 105741840 B CN105741840 B CN 105741840B
Authority
CN
China
Prior art keywords
control
preset
command format
value
air conditioner
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610211626.6A
Other languages
Chinese (zh)
Other versions
CN105741840A (en
Inventor
左飞
崔彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unisound Intelligent Technology Co Ltd
Original Assignee
Beijing Yunzhisheng Information Technology Co Ltd
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 Beijing Yunzhisheng Information Technology Co Ltd filed Critical Beijing Yunzhisheng Information Technology Co Ltd
Priority to CN201610211626.6A priority Critical patent/CN105741840B/en
Publication of CN105741840A publication Critical patent/CN105741840A/en
Application granted granted Critical
Publication of CN105741840B publication Critical patent/CN105741840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F2110/00Control inputs relating to air properties
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/002Dynamic bit allocation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/005Correction of errors induced by the transmission channel, if related to the coding algorithm
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F2130/00Control inputs relating to environmental factors not covered by group F24F2110/00
    • F24F2130/40Noise
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B30/00Energy efficient heating, ventilation or air conditioning [HVAC]
    • Y02B30/70Efficient control or regulation technologies, e.g. for control of refrigerant flow, motor or heating

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Chemical & Material Sciences (AREA)
  • Signal Processing (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Atmospheric Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a voice control method and a voice control device, which are used for achieving the purpose of controlling an intelligent air conditioner through voice. The method comprises the following steps: receiving a control command sent by voice equipment, wherein the control command is obtained by coding voice information input by a user by the voice equipment according to a preset command format; decoding the control command according to the preset command format to obtain effective information carried in the control command; and executing the operation corresponding to the effective information. The technical scheme realizes the effect that the user controls the air conditioner in a voice input mode, and compared with the prior scheme that the air conditioner is controlled by using a remote controller, the technical scheme enables the user to control the air conditioner more conveniently and quickly and has fun.

Description

Voice control method and device
Technical Field
The present invention relates to the field of speech processing technologies, and in particular, to a speech control method and apparatus.
Background
With the increasing demand of users on living environments, home equipment provides more and more working modes, in the prior art, users manually control the operation mode or temperature and the like of an air conditioner through a remote controller, the traditional mode for controlling the air conditioner is very troublesome, and users urgently need a method for conveniently and quickly controlling the air conditioner. The invention provides a method for controlling an air conditioner by using voice aiming at the requirement of a user.
Disclosure of Invention
The embodiment of the invention provides a voice control method and device, which are used for achieving the purpose of controlling an intelligent air conditioner through voice.
A voice control method is applied to an intelligent air conditioner and comprises the following steps:
receiving a control command sent by voice equipment, wherein the control command is obtained by coding voice information input by a user by the voice equipment according to a preset command format;
decoding the control command according to the preset command format to obtain effective information carried in the control command;
and executing the operation corresponding to the effective information.
Some beneficial effects of the embodiments of the present invention may include:
according to the technical scheme, the control command obtained by coding the voice information input by the user according to the preset command format and sent by the voice equipment is received, the control command is decoded according to the preset command format, and then corresponding operation is executed, so that the effect that the user controls the air conditioner in a voice input mode is achieved.
In one embodiment, the control command includes N bytes, each byte corresponds to an encoded value, the encoded value includes an identification encoded value, a control type encoded value, a control parameter encoded value, or a check code of the smart air conditioner, and N is a positive integer greater than 1.
In the embodiment, the intelligent air conditioner can recognize the control command sent by the voice equipment by presetting the N bytes in the control command, so that the aim of controlling the air conditioner by voice is fulfilled.
In one embodiment, when the encoded value includes an identification encoded value of the smart air conditioner, the performing an operation corresponding to the valid information includes:
acquiring the identity identifier from the effective information according to first position information of the identity identifier code value in the preset command format;
judging whether the identity is matched with the intelligent air conditioner;
and when the identity identification is matched with the intelligent air conditioner, executing the operation corresponding to the effective information.
In the embodiment, whether corresponding operation is executed or not can be determined according to the identity in the effective information, so that the same voice device can simultaneously control a plurality of intelligent air conditioners, and any one of the intelligent air conditioners can be accurately and unmistakably controlled through verification of the identity.
In one embodiment, when the encoded value includes a control type encoded value and a control parameter encoded value of the smart air conditioner, the performing an operation corresponding to the valid information includes:
acquiring the control type and the control parameter from the effective information according to second position information corresponding to the control type code value in the preset command format and third position information corresponding to the control parameter code value;
and executing corresponding operation according to the control type and the control parameter.
In the embodiment, the control type and the control parameter can be acquired according to the position information of the control type code value and the control parameter code value in the preset command format, and then corresponding operation is executed according to the control type and the control parameter, so that the intelligent air conditioner can accurately identify the control type and the control parameter in the effective information, and the aim of controlling the air conditioner by voice is fulfilled.
In one embodiment, when the encoded value includes the check code, the decoding the control command according to the preset command format includes:
acquiring the check code from the control command according to fourth position information corresponding to the check code in the preset command format;
verifying whether the check code is correct or not according to the check rule of the check code in the preset command format;
when the check code is correct, decoding the control command according to the preset command format;
and when the check code is wrong, sending prompt information of physical transmission errors to the voice equipment.
In the embodiment, the check code can be obtained according to the position information of the check code in the preset command format and is checked, so that the condition of information error caused by physical transmission error is avoided, and the accuracy of the user in using the voice control air conditioner is improved.
In one embodiment, the method further comprises:
when the control command fails to be decoded according to the preset command format, determining a preset standby command format, wherein each byte corresponds to n coded values in at least one part of bytes in the preset standby command format, and n is a positive integer greater than 1;
and decoding the control command according to the preset standby command format.
In the embodiment, the control command can be decoded by adopting the preset standby command format under the condition that the decoding of the control command fails according to the preset command format, so that when the data in the effective information carried by the control command is more, the intelligent air conditioner can still accurately recognize the data in the effective information, and the accuracy of the user in using the voice control air conditioner is improved.
In one embodiment, the decoding the control command according to the preset standby command format includes:
determining fifth position information of the at least one part of bytes in the preset standby command format;
splitting the byte corresponding to the fifth position information according to a splitting rule in the preset standby command format to obtain a split coded value;
decoding the split encoded values.
In the embodiment, the bytes can be split according to the splitting rule in the preset standby command format, so that the effective information in the control command can be accurately analyzed, the condition of analysis error caused by more bytes in the control command is avoided, and the accuracy of the user in using the voice-controlled air conditioner is improved.
The utility model provides a speech control device, is applied to intelligent air conditioner, includes:
the receiving module is used for receiving a control command sent by voice equipment, wherein the control command is obtained by coding voice information input by a user by the voice equipment according to a preset command format;
the first decoding module is used for decoding the control command according to the preset command format to obtain effective information carried in the control command;
and the execution module is used for executing the operation corresponding to the effective information.
In one embodiment, the control command includes N bytes, each byte corresponds to an encoded value, the encoded value includes an identification encoded value, a control type encoded value, a control parameter encoded value, or a check code of the smart air conditioner, and N is a positive integer greater than 1.
In one embodiment, the execution module comprises:
the first obtaining submodule is used for obtaining the identity from the effective information according to first position information of the identity coding value in the preset command format when the coding value comprises the identity coding value of the intelligent air conditioner;
the judging submodule is used for judging whether the identity is matched with the intelligent air conditioner;
and the first execution sub-module is used for executing the operation corresponding to the effective information when the identity is matched with the intelligent air conditioner.
In one embodiment, the execution module comprises:
the second obtaining submodule is used for obtaining the control type and the control parameter from the effective information according to second position information corresponding to the control type code value and third position information corresponding to the control parameter code value in the preset command format when the code value comprises the control type code value and the control parameter code value of the intelligent air conditioner;
and the second execution submodule is used for executing corresponding operation according to the control type and the control parameter.
In one embodiment, the first decoding module comprises:
the third obtaining sub-module is used for obtaining the check code from the control command according to fourth position information corresponding to the check code in the preset command format when the coded value comprises the check code;
the verification submodule is used for verifying whether the check code is correct or not according to the check rule of the check code in the preset command format;
the first decoding submodule is used for decoding the control command according to the preset command format when the check code is correct;
and the sending submodule is used for sending prompt information of physical transmission errors to the voice equipment when the check code is wrong.
In one embodiment, the apparatus further comprises:
a determining module, configured to determine a preset standby command format when decoding of the control command according to the preset command format fails, where in at least a part of bytes in the preset standby command format, each byte corresponds to n encoded values, and n is a positive integer greater than 1;
and the second decoding module is used for decoding the control command according to the preset standby command format.
In one embodiment of the present invention,
the second decoding module includes:
the determining submodule is used for determining fifth position information of the at least one part of bytes in the preset standby command format;
the splitting submodule is used for splitting the byte corresponding to the fifth position information according to a splitting rule in the preset standby command format to obtain a split coded value;
and the second decoding submodule is used for decoding the split coded value.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a voice control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a voice control method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a step S13 of the voice control method according to the embodiment of the present invention;
FIG. 4 is a flowchart illustrating step S13 of the voice control method according to the embodiment of the present invention;
FIG. 5 is a flowchart illustrating step S12 of the voice control method according to the embodiment of the present invention;
FIG. 6 is a flow chart of a voice control method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating step S62 of the voice control method according to the embodiment of the present invention;
FIG. 8 is a block diagram of a voice control apparatus according to an embodiment of the present invention;
FIG. 9 is a block diagram of an execution module in the voice control apparatus according to an embodiment of the present invention;
FIG. 10 is a block diagram of an execution module in the voice control apparatus according to an embodiment of the present invention;
FIG. 11 is a block diagram of a first decoding module in the speech control apparatus according to the embodiment of the present invention;
FIG. 12 is a block diagram of a voice control apparatus according to an embodiment of the present invention;
fig. 13 is a block diagram of a second decoding module in the speech control apparatus according to the embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Fig. 1 is a flowchart of a voice control method according to an embodiment of the present invention. In this embodiment, relate to speech equipment and intelligent air conditioner both ends, wherein, speech equipment and intelligent air conditioner accessible serial ports hardware connection also can be connected through other wireless modes such as wifi. As shown in fig. 1, the method is applied to a smart air conditioner, and includes the following steps S11-S13:
and step S11, receiving a control command sent by the voice device, wherein the control command is obtained by the voice device by encoding the voice information input by the user according to a preset command format.
The voice device can be any device with a voice recognition function, such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant and the like.
The step of the voice device transmitting the control command to the smart air conditioner includes steps S21-S23 shown in fig. 2:
in step S21, the voice information input by the user is received.
And step S22, coding the voice information input by the user according to the preset command format to obtain the control command.
Before the speech equipment encodes the speech information, the speech information needs to be recognized firstly, and the specific recognition mode is as follows: searching and matching can be carried out according to the acoustic model and the language model which are trained in advance, and the acoustic model and the language model are converted into the text content corresponding to the voice information. In the process, in order to improve the accuracy of voice recognition, the voice information reaching a certain decibel value can be set and received, and the voice information with a smaller decibel value is directly filtered. The voice device can perform online recognition and can also perform offline recognition. For example, the speech device first performs online recognition on speech information, that is, performs online recognition using data such as a language database and an acoustic model on the network side, and performs offline recognition when a recognition result is not obtained within a certain period of time (for example, 5 seconds). Since the specific speech recognition process is the prior art, it is not described in detail.
And step S23, sending the coded control command to the intelligent air conditioner.
And step S12, decoding the control command according to the preset command format to obtain the effective information carried in the control command.
In step S13, an operation corresponding to the valid information is performed.
By adopting the technical scheme provided by the embodiment of the invention, the effect that the user controls the air conditioner in a voice input mode is realized by receiving the control command which is sent by the voice equipment and obtained by encoding the voice information input by the user according to the preset command format, decoding the control command according to the preset command format and further executing corresponding operation.
In one embodiment, the control command includes N bytes, each byte corresponds to an encoding value, the encoding value includes an identification encoding value, a control type encoding value, a control parameter encoding value, or a check code of the intelligent air conditioner, and N is a positive integer greater than 1.
Table 1 is a lookup table of bytes and encoded values and the meaning of each encoded value in a preset command format in a specific embodiment, where N is 8.
In table 1, byte 0 is a fixed value, meaning a sync header, which corresponds to a start symbol of a control command and has a reset function.
Byte 1 records the ID of the intelligent air conditioner, namely the identification of the intelligent air conditioner, each intelligent air conditioner has a unique identification, and related information can be accurately transmitted between the voice equipment and the intelligent air conditioner according to the identification. The identity mark can be represented by information such as the brand and the product model of the intelligent air conditioner.
Byte 2 records the control type, wherein the control type may include a set temperature, an up temperature, a down temperature, a set wind speed, a set wind swing, and the like. Each control type corresponds to a respective unique code value. The intelligent air conditioner can determine the control type carried in the control command by identifying the control type code value.
Byte 3 records control parameters 1, which may include specific temperature values, specific wind speeds, specific wind directions, and the like. And combining the control type recorded in the byte 2 to identify the effective information carried in the current control command. For example, if the control type is to raise the temperature, and the control parameter 1 is 3 degrees, the effective message is "raise the temperature by 3 degrees".
Byte 4 records control parameter 2, and under normal conditions, control parameter 2 is null, and is used to record a special command, for example, control parameter 2 corresponding to byte 4 is used only when the control command is a wake-up command, and control parameter 1 corresponding to byte 3 is used for other control commands, and by adopting this rule, the intelligent air conditioner can identify whether the current control command is a wake-up command.
Bytes 5 and 6 are reserved bytes which are also used for recording control parameters, and when bytes 3 and 4 are not enough for recording control parameters in the control command, bytes 5 and 6 are used for recording together. For example, the control parameters include an air volume, a current temperature value, an indoor temperature value, and an outdoor temperature value, and if only byte 3 and byte 4 are applied, it is obvious that only two control parameters, that is, the air volume and the current temperature value, can be recorded, and at this time, two reserved bytes, that is, byte 5 and byte 6, need to be combined to record the indoor temperature value and the outdoor temperature value.
Byte 7 records a check code that prevents physical transmission errors. In this embodiment, the check rule of the check code is: sum (i.e., byte 1+ byte 2+ byte 3+ byte 4+ byte 5+ byte 6) + 1. Of course, this is merely an exemplary check rule of the check code, and is not limited thereto, and the user may arbitrarily set the check rule of the check code according to needs.
TABLE 1
Byte(s) Encoding a value Means of
0 0xAA Synchronous head
1 0x08 Intelligent air conditioner ID
2 0xXX Type of control
3 0xXX Control parameter 1
4 0xXX Control parameter 2
5 0x00 Retention 1
6 0x00 Retention 2
7 0xXX Check code
In the embodiment, the intelligent air conditioner can recognize the control command sent by the voice equipment by presetting the N bytes in the control command, so that the aim of controlling the air conditioner by voice is fulfilled.
Table 2 is a table showing the encoded values of each byte of the control command in the speech control of the air conditioner according to an embodiment. As can be seen from table 2, different control types correspond to different encoding values, and different control parameters also correspond to different encoding values. Therefore, after the intelligent air conditioner decodes the control command, the effective information carried in the control command can be accurately determined according to the corresponding relation between the coding value and the control type, between the coding value and the control parameter and the like, and then the operation corresponding to the effective information is executed.
Figure BDA0000959171440000091
Figure BDA0000959171440000101
Figure BDA0000959171440000121
In one embodiment, as shown in fig. 3, when the code value includes an identification code value of the smart air conditioner, the step S13 may be performed as the following steps S31-S34:
step S31, acquiring the id from the valid information according to the first location information of the id code value in the preset command format.
Taking the above table 1 as an example, the first location information of the id code value is byte 1.
Step S32, judging whether the identity label is matched with the intelligent air conditioner; if the identity is matched with the intelligent air conditioner, executing step S33; if the identity does not match the smart air conditioner, step S34 is performed.
In step S33, an operation corresponding to the valid information is performed.
Step S34, the prompt information is fed back to the voice device. The prompt information is used for prompting that the identity carried in the control command is not matched with the intelligent air conditioner receiving the control command.
In the embodiment, whether corresponding operation is executed or not can be determined according to the identity in the effective information, so that the same voice device can simultaneously control a plurality of intelligent air conditioners, and any one of the intelligent air conditioners can be accurately and unmistakably controlled through verification of the identity.
In one embodiment, as shown in fig. 4, when the code values include control type code values and control parameter code values of the smart air conditioner, step S13 may be performed as the following steps S41-S42:
and step S41, acquiring the control type and the control parameter from the effective information according to the second position information corresponding to the control type code value and the third position information corresponding to the control parameter code value in the preset command format.
Taking the above table 1 as an example, the second location information corresponding to the control type code value is byte 2, and the third location information corresponding to the control parameter code value is byte 3 and byte 4.
And step S42, executing corresponding operation according to the control type and the control parameters.
In the embodiment, the control type and the control parameter can be acquired according to the position information of the control type code value and the control parameter code value in the preset command format, and then corresponding operation is executed according to the control type and the control parameter, so that the intelligent air conditioner can accurately identify the control type and the control parameter in the effective information, and the aim of controlling the air conditioner by voice is fulfilled.
In one embodiment, as shown in fig. 5, when the code values include control type code values and control parameter code values of the smart air conditioner, step S12 may be performed as the following steps S51-S54:
and step S51, acquiring the check code from the control command according to the fourth position information corresponding to the check code in the preset command format.
Taking the above table 1 as an example, the fourth location information corresponding to the check code is byte 7.
Step S52, according to the check rule of the check code in the preset command format, verifying whether the check code is correct; if the check code is correct, go to step S53; if the check code is erroneous, step S54 is performed.
For example, the check rule of the check code in the preset command format is as follows: sum (i.e., byte 1+ byte 2+ byte 3+ byte 4+ byte 5+ byte 6) + 1. And after the intelligent air conditioner receives the control command, acquiring the coded value recorded at the byte 7 as a check code, summing the coded values of the bytes 1-6 (the byte 0 is a synchronous head) according to a check rule, adding 1, comparing the obtained result with the check code, determining that the check code is correct if the comparison is consistent, and determining that the check code is wrong if the comparison is inconsistent.
And step S53, decoding the control command according to the preset command format.
Step S54, sending a prompt message of physical transmission error to the voice device.
In the embodiment, the check code can be obtained according to the position information of the check code in the preset command format and is checked, so that the condition of information error caused by physical transmission error is avoided, and the accuracy of the user in using the voice control air conditioner is improved.
In one embodiment, as shown in FIG. 6, the method further includes the following steps S61-S62:
step S61, when the control command fails to be decoded according to the preset command format, determining a preset standby command format; in at least a part of bytes in the preset spare command format, each byte corresponds to n encoding values, and n is a positive integer greater than 1.
In step S62, the control command is decoded according to the preset standby command format.
In one embodiment, as shown in FIG. 7, step S62 may be performed as steps S71-S73:
in step S71, fifth position information of at least a part of bytes in the preset spare command format is determined.
And step S72, splitting the byte corresponding to the fifth position information according to the splitting rule in the preset standby command format, and obtaining a split code value.
The splitting rule is to split the coded value corresponding to each byte at the fifth position information into n coded values respectively.
Step S73, decoding the split encoded value.
For example, assume that in the default spare command format, n is 2, and byte 3 and byte 4 each correspond to 2 encoded values. The splitting rule in the preset standby command format is to split the coded values corresponding to the bytes 3 and 4 into 2 coded values respectively. Then, the fifth position information of at least a part of bytes in the preset standby command format is byte 3 and byte 4, and after the intelligent air conditioner obtains the control instruction, the coded values corresponding to byte 3 and byte 4 are respectively split into 2 coded values according to the splitting rule, so as to obtain the split coded values.
In the embodiment, the control command can be decoded by adopting the preset standby command format under the condition that the decoding of the control command fails according to the preset command format, so that when the data in the effective information carried by the control command is more, the intelligent air conditioner can still accurately recognize the data in the effective information, and the accuracy of the user in using the voice control air conditioner is improved.
Fig. 8 is a block diagram of a voice control apparatus according to an embodiment of the present invention. As shown in fig. 8, the voice control apparatus applied to the smart air conditioner includes:
a receiving module 81, configured to receive a control command sent by a voice device, where the control command is obtained by coding, by the voice device, voice information input by a user according to a preset command format;
the first decoding module 82 is configured to decode the control command according to a preset command format, so as to obtain effective information carried in the control command;
and an executing module 83, configured to execute an operation corresponding to the valid information.
In one embodiment, the control command includes N bytes, each byte corresponds to an encoding value, the encoding value includes an identification encoding value, a control type encoding value, a control parameter encoding value or a check code of the intelligent air conditioner, and N is a positive integer greater than 1.
In one embodiment, as shown in fig. 9, the execution module 83 includes:
the first obtaining sub-module 831 is configured to obtain, when the encoded value includes an identification encoded value of the intelligent air conditioner, an identification from the valid information according to first location information of the identification encoded value in a preset command format;
the judgment submodule 832 is used for judging whether the identity is matched with the intelligent air conditioner;
and the first execution sub-module 833 is used for executing the operation corresponding to the valid information when the identity identifier is matched with the intelligent air conditioner.
In one embodiment, as shown in fig. 10, the execution module 83 includes:
the second obtaining sub-module 834 configured to, when the code value includes a control type code value and a control parameter code value of the intelligent air conditioner, obtain the control type and the control parameter from the valid information according to second location information corresponding to the control type code value and third location information corresponding to the control parameter code value in a preset command format;
and the second execution sub-module 835 is used for executing corresponding operations according to the control type and the control parameters.
In one embodiment, as shown in fig. 11, the first decoding module 82 includes:
the third obtaining sub-module 821 is configured to, when the encoded value includes the check code, obtain the check code from the control command according to fourth location information corresponding to the check code in the preset command format;
the verification submodule 822 is used for verifying whether the check code is correct or not according to the check rule of the check code in the preset command format;
the first decoding sub-module 823 is configured to decode the control command according to a preset command format when the check code is correct;
and a sending sub-module 824, configured to send a prompt message of the physical transmission error to the voice device when the check code error occurs.
In one embodiment, as shown in fig. 12, the above apparatus further comprises:
a determining module 84, configured to determine a preset standby command format when decoding of the control command according to the preset command format fails, where in at least a part of bytes in the preset standby command format, each byte corresponds to n encoded values, and n is a positive integer greater than 1;
and a second decoding module 85, configured to decode the control command according to the preset standby command format.
In one embodiment, as shown in fig. 13, the second decoding module 85 includes:
a determining submodule 851 for determining fifth position information of at least a part of bytes in a preset standby command format;
the splitting submodule 852 is configured to split a byte corresponding to the fifth location information according to a splitting rule in a preset standby command format, so as to obtain a split code value;
and a second decoding sub-module 853, configured to decode the split encoded value.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A voice control method is applied to an intelligent air conditioner and is characterized by comprising the following steps:
receiving a control command sent by voice equipment, wherein the control command is obtained by coding voice information input by a user according to a preset command format by the voice equipment, and before the voice information is coded, the voice equipment searches and matches according to a pre-trained acoustic model and a language model, and converts the voice information into text content corresponding to the voice information so as to identify the voice information;
decoding the control command according to the preset command format to obtain effective information carried in the control command;
executing an operation corresponding to the valid information;
the control command comprises N bytes, each byte corresponding to an encoded value,
when the encoded value includes a check code, decoding the control command according to the preset command format, including:
acquiring the check code from the control command according to fourth position information corresponding to the check code in the preset command format;
verifying whether the check code is correct or not according to the check rule of the check code in the preset command format;
when the check code is correct, decoding the control command according to the preset command format;
when the check code is wrong, sending prompt information of physical transmission errors to the voice equipment;
the method further comprises the following steps:
when the control command fails to be decoded according to the preset command format, determining a preset standby command format, wherein each byte corresponds to n coded values in at least one part of bytes in the preset standby command format, and n is a positive integer greater than 1;
decoding the control command according to the preset standby command format;
the decoding the control command according to the preset standby command format includes:
determining fifth position information of the at least one part of bytes in the preset standby command format;
splitting the byte corresponding to the fifth position information according to a splitting rule in the preset standby command format to obtain a split coded value;
decoding the split encoded values.
2. The method of claim 1, wherein the code value comprises an identification code value, a control type code value, a control parameter code value or the check code of the smart air conditioner, and N is a positive integer greater than 1.
3. The method of claim 2, wherein when the encoded value comprises an identification encoded value of the smart air conditioner, the performing an operation corresponding to the valid information comprises:
acquiring the identity identifier from the effective information according to first position information of the identity identifier code value in the preset command format;
judging whether the identity is matched with the intelligent air conditioner;
and when the identity identification is matched with the intelligent air conditioner, executing the operation corresponding to the effective information.
4. The method of claim 2, wherein when the code value includes a control type code value and a control parameter code value of the smart air conditioner, the performing of the operation corresponding to the valid information includes:
acquiring the control type and the control parameter from the effective information according to second position information corresponding to the control type code value in the preset command format and third position information corresponding to the control parameter code value;
and executing corresponding operation according to the control type and the control parameter.
5. The utility model provides a speech control device, is applied to intelligent air conditioner, its characterized in that includes:
the voice equipment is used for searching and matching according to a pre-trained acoustic model and a language model before coding the voice information, and converting the voice information into text content corresponding to the voice information so as to identify the voice information;
the first decoding module is used for decoding the control command according to the preset command format to obtain effective information carried in the control command;
the execution module is used for executing the operation corresponding to the effective information;
the control command comprises N bytes, each byte corresponding to an encoded value,
the first decoding module includes:
the third obtaining sub-module is used for obtaining the check code from the control command according to fourth position information corresponding to the check code in the preset command format when the coded value comprises the check code;
the verification submodule is used for verifying whether the check code is correct or not according to the check rule of the check code in the preset command format;
the first decoding submodule is used for decoding the control command according to the preset command format when the check code is correct;
the sending submodule is used for sending prompt information of physical transmission errors to the voice equipment when the check code is wrong;
the device further comprises:
a determining module, configured to determine a preset standby command format when decoding of the control command according to the preset command format fails, where in at least a part of bytes in the preset standby command format, each byte corresponds to n encoded values, and n is a positive integer greater than 1;
the second decoding module is used for decoding the control command according to the preset standby command format;
the second decoding module includes:
the determining submodule is used for determining fifth position information of the at least one part of bytes in the preset standby command format;
the splitting submodule is used for splitting the byte corresponding to the fifth position information according to a splitting rule in the preset standby command format to obtain a split coded value;
and the second decoding submodule is used for decoding the split coded value.
6. The apparatus of claim 5, wherein the code value comprises an identification code value, a control type code value, a control parameter code value or the check code of the smart air conditioner, and N is a positive integer greater than 1.
7. The apparatus of claim 6, wherein the execution module comprises:
the first obtaining submodule is used for obtaining the identity from the effective information according to first position information of the identity coding value in the preset command format when the coding value comprises the identity coding value of the intelligent air conditioner;
the judging submodule is used for judging whether the identity is matched with the intelligent air conditioner;
and the first execution sub-module is used for executing the operation corresponding to the effective information when the identity is matched with the intelligent air conditioner.
8. The apparatus of claim 6, wherein the execution module comprises:
the second obtaining submodule is used for obtaining the control type and the control parameter from the effective information according to second position information corresponding to the control type code value and third position information corresponding to the control parameter code value in the preset command format when the code value comprises the control type code value and the control parameter code value of the intelligent air conditioner;
and the second execution submodule is used for executing corresponding operation according to the control type and the control parameter.
CN201610211626.6A 2016-04-06 2016-04-06 Voice control method and device Active CN105741840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610211626.6A CN105741840B (en) 2016-04-06 2016-04-06 Voice control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610211626.6A CN105741840B (en) 2016-04-06 2016-04-06 Voice control method and device

Publications (2)

Publication Number Publication Date
CN105741840A CN105741840A (en) 2016-07-06
CN105741840B true CN105741840B (en) 2020-01-03

Family

ID=56253741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610211626.6A Active CN105741840B (en) 2016-04-06 2016-04-06 Voice control method and device

Country Status (1)

Country Link
CN (1) CN105741840B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228985A (en) * 2016-07-18 2016-12-14 广东志高空调有限公司 A kind of speech control system, controller and domestic electric appliance
EP3298713B1 (en) 2016-08-10 2019-05-01 Telefonaktiebolaget LM Ericsson (publ) Check positions within a transport block
CN106357497A (en) * 2016-11-10 2017-01-25 北京智能管家科技有限公司 Control system of intelligent home network
CN107945792B (en) * 2017-11-06 2021-05-28 百度在线网络技术(北京)有限公司 Voice processing method and device
CN107871506A (en) * 2017-11-15 2018-04-03 北京云知声信息技术有限公司 The awakening method and device of speech identifying function
CN108105944A (en) * 2017-12-21 2018-06-01 佛山市中格威电子有限公司 A kind of voice interactive system controlled for air conditioner and there is voice feedback
CN109995475B (en) * 2019-04-04 2023-05-30 江苏紫米软件技术有限公司 Control method and device of intelligent terminal, storage medium and electronic equipment
CN110081577A (en) * 2019-04-30 2019-08-02 深圳创维空调科技有限公司 Air conditioning control method, device, air-conditioning equipment and storage medium
CN111555247A (en) * 2020-04-24 2020-08-18 广东电网有限责任公司东莞供电局 Switching operation control method, device, equipment and medium for power equipment
CN112927687A (en) * 2021-01-25 2021-06-08 珠海格力电器股份有限公司 Method, device and system for controlling functions of equipment and storage medium
CN115183414A (en) * 2022-07-25 2022-10-14 广东万颗子智控科技有限公司 Air conditioner control method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103026409A (en) * 2012-09-17 2013-04-03 华为技术有限公司 Speech frame decoding method and speech frame decoding device
CN105357564A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Remote control mobile terminal, remote control system and remote control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587818B2 (en) * 1999-10-28 2003-07-01 International Business Machines Corporation System and method for resolving decoding ambiguity via dialog

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103026409A (en) * 2012-09-17 2013-04-03 华为技术有限公司 Speech frame decoding method and speech frame decoding device
CN105357564A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Remote control mobile terminal, remote control system and remote control method

Also Published As

Publication number Publication date
CN105741840A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN105741840B (en) Voice control method and device
AU2014412434B2 (en) Voice recognition method and system
US9966076B2 (en) Voice control system and method
US10664511B2 (en) Fast identification method and household intelligent robot
US9583102B2 (en) Method of controlling interactive system, method of controlling server, server, and interactive device
CN109032039B (en) Voice control method and device
CN107276864A (en) The method of intelligent sound equipment control household electrical appliances, apparatus and system
US20190020493A1 (en) Apparatus, system and method for directing voice input in a controlling device
CN105321520A (en) Speech control method and device
CN104978964A (en) Voice control instruction error correction method and system
KR102549204B1 (en) Device, server and method for providing speech recognition service
CN105024997A (en) Method and device for associating control terminal with controlled terminal
CN109215638B (en) Voice learning method and device, voice equipment and storage medium
CN110687815B (en) Equipment control method, device, terminal equipment and storage medium
CN108648752A (en) A kind of intelligent sound control system and its control method based on cloud processing
CN111724784A (en) Equipment control method and device
CN109144971A (en) Apparatus bound method and matching system
CN108538290A (en) A kind of intelligent home furnishing control method based on audio signal detection
CN112634897A (en) Equipment awakening method and device, storage medium and electronic device
CN111580406A (en) Intelligent home control system based on Internet of things
CN105091208A (en) Method and system for controlling air speed of air conditioner
CN113921004A (en) Intelligent device control method and device, storage medium and electronic device
CN104180473A (en) Wind direction switching method and system for air conditioner
CN110661888A (en) Voice control method and device for household appliance and readable storage medium
CN108417008A (en) Infrared control method based on speech recognition and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 101, 1st floor, building 1, Xisanqi building materials City, Haidian District, Beijing 100096

Patentee after: Yunzhisheng Intelligent Technology Co.,Ltd.

Address before: 100191 Beijing, Huayuan Road, Haidian District No. 2 peony technology building, five floor, A503

Patentee before: BEIJING UNISOUND INFORMATION TECHNOLOGY Co.,Ltd.