CN111739531B - Voice control method - Google Patents

Voice control method Download PDF

Info

Publication number
CN111739531B
CN111739531B CN202010530759.6A CN202010530759A CN111739531B CN 111739531 B CN111739531 B CN 111739531B CN 202010530759 A CN202010530759 A CN 202010530759A CN 111739531 B CN111739531 B CN 111739531B
Authority
CN
China
Prior art keywords
voice
command
interaction module
feedback
control module
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
CN202010530759.6A
Other languages
Chinese (zh)
Other versions
CN111739531A (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.)
Zhejiang Qinyuan Water Treatment Technology Co Ltd
Original Assignee
Zhejiang Qinyuan Water Treatment 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 Zhejiang Qinyuan Water Treatment Technology Co Ltd filed Critical Zhejiang Qinyuan Water Treatment Technology Co Ltd
Priority to CN202010530759.6A priority Critical patent/CN111739531B/en
Publication of CN111739531A publication Critical patent/CN111739531A/en
Application granted granted Critical
Publication of CN111739531B publication Critical patent/CN111739531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; 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 OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; 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
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

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)

Abstract

The embodiment of the invention discloses a voice control method, which is applied to electrical equipment, wherein the electrical equipment comprises a control module and a voice interaction module, the control module is connected with the voice interaction module, the voice interaction module is used for receiving and generating a voice command, the control module is used for controlling the electrical equipment to work according to the voice command and generating a corresponding feedback command to be sent to the voice interaction module, the voice interaction module transmits feedback information to a user according to the feedback command, the control module continuously sends a request instruction to the voice interaction module at a preset interval period, and the voice interaction module sends a response instruction to the control module at a preset interval time after receiving the request instruction; the invention solves the problem that the voice playing device loses packet when playing the word voice command and the feedback command during transmission so as to cause no response to the operation through the bidirectional information transmission and confirmation mechanism of the voice feed command and the feedback command, and ensures the normal playing and operation of the voice interaction module.

Description

