CN114724555A - Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium - Google Patents

Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium Download PDF

Info

Publication number
CN114724555A
CN114724555A CN202011528716.0A CN202011528716A CN114724555A CN 114724555 A CN114724555 A CN 114724555A CN 202011528716 A CN202011528716 A CN 202011528716A CN 114724555 A CN114724555 A CN 114724555A
Authority
CN
China
Prior art keywords
food
information
voice
replacement
operation instruction
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.)
Pending
Application number
CN202011528716.0A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011528716.0A priority Critical patent/CN114724555A/en
Publication of CN114724555A publication Critical patent/CN114724555A/en
Pending legal-status Critical Current

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/26Speech to text 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

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)
  • Cold Air Circulating Systems And Constructional Details In Refrigerators (AREA)

Abstract

The invention discloses a food replacement prompting method and device of voice instructions, a terminal device and a storage medium, wherein the method comprises the following steps: acquiring food replacement request information generated based on the voice instruction; determining a food replacement operation instruction corresponding to the food replacement request information according to the food replacement request information; and according to the food replacing operation instruction, executing the operation corresponding to the food replacing operation instruction, and outputting food replacing prompt information. The invention can determine the food replacing operation instruction based on the food replacing request information, then execute the corresponding operation based on the food replacing operation instruction, and also output the food replacing prompt information, thereby being convenient for the user to replace the food.

