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

By acquiring and parsing food replacement request information through voice commands, determining the operation instructions, and outputting prompts, the problem of no prompts for food replacement in smart refrigerators has been solved, thus improving the user experience.

CN114724555BActive Publication Date: 2025-10-28SHENZHEN TCL NEW-TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011528716.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2025-10-28
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

Existing smart refrigerators fail to prompt users to change food, resulting in the storage of food that users do not like, which affects the user experience.

Method used

The system obtains food replacement request information through voice commands, analyzes the sound characteristics and text information, determines the food replacement operation instructions, and outputs prompts to guide the user in changing the food.

Benefits of technology

It enables automatic prompts for food replacement based on user voice commands, improving user experience and providing a more user-friendly service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114724555B_ABST
    Figure CN114724555B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, terminal device, and storage medium for providing food replacement prompts via voice commands. The method includes: acquiring food replacement request information generated based on a voice command; determining a food replacement operation instruction corresponding to the food replacement request information; executing the operation corresponding to the food replacement operation instruction; and outputting food replacement prompt information. This invention can determine the food replacement operation instruction based on the food replacement request information, then execute the corresponding operation based on the food replacement operation instruction, and can also output food replacement prompt information, thus facilitating food replacement for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of voice command execution technology, and in particular to a method, apparatus, terminal device, and storage medium for providing food replacement prompts based on voice commands. Background Technology

[0002] With the rapid development of natural language processing technology, voice interaction technology is becoming increasingly mature. Voice assistants are now widely used in various IoT devices such as mobile phones, TVs, and computers, covering various fields including movies, weather inquiries, device control, shopping, and consumption. However, the areas involved in voice interaction are diverse. For example, in smart refrigerators, voice commands can be used to control the refrigerator intelligently. Smart refrigerators are frequently used in daily life for storing food, but current smart refrigerators do not have a function to prompt for food replacement. This results in the storage of food that the user does not want in the smart refrigerator, affecting the user experience.

[0003] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a method, device, terminal equipment and storage medium for prompting food replacement based on voice commands, in order to address the above-mentioned deficiencies of the prior art, and to solve the problem that the prior art does not have a method for prompting food replacement, which affects the user's use.