Voice control method
Technical Field
The invention relates to the field of voice equipment, in particular to a voice control method.
Background
The voice control technology can well solve the problem that the UI interface of the electric appliance is too complex due to complex functions. An electric appliance with a voice control function usually comprises a control module and a voice module, and UI information interaction is realized between the control module and the voice module through transmission of command words and playing words. However, when the command word and the play word are transmitted, packet loss can cause the problem of no response in operation, and the user experience is influenced.
Disclosure of Invention
The present invention is directed to a voice control method, which solves the above technical problems.
The technical problem solved by the invention can be realized by adopting the following technical scheme:
a voice control method is applied to electrical equipment, the electrical equipment comprises a control module and a voice interaction module, the control module is connected with the voice interaction module, the voice interaction module is used for receiving and generating a voice command, the control module is used for controlling the electrical equipment to work according to the voice command and generating a corresponding feedback command to be sent to the voice interaction module, the voice interaction module transmits feedback information to a user according to the feedback command, the control module continuously sends a request instruction to the voice interaction module at a preset interval period, and the voice interaction module sends a response instruction to the control module at a preset interval time after receiving the request instruction;
the control method further includes:
step S1, after the voice interaction module generates the voice command, the voice interaction module sends the voice command to the control module through the response instruction;
step S2, the control module controls the electric appliance to work according to the voice command and generates the feedback command, and then sends the feedback command and the voice command to the voice interaction module together through the request command;
step S3, the voice interaction module detects whether the voice command included in the request instruction is consistent with the voice command sent by the response instruction last time:
if so, indicating that the voice command is successfully transmitted, the voice interaction module clears the voice command, and goes to step S4,
if not, indicating that the voice command transmission fails, and turning to step S7;
step S4, the voice interaction module executes the feedback command, and then sends the received feedback command to the control module through the response instruction;
in step S5, the control module detects whether the feedback command included in the response instruction is consistent with the feedback command sent by the request instruction last time:
if so, indicating that the feedback command is successfully transmitted, and clearing the feedback command by the control module;
if not, indicating that the transmission of the feedback command fails, and turning to step S6;
step S6, the control module resends the feedback command through the request command and returns to step S4;
in step S7, the voice interaction module sends the voice command to the control module again through the response command, and returns to step S2.
Preferably, the voice interaction module includes a storage unit, where a plurality of voice sets are stored in the storage unit, and each voice set includes a plurality of voice entries.
Preferably, the voice interaction module further comprises:
a receiving unit for receiving voice information of a user;
the processing unit is connected with the receiving unit and the storage unit and used for generating the voice command according to the voice information;
and the playing unit is connected with the processing unit and used for playing the feedback information to the user.
Preferably, the processing unit is further configured to extract different speech entries from different speech sets for combination according to a feedback command, so as to generate the feedback information.
Preferably, when the playing unit plays the feedback information, the playing is performed between different speech entries at intervals of a predetermined time.
Preferably, when the playing unit receives the new feedback information in the playing process, the playing unit directly plays the new feedback information.
Preferably, the request instruction and the response instruction each comprise an invalidation command.
Preferably, the electrical equipment further comprises a load, the control module is connected with the load, and the control module controls the work of the load according to the voice command.
Has the advantages that: the voice interaction module sends the voice command to the control module through the response instruction, the control module sends the feedback command and the voice command to the voice interaction module together through the request instruction, and then detects whether the voice command is the same as the voice command sent last time and whether the feedback command is the same as the feedback command sent last time, namely, the problem that the voice playing device loses packet when playing the word voice command and the feedback command during transmission through a bidirectional information transmission and confirmation mechanism of the voice feed command and the feedback command is solved, so that the operation is not responded, and the normal playing and operation of the voice interaction module are ensured.
Drawings
FIG. 1 is a flow chart of the steps of a voice control method of the present invention;
FIG. 2 is a block diagram of the voice-controlled circuit of the present invention;
in the figure: 1-an electrical device; 2-a voice interaction module; 20-a storage unit; 21-a receiving unit; 22-a processing unit; 23-a playback unit; 3-a control module; 4-load.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments of the present invention may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
As shown in fig. 1 and fig. 2, the present invention provides a voice control method, which is applied to an electrical device 1, where the electrical device 1 includes a control module 3 and a voice interaction module 2, the control module 3 is connected to the voice interaction module 2, the voice interaction module 2 is configured to receive and generate a voice command, the control module 3 is configured to control the electrical device 1 to operate according to the voice command and generate a corresponding feedback command, and send the feedback command to the voice interaction module 2, the voice interaction module 2 transmits feedback information to a user according to the feedback command, the control module 3 continuously sends a request instruction to the voice interaction module 2 at a predetermined interval period, and the voice interaction module 2 sends a response instruction to the control module 3 at a predetermined interval time after receiving the request instruction;
the control method further comprises the following steps:
step S1, after the voice interaction module 2 generates the voice command, the voice command is sent to the control module 3 through the response instruction;
step S2, the control module 3 controls the electric appliance to work according to the voice command and generates a feedback command, and then sends the feedback command and the voice command to the voice interaction module 2 together through the request command;
in step S3, the voice interaction module 2 detects whether the voice command included in the request instruction is consistent with the voice command sent by the response instruction last time:
if so, it indicates that the voice command is successfully delivered, the voice interaction module 2 clears the voice command, and goes to step S4,
if not, indicating that the voice command transmission fails, and turning to step S7;
step S4, the voice interaction module 2 executes the feedback command, and then sends the received feedback command to the control module 3 via the response command;
in step S5, the control module 3 detects whether the feedback command included in the response instruction is consistent with the feedback command sent by the request instruction last time:
if yes, the feedback command is successfully transmitted, and the control module 3 clears the feedback command;
if not, indicating that the transmission of the feedback command fails, and turning to step S6;
step S6, the control module 3 resends the feedback command through the request command, and returns to step S4;
in step S7, the voice interaction module 2 sends the voice command to the control module 3 again by responding to the instruction, and returns to step S2.
The invention has the advantages that:
the voice interaction module 2 sends the voice command to the control module 3 through the response instruction, the control module 3 sends the feedback command and the voice command to the voice interaction module 2 together through the request instruction, and then detects whether the voice command is the same as the voice command sent last time and whether the feedback command is the same as the feedback command sent last time, namely, the problem that the voice playing device loses packet when playing the word voice command and the feedback command during transmission is solved through a bidirectional information transmission and confirmation mechanism of the voice feed command and the feedback command, so that the operation is not responded, and the normal playing and operation of the voice interaction module 2 are ensured.
As a preferred embodiment of the present invention, the voice interaction module 2 includes a storage unit 20, in which a plurality of voice sets are stored, and each voice set includes a plurality of voice entries.
As a preferred embodiment of the present invention, the voice interaction module 2 further includes:
a receiving unit 21 for receiving voice information of a user;
a processing unit 22 connected to the receiving unit 21 and the storage unit 20 for generating a voice command according to the voice information;
and a playing unit 23 connected to the processing unit 22 for playing the feedback information to the user.
As a preferred embodiment of the present invention, the processing unit 22 is further configured to extract different speech entries from different speech sets according to the feedback command, and combine the different speech entries to generate the feedback information.
Specifically, for example, the speech set may be split and combined in N dimensions, and the speech entries in each dimension are N1, N2, …, and Nn, respectively.
When the prior art is utilized to transmit the voice set, the number P of the played words needing to be stored is as follows:
P=N1×N2×…×Nn-1×Nn。
the invention splits and combines the voice set according to n dimensions, and the number Q of the voice entries to be stored is as follows:
Q=N1+N2+…+Nn-1+Nn。
comparing the present invention with the prior art, it can be known that the voice interaction module of the present invention occupies less storage space when transmitting and playing the voice set, and the number of the reduced voice entries is P-Q ═ N1 × N2 × … × Nn-1 × Nn) - (N1+ N2+ … + Nn-1+ Nn).
For example: a certain electrical appliance is a water purifier, and the voice interaction module needs to play the residual service life information of the filter element. The filter elements comprise 5 types of PP filter elements, RO filter elements, PGP filter elements, PMP filter elements and CTO filter elements. The filter element has 11 cases of zero percent, ten percent, twenty percent, … percent and one hundred percent of service life. If the speech entries in the speech set are split and combined in a matrix form, only 16 speech entries need to be stored in the play lexicon, and the speech entries corresponding to the code numbers of the speech entries are shown in table 1.
Figure BDA0002535314590000051
Figure BDA0002535314590000061
Compared with the existing voice control method, the voice control method of the invention saves the number of the entries of the voice, namely P-Q (5 multiplied by 11) - (5+11) ═ 39.
Preferably, a matrix type splitting and combining mechanism of the voice set is adopted, so that the storage space in the voice interaction module is greatly saved.
As a preferred embodiment of the present invention, when the playing unit 23 plays the feedback information, the playing is performed between different speech entries at a predetermined time interval.
As a preferred embodiment of the present invention, when the playing unit receives the new feedback information in the playing process, the playing unit directly plays the new feedback information.
As a specific embodiment, the voice interaction module allows to transmit n voice entries at most once (n is more than or equal to 1, n belongs to Z +), and the voice interaction module plays the voice entries according to the sequence of NO:1, 2, 3, … n, and the interval time between the two voice entries is about t seconds (t is more than or equal to 0, n belongs to R +). And if the previous voice entry is not played and a new voice entry is identified, stopping playing the original voice entry and starting playing the new voice entry. It can be added that the playing interval time of the two preceding and following speech entries is defined as 0.5 second.
In a preferred embodiment of the present invention, the request instruction and the response instruction each include an invalidation command. The invalidate command is specified as 0.
It can be supplemented that, when the control module 3 instructs the voice interaction module 2 to send the feedback command by the request for the first time, the feedback command adopts an invalid feedback command, and the invalid feedback command is defined as 0.
As a preferred embodiment of the present invention, the electrical device 1 further includes a load 4, the control module 3 is connected to the load 4, and the control module 3 controls the operation of the load 4 according to the voice command.
It can be added that the electrical appliance must ensure that the control module 3 wakes up the electrical appliance by a wake-up command before responding to a command other than a voice command, and receives a valid voice command of the voice module within a prescribed wake-up holding time.
The awakening process of the electrical equipment comprises the following steps:
s10, detecting whether an awakening command is received by the electrical equipment; when a wake-up command is detected, entering a wake-up mode;
s11 and then detecting whether the wake-up time reaches the wake-up hold time,
if yes, returning to S11;
if not, detecting whether a feedback command or a voice command is received;
if the feedback command or the voice command is received, judging whether the feedback command or the voice command is effective;
and if the feedback command is valid, executing a corresponding feedback command or voice command.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the invention.