Description

Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of voice instruction execution, in particular to a food replacement prompting method and device based on a voice instruction, a terminal device and a storage medium.
Background
In the present day that natural language processing technology is increasingly vigorous, the technology of voice interaction is more and more mature. The voice assistant is widely applied to various IOT (Internet of things) devices such as mobile phones, televisions and computers, and covers various fields such as movie and television, weather inquiry, device control, shopping and consumption. However, the fields related to voice interaction are various, for example, the voice interaction is applied to an intelligent refrigerator, and the intelligent refrigerator can be intelligently controlled through voice instructions. The intelligent refrigerator is frequently used in daily life and is used for storing food, but the intelligent refrigerator in the prior art does not prompt the function of replacing the food. Thereby causing the intelligent refrigerator to store the food which is disliked by the user, and affecting the use of the user.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a terminal device and a storage medium for prompting food replacement based on a voice instruction, aiming at solving the problem that the use of a user is affected because a method for prompting food replacement does not exist in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a food change prompting method based on voice instructions, wherein the method includes:
acquiring food replacement request information generated based on the voice instruction;
determining a food replacement operation instruction corresponding to the food replacement request information according to the food replacement request information;
and according to the food replacement operation instruction, executing operation corresponding to the operation instruction, and outputting food replacement prompt information.
In one implementation, the obtaining of the food exchange request information generated based on the voice instruction includes:
collecting the voice instruction in a preset range in real time;
acquiring sound characteristics in the voice instruction, wherein the sound characteristics comprise: voiceprint features, loudness identification, tone identification and tone identification;
determining the food exchange request information according to the sound characteristic.
In one implementation, the determining, according to the food replacement request information, a food replacement operation instruction corresponding to the food replacement request information includes:
analyzing the food replacement request information to obtain food replacement voice information corresponding to the voice instruction in the food replacement request information;
and converting the food replacement voice information into text information, and determining a food replacement operation instruction corresponding to the food replacement request information according to the text information.
In one implementation, the determining, according to the text information, a food exchange operation instruction corresponding to the food exchange request information includes:
analyzing the text information to obtain field information in the text information;
and determining a food replacement operation instruction corresponding to the field information according to the field information.
In one implementation, the determining, according to the text information, a food exchange operation instruction corresponding to the food exchange request information includes:
analyzing the text information to obtain field information in the text information;
rewriting the field information into specified field information;
and determining a specified operation instruction corresponding to the specified field information according to the specified field information, and taking the specified operation instruction as the food replacement operation instruction.
In one implementation manner, the executing, according to the food replacement operation instruction, an operation corresponding to the operation instruction, and outputting food replacement prompt information includes:
acquiring image information of a food storage space according to the food replacing operation instruction;
determining stored food in the food storage space according to the image information;
and determining the food to be replaced according to the stored food, and outputting food replacement prompt information.
In one implementation, the outputting the food change prompting message includes:
acquiring user habit data, and determining target food according to the user habit data;
and outputting food replacement prompt information for replacing the food to be replaced in the food replacement instruction with the target food.
In a second aspect, the present invention further provides a device for prompting food exchange based on voice command, wherein the device includes:
the food replacement request module is used for acquiring food replacement request information generated based on the voice instruction;
the replacing instruction acquisition module is used for determining a food replacing operation instruction corresponding to the food replacing request information according to the food replacing request information;
and the food replacement prompt module is used for executing the operation corresponding to the operation instruction according to the food replacement operation instruction and outputting food replacement prompt information.
In a second aspect, an embodiment of the present invention further provides a food change prompting device based on a voice instruction, where the device includes:
the request information acquisition module is used for acquiring food replacement request information generated based on the voice instruction;
an operation execution determining module, configured to determine, according to the food replacement request information, a food replacement operation instruction corresponding to the food replacement request information;
and the food replacing operation instruction executing module is used for executing the operation corresponding to the food replacing operation instruction according to the food replacing operation instruction and receiving the feedback information responding to the food replacing operation instruction in real time.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a food change prompting program based on a voice instruction, where the food change prompting program based on a voice instruction is stored in the memory and is executable on the processor, and when the processor executes the food change prompting program based on a voice instruction, the steps of the food change prompting method based on a voice instruction in any one of the above schemes are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a food change prompting program based on voice instructions is stored on the computer-readable storage medium, and when the food change prompting program based on voice instructions is executed by a processor, the steps of the food change prompting method based on voice instructions in any one of the above schemes are implemented.
Has the advantages that: compared with the prior art, the invention provides a food replacement prompting method based on the voice instruction. When the food to be replaced is determined, the food replacing operation instruction corresponding to the food replacing request information can be determined according to the food replacing request information. And finally, according to the food replacement operation instruction, executing the operation corresponding to the operation instruction, and outputting food replacement prompt information. The invention can prompt the replacement of food according to the food replacement request information generated based on the voice command of the user, thereby facilitating the user to replace the food in time, providing humanized service for the user and providing convenience for the user to use.
Drawings
Fig. 1 is a flowchart of a specific implementation of a method for prompting food exchange based on voice commands according to an embodiment of the present invention.
Fig. 2 is a flowchart of acquiring food exchange request information in the method for prompting food exchange based on voice command according to the embodiment of the present invention.
Fig. 3 is a flowchart of determining a food exchange operation command in the method for prompting food exchange based on voice command according to the embodiment of the present invention.
Fig. 4 is a flowchart illustrating the execution of a food change operation instruction in the method for prompting food change based on a voice instruction according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of a food change prompting device based on voice instructions according to an embodiment of the present invention.
Fig. 6 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
With the increasingly vigorous natural language processing technology, the technology of voice interaction is more and more mature. The voice assistant is widely applied to various IOT (Internet of things) devices such as mobile phones, televisions and computers, and covers various fields such as movie and television, weather inquiry, device control, shopping and consumption. However, the fields involved in voice interaction are various, for example, the voice interaction is applied to an intelligent refrigerator, and the intelligent refrigerator can be intelligently controlled through voice instructions. The intelligent refrigerator is frequently used in daily life and used for storing food, but the taste of each person is different due to personal liking, and sometimes the intelligent refrigerator can store food which is not liked by a user, but the intelligent refrigerator in the prior art does not prompt the function of replacing food. Thereby causing the intelligent refrigerator to store the food which is disliked by the user, and affecting the use of the user.
In order to solve the problems in the prior art, this embodiment provides a method for prompting food replacement based on a voice instruction, and in specific implementation, this embodiment first obtains food replacement request information generated based on the voice instruction, where the food replacement request information indicates that a user needs to replace a certain food with another food. When the food to be replaced is determined, the food replacing operation instruction corresponding to the food replacing request information can be determined according to the food replacing request information. And finally, according to the food replacement operation instruction, executing the operation corresponding to the operation instruction, and outputting food replacement prompt information. The invention can prompt the replacement of food according to the food replacement request information generated based on the voice command of the user, thereby facilitating the user to replace the food in time, providing humanized service for the user and providing convenience for the user to use.
For example, when the food replacement prompting method based on the voice instruction in the embodiment is applied to the intelligent refrigerator, when the user wants to replace pork in the intelligent refrigerator, the user may send a voice instruction, such as "replace pork in the refrigerator with mutton". The intelligent refrigerator can acquire a voice command input by a user and then generate food replacement request information based on the voice command, wherein the food replacement request information indicates that the food which the user wants to replace is pork and the pork needs to be replaced by mutton. Therefore, the intelligent refrigerator can determine a corresponding food replacement operation instruction according to the food replacement request information, then execute corresponding operation according to the food replacement operation instruction, and output food replacement prompt information, so that a user can replace food conveniently.
Exemplary method
When the method for prompting food replacement based on voice instruction in this embodiment is applied to a terminal device, such as an intelligent refrigerator, and is implemented specifically, as shown in fig. 1, the method for prompting food replacement based on voice instruction in this embodiment includes the following steps:
step S100, food replacement request information generated based on the voice command is acquired.
In this embodiment, when the food replacement prompting method based on the voice instruction of this embodiment is applied to a terminal device, such as an intelligent refrigerator, when a user wants to replace food, a voice instruction is sent to an intelligent terminal, where the voice instruction is voice information spoken by the user, and then after the intelligent terminal obtains the voice instruction, a food replacement request message is generated according to the voice instruction, where the food replacement request message is used to reflect what the user wants to replace food and what the target food is. For example, when the user dislikes pork, the user sends a voice command of "change pork in refrigerator" to the intelligent refrigerator, and after receiving the voice command of "change pork in refrigerator", the smart television generates food change request information that the user wants to change food.
In one implementation, as shown in fig. 2, the step S100 specifically includes the following steps:
s101, collecting the voice command in a preset range in real time;
step S102, obtaining sound characteristics in the voice command, wherein the sound characteristics comprise: voiceprint features, loudness identification, tone identification and tone identification;
step S103, determining the food replacement request information according to the sound characteristics.
In specific implementation, the embodiment collects the voice command in the preset range in real time, and the voice command is voice information sent by the user. For example, the intelligent refrigerator can collect voice commands within a range of 5 meters. After the voice command is collected, the embodiment can start to acquire the voice characteristics in the voice command. The sound characteristics are used for reflecting the voiceprint characteristics, the loudness identification and the tone identification in the voice instruction. The voice characteristics are used for analyzing the voice command and judging whether the voice command is sent by a preset user. For the convenience of the user, in this embodiment, a corresponding preset user is first set for each terminal device, and the preset user is used to trigger the corresponding terminal device. For example, if the preset user corresponding to the intelligent refrigerator is a, only the voice command sent by the user a can be recognized and responded by the intelligent refrigerator, that is, only the user a can control the intelligent refrigerator through the voice command. Therefore, after the voice command is collected, the voice print feature, the loudness identifier and the tone identifier in the voice command can be analyzed. In this embodiment, the voiceprint feature is used to analyze a matching degree between a voiceprint in the received voice instruction and a voiceprint of a preset user, and if the matching degree is higher than 80%, it indicates that the received voice instruction is the voice instruction sent by the preset user. Similarly, the loudness identification is used for analyzing whether the loudness of the sound of the received voice command matches with the loudness of the sound emitted by the preset user, and if so, the loudness identification indicates that the loudness of the sound of the received voice command is the same as the loudness of the sound of the voice command emitted by the preset user. Similarly, the tone mark and the tone mark in this embodiment are used to analyze a matching degree between the tone and the tone of the received voice command and the tone of the preset user, and if the matching degree is higher than 80%, it indicates that the received voice command is the voice command sent by the preset user. After the voice command is analyzed through the voice characteristics, whether the received voice characteristics are the voice command sent by a preset user or not can be judged, and if yes, the food replacing operation request information generated based on the voice command can be acquired. For example, when a user sends 'change pork in a refrigerator' to the refrigerator, the intelligent refrigerator acquires sound characteristics in the 'change pork in the refrigerator' sent by the user, and then matches the sound characteristics with a preset user. When the matching is successful, the fact that the 'pork in the refrigerator is replaced' is the voice command sent by the preset user can be determined, so that food replacement request information can be generated according to the 'pork in the refrigerator is replaced', and the intelligent refrigerator is requested to replace food.
And step S200, determining a food replacement operation instruction corresponding to the food replacement request information according to the food replacement request information.
In specific implementation, after receiving the food replacement request information, the present embodiment may analyze the food replacement request information, and then determine a food replacement operation instruction corresponding to the food replacement request information. For example, the intelligent terminal in this embodiment may further include a recording function, and when the user outputs a voice message of "change pork in refrigerator", the intelligent terminal may receive the voice message of "change pork in refrigerator" by using the recording function, where the voice message is a voice instruction. After the intelligent terminal obtains the voice command of replacing pork in the refrigerator, corresponding food replacement request information can be generated, wherein the food replacement request information comprises the voice command of replacing pork in the refrigerator. Therefore, when the intelligent terminal in this embodiment determines the voice information according to the food replacement request information, it only needs to analyze the food replacement request information, and the food replacement operation instruction corresponding to the food replacement request information is obtained as "replace pork in refrigerator".
In one implementation, as shown in fig. 3, the step S200 specifically includes the following steps:
step S201, analyzing the food replacing request information to obtain food replacing voice information corresponding to the voice command in the food replacing request information;
step S202, converting the food replacing voice information into text information, and determining a food replacing operation instruction corresponding to the food replacing request information according to the text information.
In order to determine a food replacement operation instruction corresponding to the food replacement request information in this embodiment, after the food replacement request information is obtained, the food replacement request information may be analyzed to obtain voice information corresponding to the voice instruction in the food replacement request information; and converting the voice information into text information, and determining a food replacement operation instruction corresponding to the voice operation request instruction according to the text information. In one implementation, the present embodiment may convert the voice information into the text information by using voice recognition or voice translation. After the text information is obtained, the present embodiment may analyze the text information, and then according to field information in the text information, the field information is some words or words in the text information. Since the text information is a sentence or words recognized by the voice information, and some words have no meaning, for example, when the recognized text information is "pork will be replaced in a refrigerator". The text message only has two fields of 'change' and 'pork' which play a role in the execution process of the voice instruction, and the intelligent terminal can determine the intention of the user as long as the two fields of information are obtained. The text message "please" and "to the refrigerator" has no meaning to the execution process of the voice command. Therefore, when determining the field information according to the text information, the embodiment needs to screen some useless or unpractical fields in the text information, so as to achieve the purpose of more accurately determining the user intention.
After the field information is determined, the present embodiment may determine, according to the field information, a food replacement operation instruction corresponding to the field information. In this embodiment, the field information is obtained from the text information, and the text information is obtained from the voice information corresponding to the voice command. Therefore, the field information may reflect the intention of the user, for example, the determined field information is "replace" and "pork" in the above example, which corresponds to the intention of the user, that is, the pork in the intelligent refrigerator needs to be replaced. And the user intent may reflect the type of operational event. In one implementation manner, the embodiment may preset a mapping file, where the mapping file is provided with a corresponding relationship between the field information and the food replacement operation instruction. Therefore, after the field information is obtained, the field information can be matched with the mapping file to obtain a corresponding food replacing operation instruction. For example, in the above example, the determined field information is "change" and "pork", and the embodiment can determine that the food change operation instruction matched with the "change" is "food change prompting event" according to the "change" in the field information, and further can determine that the food matched with the "pork" is "meat food" according to the "pork" in the field information, and then combine the determined food change prompting event with the meat food, so as to determine that the final food change operation instruction is: prompting to replace pork in the refrigerator.
In addition, in order to meet more application scenarios, the present embodiment may further rewrite the field information, that is, customize the field information, so that the food replacement operation instruction may be customized. In concrete implementation, when the field information is rewritten, the present embodiment can rewrite the field information obtained from the voice information to the specified field information, i.e., the intention information intended by the user. For example, in the above example, the field information obtained according to the voice information is "dislike" and "onion", and the present embodiment may perform forced rewriting according to the determined field information, where the forced rewriting is to directly change the field information into the specified field, then determine the specified operation instruction according to the specified field information, and use the specified operation instruction as the food changing operation instruction. For example, in this embodiment, the field information obtained according to the voice information is "dislike" and "onion" may be rewritten into the designated field information- "replace" or "onion", so that the corresponding designated operation instruction may be directly generated according to the designated field information, and the designated operation instruction is a food replacement operation instruction, that is, an onion in the refrigerator is replaced.
And step S300, executing operation corresponding to the food replacing operation instruction according to the food replacing operation instruction, and outputting food replacing prompt information.
After the food replacement operation instruction is determined, the embodiment can execute the operation corresponding to the food replacement operation instruction according to the food replacement operation instruction. In addition, the embodiment also outputs the food replacement prompt message to prompt the user to replace the food in time. The food replacement prompt information in this embodiment can prompt the user in a voice broadcast or text display mode.
In one implementation, as shown in fig. 4, step S300 specifically includes the following steps:
s301, acquiring image information of a food storage space according to the food replacement operation instruction;
step S302, determining stored food in the food storage space according to the image information;
and S303, determining food to be replaced according to the stored food, and outputting food replacement prompt information.
In specific implementation, after the food replacement operation instruction is determined, the camera arranged in the terminal device is started to collect image information in the storage space. For example, when the terminal device is an intelligent refrigerator, a plurality of hemispherical cameras are installed in the intelligent refrigerator, and image information of a storage space inside the intelligent refrigerator is acquired in an all-around manner through the plurality of cameras. When gathering image information, this embodiment can carry out all-round shootings to all foods in the intelligent refrigerator. After the image information is obtained, the image information is compared with the image information of each food stored in the cloud end, and it is determined which food is in the image information of the storage space inside the intelligent refrigerator, so that it is determined which food is stored in the intelligent refrigerator. In an implementation manner, the embodiment compares the image information of each food stored in the cloud, and can gradually compare the image information with the image information of each food stored in the cloud in a multi-comparison manner, so as to accurately determine which foods are stored in the storage space in the intelligent refrigerator. For example, the embodiment may adopt a way of comparing twice, where each comparison screens out image information that matches a similarity greater than 80%, and then determines stored food from the image information that is screened out last.
After the stored food is determined, the stored food can be compared with the food to be replaced in the food replacement operation instruction, whether the food to be replaced exists in the storage space of the intelligent refrigerator is determined, and then the food to be replaced is determined. Next, in the embodiment, the user habit data is obtained, and since the user habit data includes foods that the user likes and the foods in the user habit data are sorted based on the like degree of the user, the target food, which is the food that the user likes, can be determined according to the user habit data. Therefore, the present embodiment can output the food exchange prompting message for exchanging the food to be exchanged in the food exchange instruction with the target food. The food replacement prompt information prompts the user in a voice broadcasting or text display mode, so that the user can replace food in time, and the requirements of the user are met.
In summary, the present embodiment first obtains the food exchange request information generated based on the voice command, where the food exchange request information indicates that the user needs to replace one food with another food. When the food to be replaced is determined, the embodiment may determine the food replacing operation command corresponding to the food replacing request information according to the food replacing request information. And finally, according to the food replacement operation instruction, executing the operation corresponding to the operation instruction, and outputting food replacement prompt information. The embodiment can prompt the user to replace food according to the food replacement request information generated based on the voice instruction of the user, so that the user can replace the food in time, humanized service is provided for the user, and convenience is provided for the user to use.
Exemplary device
As shown in fig. 5, an embodiment of the present invention provides a food change prompting device based on voice instructions, including: food exchange request module 10, exchange instruction acquisition module 20, and food exchange prompt module 30. Specifically, the food exchange request module 10 is configured to obtain food exchange request information generated based on the voice instruction. A replacing instruction obtaining module 20, configured to determine, according to the food replacing request information, a food replacing operation instruction corresponding to the food replacing request information. And the food replacement prompting module 30 is configured to execute an operation corresponding to the operation instruction according to the food replacement operation instruction, and output food replacement prompting information.
In one implementation, the request information obtaining module 10 includes:
the voice instruction acquisition unit is used for acquiring the voice instruction within a preset range in real time;
a sound characteristic acquiring unit configured to acquire a sound characteristic in the voice instruction, the sound characteristic including: voiceprint features, loudness identification, tone identification and tone identification;
a change request determining unit for determining the food change request information according to the sound characteristics.
In one implementation, the replacement instruction obtaining module 20 includes:
the voice information determining unit is used for analyzing the food replacing request information to obtain food replacing voice information corresponding to the voice instruction in the food replacing request information;
and the operation instruction determining unit is used for converting the food replacement voice information into text information and determining a food replacement operation instruction corresponding to the food replacement request information according to the text information.
In one implementation, the food change reminder module 30 includes:
the image information acquisition unit is used for acquiring the image information of the food storage space according to the food replacement operation instruction;
the stored food confirming unit is used for confirming the stored food in the food storage space according to the image information;
and the food replacement prompting unit is used for determining food to be replaced according to the stored food and outputting food replacement prompting information.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 6. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method for prompting a food change based on voice instructions. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal equipment is arranged in the terminal equipment in advance and used for detecting the operating temperature of the internal equipment.
It will be understood by those skilled in the art that the block diagram of fig. 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or may combine some components, or have different arrangements of components.
In one embodiment, a terminal device is provided, the terminal device includes a memory, a processor, and a food exchange prompting program based on voice instructions stored in the memory and executable on the processor, and when the processor executes the food exchange prompting program based on voice instructions, the following food exchange operation instructions are realized:
acquiring food replacement request information generated based on the voice instruction;
determining a food replacement operation instruction corresponding to the food replacement request information according to the food replacement request information;
and according to the food replacement operation instruction, executing operation corresponding to the operation instruction, and outputting food replacement prompt information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
In summary, the present invention discloses a method, an apparatus, a terminal device and a storage medium for prompting food exchange by voice command, wherein the method comprises: acquiring food replacement request information generated based on the voice instruction; determining a food replacement operation instruction corresponding to the food replacement request information according to the food replacement request information; and according to the food replacing operation instruction, executing the operation corresponding to the food replacing operation instruction, and outputting food replacing prompt information. The invention can determine the food replacing operation instruction based on the food replacing request information, then execute the corresponding operation based on the food replacing operation instruction, and also output the food replacing prompt information, thereby being convenient for the user to replace the food.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the present invention in its responsive technical solutions.

