Speech control method and apparatus for order, and electronic device and medium
The voice control method is used to identify user intentions, obtain candidate order sets and combine voice broadcasts, which solves the convenience problem of order booking for visually impaired people in self-service ordering, realizes order booking without relying on screen display, and improves interaction efficiency and user experience. .
Patent Information
- Application Number
- PCT/CN2023/092724
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-11
- Filing Date
- 2023-05-08
- Publication Date
- 2024-10-17
AI Technical Summary
It is difficult for the existing technology to provide convenient voice-controlled order booking experience for the visually impaired in scenarios such as self-service ordering, and the computer screen reading function relies on the current interface display and cannot provide information outside the interface, and users need to frequently adapt to interface changes. It is easy to accidentally touch to stop the screen reading function.
Acquire user intentions through voice commands, identify order intentions, obtain a set of candidate orders, report to the user via voice, determine the order results based on the voice commands input by the user, provide voice broadcast order information, and achieve order booking without relying on screen display.
It provides the visually impaired with a convenient voice-controlled order booking experience, improves human-computer interaction efficiency and user experience, avoids missing order information, and adapts to real-time product changes.
Smart Images

Figure CN2023092724_17102024_PF_FP_ABST
Abstract
Description
Voice control method and device for ordering, electronic device and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310383883.8 filed on April 11, 2023, the entire contents of which are incorporated herein by reference in their entirety. Technical Field
[0003] The present disclosure relates to the field of computer technology, and more particularly to a voice control method and apparatus for ordering, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0004] Smart interactive devices are increasingly being used in people's production and daily lives. For example, in a self-service ordering application scenario, users can use a self-service ordering machine or other electronic devices installed with a self-service ordering application to order food.
[0005] The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approach described in this section is prior art simply by virtue of its inclusion in this section. Similarly, unless otherwise indicated, the issues raised in this section should not be considered as having been recognized in any prior art.
[0006] Summary of the Invention
[0007] The present disclosure provides a voice control method and apparatus for ordering, an electronic device, a computer-readable storage medium, and a computer program product.
[0008] According to one aspect of the present disclosure, a voice control method for orders is provided. The method includes: obtaining a first voice instruction input by a user; performing intent recognition on the first voice instruction to obtain the user's order intention, the order intention including the target order intention; obtaining an order determination result according to the user's order intention indicated by the result of the intent recognition, including: in response to determining that the result of the intent recognition indicates the target order intention, obtaining a candidate order set from a database based on the target order intention; according to the candidate order set, an indication of inputting a second voice instruction is broadcasted to the user by voice; obtaining at least one second voice instruction input by the user; and obtaining an order determination result from the candidate order set based on the at least one second voice instruction. The method also includes broadcasting the order determination result and the product information corresponding to the order determination result to the user by voice.
[0009] According to another aspect of the present disclosure, a voice control device for orders is provided. The device includes: a voice instruction acquisition unit, configured to acquire a first voice instruction input by a user; an intention recognition unit, configured to perform intention recognition on the first voice instruction to obtain the user's order intention, the order intention including the target order intention; an order determination unit, configured to acquire an order determination result according to the user's order intention indicated by the result of the intention recognition, and the order determination unit is further configured to obtain a candidate order set from a database based on the target order intention in response to determining that the result of the intention recognition indicates the target order intention; according to the candidate order set, an indication of inputting a second voice instruction is broadcasted to the user by voice; at least one second voice instruction input by the user is acquired; and based on the at least one second voice instruction, an order determination result is acquired from the candidate order set. The device also includes an order broadcasting unit, configured to broadcast the order determination result and the product information corresponding to the order determination result to the user by voice.
[0010] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor so as to enable the at least one processor to execute the above-mentioned voice control method for orders.
[0011] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to cause a computer to execute the above-mentioned voice control method for orders.
[0012] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the above-mentioned voice control method for orders when executed by a processor.
[0013] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.
[0015] FIG1 shows a schematic diagram of an example system in which various methods described herein may be implemented according to an embodiment of the present disclosure;
[0016] FIG2 shows a flow chart of a voice control method for an order according to an embodiment of the present disclosure;
[0017] FIG3 shows a flow chart of a voice control method for ordering according to another embodiment of the present disclosure;
[0018] FIG4 shows a partial process flow chart of a voice control method for ordering according to an embodiment of the present disclosure;
[0019] FIG5 shows a flow chart of a voice control method for ordering according to another embodiment of the present disclosure;
[0020] FIG6 shows another flow chart of a partial process of the voice control method for ordering according to an embodiment of the present disclosure;
[0021] FIG7 shows another flow chart of a partial process of the voice control method for ordering according to an embodiment of the present disclosure;
[0022] FIG8 shows another flow chart of a partial process of the voice control method for ordering according to an embodiment of the present disclosure;
[0023] FIG9 shows a structural block diagram of a voice control device for ordering according to an embodiment of the present disclosure; and
[0024] FIG10 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.
[0027] The terms used in the descriptions of the various examples described in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.
[0028] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0029] Smart interactive devices can provide users with a relatively convenient order reservation experience. For example, in a self-service ordering scenario, users can place orders on the smart ordering machine by clicking or sliding the touch screen of the smart ordering machine. However, for some specific groups of people (such as the visually impaired), it is relatively difficult to conduct human-computer interaction through the touch screen. In related technologies, the text content on the screen can be broadcast to the user by voice through a computer screen reader, thereby guiding the user to, for example, manipulate a specific position of the electronic device (such as a specific button on the touch screen) to place an order. However, the screen reading function can only be based on the currently displayed interface. In other words, if the user does not enter other interfaces, the corresponding information in these interfaces cannot be obtained through the screen reading function. In addition, in order to adapt to the needs of real-time changes in the content of goods or orders, the content displayed on the screen may change frequently. Therefore, in order to successfully complete the order reservation, the user may need to frequently re-adapt and familiarize themselves with the changed interface. Once the user accidentally touches the screen, the computer screen reading function may be terminated or exited.
[0030] Based on this, the present disclosure provides a voice control method and device for orders, an electronic device, a computer-readable storage medium, and a computer program product.
[0031] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0032] FIG. 1 is a schematic diagram illustrating an example system 100 in which the various methods described herein may be implemented, according to an example embodiment.
[0033] 1 , the system 100 includes a client device 110 , a server 120 , and a network 130 that communicatively couples the client device 110 and the server 120 .
[0034] The client device 110 includes a display 114 and a client application (APP) 112 that can be displayed via the display 114. The client application 112 can be an application that needs to be downloaded and installed before running, or a small program (lite app) that is a lightweight application. In the case where the client application 112 is an application that needs to be downloaded and installed before running, the client application 112 can be pre-installed on the client device 110 and activated. In the case where the client application 112 is a small program, the user 102 can directly run the client application 112 on the client device 110 by searching for the client application 112 in the host application (for example, by the name of the client application 112, etc.) or scanning a graphical code (for example, a barcode, QR code, etc.) of the client application 112, without having to install the client application 112. In some embodiments, the client device 110 can be any type of mobile computer device, including a mobile computer, a mobile phone, a wearable computer device (for example, a head-mounted device such as a smart watch or smart glasses), or other types of mobile devices. In some embodiments, the client device 110 can alternatively be a stationary computer device, such as a desktop computer, a server computer, or other types of stationary computer devices.
[0035] The server 120 is typically a server deployed by an Internet Service Provider (ISP) or an Internet Content Provider (ICP). The server 120 may represent a single server, a cluster of multiple servers, a distributed system, or a cloud server that provides basic cloud services (such as cloud databases, cloud computing, cloud storage, and cloud communications). It will be understood that although FIG1 shows that the server 120 is communicating with only one client device 110, the server 120 can provide backend services to multiple client devices simultaneously.
[0036] Examples of network 130 include a local area network (LAN), a wide area network (WAN), a personal area network (PAN), and / or a combination of communication networks such as the Internet. Network 130 can be a wired or wireless network. In some embodiments, data exchanged through network 130 is processed using technologies and / or formats including Hypertext Markup Language (HTML), Extensible Markup Language (XML), etc. In addition, encryption technologies such as Secure Sockets Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In some embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.
[0037] For the purposes of the embodiments of the present disclosure, in the example of FIG1 , client application 112 may be a voice-controlled ordering application. This voice-controlled application may provide various voice-controlled ordering functions, such as obtaining user voice input, providing voice announcements to the user, and so on. Accordingly, server 120 may be a server used in conjunction with the voice-controlled ordering application. Server 120 may provide order reservation services to client application 112 running on client device 110 based on road network data. Alternatively, server 120 may provide road network data to client device 110, and client application 112 running on client device 110 may provide local order reservation services.
[0038] FIG2 illustrates a flow chart of a voice control method 200 for ordering according to an embodiment of the present disclosure. Method 200 may be executed, for example, on the client device 110 shown in FIG1 . That is, the execution entity of each step of method 200 may be the client device 110 shown in FIG1 . In some examples, method 200 may be executed, for example, on the server 120 shown in FIG1 . In some embodiments, method 200 may be executed in combination by the client device 110 and the server 120. Below, each step of method 200 is described in detail, using the client device 110 as an example.
[0039] As shown in FIG. 2 , the method 200 includes:
[0040] Step S210: Acquire a first voice command input by a user;
[0041] Step S220: performing intent recognition on the first voice command to obtain the user's order intent, where the order intent includes a target order intent;
[0042] Step S230: Acquire the order confirmation result according to the user's order intention indicated by the intention recognition result. Step S230 includes the following steps S231 to S234:
[0043] Step S231: in response to determining that the result of the intent recognition indicates a target order intent, obtaining a set of candidate orders from a database based on the target order intent;
[0044] Step S232: Based on the candidate order set, an instruction to input a second voice command is broadcast to the user by voice;
[0045] Step S233: obtaining at least one second voice instruction input by the user; and
[0046] Step S234: Based on the at least one second voice instruction, obtain an order confirmation result from the candidate order set.
[0047] In addition, the method 200 further includes step S240, announcing the order confirmation result and the product information corresponding to the order confirmation result to the user by voice.
[0048] In step S210, the first voice instruction obtained may be a voice instruction including a word or sentence. For example, the first voice instruction may be a voice instruction including the content "order food", "order something", "I'm hungry", "I want to eat", "start ordering", or "I want to order food".
[0049] In step S220, the first voice command obtained can be input into the trained intent recognition model to obtain an intent recognition result output by the intent recognition model. In this example, the intent recognition model can recognize the user's ordering intent (i.e., the target order intent) from voice commands such as "order food," "order something," "I'm hungry," "I want to eat," "start ordering," or "I want to order food."
[0050] In step S231, in response to determining that the result of intent recognition indicates a target order intent, a candidate order set is obtained from a database based on the target order intent. For example, based on the user's ordering intent, a candidate meal order set can be obtained from a database.
[0051] In the example of step S232, the candidate order set may include, for example, dishes such as "beef burger set" and "grilled chicken burger set". Based on the candidate order set, voice instructions may be broadcast to the user to ask the user to choose a beef burger set or a chicken burger set.
[0052] In step S233, the at least one second voice command input by the user may be a voice command input after the user inputs the first voice command. For example, the second voice command may include a voice command for selecting one of multiple meal types (e.g., a voice command for selecting a "grilled chicken burger combo") or a voice command for configuring multiple items in a combo (e.g., a voice command for selecting a snack in the combo, configuring the sweetness of an item, etc.). Subsequently, in step S234, based on the second voice command, an order confirmation result (e.g., a grilled chicken burger combo with French fries as a snack) may be obtained from the candidate order set including the "beef burger combo" and the "grilled chicken burger combo."
[0053] In the subsequent step S240, for example, the order result of the "grilled chicken burger combo" determined from the current order set and the corresponding product information (such as payment information and meal calorie information) can be announced to the user by voice. In this example, for example, the announcement can be: "Your order is a grilled chicken burger combo, with French fries selected as a snack. The order price is 46 yuan, and the total calorie content of the combo is 319 kilocalories."
[0054] According to an embodiment of the present disclosure, the intent of the first voice instruction input by the user is recognized, and the corresponding order confirmation result is obtained according to the order intent. Thus, for the user, the order confirmation process can be completed only by issuing the corresponding voice instruction, without the need to perform other human-computer interaction operations such as clicking or touching with the electronic device. This is particularly beneficial for specific groups of people (such as the visually impaired). In addition, since method 200 does not rely on the computer to read the content displayed on the screen, and does not involve other user operations other than voice operations, even if the user does not click to enter other interfaces, all useful information in the current order set can be provided to the user to avoid missing order information, thereby improving human-computer interaction efficiency and order efficiency, and improving user experience.
[0055] FIG3 illustrates a flow chart of a voice control method 300 for ordering according to another embodiment of the present disclosure. As shown in FIG3 , method 300 includes steps S310 to S340. Step S310, steps S332 to S334 of step S330, and step S340 are similar to steps S210, steps S232 to S234 of step S230, and step S240 described above with respect to FIG2 , respectively, and are not further described herein.
[0056] Referring to FIG. 3 , according to some embodiments, step S220 may include:
[0057] Step S321: performing voice recognition on the first voice instruction to obtain a first text; and
[0058] Step S322: perform intent recognition on the first text.
[0059] And the above step S231 may include:
[0060] Step S3311: Obtain at least one keyword in the first text; and
[0061] Step S3312: Based on at least one keyword, obtain a candidate order set from the database.
[0062] In step S321, the first voice instruction obtained can be input into the trained voice recognition model to obtain the first text output by the voice recognition model. In some examples, the voice recognition model may include an acoustic model and a language model, wherein the acoustic model is used to predict the probability of voice to syllables; the language model is used to predict the probability of syllables to words. In some examples, the voice recognition model may include a binary classification model for classifying the input voice into two categories: ordering and non-ordering. Accordingly, the subsequent ordering process can be continued for the voice instruction classified as the ordering category. Alternatively, feature extraction can be performed on the first voice instruction to obtain corresponding acoustic feature information, and then voice recognition can be performed based on the acoustic feature information.
[0063] In step S322, the first text can be input into the trained intent recognition model to obtain the intent recognition result output by the intent recognition model. In some examples, a preset matching word (such as "order" or "order food") can be detected in the first text, and whether the matching word is detected is used as the result of intent recognition. In some examples, the preset matching words can include standard words that indicate the target intent (such as "order food") and similar words with similar semantics (such as "order dishes"). In some examples, the first text can be segmented, and for each word obtained by segmentation, the text similarity between it and the preset matching word is calculated. When the similarity is greater than a threshold, it can be determined that the intent indicated by the word is similar to the intent indicated by the preset matching word, thereby determining the intent recognition result.
[0064] In the example of step S3312, based on the keyword in the first text, such as "chicken burger," a candidate order set (all burger products containing chicken and corresponding combos) can be retrieved from the database. Then, based on at least one second voice command input by the user (e.g., a voice command for further selecting and configuring the burger product containing chicken, such as selecting snacks in the combo or configuring the product sauce), the candidate order set is further screened to obtain an order confirmation result.
[0065] In the example, the voice can be broadcast to the user by category based on the product classification in the candidate order set to provide multiple product categories to choose from. In some examples, the order set in the database can be updated in real time based on the inventory information of the product (such as the raw materials of the meal), so that the sold-out products can be excluded from the current order set in a timely manner. Accordingly, at least one second voice instruction can be a voice instruction that the user feeds back on the content of the voice broadcast after hearing the voice broadcast. For example, in the scenario of voice ordering, the client device can broadcast the voice to the user based on the current order set to provide the types of meals currently available for selection (the voice content includes, for example, "hamburger meal", "chicken roll meal", "rice meal", etc.). Accordingly, the second voice instruction can be a voice instruction for selecting one of the above-mentioned meal categories (for example, a voice instruction for selecting a "hamburger meal").
[0066] FIG4 shows a partial process flow chart of the voice control method for ordering according to an embodiment of the present disclosure. As shown in FIG4 , according to some embodiments, step S234 or step S334 may include:
[0067] Step S410: performing voice recognition on at least one second voice instruction to obtain a second text; and
[0068] Step S420: Search the candidate order set for an order corresponding to the second text as an order confirmation result.
[0069] According to some embodiments, step S231 may include:
[0070] Get the initial set of orders from the database; and
[0071] In response to determining that the order intention includes an order budget, a set of candidate orders whose order prices do not exceed the order budget is determined from the initial order set.
[0072] Therefore, when the first voice instruction obtained includes information related to the order budget, the order set in the initial order set whose order price does not exceed the order budget is used as the candidate order set, so that in the subsequent voice broadcast to the user, the optional order prices provided to the user from the candidate order set do not exceed the user's budget, thereby meeting the user's order needs under budget constraints.
[0073] For example, the initial order set may be a set of all current orders in a database, and the content of the first voice instruction input by the user may include "My order budget is 100 yuan." After performing voice recognition and intent recognition on this first voice instruction, it can be determined that the intent recognition result indicates the user's order budget. Therefore, all sets of meal packages priced no more than 100 yuan can be identified from the initial order set in the database as candidate order sets. It will be understood that the database may store price information for each order or each product, and product combinations whose total price does not exceed the budget can be calculated based on the price information for each product.
[0074] According to some embodiments, the order may include a meal order, and step S231 may include:
[0075] Get the initial set of orders from the database; and
[0076] In response to determining that the order intention includes a calorie restriction condition, a candidate order set whose total calories of meals meet the calorie restriction condition is determined from the initial order set.
[0077] Thus, when ordering food, if the first voice instruction obtained includes information related to calorie restriction conditions, the order set whose total calorie content of the food items in the initial order set meets the calorie restriction conditions (for example, does not exceed the user's intended calorie threshold) is selected as the candidate order set. This ensures that in the subsequent voice broadcast to the user, the total calorie content of the orders available to the user from the candidate order set all meets the user's calorie restriction conditions, thereby meeting the user's personalized ordering needs. In this example, the calorie restriction conditions and the calorie content of the food items can be measured in calories.
[0078] FIG5 shows a flow chart of a voice control method 500 for placing an order according to an embodiment of the present disclosure. As shown in FIG5 , the method 500 includes:
[0079] Step S510: Acquire a first voice command input by a user;
[0080] Step S520: perform intent recognition on the first voice instruction to obtain the user's order intention, where the order intention includes the target order intention.
[0081] Steps S510 to S520 are similar to steps S210 to S220 described above with respect to FIG. 2 , and are not described again herein.
[0082] According to some embodiments, the order intention may include historical order intention, and step S530 in method 500 may include the following steps S531 to S533:
[0083] Step S531: In response to determining that the result of the intent recognition indicates a historical order intent, obtaining associated order information based on the historical order intent, the associated order information including time information;
[0084] Step S532: Based on the associated order information, obtain at least one historical order associated with the user; and
[0085] Step S533: Determine an order corresponding to the historical order intention from at least one historical order as an order determination result.
[0086] In addition, similar to method 200, method 500 also includes step S540, which voice broadcasts the order confirmation result and the product information corresponding to the order confirmation result to the user. Step S540 is similar to step S240 described above with respect to FIG. 2 and will not be repeated here.
[0087] In this example, the first voice command input by the user may be "I want to order the same set meal as on Day A." Accordingly, the text "I want to order the same set meal as on Day A" can be obtained. When intent recognition is performed on this text, since the text contains the keywords "Day A" or "same," it can be determined that the order intent includes a historical order intent. A historical order intent can refer to an order intent whose semantics refers to a historical order or a previous order (in this example, the order on Day A).
[0088] In this example, based on the user's current login account, associated order information associated with that account can be retrieved, such as all historical order information or historical order information within a specific period. For example, the retrieved historical order information associated with the login account may include a "hamburger combo" with order date A and a "rice combo" with order date B. If the determined intent recognition result indicates that the user wishes to order the same combo on date A, the "hamburger combo" with order date A can be identified from the historical orders as the order confirmation result and announced to the user by voice.
[0089] As a result, users can quickly and conveniently reserve desired historical orders through voice without having to select orders through multiple interactions, thereby further improving the user experience.
[0090] FIG6 shows another flow chart of a portion of the process of the voice control method for ordering according to an embodiment of the present disclosure. According to some embodiments, the candidate order set may include multiple levels of order options, and as shown in FIG6 , the above step S420 may include:
[0091] Step S610: broadcasting the voice messages associated with the order options at each level to the user step by step; and
[0092] Step S620: In response to determining that the second text does not correspond to any level-one order option in the multi-level order options, re-broadcast the voice associated with the level-one order option, or broadcast the voice associated with the upper-level order option.
[0093] In this example, based on the current order set, the first-level order options, "Please select the following main dish types: hamburgers, rice, wraps," may be announced to the user by voice. Upon determining that a recognized second text corresponds to the order options at that level (e.g., the second text includes the word "hamburger"), the second-level order options, "Please select the following hamburger types: chicken burgers, beef burgers," may be announced to the user by voice. Upon determining that the next recognized second text corresponds to the order options at that level (e.g., the second text includes the word "beef burger"), the third-level order options, "Please select the following side dish types: salad, fries," may be announced to the user by voice, until the first order confirmation process is completed. In this example, if the next recognized second text does not correspond to the order options at that level (e.g., the second text does not include the word "beef burger"), this indicates that the user may not have clearly heard the announcement of the order options at that level, failed to clearly state the desired order, or does not wish to select further orders at that level. Therefore, by re-reading the voice associated with the order option at this level, or reading the voice associated with the upper-level order option, the user can be helped to successfully determine the desired order content.
[0094] FIG7 shows another flow chart of a portion of the process of the voice control method for ordering according to an embodiment of the present disclosure. As shown in FIG7 , according to some embodiments, each order in the candidate order set may include at least one first vector representation, and the above step S234 or step S334 may include:
[0095] Step S710: vectorize at least one second voice instruction to obtain a corresponding second vector representation;
[0096] Step S720: Determine the similarity between the second vector representation and at least one first vector representation of each order; and
[0097] Step S730: Based on the similarity, determine the order corresponding to the second voice instruction in the candidate order set as the order determination result.
[0098] The first vector representation corresponding to each order in the order set may be a vector representation of the speech corresponding to the order (e.g., the speech "beef burger meal" for the order may be represented by vector T1). The first vector representation may be obtained by pre-vectorizing the speech information corresponding to the orders in the database.
[0099] The second vector representation may be a vector representation obtained by vectorizing the voice information input by the user (eg, vector representation T2 obtained by vectorizing the voice message "I want a beef burger meal").
[0100] In the example of step S730, if the similarity between the second vector representation T2 and the first vector representation T1 is greater than a threshold, the order in the candidate order set corresponding to the first vector representation T1 can be determined to be the order the user intended to reserve, and thus can be used as the order confirmation result. In this example, the distance between the first and second vectors can be used to indicate the similarity between the two.
[0101] Therefore, by comparing the vector representations of voice information, orders can be quickly determined in the candidate order set.
[0102] According to some embodiments, at least one first vector representation of each order may include multiple first vector representations, each of which is for a type of pronunciation of the order. For example, at least one first vector representation may include T1a, T1b, and T1c, wherein T1a may be a vector representation obtained by vectorizing the Mandarin "beef burger set meal"; T1b may be a vector representation obtained by vectorizing the Cantonese "beef burger set meal"; and T1c may be a vector representation obtained by vectorizing the Minnan dialect "beef burger set meal". Thus, when a user places a voice order using different types of pronunciations (such as dialects), the corresponding first vector representation (such as one of T1a, T1b, and T1c) can be matched more accurately, thereby completing the order confirmation process accurately and efficiently.
[0103] FIG8 shows another flow chart of a portion of the process of the voice control method for placing an order according to an embodiment of the present disclosure. As shown in FIG8 , according to some embodiments, the product information may include payment information (e.g., product price, payment method, etc.). Step S240 or step S340 or step S540 may also include:
[0104] Step S810: Query the payment discount information associated with the user (e.g., the amount of the discount);
[0105] Step S820: Based on the payment discount information, a voice message is broadcast to the user to inquire whether the user wants to use the payment discount.
[0106] Step S830: Acquire a third voice command input by the user;
[0107] Step S840: performing voice recognition on the third voice instruction to obtain a third text; and
[0108] Step S850: In response to determining that the third text instructs the user to use the payment discount, the order confirmation result (e.g., a grilled chicken burger meal including French fries as a snack) and the payment information superimposed with the payment discount (e.g., the amount to be paid after the discount) are announced to the user by voice.
[0109] Therefore, after the order content is determined, the discount information is broadcast to the corresponding user through voice interaction, thereby assisting the user to make preferential payments and further improving the user experience.
[0110] FIG9 shows a block diagram of a voice control device 900 for order processing according to an embodiment of the present disclosure. As shown in FIG9 , the device 900 includes:
[0111] The voice instruction acquisition unit 910 is configured to acquire a first voice instruction input by a user;
[0112] The intention recognition unit 920 is configured to perform intention recognition on the first voice instruction to obtain the user's order intention, wherein the order intention includes the target order intention;
[0113] The order determination unit 930 is configured to obtain an order determination result based on the user's order intent indicated by the result of intent recognition, and the order determination unit 930 is further configured to, in response to determining that the result of intent recognition indicates the target order intent, obtain a candidate order set from a database based on the target order intent; based on the candidate order set, voice broadcast an instruction to input a second voice instruction to the user; obtain at least one second voice instruction input by the user; and obtain an order determination result from the candidate order set based on the at least one second voice instruction; and
[0114] The order announcement unit 940 is configured to announce the order confirmation result and the product information corresponding to the order confirmation result to the user by voice.
[0115] It should be understood that the various units of the apparatus 900 shown in FIG9 may correspond to the various steps in the method 200 described with reference to FIG2 . Thus, the operations, features, and advantages described above for the method 200 are also applicable to the apparatus 900 and the units included therein. For the sake of brevity, certain operations, features, and advantages are not described in detail herein.
[0116] It should also be understood that various technologies can be described herein in the general context of software hardware elements or program modules. The various units described above with respect to Figure 9 can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these units can be implemented as computer program code / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these units can be implemented as hardware logic / circuits. For example, in some embodiments, one or more of units 910 to 940 can be implemented together in a system on chip (SoC). SoC can include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and can optionally execute the received program code and / or include embedded firmware to perform a function.
[0117] According to some embodiments, the order intent may include a historical order intent, and the order determination unit 930 may be further configured to: in response to determining that the result of intent recognition indicates the historical order intent, obtain associated order information based on the historical order intent, the associated order information including time information; based on the associated order information, obtain at least one historical order associated with the user; and determine an order corresponding to the historical order intent from the at least one historical order as the order determination result.
[0118] According to some embodiments, the order determination unit 930 may be further configured to: obtain an initial order set from a database; and in response to determining that the order intention includes an order budget, determine a candidate order set from the initial order set whose order prices do not exceed the order budget.
[0119] According to some embodiments, the intent recognition unit 920 may be further configured to: perform speech recognition on the first voice instruction to obtain a first text; and perform intent recognition on the first text. Furthermore, the order determination unit 930 may be further configured to: obtain at least one keyword from the first text; and based on the at least one keyword, obtain the candidate order set from the database.
[0120] According to some embodiments, the order may include a meal order, and the order determination unit 930 may be further configured to: obtain an initial order set from a database based on at least one keyword; and in response to determining that the order intention includes a calorie restriction condition, determine a candidate order set from the initial order set whose total meal calories do not exceed the calorie restriction condition.
[0121] According to some embodiments, the order determination unit 930 may be further configured to: perform voice recognition on the at least one second voice instruction to obtain a second text; and search the candidate order set for an order corresponding to the second text as an order determination result.
[0122] According to some embodiments, the selected order set may include multiple levels of order options, and the order determination unit 930 may be further configured to: broadcast the voice associated with the order options of that level to the user step by step; and in response to determining that the second text does not correspond to any level of order options in the multiple levels of order options, re-broadcast the voice associated with the order options of that level, or broadcast the voice associated with the upper-level order options.
[0123] According to some embodiments, each order in the candidate order set may include at least one first vector representation, and the order determination unit 930 may be further configured to: vectorize at least one second voice instruction to obtain a corresponding second vector representation; determine the similarity between the second vector representation and the at least one first vector representation of each order; and based on the similarity, determine the order corresponding to the second voice instruction in the candidate order set as the order determination result.
[0124] According to some embodiments, the at least one first vector representation of each order may include multiple first vector representations, each of which is for a type of pronunciation of the order.
[0125] According to some embodiments, product information may include payment information, and the order broadcast unit 940 may be further configured to: query payment discount information associated with the user; broadcast voice to the user based on the payment discount information to ask the user whether to use the payment discount; obtain a third voice instruction input by the user; perform voice recognition on the third voice instruction to obtain a third text; and in response to determining that the third text instructs the user to use the payment discount, voice broadcast the order determination result and the payment information superimposed with the payment discount to the user.
[0126] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above-mentioned voice control method for orders.
[0127] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned voice control method for orders.
[0128] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above-mentioned voice control method for orders when executed by a processor.
[0129] Referring to Figure 10, a block diagram of an electronic device 1000 that can be used as the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device can be different types of computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0130] Figure 10 shows a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in Figure 10, the electronic device 1000 may include at least one processor 1001, a working memory 1002, an I / O device 1004, a display device 1005, a storage device 1006, and a communication interface 1007, which can communicate with each other via a system bus 1003.
[0131] The processor 1001 may be a single processing unit or multiple processing units, all of which may include a single or multiple computing units or multiple cores. The processor 1001 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits, and / or any device that manipulates signals based on operational instructions. The processor 1001 may be configured to retrieve and execute computer-readable instructions stored in the working memory 1002, the storage device 1006, or other computer-readable media, such as program code of an operating system 1002a, program code of an application program 1002b, and the like.
[0132] The working memory 1002 and the storage device 1006 are examples of computer-readable storage media for storing instructions that are executed by the processor 1001 to implement the various functions described above. The working memory 1002 may include both volatile memory and non-volatile memory (e.g., RAM, ROM, etc.). In addition, the storage device 1006 may include a hard drive, a solid-state drive, removable media, including external and removable drives, memory cards, flash memory, floppy disks, optical disks (e.g., CDs, DVDs), storage arrays, network attached storage, storage area networks, etc. The working memory 1002 and the storage device 1006 may all be collectively referred to herein as memory or computer-readable storage media, and may be non-transitory media capable of storing computer-readable, processor-executable program instructions as computer program code, which may be executed by the processor 1001 as a specific machine configured to implement the operations and functions described in the examples herein.
[0133] I / O devices 1004 may include input devices and / or output devices. An input device may be any type of device capable of inputting information to electronic device 1000, including but not limited to a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. An output device may be any type of device capable of presenting information, including but not limited to a video / audio output terminal, a vibrator, and / or a printer.
[0134] The communication interface 1007 allows the electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a Wi-Fi device, a WiMAX device, a cellular communication device and / or the like.
[0135] The application program 1002b in the working register 1002 can be loaded to execute the various methods and processes described above. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 1000 via the storage device 1006 and / or the communication interface 1007. When the computer program is loaded and executed by the processor 1001, one or more steps of the corpus construction method described above can be performed.
[0136] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0137] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable task scheduling device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0138] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0139] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0140] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0141] A computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The client and server relationship arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0142] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0143] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. In addition, the steps may be performed in an order different from that described in this disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after this disclosure.
Claims
1. A voice control method for ordering, comprising: Obtaining a first voice command input by a user; Performing intent recognition on the first voice instruction to obtain the user's order intent, wherein the order intent includes a target order intent; According to the order intention of the user indicated by the result of the intention recognition, the order confirmation result is obtained, including: In response to determining that the result of the intent recognition indicates the target order intent, obtaining a candidate order set from a database based on the target order intent; According to the candidate order set, an instruction to input a second voice command is broadcasted to the user by voice; Acquiring at least one second voice command input by a user; and Based on the at least one second voice instruction, obtaining an order confirmation result from the candidate order set; and The order confirmation result and the product information corresponding to the order confirmation result are announced to the user by voice.
2. The method according to claim 1, wherein: The order intention includes historical order intention, and obtaining the order confirmation result according to the order intention of the user indicated by the result of intention recognition includes: In response to determining that the result of the intent recognition indicates the historical order intent, acquiring associated order information based on the historical order intent, the associated order information including time information; Based on the associated order information, obtaining at least one historical order associated with the user; and An order corresponding to the historical order intention is determined from the at least one historical order as the order determination result.
3. The method according to claim 1, wherein: Based on the target order intention, obtaining a candidate order set from a database includes: Obtaining an initial set of orders from the database; and In response to determining that the order intention includes an order budget, a candidate order set whose order prices do not exceed the order budget is determined from the initial order set.
4. The method according to claim 1, wherein: The order includes a meal order, and based on the target order intent, obtaining a candidate order set from a database includes: Obtaining an initial set of orders from the database; and In response to determining that the order intention includes a calorie restriction condition, a candidate order set whose total calories of meals meet the calorie restriction condition is determined from the initial order set.
5. According to the method of any one of claims 1 to 4, performing intent recognition on the first voice instruction comprises: Performing voice recognition on the first voice instruction to obtain a first text; as well as performing intent recognition on the first text, and Wherein, based on the target order intention, obtaining a candidate order set from a database includes: Obtaining at least one keyword in the first text; and Based on the at least one keyword, the candidate order set is obtained from the database.
6. The method according to any one of claims 1 to 4, wherein: Based on the at least one second voice instruction, obtaining an order confirmation result from the candidate order set includes: performing voice recognition on the at least one second voice instruction respectively to obtain a second text; and The order corresponding to the second text is searched in the candidate order set as an order determination result.
7. The method according to claim 6, wherein: The candidate order set includes multiple levels of order options, and searching the candidate order set for an order corresponding to the second text as an order determination result includes: Announce to the user the voice messages associated with the order options at each level; and In response to determining that the second text does not correspond to any level one order option in the multi-level order options, the voice associated with the level one order option is re-pronounced, or the voice associated with the upper level order option is pronounced.
8. The method according to any one of claims 1 to 4, wherein: Each order in the candidate order set includes at least one first vector representation, and, based on the at least one second voice instruction, obtaining an order confirmation result from the candidate order set includes: Vectorizing the at least one second voice instruction to obtain a corresponding second vector representation; determining a similarity between the second vector representation and at least one first vector representation of each of the orders; and Based on the similarity, an order corresponding to the second voice instruction is determined in the candidate order set as an order determination result.
9. The method according to claim 8, wherein: The at least one first vector representation of each order includes a plurality of first vector representations, each of which is for a type of pronunciation of the order.
10. The method according to any one of claims 1 to 4, wherein: The product information includes payment information, and the voice broadcasting of the order determination result and the product information corresponding to the order determination result to the user includes: Querying payment discount information associated with the user; According to the payment discount information, a voice message is broadcast to the user to inquire whether the user uses the payment discount; Acquire a third voice command input by the user; performing voice recognition on the third voice instruction to obtain a third text; and In response to determining that the third text instructs the user to use the payment offer, the order confirmation result and the payment information superimposed with the payment offer are voice broadcasted to the user.
11. A voice control device for ordering, comprising: A voice instruction acquisition unit, configured to acquire a first voice instruction input by a user; an intention recognition unit, configured to perform intention recognition on the first voice instruction to obtain the user's order intention, wherein the order intention includes a target order intention; an order determination unit configured to obtain an order determination result according to the order intention of the user indicated by the result of intention recognition, and the order determination unit is further configured to obtain a candidate order set from a database based on the target order intention in response to determining that the result of intention recognition indicates the target order intention; and to voice broadcast an instruction to input a second voice instruction to the user according to the candidate order set; Acquire at least one second voice command input by a user; and obtaining an order confirmation result from the candidate order set based on the at least one second voice instruction; as well as The order announcement unit is configured to announce the order confirmation result and the product information corresponding to the order confirmation result to the user by voice.
12. The device according to claim 11, wherein The order intention includes a historical order intention, and the order determination unit is further configured to: In response to determining that the result of the intent recognition indicates the historical order intent, obtaining associated order information based on the historical order intent, the associated order information including time information; and obtaining at least one historical order associated with the user based on the associated order information; as well as An order corresponding to the historical order intention is determined from the at least one historical order as the order determination result.
13. The device according to claim 11, wherein: The order determination unit is further configured to: Obtaining an initial order set from the database; as well as In response to determining that the order intention includes an order budget, a candidate order set whose order prices do not exceed the order budget is determined from the initial order set.
14. The device according to any one of claims 11 to 13, wherein: The intention recognition unit is further configured to: Performing voice recognition on the first voice instruction to obtain a first text; and performing intent recognition on the first text, and Wherein, the order determination unit is further configured to: Obtaining at least one keyword in the first text; and Based on the at least one keyword, the candidate order set is obtained from the database.
15. The device according to any one of claims 11 to 13, wherein: The order determination unit is further configured to: performing voice recognition on the at least one second voice instruction respectively to obtain a second text; and The order corresponding to the second text is searched in the candidate order set as an order determination result.
16. The device according to claim 15, wherein: The candidate order set includes multiple levels of order options, and the order determination unit is further configured to: Announce to the user the voice messages associated with the order options at each level; and In response to determining that the second text does not correspond to any level one order option in the multi-level order options, The voice associated with the order option at this level is announced, or the voice associated with the order option at the previous level is announced.
17. The device according to any one of claims 11 to 13, wherein: Each order in the candidate order set includes at least one first vector representation, and the order determination unit is further configured to: Vectorizing the at least one second voice instruction to obtain a corresponding second vector representation; determining a similarity between the second vector representation and at least one first vector representation of each order; as well as Based on the similarity, an order corresponding to the second voice instruction is determined in the candidate order set as an order determination result.
18. The device according to any one of claims 11 to 13, wherein: The product information includes payment information, and the order broadcast unit is further configured to: Querying payment discount information associated with the user; According to the payment discount information, a voice message is broadcast to the user to inquire whether the user uses the payment discount; Acquire a third voice command input by the user; Performing voice recognition on the third voice instruction to obtain a third text; as well as In response to determining that the third text instructs the user to use the payment offer, the order confirmation result and the payment information superimposed with the payment offer are voice broadcasted to the user.
19. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1-10.
20. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method according to any one of claims 1-10.
21. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Restaurant information control system and restaurant information processing method
CN102231175A
Meal ordering method and relevant device based on voice interaction
CN107578320A
Service providing method, electronic equipment and storage medium
CN108810295A
Meal ordering method, meal ordering system, vehicle-mounted terminal and computer readable storage medium
CN110991682A
Restaurant reservation method and terminal based on multi-round voice interaction
CN110992948A
Cited By
Interaction method and device, electronic equipment and storage medium
CN119669579A