[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a method for prompting food changes based on voice commands, wherein the method includes:

[0007] Obtain food replacement request information generated based on voice commands;

[0008] Based on the food replacement request information, determine the food replacement operation instruction corresponding to the food replacement request information;

[0009] According to the food replacement operation instruction, perform the operation corresponding to the operation instruction and output the food replacement prompt information.

[0010] In one implementation, obtaining the food change request information generated based on voice commands includes:

[0011] Real-time acquisition of the voice commands within a preset range;

[0012] The sound characteristics in the voice command are obtained, including: voiceprint features, loudness identifier, timbre identifier, and pitch identifier;

[0013] Based on the sound characteristics, the food replacement request information is determined.

[0014] In one implementation, determining the food replacement operation instruction corresponding to the food replacement request information based on the food replacement request information includes:

[0015] The food replacement request information is parsed to obtain the food replacement voice information corresponding to the voice command in the food replacement request information;

[0016] The voice information for food replacement is converted into text information, and the food replacement operation instruction corresponding to the food replacement request information is determined based on the text information.

[0017] In one implementation, determining the food replacement operation instruction corresponding to the food replacement request information based on the text information includes:

[0018] The text information is parsed to obtain the field information in the text information;

[0019] Based on the field information, determine the food replacement operation instruction corresponding to the field information.

[0020] In one implementation, determining the food replacement operation instruction corresponding to the food replacement request information based on the text information includes:

[0021] The text information is parsed to obtain the field information in the text information;

[0022] Rewrite the field information to the specified field information;

[0023] Based on the specified field information, a specified operation instruction corresponding to the specified field information is determined, and the specified operation instruction is used as the food replacement operation instruction.

[0024] In one implementation, the step of executing the operation corresponding to the food replacement operation instruction and outputting food replacement prompt information includes:

[0025] According to the food replacement operation command, obtain image information of the food storage space;

[0026] Based on the image information, the food already stored in the food storage space is determined;

[0027] Based on the stored food, determine the food to be replaced and output a food replacement prompt message.

[0028] In one implementation, the output of the food replacement prompt information includes:

[0029] Acquire user habit data and determine the target food based on the user habit data;

[0030] Output a food replacement prompt message to replace the food to be replaced in the food replacement instruction with the target food.

[0031] Secondly, the present invention also provides a food replacement prompt device based on voice commands, wherein the device includes:

[0032] The food replacement request module is used to obtain food replacement request information generated based on voice commands;

[0033] The replacement instruction acquisition module is used to determine the food replacement operation instruction corresponding to the food replacement request information based on the food replacement request information.

[0034] The food replacement prompt module is used to execute the operation corresponding to the food replacement operation instruction and output food replacement prompt information.

[0035] Secondly, embodiments of the present invention also provide a food replacement prompt device based on voice commands, wherein the device includes:

[0036] The request information acquisition module is used to acquire food change request information generated based on voice commands;

[0037] The operation execution determination module is used to determine the food replacement operation instruction corresponding to the food replacement request information based on the food replacement request information.

[0038] The food replacement operation instruction execution module is used to execute the operation corresponding to the food replacement operation instruction, and to receive feedback information in real time in response to the food replacement operation instruction.

[0039] Thirdly, embodiments of the present invention also provide a terminal device, wherein the terminal device includes a memory, a processor, and a voice-command-based food replacement prompting program stored in the memory and executable on the processor, wherein when the processor executes the voice-command-based food replacement prompting program, it implements the steps of the voice-command-based food replacement prompting method described in any of the above solutions.

[0040] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a food replacement prompt program based on voice commands, wherein when the food replacement prompt program based on voice commands is executed by a processor, it implements the steps of the food replacement prompt method based on voice commands as described in any of the above solutions.

[0041] Beneficial Effects: Compared with existing technologies, this invention provides a food replacement prompt method based on voice commands. First, this invention acquires food replacement request information generated based on voice commands, indicating that the user needs to replace one type of food with another. Once the desired replacement food is identified, this invention determines the corresponding food replacement operation instruction based on the food replacement request information. Finally, according to the food replacement operation instruction, the corresponding operation is executed, and a food replacement prompt is output. This invention can prompt for food replacement based on food replacement request information generated based on user voice commands, facilitating timely food replacement for users and providing a user-friendly service. Attached Figure Description

[0042] Figure 1 A flowchart illustrating a specific implementation of the voice-command-based food replacement prompt method provided in this embodiment of the invention.

[0043] Figure 2 This is a flowchart illustrating the process of obtaining food change request information in a voice-command-based food change prompting method provided in an embodiment of the present invention.

[0044] Figure 3 The flowchart illustrates the process of determining the food replacement operation instruction in the voice-command-based food replacement prompt method provided in this embodiment of the invention.

[0045] Figure 4 This is a flowchart illustrating the execution of a food replacement operation instruction in a voice-command-based food replacement prompt method provided in an embodiment of the present invention.

[0046] Figure 5 This is a schematic diagram of the food replacement prompt device based on voice commands provided in an embodiment of the present invention.

[0047] Figure 6 This is a block diagram illustrating the internal structure of the terminal device provided in an embodiment of the present invention. Detailed Implementation

[0048] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0049] With the rapid development of natural language processing technology, voice interaction technology is becoming increasingly mature. Voice assistants are now widely used in various IoT devices such as mobile phones, TVs, and computers, covering various fields including movies, weather inquiries, device control, shopping, and consumption. However, the areas involved in voice interaction are diverse. For example, in smart refrigerators, voice commands can be used to intelligently control the refrigerator. Smart refrigerators are frequently used in daily life to store food. However, due to individual preferences and different tastes, sometimes smart refrigerators may store foods that users do not like. Current smart refrigerator technology does not provide a function to prompt for food replacement. This results in the storage of unwanted food in the smart refrigerator, affecting user experience.

[0050] To address the problems of existing technologies, this embodiment provides a food replacement prompt method based on voice commands. Specifically, this embodiment first acquires food replacement request information generated based on voice commands, indicating that the user needs to replace one type of food with another. Once the desired replacement food is identified, the invention can determine the corresponding food replacement operation instruction based on the food replacement request information. Finally, according to the food replacement operation instruction, the operation corresponding to the instruction is executed, and a food replacement prompt is output. This invention can prompt for food replacement based on food replacement request information generated based on user voice commands, facilitating timely food replacement for users and providing a user-friendly service.

[0051] For example, when the voice command-based food replacement prompt method in this embodiment is applied to a smart refrigerator, when a user wants to replace the pork in the refrigerator, they will issue a voice command, such as "replace the pork in the refrigerator with lamb." The smart refrigerator can acquire the user's voice command and then generate food replacement request information based on it. This request information indicates that the user wants to replace the pork with lamb. Therefore, the smart refrigerator can determine the corresponding food replacement operation command based on the request information, execute the corresponding operation, and output food replacement prompt information to facilitate the user's food replacement.