Claims (10)

1. A food change prompting method based on voice instructions is characterized by comprising the following steps:
acquiring food replacement request information generated based on the voice instruction;
determining a food replacement operation instruction corresponding to the food replacement request information according to the food replacement request information;
and according to the food replacing operation instruction, executing the operation corresponding to the food replacing operation instruction, and outputting food replacing prompt information.
2. The method for prompting food exchange based on voice instruction of claim 1, wherein the obtaining of the food exchange request information generated based on the voice instruction comprises:
collecting the voice instruction in a preset range in real time;
acquiring sound characteristics in the voice instruction, wherein the sound characteristics comprise: voiceprint features, loudness identification, tone identification and tone identification;
determining the food exchange request information according to the sound characteristics.
3. The method of claim 1, wherein determining the food exchange operation command corresponding to the food exchange request message based on the food exchange request message comprises:
analyzing the food replacement request information to obtain food replacement voice information corresponding to the voice instruction in the food replacement request information;
and converting the food replacement voice information into text information, and determining a food replacement operation instruction corresponding to the food replacement request information according to the text information.
4. The method of claim 3, wherein determining the food exchange operation command corresponding to the food exchange request message according to the text message comprises:
analyzing the text information to obtain field information in the text information;
and determining a food replacement operation instruction corresponding to the field information according to the field information.
5. The method of claim 3, wherein determining the food exchange operation command corresponding to the food exchange request message according to the text message comprises:
analyzing the text information to obtain field information in the text information;
rewriting the field information into specified field information;
and determining a specified food replacing operation instruction corresponding to the specified field information according to the specified field information, and taking the specified food replacing operation instruction as the food replacing operation instruction.
6. The method of claim 1, wherein the executing an operation corresponding to the food change operation instruction according to the food change operation instruction and outputting food change prompt information comprises:
acquiring image information of a food storage space according to the food replacing operation instruction;
determining stored food in the food storage space according to the image information;
and determining the food to be replaced according to the stored food, and outputting food replacement prompt information.
7. The method of claim 6, wherein outputting the food change prompting message comprises:
acquiring user habit data, and determining target food according to the user habit data;
and outputting food replacement prompt information for replacing the food to be replaced in the food replacement instruction with the target food.
8. A food change reminder device based on voice instructions, the device comprising:
the food replacing request module is used for acquiring food replacing request information generated based on the voice command;
the replacing instruction acquisition module is used for determining a food replacing operation instruction corresponding to the food replacing request information according to the food replacing request information;
and the food replacement prompt module is used for executing the operation corresponding to the food replacement operation instruction according to the food replacement operation instruction and outputting food replacement prompt information.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a food change prompting program based on voice instructions stored in the memory and operable on the processor, and the processor implements the steps of the food change prompting method based on voice instructions according to any one of claims 1 to 7 when executing the food change prompting program based on voice instructions.
10. A computer-readable storage medium, wherein a food change reminding program based on voice instructions is stored on the computer-readable storage medium, and when the food change reminding program based on voice instructions is executed by a processor, the steps of the food change reminding method based on voice instructions according to any one of claims 1 to 7 are implemented.
CN202011528716.0A 2020-12-22 2020-12-22 Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium Pending CN114724555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011528716.0A CN114724555A (en) 2020-12-22 2020-12-22 Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011528716.0A CN114724555A (en) 2020-12-22 2020-12-22 Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114724555A true CN114724555A (en) 2022-07-08

Family

ID=82229953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011528716.0A Pending CN114724555A (en) 2020-12-22 2020-12-22 Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114724555A (en)

Similar Documents

Publication Publication Date Title
CN111144937B (en) Advertisement material determining method, device, equipment and storage medium
KR101777392B1 (en) Central server and method for processing of voice of user
US10936645B2 (en) Method and apparatus for generating to-be-played multimedia content
CN111142968A (en) Electronic equipment configuration recommendation processing method and device and storage medium
CN110992937B (en) Language off-line identification method, terminal and readable storage medium
CN112104505A (en) Application recommendation method and device, server and computer-readable storage medium
CN112183953A (en) Method and device for allocating customer service resources, electronic equipment and storage medium
US9489431B2 (en) System and method for distributed search-by-content
US20220039001A1 (en) Network search method and apparatus, device and storage medium
CN111680218B (en) User interest identification method and device, electronic equipment and storage medium
CN111026912B (en) IPTV-based collaborative recommendation method, device, computer equipment and storage medium
CN114724555A (en) Food replacement prompting method and device based on voice instruction, terminal equipment and storage medium
CN111028841B (en) Method and device for awakening system to adjust parameters, computer equipment and storage medium
CN112420034B (en) Speech recognition method, system, electronic device and storage medium
KR101652988B1 (en) Application management method and terminal therefor
WO2019170038A1 (en) Target screen determining method and device, and storage medium
CN112035615B (en) Online inquiry data processing method and device and computer equipment
CN114328089A (en) Log information collection method and device, terminal equipment and storage medium
CN113573132A (en) Multi-application screen splicing method and device based on voice realization and storage medium
CN110502715B (en) Click probability prediction method and device
CN112001301A (en) Building monitoring method and device based on global cross entropy weighting and electronic equipment
CN114627865A (en) Voice instruction execution control method and device, terminal equipment and storage medium
CN112770157A (en) Voice control method, device, equipment and medium for WEB front-end interface of television
CN114664296A (en) Voice instruction execution method and device, intelligent terminal and storage medium
CN111078984A (en) Network model publishing method and device, computer equipment and storage medium

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