Claims (8)

1. A voice control method is applied to electrical equipment and is characterized in that the electrical equipment comprises a control module and a voice interaction module, the control module is connected with the voice interaction module, the voice interaction module is used for receiving and generating a voice command, the control module is used for controlling the electrical equipment to work according to the voice command, generating a corresponding feedback command and sending the feedback command to the voice interaction module, the voice interaction module transmits feedback information to a user according to the feedback command, the control module continuously sends a request instruction to the voice interaction module at a preset interval period, and the voice interaction module sends a response instruction to the control module at a preset interval time after receiving the request instruction;
the control method further includes:
step S1, after the voice interaction module generates the voice command, the voice interaction module sends the voice command to the control module through the response instruction;
step S2, the control module controls the electric appliance to work according to the voice command and generates the feedback command, and then sends the feedback command and the voice command to the voice interaction module together through the request command;
step S3, the voice interaction module detects whether the voice command included in the request instruction is consistent with the voice command sent by the response instruction last time:
if so, indicating that the voice command is successfully transmitted, the voice interaction module clears the voice command, and goes to step S4,
if not, indicating that the voice command transmission fails, and turning to step S7;
step S4, the voice interaction module executes the feedback command, and then sends the received feedback command to the control module through the response instruction;
in step S5, the control module detects whether the feedback command included in the response instruction is consistent with the feedback command sent by the request instruction last time:
if so, indicating that the feedback command is successfully transmitted, and clearing the feedback command by the control module;
if not, indicating that the transmission of the feedback command fails, and turning to step S6;
step S6, the control module resends the feedback command through the request command and returns to step S4;
in step S7, the voice interaction module sends the voice command to the control module again through the response command, and returns to step S2.
2. The voice control method of claim 1, wherein the voice interaction module comprises a storage unit, and a plurality of voice sets are stored in the storage unit, and each voice set comprises a plurality of voice entries.
3. The voice control method of claim 2, wherein the voice interaction module further comprises:
a receiving unit for receiving voice information of a user;
the processing unit is connected with the receiving unit and the storage unit and used for generating the voice command according to the voice information;
and the playing unit is connected with the processing unit and is used for playing the feedback information to the user.
4. The voice control method of claim 3, wherein the processing unit is further configured to extract different speech terms from different speech sets for combination according to a feedback command to generate the feedback information.
5. The voice control method according to claim 3, wherein the playing unit plays the feedback information at a predetermined time interval between different voice entries.
6. The voice control method according to claim 3, wherein the playing unit directly plays the new feedback information when receiving the new feedback information during the playing process.
7. The voice control method according to claim 1, wherein the request instruction and the response instruction each comprise an invalidation command.
8. The voice control method according to claim 1, wherein the electrical device further comprises a load, the control module is connected to the load, and the control module controls the operation of the load according to the voice command.
CN202010530759.6A 2020-06-11 2020-06-11 Voice control method Active CN111739531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010530759.6A CN111739531B (en) 2020-06-11 2020-06-11 Voice control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010530759.6A CN111739531B (en) 2020-06-11 2020-06-11 Voice control method