[0052] Exemplary methods

[0053] The voice-command-based food replacement prompt method of this embodiment can be applied to terminal devices, such as smart refrigerators. In specific implementation, for example... Figure 1 As shown, the food replacement prompt method based on voice commands in this embodiment includes the following steps:

[0054] Step S100: Obtain food replacement request information generated based on voice commands.

[0055] In this embodiment, when the voice command-based food replacement prompt method is applied to a terminal device, such as a smart refrigerator, when a user wants to replace food, they will issue a voice command to the smart terminal. This voice command is the user's spoken voice information. After receiving the voice command, the smart terminal will generate a food replacement request information based on the voice command. This food replacement request information reflects what food the user wants to replace and what the target food is. For example, if a user doesn't like pork, they will issue a voice command to the smart refrigerator to "replace the pork in the refrigerator." After receiving the voice command "replace the pork in the refrigerator," the smart refrigerator will generate the food replacement request information that the user wants to replace.

[0056] In one implementation, such as Figure 2 As shown, step S100 specifically includes the following steps:

[0057] Step S101: Real-time acquisition of the voice commands within a preset range;

[0058] Step S102: Obtain the sound characteristics in the voice command, the sound characteristics including: voiceprint features, loudness identifier, timbre identifier and pitch identifier;

[0059] Step S103: Determine the food replacement request information based on the sound characteristics.

[0060] In specific implementation, this embodiment collects voice commands within a preset range in real time. These voice commands are voice information issued by the user. For example, the smart refrigerator can collect voice commands within a 5-meter range. After collecting the voice command, this embodiment can begin to acquire the sound characteristics of the voice command. These sound characteristics are used to reflect the voiceprint features, loudness indicators, and timbre indicators in the voice command. These sound characteristics are used to analyze the voice command and determine whether the voice command was issued by a preset user. To facilitate user use, this embodiment first sets a corresponding preset user for each terminal device. This preset user is used to trigger the corresponding terminal device. For example, if the preset user corresponding to the smart refrigerator is A, then only voice commands issued by user A can be recognized and responded to by the smart refrigerator. That is, only user A can control the smart refrigerator through voice commands. Therefore, this embodiment can analyze the voiceprint features, loudness indicators, and timbre indicators in the voice command after collecting it. In this embodiment, the voiceprint feature is used to analyze the matching degree between the voiceprint in the received voice command and the voiceprint of a preset user. If the matching degree is higher than 80%, it indicates that the received voice command is indeed issued by the preset user. Similarly, the loudness identifier is used to analyze whether the loudness of the received voice command matches the loudness of the voice issued by the preset user. If they match, it indicates that the loudness of the received voice command is the same as that of the voice command issued by the preset user. Likewise, the timbre identifier and pitch identifier in this embodiment are used to analyze the matching degree between the timbre and pitch of the received voice command and the timbre and pitch of the preset user. If the matching degree is higher than 80%, it indicates that the received voice command is indeed issued by the preset user. After analyzing the voice command using these sound characteristics, it can be determined whether the received sound characteristics are those of a voice command issued by the preset user. If so, the food replacement operation request information generated based on the voice command can be obtained. For example, when a user tells the refrigerator to "replace the pork in the refrigerator," the smart refrigerator will obtain the voice characteristics of the user's voice command and then match those voice characteristics with a preset user. If the match is successful, it can be determined that the voice command "replace the pork in the refrigerator" was issued by the preset user. Therefore, it can generate a food replacement request based on the voice command "replace the pork in the refrigerator" and request the smart refrigerator to replace the food.

[0061] Step S200: Based on the food replacement request information, determine the food replacement operation instruction corresponding to the food replacement request information.

[0062] In specific implementation, after receiving the food replacement request information, this embodiment analyzes the food replacement request information to determine the food replacement operation instruction corresponding to the food replacement request information. For example, the smart terminal in this embodiment can also be equipped with a recording function. When the user outputs the voice information "replace the pork in the refrigerator," the smart terminal can use the recording function to receive the voice information "replace the pork in the refrigerator," which is the voice instruction. After receiving the voice instruction "replace the pork in the refrigerator," the smart terminal can generate the corresponding food replacement request information, which includes the voice instruction "replace the pork in the refrigerator." Therefore, when determining the voice information based on the food replacement request information, the smart terminal in this embodiment only needs to parse the food replacement request information to obtain the food replacement operation instruction corresponding to the food replacement request information as "replace the pork in the refrigerator."

[0063] In one implementation, such as Figure 3 As shown, step S200 specifically includes the following steps:

[0064] Step S201: Parse the food replacement request information to obtain the food replacement voice information corresponding to the voice command in the food replacement request information;

[0065] Step S202: Convert the food replacement voice information into text information, and determine the food replacement operation instruction corresponding to the food replacement request information based on the text information.

[0066] To determine the food replacement operation instruction corresponding to the food replacement request information in this embodiment, this embodiment can parse the food replacement request information after obtaining it to obtain the voice information corresponding to the voice instruction; convert the voice information into text information, and determine the food replacement operation instruction corresponding to the voice operation request instruction based on the text information. In one implementation, this embodiment can convert voice information into text information using speech recognition or speech translation. After obtaining the text information, this embodiment can parse the text information and then determine the field information, which consists of words or phrases in the text information. Since the text information is a sentence or some words recognized through voice information, and some words are meaningless, for example, when the recognized text information is "replace the pork in the refrigerator," only the fields "replace" and "pork" are relevant to the execution of the voice instruction. Because as long as these two fields are obtained, the smart terminal can determine the user's intent. The words "please" and "in the refrigerator" are meaningless in the execution of the voice instruction. As can be seen, in this embodiment, when determining field information based on text information, it is necessary to filter out some useless or meaningless fields in the text information in order to more accurately determine the user's intent.

[0067] Once the field information is determined, this embodiment can determine the food replacement operation instruction corresponding to the field information. In this embodiment, the field information is obtained from the text information, which in turn is obtained from the voice information corresponding to the voice instruction. Therefore, the field information can reflect the user's intent. For example, if the field information determined in the above example is "replace" and "pork," then the corresponding user intent is that the pork in the smart refrigerator needs to be replaced. The user intent reflects the type of operation event. In one implementation, this embodiment can pre-set a mapping file, which sets the correspondence between field information and food replacement operation instructions. Therefore, once the field information is obtained, it can be matched with the mapping file to match the corresponding food replacement operation instruction. For example, as in the example above, the determined field information is "replace" and "pork". In this embodiment, based on the field information "replace", the food replacement operation instruction matching "replace" can be determined as "food replacement prompt event". Furthermore, based on the field information "pork", it can be determined that "pork" matches "meat food". Then, by combining the determined food replacement prompt event with meat food, the final food replacement operation instruction can be determined as: prompt to replace the pork in the refrigerator.

[0068] Furthermore, to meet more application scenarios, this embodiment can also rewrite the field information, that is, customize the field information, thus allowing for the customization of food replacement operation instructions. In specific implementation, when rewriting the field information, this embodiment can rewrite the field information obtained from the voice information into specified field information, i.e., the intent information desired by the user. For example, in the example above, the field information obtained from the voice information is "dislike" and "onion." This embodiment can perform forced rewriting based on the determined field information. Forced rewriting means directly changing the field information to a specified field, then determining the specified operation instruction based on the specified field information, and using this specified operation instruction as the food replacement operation instruction. For example, this embodiment can rewrite the field information "dislike" and "onion" obtained from the voice information into the specified field information - "replace" and "onion." This allows for the direct generation of the corresponding specified operation instruction based on the specified field information, which is the food replacement operation instruction, i.e., replacing the onion in the refrigerator.

[0069] Step S300: According to the food replacement operation instruction, perform the operation corresponding to the food replacement operation instruction and output the food replacement prompt information.

[0070] Once the food replacement instruction is determined, this embodiment can execute the operation corresponding to the instruction. Furthermore, this embodiment also outputs a food replacement prompt to remind the user to replace the food promptly. The food replacement prompt in this embodiment can be delivered to the user via voice announcement or text display.

[0071] In one implementation, such as Figure 4 As shown, step S300 specifically includes the following steps:

[0072] Step S301: Obtain image information of the food storage space according to the food replacement operation instruction;

[0073] Step S302: Based on the image information, determine the food already stored in the food storage space;

[0074] Step S303: Based on the stored food, determine the food to be replaced and output a food replacement prompt message.

[0075] In specific implementation, after determining the food replacement operation command, this embodiment starts the camera installed on the terminal device to collect image information from the storage space. For example, when the terminal device is a smart refrigerator, the smart refrigerator is equipped with multiple hemispherical cameras, which collect image information from all directions of the storage space inside the smart refrigerator. During image collection, this embodiment takes pictures of all the food in the smart refrigerator from all angles. After obtaining the image information, this embodiment compares the image information with the image information of each food stored in the cloud to determine which foods are in the image information of the storage space inside the smart refrigerator, thereby determining which foods are already stored in the smart refrigerator. In one implementation, this embodiment can use multiple comparisons to compare the image information with the image information of each food stored in the cloud, performing the comparisons step by step to accurately determine which foods are already stored in the storage space of the smart refrigerator. For example, this embodiment can use a two-stage comparison method, where each comparison filters out image information with a similarity greater than 80%, and then the stored foods are determined from the last filtered image information.

[0076] Once the stored food is identified, this embodiment compares it with the food to be replaced in the food replacement operation command to determine whether the food to be replaced exists in the storage space of the smart refrigerator, thus confirming the food to be replaced. Next, this embodiment acquires user habit data. Since the user habit data includes the user's favorite foods, and the foods in the user habit data are sorted based on the user's preference, the target food—the user's favorite food—can be determined based on the user habit data. Therefore, this embodiment can output a food replacement prompt message to replace the food to be replaced in the food replacement command with the target food. This food replacement prompt message is delivered to the user via voice broadcast or text display, thereby facilitating timely food replacement and meeting the user's needs.

[0077] In summary, this embodiment first obtains food replacement request information generated based on voice commands. This request information indicates that the user needs to replace one type of food with another. Once the desired replacement food is identified, this embodiment determines the corresponding food replacement operation instruction based on the request information. Finally, based on the operation instruction, the corresponding operation is executed, and a food replacement prompt is output. This embodiment can provide food replacement prompts based on food replacement request information generated from the user's voice commands, facilitating timely food replacement for the user and providing a user-friendly service.

[0078] Exemplary device

[0079] like Figure 5 As shown in the illustration, this embodiment of the invention provides a food replacement prompting device based on voice commands. The device includes: a food replacement request module 10, a replacement command acquisition module 20, and a food replacement prompting module 30. Specifically, the food replacement request module 10 is used to acquire food replacement request information generated based on voice commands. The replacement command acquisition module 20 is used to determine a food replacement operation command corresponding to the food replacement request information. The food replacement prompting module 30 is used to execute the operation corresponding to the operation command and output food replacement prompt information.

[0080] In one implementation, the request information acquisition module 10 includes:

[0081] A voice command acquisition unit is used to acquire the voice commands within a preset range in real time;

[0082] A sound characteristic acquisition unit is used to acquire the sound characteristics in the voice command, the sound characteristics including: voiceprint features, loudness identifier, timbre identifier and pitch identifier;

[0083] The replacement request determination unit is used to determine the food replacement request information based on the sound characteristics.

[0084] In one implementation, the instruction acquisition module 20 includes:

[0085] The voice information determination unit is used to parse the food replacement request information to obtain the food replacement voice information corresponding to the voice command in the food replacement request information;

[0086] An operation instruction determination unit is used to convert the food replacement voice information into text information, and determine the food replacement operation instruction corresponding to the food replacement request information based on the text information.

[0087] In one implementation, the food replacement prompt module 30 includes:

[0088] The image information acquisition unit is used to acquire image information of the food storage space according to the food replacement operation instruction;

[0089] A food storage confirmation unit is used to determine the food already stored in the food storage space based on the image information.

[0090] The food replacement prompt unit is used to determine the food to be replaced based on the stored food and output food replacement prompt information.

[0091] Based on the above embodiments, the present invention also provides a terminal device, the principle block diagram of which can be as follows: Figure 6 As shown, the terminal device includes a processor, memory, network interface, display screen, and temperature sensor connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When executed by the processor, the computer program implements a voice-command-based food replacement prompt method. The display screen can be an LCD screen or an e-ink screen. The temperature sensor is pre-installed inside the terminal device to detect the operating temperature of the internal components.

[0092] Those skilled in the art will understand that Figure 6 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal device to which the present invention is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0093] In one embodiment, a terminal device is provided, comprising a memory, a processor, and a voice-command-based food replacement prompting program stored in the memory and executable on the processor. When the processor executes the voice-command-based food replacement prompting program, it implements the following food replacement operation instructions:

[0094] Obtain food replacement request information generated based on voice commands;

[0095] Based on the food replacement request information, determine the food replacement operation instruction corresponding to the food replacement request information;

[0096] According to the food replacement operation instruction, perform the operation corresponding to the operation instruction and output the food replacement prompt information.

[0097] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can 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 various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0098] In summary, this invention discloses a method, apparatus, terminal device, and storage medium for providing food replacement prompts via voice commands. The method includes: acquiring food replacement request information generated based on a voice command; determining a food replacement operation command corresponding to the food replacement request information; executing the operation corresponding to the food replacement operation command; and outputting food replacement prompt information. This invention can determine the food replacement operation command based on the food replacement request information, then execute the corresponding operation based on the food replacement operation command, and can also output food replacement prompt information, thus facilitating food replacement for users.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for prompting food replacement based on voice commands, characterized in that, The method includes: Obtain food replacement request information generated based on voice commands; Based on the food replacement request information, determine the food replacement operation instruction corresponding to the food replacement request information; According to the food replacement operation instruction, perform the operation corresponding to the food replacement operation instruction and output the food replacement prompt information; The process of obtaining food change request information generated based on voice commands includes: A corresponding preset user is set for each terminal device, and the preset user is used to trigger the corresponding terminal device. Real-time acquisition of the voice commands within a preset range; The voice characteristics in the voice command are obtained, including: voiceprint features, loudness identifier, timbre identifier, and pitch identifier. The voiceprint features are used to analyze the matching degree between the voiceprint in the received voice command and the voiceprint of a preset user. The loudness identifier is used to analyze the matching degree between the loudness of the received voice command and the loudness of the voice emitted by the preset user. The timbre identifier and pitch identifier are used to analyze the matching degree between the timbre and pitch in the received voice command and the timbre and pitch of the preset user. Based on the sound characteristics, the food replacement request information is determined; The step of executing the operation corresponding to the food replacement operation instruction and outputting a food replacement prompt message includes: According to the food replacement operation command, obtain image information of the food storage space; Based on the image information, the food already stored in the food storage space is determined; Based on the stored food, determine the food to be replaced and output a food replacement prompt message; The output food replacement prompt information includes: Acquire user habit data and determine target food based on the user habit data, wherein the food in the user habit data is sorted according to the user's preference. Output a food replacement prompt message to replace the food to be replaced in the food replacement instruction with the target food.

2. The food replacement prompt method based on voice commands according to claim 1, characterized in that, The step of determining the food replacement operation instruction corresponding to the food replacement request information includes: The food replacement request information is parsed to obtain the food replacement voice information corresponding to the voice command in the food replacement request information; The voice information for food replacement is converted into text information, and the food replacement operation instruction corresponding to the food replacement request information is determined based on the text information.

3. The food replacement prompt method based on voice commands according to claim 2, characterized in that, The step of determining the food replacement operation instruction corresponding to the food replacement request information based on the text information includes: The text information is parsed to obtain the field information in the text information; Based on the field information, determine the food replacement operation instruction corresponding to the field information.

4. The food replacement prompt method based on voice commands according to claim 2, characterized in that, The step of determining the food replacement operation instruction corresponding to the food replacement request information based on the text information includes: The text information is parsed to obtain the field information in the text information; Rewrite the field information to the specified field information; Based on the specified field information, determine the specified food replacement operation instruction corresponding to the specified field information, and use the specified food replacement operation instruction as the food replacement operation instruction.

5. A food replacement prompt device based on voice commands, characterized in that, The device is used to implement the steps of the voice command-based food replacement prompt method according to any one of claims 1-4, the device comprising: The food replacement request module is used to obtain food replacement request information generated based on voice commands; The replacement instruction acquisition module is used to determine the food replacement operation instruction corresponding to the food replacement request information based on the food replacement request information. The food replacement prompt module is used to execute the operation corresponding to the food replacement operation instruction according to the food replacement operation instruction, and output food replacement prompt information; The food replacement prompt module includes: The image information acquisition unit is used to acquire image information of the food storage space according to the food replacement operation instruction; A food storage confirmation unit is used to determine the food already stored in the food storage space based on the image information. The food replacement prompt unit is used to determine the food to be replaced based on the stored food and output food replacement prompt information.

6. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a voice-command-based food change prompting program stored in the memory and executable on the processor. When the processor executes the voice-command-based food change prompting program, it implements the steps of the voice-command-based food change prompting method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a voice-command-based food change prompting program, which, when executed by a processor, implements the steps of the voice-command-based food change prompting method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Refrigerator, terminal, and management system and management method for food materials in refrigerator

    CN105654270A

  • Refrigerator food storage and taking prompt method and device and refrigerator

    CN111397297A

  • Article obtaining method and device

    CN111666790A