Publications (2)

Publication Number Publication Date
CN111739531A CN111739531A (en) 2020-10-02
CN111739531B true CN111739531B (en) 2022-08-09

Family

ID=72648882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010530759.6A Active CN111739531B (en) 2020-06-11 2020-06-11 Voice control method

Country Status (1)

Country Link
CN (1) CN111739531B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1199731A (en) * 1981-10-05 1986-01-21 Stephen L. Moshier Speech recognition method and apparatus
JP2004333641A (en) * 2003-05-01 2004-11-25 Nippon Telegr & Teleph Corp <Ntt> Voice input processing method, display control method for voice interaction, voice input processing device, display control device for voice interaction, voice input processing program, and display control program for voice interaction
CN102036033A (en) * 2010-12-31 2011-04-27 Tcl集团股份有限公司 Method for remotely controlling television with voice and remote voice control
CN104424948A (en) * 2013-08-22 2015-03-18 华为技术有限公司 Voice data identification method and device
CN109074808A (en) * 2018-07-18 2018-12-21 深圳魔耳智能声学科技有限公司 Sound control method, control device and storage medium
CN110866410A (en) * 2019-11-15 2020-03-06 深圳市赛为智能股份有限公司 Multi-language conversion method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120117148A (en) * 2011-04-14 2012-10-24 현대자동차주식회사 Apparatus and method for processing voice command
CN106157955A (en) * 2015-03-30 2016-11-23 阿里巴巴集团控股有限公司 A kind of sound control method and device
US10546585B2 (en) * 2017-12-29 2020-01-28 Comcast Cable Communications, Llc Localizing and verifying utterances by audio fingerprinting

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1199731A (en) * 1981-10-05 1986-01-21 Stephen L. Moshier Speech recognition method and apparatus
JP2004333641A (en) * 2003-05-01 2004-11-25 Nippon Telegr & Teleph Corp <Ntt> Voice input processing method, display control method for voice interaction, voice input processing device, display control device for voice interaction, voice input processing program, and display control program for voice interaction
CN102036033A (en) * 2010-12-31 2011-04-27 Tcl集团股份有限公司 Method for remotely controlling television with voice and remote voice control
CN104424948A (en) * 2013-08-22 2015-03-18 华为技术有限公司 Voice data identification method and device
CN109074808A (en) * 2018-07-18 2018-12-21 深圳魔耳智能声学科技有限公司 Sound control method, control device and storage medium
CN110866410A (en) * 2019-11-15 2020-03-06 深圳市赛为智能股份有限公司 Multi-language conversion method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111739531A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN107388487B (en) The method and apparatus for controlling air-conditioning
CN102739453B (en) Main/standby switching method, equipment and system
JP2008099482A (en) Battery pack block, battery pack system, and address setting method for battery pack system
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
CN110457078B (en) Intelligent service method, device and equipment
CN113051110A (en) Cluster switching method, device and equipment
KR101981846B1 (en) Method and apparatus for controlling direct-current voltage
CN107545892B (en) Equipment control method, device and system
CN111739531B (en) Voice control method
CN110262344B (en) Satellite affair subsystem based on layered architecture and satellite affair data processing method
WO2001079102A1 (en) Communication control unit for elevator system
CN101388792B (en) Single board plug-and-use processing method, device and telecommunication system
KR102131863B1 (en) Method of performing transition of operation mode for a routing processor
CN102761646A (en) System and method for command interaction correction for dual-mode phone
CN110119111B (en) Communication method and device, storage medium, and electronic device
US20080133955A1 (en) Apparatus, methods and computer program products supporting automatic network identification for power supplies
CN108055184B (en) Method, system and related device for processing faults of double control units of train
CN111385167B (en) Network connection recovery method, device, computer device and storage medium
CN110319537B (en) Method for controlling bus communication of air conditioner, host and air conditioning system
CN113629803A (en) Energy storage system power supply method, energy storage equipment and energy storage system
CN113064343A (en) Multi-system scheduling method based on reliable fuel cell
CN113922904B (en) Sound console data backup and switching method based on double controllers
JP2550076B2 (en) Multiple system controller
CN113078708B (en) Control system for power supply equipment, control method, medium and electronic equipment thereof
TWI718513B (en) Electronic device and speech recognition switching method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant