Voice control transaction method, device, equipment, medium and program product
Through voice control transaction methods and devices, voice commands are automatically recognized and transaction operations are completed, which solves the difficulty of using smart terminal transactions for the elderly and other groups, and improves transaction efficiency and user experience.
Patent Information
- Application Number
- CN202410762628.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
AI Technical Summary
Groups such as the elderly with limited knowledge, poor learning ability and poor eyesight have more difficulties when using smart terminals to conduct transactions. They are unable to complete transactions alone and require assistance from young people or bank customer service, resulting in poor user experience.
Provide a voice control transaction method and device, which can determine transaction information by receiving voice instructions, generate transaction instructions based on transaction elements and templates, automatically complete transaction operations, and reduce clicks and manual input operations.
It significantly reduces the difficulty of smart terminal transaction operations, facilitates the use of middle-aged and elderly people and special groups, and improves the processing efficiency and user satisfaction of transaction operations.
Smart Images

Figure CN118605831A
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology or other related fields, and in particular to a voice-controlled transaction method, device, equipment, medium and program product. Background Art
[0002] With the development of smart terminals such as smartphones, transactions based on smart terminals are increasingly being used. Completing various banking operations on smart terminals, such as transfer payments and purchase of financial products, has become the choice of more and more people. However, such operations require users to have a certain level of knowledge and behavioral ability. For groups such as the elderly who have limited knowledge, poor learning ability and vision, there are still many difficulties in operating on smart terminals.
[0003] In related technologies, even if the elderly or special groups want to perform transactions through smart terminals, they usually need the assistance of young people or bank customer service staff. The elderly alone are basically unable to complete transactions through smartphones, and the user experience is poor. Summary of the invention
[0004] The present application provides a voice-controlled transaction method, device, equipment, medium and program product, which are used to solve the problem that transactions based on smart terminals have a poor user experience for the elderly.
[0005] In a first aspect, the present application provides a voice-controlled transaction method, comprising: in response to a received voice instruction, determining transaction information corresponding to the voice instruction, wherein the transaction information includes a transaction template and a first type of transaction element corresponding to the voice instruction, the transaction template includes a transaction type, and the first type of transaction element is used to represent the transaction elements contained in the voice instruction; based on the first type of transaction element and the transaction template, determining a transaction instruction corresponding to the voice instruction, wherein the transaction instruction includes the transaction type and transaction elements required to complete the transaction operation; and completing the transaction operation based on the transaction instruction.
[0006] In a second aspect, the present application provides a voice-controlled transaction device, comprising: a receiving module, used to determine, in response to a received voice instruction, transaction information corresponding to the voice instruction, wherein the transaction information includes a transaction template and a first type of transaction element corresponding to the voice instruction, the transaction template includes a transaction type, and the first type of transaction element is used to represent the transaction elements contained in the voice instruction; a generating module, used to determine the transaction instruction corresponding to the voice instruction based on the first type of transaction element and the transaction template, wherein the transaction instruction includes the transaction type and transaction elements required to complete the transaction operation; and a processing module, used to complete the transaction operation based on the transaction instruction.
[0007] In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement any method described in the first aspect.
[0008] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor as described in any one of the methods in the first aspect.
[0009] In a fifth aspect, the present application provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor as in any one of the methods in the first aspect.
[0010] The voice-controlled transaction method, device, equipment, medium and program product provided by the present application include: determining the transaction information corresponding to the voice instruction according to the received voice instruction, then determining the transaction instruction corresponding to the voice instruction based on the first type of transaction elements and transaction templates, and then completing the transaction operation based on the transaction instruction. The above scheme extracts the transaction information in the voice instruction for input, automatically identifies the corresponding transaction instruction, and completes the corresponding transaction operation, thereby enabling the middle-aged and elderly to complete a variety of transaction operations through voice without the need for complex clicks and manual input operations, significantly reducing the difficulty of transaction operations based on smart terminals, facilitating the use of the middle-aged and elderly and special groups, improving the processing efficiency of transaction operations, and improving user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0012] Figure 1 A schematic diagram of an application scenario of a voice-controlled transaction method provided in an embodiment of the present application;
[0013] Figure 2 A flow chart of a voice-controlled transaction method provided in an embodiment of the present application;
[0014] Figure 3a A flow chart of a voice-controlled transaction method provided in an embodiment of the present application;
[0015] Figure 3b for Figure 3a A flow chart of a method for determining a transaction template based on a configuration operation provided by the illustrated embodiment;
[0016] Figure 3c for Figure 3aA flow chart of a method for generating a transaction template based on historical transaction records provided by the illustrated embodiment;
[0017] Figure 4 A schematic diagram of the structure of a voice-controlled transaction device provided in an embodiment of the present application;
[0018] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0019] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0020] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0021] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0022] In addition, this application involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and the use of artificial intelligence technology for automated decision-making, and a technical solution for making decisions that have a significant impact on personal rights and interests based on the results of automated decision-making. The application provides users with corresponding operation entrances for them to choose to agree or reject the results of automated decision-making; if the user chooses to reject, the expert decision-making process will be entered.
[0023] It should be noted that the voice-controlled transaction method, device, equipment, medium and program product of the present application can be used in the field of financial technology or other related fields, and can also be used in any field other than the field of financial technology or other related fields. The application field of the voice-controlled transaction method, device, equipment, medium and program product of the present application is not limited.
[0024] Figure 1 A schematic diagram of an application scenario of a voice-controlled transaction method provided in an embodiment of the present application is used as an example in combination with the scenario shown in the diagram: user 100 interacts with smart terminal 110 and inputs voice instructions by voice, and smart terminal 110 automatically completes the transaction operation corresponding to the voice instruction according to the voice instruction, thereby automatically completing the transaction business.
[0025] In combination with the scenario example, in a banking business scenario, the characteristic information includes but is not limited to at least one of the following: transaction records, user information, or user credit limit, etc.
[0026] The data transmission method provided in this application is intended to solve the above technical problems in the prior art.
[0027] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0028] Figure 2 A flow chart of a voice-controlled transaction method provided in an embodiment of the present application, the method comprising the following steps:
[0029] S201. In response to a received voice instruction, determine transaction information corresponding to the voice instruction.
[0030] As an example, the execution subject of this embodiment may be a voice-controlled transaction device, which may be implemented in various ways. For example, it may be a program software, or a medium storing a relevant computer program, such as a USB flash drive, etc.; or, the device may also be a physical device integrated or installed with a relevant computer program, such as a chip, a smart terminal, a computer, a server, etc.
[0031] The transaction information includes a transaction template corresponding to the voice instruction and a first-category transaction element. The transaction template includes a transaction type. The first-category transaction element is used to represent the transaction element contained in the voice instruction.
[0032] Specifically, the executor of the voice-controlled transaction method is mainly a smart terminal application, and the smart terminal application will be used to represent the executor in the following description.
[0033] The smart terminal application can provide a button or interface to receive the voice input by the user, such as the interface after opening or the interface entered by clicking a specific button, which can enter the state of obtaining the user's voice and record the voice input by the user. At this time, the recorded voice will be recognized as a voice command and matched with the pre-stored transaction template. If the voice command is successfully matched with a stored transaction template, the transaction template will be determined as the transaction template corresponding to the voice command. At the same time, the smart terminal application will also identify and extract the transaction elements contained therein, such as the transaction amount, transaction object, etc.
[0034] Exemplarily, the smart terminal application is a transaction program provided by a bank. The transaction program provides a button for recording voice. When the user presses and holds the button, the program software will display a window or interface for recording voice and record the voice input by the user. When the user releases the button, the recording is deemed to be completed, and the program software will recognize the recorded voice as a voice command. For example, if the voice command corresponding to the text is recognized as "transfer two hundred yuan to Lao Zhang", the corresponding transaction template is recognized as a transfer based on the grammar of "transfer yyy to xxx", and then "Lao Zhang" and "two hundred yuan" are respectively identified as the transaction object and the transaction amount, thereby obtaining transaction information, including the transaction type is a transfer, and the first type of transaction elements include the transaction object "Lao Zhang" (the transaction object recorded in the corresponding account is Zhang San) and the transaction amount is "two hundred yuan" (the corresponding transaction amount is RMB 200).
[0035] In the specific recognition process, the voice command can be converted into text, and through recognition rules such as regular expressions, the first type of transaction elements in the voice command can be extracted and the corresponding transaction template can be identified.
[0036] A transaction template generally includes a transaction type, and may also include other information in addition to the transaction type, such as some default transaction information (eg, a transfer-out account number or transfer-out card for a transfer transaction).
[0037] S202: Determine a transaction instruction corresponding to the voice instruction based on the first type of transaction elements and the transaction template.
[0038] Among them, transaction instructions include transaction types and transaction elements required to complete transaction operations.
[0039] Specifically, each transaction type has transaction element types required to complete the transaction. When the transaction type is determined, the smart terminal application will automatically determine whether the transaction information contains all the corresponding transaction element types. If so, the corresponding transaction instruction can be generated. At this time, the smart terminal can complete the corresponding transaction operation according to the transaction instruction.
[0040] If all the transaction element information required for the corresponding transaction type cannot be obtained based on the transaction template and the first type of transaction elements, a prompt message (such as a voice prompt) can also be sent to the user to obtain information of the specified type. For example, if the transaction amount information is missing, a voice prompt message "Please state the amount required for the transaction" can be issued, and the user's feedback voice can be recorded to extract the missing transaction elements and then obtain the transaction instructions.
[0041] S203: Complete the transaction operation based on the transaction instruction.
[0042] Specifically, by executing determined transaction instructions, the smart terminal application can complete the corresponding transaction operation.
[0043] In some embodiments, after the transaction operation is completed, the smart terminal application can send feedback information to the user to inform the user of the transaction completion and result information, such as "financial product A has been purchased successfully."
[0044] As a result, users do not need to switch between complicated trading interfaces or manually input trading information during the whole process, which significantly reduces the difficulty of operation and makes it easier for middle-aged and elderly users to use. At the same time, the input of various types of information only requires voice, which significantly improves the efficiency of trading operations and enhances the user experience.
[0045] The voice-controlled transaction method provided in the embodiment of the present application determines the transaction information corresponding to the voice instruction according to the received voice instruction, then determines the transaction instruction corresponding to the voice instruction based on the first type of transaction elements and the transaction template, and then completes the transaction operation based on the transaction instruction. The above scheme extracts the transaction information in the voice instruction for input, automatically identifies the corresponding transaction instruction, and completes the corresponding transaction operation, thereby enabling the middle-aged and elderly to complete a variety of transaction operations through voice without the need for complex clicks and manual input operations, significantly reducing the difficulty of transaction operations based on smart terminals, facilitating the use of the middle-aged and elderly and special groups, improving the processing efficiency of transaction operations, and improving user satisfaction.
[0046] Based on any of the above embodiments, Figure 3a , the detailed process of voice-controlled transactions is explained.
[0047] Figure 3a A flow chart of a voice-controlled transaction method provided in an embodiment of the present application. Figure 3a As shown, the method includes:
[0048] S301: In response to a received voice instruction, convert the voice instruction into an instruction text.
[0049] Specifically, when the execution subject of the voice-controlled transaction method provided in the embodiment of the present application is a smart terminal application, the application will include a voice input module for obtaining the voice command input by the user, and a voice analysis module for identifying the voice command. Through the combination of these two modules, the command text corresponding to the voice command can be identified.
[0050] At this time, the user only needs to speak the function to be completed to the application, and the voice input module will recognize it as a voice command and extract the command text through the voice analysis module.
[0051] S302: Determine the transaction template corresponding to the voice instruction based on the matching relationship between the template text name corresponding to the preset transaction template and the instruction text.
[0052] Specifically, after obtaining the instruction text, it is first necessary to extract the transaction template in the instruction text, determine the transaction elements required to generate the transaction instruction according to the transaction template, and extract the corresponding transaction elements from the instruction text as the first type of transaction elements.
[0053] In some embodiments, the server stores transaction templates preset for user accounts, each of which includes transaction types and preset transaction elements, as well as transaction elements that need to be obtained from the instruction text (such as first-category transaction elements). When the application obtains a voice instruction, it can extract the corresponding instruction text in the smart terminal, obtain the preset transaction template from the server, and perform matching and recognition. It can also send the voice instruction to the server, which will complete the recognition of the instruction text and the matching and recognition action of the transaction template (the execution subject of the recognition action and the matching and recognition action can be adjusted according to the actual situation).
[0054] According to the characteristics of the matching relationship, the corresponding transaction template in the instruction text can be determined, and then the transaction template corresponding to the first lead can be determined.
[0055] Furthermore, there are two ways to generate transaction templates. One is to generate transaction templates based on the transaction type and transaction elements determined in the configuration operation (such as by bank staff or other persons authorized by the user, such as their children), and the other is to automatically generate transaction templates based on the user's historical transaction records.
[0056] For the former case, if Figure 3b As shown, it is a flow chart of a method for determining a transaction template based on a configuration operation, which includes the following steps:
[0057] Step A1: Generate a candidate transaction template based on the transaction type and the second type transaction element determined in the configuration operation.
[0058] Specifically, the application provides a page (or multiple pages) for configuring transaction templates. In the corresponding page, the operator can (based on user needs) select the transaction type for which the transaction template is to be generated and the preset transaction elements that can be filled into the transaction template (i.e., the second-category transaction elements, which are used to represent the transaction elements included in the transaction template). For example, if the user needs to transfer money to the child's account every month, the transfer function can be set as the transaction type in the transaction template, and the child's account can be used as the transaction object in the second-category transaction element, and an alternative transaction template can be generated based on this information.
[0059] Step A2: Generate confirmation prompt information based on the alternative transaction template.
[0060] The confirmation prompt information is used to obtain the user's confirmation indication information for the transaction information corresponding to the alternative transaction template.
[0061] Specifically, the alternative transaction template includes all the information in the transaction template. However, since the configuration of the alternative transaction template is usually not performed by the user himself but by other persons authorized by the user (it can also be performed by the user himself in actual operation, but the user's confirmation is also required), it is necessary to obtain the user's confirmation again, so it is necessary to generate confirmation prompt information again, such as a prompt voice "Please confirm to use 'Transfer to Xiao Li on the first day of each month' as the transaction template."
[0062] Step A3: In response to the received confirmation indication information, determine the candidate transaction template as the transaction template.
[0063] Specifically, the confirmation prompt information can usually be voice or text, and the confirmation indication information fed back by the user based on the confirmation prompt information is usually voice, and can also include the user's video confirmation information (such as a video containing the user's nodding action) to ensure that the generation of the candidate transaction template has obtained the user's authorization. At this point, the candidate transaction template can be determined as the transaction template.
[0064] In another case, the transaction template may be determined based on the occurrence frequency of each transaction type and corresponding transaction elements in the historical transaction records.
[0065] In this case, if Figure 3c As shown, it is a flow chart of a method for generating a transaction template based on historical transaction records. It includes the following steps:
[0066] Step B1: Based on the transaction frequency ranking of each transaction type in the historical transaction records, a set number of transaction types with the highest transaction frequencies are determined as the transaction types in the transaction template.
[0067] Specifically, transaction templates can also be automatically generated. In this case, the application or server will analyze the user's corresponding historical transaction records (usually transaction records within a set time range, such as transaction records within the past three years) to determine the types of transactions most frequently used by the user. For example, the transactions most frequently used by the user are money transfers (such as money transfers to children) and regular purchases of commercial insurance. The former has been performed 100 times in the past three years, and the latter has been performed more than 30 times, while other types of operations have appeared less than 2 times. In this case, these two operations can be determined as transaction types in the transaction template.
[0068] Step B2: Determine the transaction elements and the occurrence frequencies of the transaction elements in the historical transaction records corresponding to these transaction types.
[0069] Specifically, by counting the transaction elements and their occurrence frequencies (or occurrence frequency ratios) corresponding to the transaction types determined in the above steps in the historical transaction records, if, for example, transfers to a certain account account for 80% of the total number of transfer operations, and transfer operations to other accounts account for no more than 5%, then the account can be treated as a second-category transaction element.
[0070] Step B3: Determine the second type of transaction elements in the transaction template based on the occurrence frequency.
[0071] Specifically, the second category of transaction elements can be determined based on the occurrence frequency and / or the occurrence frequency ratio.
[0072] In specific operations, to determine the second-category transaction elements by frequency, it is necessary to first determine the number of occurrences of the transaction elements corresponding to each transaction type in the historical transaction records (and also the total number of occurrences of the transaction type), and then determine the transaction elements whose occurrences corresponding to the same transaction type account for more than a set proportion (the proportion can be calculated by the ratio of the number of repeated occurrences of the transaction element to the number of occurrences of the transaction type) as the second-category transaction elements corresponding to the transaction type.
[0073] The set ratio can usually be set to 50% or higher. Because the trading elements with a low proportion, that is, the trading elements that are prone to change, are preferably not set as the second type of trading elements for the convenience of user adjustment, so as to reduce the number of times users modify the trading instructions determined based on the trading template and improve operational efficiency.
[0074] S303: Extract the first type of transaction elements from the instruction text based on the text features corresponding to the transaction elements.
[0075] Specifically, after the transaction template is determined, the first type of transaction elements may be extracted from the remaining content in the instruction text (text content except the text corresponding to the transaction template).
[0076] Each type of transaction element has a corresponding text feature. For example, for the transaction amount, its corresponding text will be a numeric text (such as "two hundred, five thousand, ten thousand" and the like); for the transaction object, its corresponding text will be the same as the name of the corresponding preset transaction object (such as the text "Zhang San", and "Zhang San" also exists in the preset transaction object corresponding to the user account, then it can be identified as a transaction object). Based on this type of text feature, the corresponding transaction element can be identified and used as the first type of transaction element of the corresponding text feature type.
[0077] S304: Determine the transaction elements corresponding to all target element types in the first category of transaction elements, and generate transaction instructions based on the first category of transaction elements and the transaction template.
[0078] The transaction template includes a target element type, and the target element type is used to represent the transaction elements required to complete the transaction operation corresponding to the transaction template.
[0079] Specifically, the target element type refers to all transaction element types except the second type of transaction elements (usually including user accounts and user bank cards used for transactions) required by the application to ensure transaction execution when determining the transaction template, usually the transaction object and transaction amount.
[0080] When the element type of the first-category transaction element (the element type will not be determined when the first-category transaction element is determined) corresponds to the target element type, it is ensured that all transaction elements required for transaction execution have been obtained, and the action of generating transaction instructions can be directly performed at this time.
[0081] Furthermore, considering that the transaction template includes the second type of transaction elements, the transaction instruction can be generated based on the first type of transaction elements and the transaction template, and the transaction instruction can be generated based on the first type of transaction elements, the second type of transaction elements and the transaction type. That is, the first type of transaction elements, the second type of transaction elements and the transaction type are combined in the format required by the transaction instruction to obtain the transaction instruction.
[0082] S305: Based on the first type of transaction elements, determine that there is at least one transaction element to be supplemented.
[0083] The transaction element to be supplemented is used to indicate a transaction element corresponding to a target element type that is not included in the first type of transaction element.
[0084] Specifically, based on step S304, there may be a situation where the voice instruction corresponding to the first type of transaction element does not include all target element types. In this case, there is at least one transaction element to be supplemented and the user needs to supplement it.
[0085] Step S306: Generate a first voice prompt message.
[0086] The first voice prompt information is used to obtain a supplementary voice instruction, and the supplementary voice instruction includes a transaction element to be supplemented.
[0087] Specifically, to obtain the transaction element to be supplemented, the application usually sends a corresponding voice prompt message to the user, that is, a first voice prompt message, so that the user can supplement it, such as a voice prompt "Please tell me the transaction date".
[0088] Step S307: In response to the received supplementary voice instruction, convert the supplementary voice instruction into a supplementary instruction text.
[0089] Specifically, the information supplemented by the user is usually also completed through voice, that is, supplementary voice instructions (entering supplementary voice instructions can be achieved by triggering the corresponding button), and the application will convert it into supplementary instruction text through the voice input module and the voice recognition module.
[0090] Step S308: extracting supplementary transaction elements based on the supplementary instruction text.
[0091] Specifically, unlike the instruction text, the supplementary instruction text only needs to extract the supplementary transaction elements through text features, without identifying the transaction version, so as to avoid conflicts with the already determined transaction template.
[0092] Step S309: Generate a transaction instruction based on the supplementary transaction element, the first type of transaction element and the transaction template.
[0093] Specifically, a transaction instruction may be generated based on the supplementary transaction element, the first type of transaction element obtained by combining the voice instruction and the transaction template.
[0094] Furthermore, considering that the transaction template includes the second type of transaction elements, the actual steps for generating transaction instructions may be: generating transaction instructions based on the first type of transaction elements, the second type of transaction elements, the supplementary transaction elements and the transaction type.
[0095] Specifically, by combining various transaction elements and transaction types, corresponding transaction instructions can be obtained.
[0096] When the supplementary transaction element is combined with the first type of transaction element and still does not include all target element types, it is necessary to repeat steps S305 to S309 until a transaction instruction can be generated.
[0097] Steps S305 to S309 are optional steps parallel to step S304. Those skilled in the art may select corresponding steps to execute according to actual conditions, and will not be described in detail here.
[0098] Step S310: Generate a second voice prompt message based on the determined transaction instruction.
[0099] The second voice prompt information is used to obtain a confirmation voice instruction, and the confirmation voice instruction is used to confirm the transaction instruction.
[0100] Specifically, the transaction instruction structures generated in different applications are different, depending on the specific program configuration. Those skilled in the art can determine the actions of obtaining transaction instructions through transaction elements and transaction types based on actual conditions, which will not be elaborated here.
[0101] After receiving the transaction instruction, a second voice prompt message will be sent to the user to obtain the user's confirmation of the specific transaction instruction information.
[0102] Step S311: Obtain the confirmation voice command fed back by the user to complete the transaction operation.
[0103] Specifically, the user's confirmation of the specific transaction instruction information in the second voice prompt information can be completed by voice, that is, confirming the voice instruction (for example, the user can say "confirmed" to the smart terminal). When the user finds that the specific transaction instruction information in the second voice prompt information does not meet his needs, he can choose not to confirm (for example, say "wrong" to the smart terminal). At this time, the application will start from step S301 to re-perform the voice instruction acquisition action to ensure the user's fund security.
[0104] After receiving the confirmation voice command, the transaction operation corresponding to the transaction instruction can be completed.
[0105] In some embodiments, after the transaction operation is completed, the operation result will be fed back to the user in the form of voice, such as generating corresponding voice result confirmation information. At this time, the information may not require user operation.
[0106] The voice-controlled transaction method provided in the embodiment of the present application obtains voice instructions, determines the transaction template and transaction elements corresponding to the voice instructions, generates transaction instructions accordingly, and then completes the transaction operation through user confirmation. The above scheme can automatically complete the selection of transaction types, filling of transaction elements, and automatic generation of transaction instructions through the user's voice input. The user only needs to interact with the program by voice, which significantly reduces the difficulty of operation, improves the user's transaction efficiency, and improves the user experience.
[0107] Figure 4 This is a schematic diagram of the structure of a voice-controlled transaction device provided in an embodiment of the present application. Figure 4 As shown, the voice-controlled transaction device 400 may include: a receiving module 410, a generating module 420 and a processing module 430, wherein:
[0108] The receiving module 410 determines, in response to the received voice instruction, transaction information corresponding to the voice instruction, wherein the transaction information includes a transaction template corresponding to the voice instruction and a first type of transaction element, the transaction template includes a transaction type, and the first type of transaction element is used to represent the transaction element included in the voice instruction;
[0109] A generating module 420, configured to determine a transaction instruction corresponding to the voice instruction based on the first type of transaction elements and the transaction template, wherein the transaction instruction includes a transaction type and transaction elements required to complete the transaction operation;
[0110] The processing module 430 is used to complete the transaction operation based on the transaction instruction.
[0111] In one possible implementation, the receiving module 410 is specifically used to, in response to a received voice instruction, convert the voice instruction into instruction text; determine the transaction template corresponding to the voice instruction based on a matching relationship between a template text name corresponding to a preset transaction template and the instruction text; and extract the first category of transaction elements from the instruction text based on text features corresponding to the transaction elements.
[0112] In one possible implementation, the generation module 420 is specifically used to: if the transaction template includes a target element type, the target element type is used to represent the transaction elements required to complete the transaction operation corresponding to the transaction template; determine that the first category of transaction elements contains transaction elements corresponding to all target element types, and generate a transaction instruction based on the first category of transaction elements and the transaction template; or, based on the first category of transaction elements, determine that there is at least one transaction element to be supplemented, the transaction element to be supplemented is used to represent the transaction element corresponding to the target element type that is not included in the first category of transaction elements; generate a first voice prompt message, wherein the first voice prompt message is used to obtain a supplementary voice instruction, and the supplementary voice instruction contains the transaction element to be supplemented; in response to the received supplementary voice instruction, convert the supplementary voice instruction into a supplementary instruction text; based on the supplementary instruction text, extract the supplementary transaction element; and generate a transaction instruction based on the supplementary transaction element, the first category of transaction elements and the transaction template.
[0113] In a possible implementation, the generation module 420 is specifically used to: if the transaction template includes a second-category transaction element, the second-category transaction element is used to represent the transaction element included in the transaction template; generate a transaction instruction based on the first-category transaction element, the second-category transaction element and the transaction type; generate a transaction instruction based on the supplementary transaction element, the first-category transaction element and the transaction template, including: generating a transaction instruction based on the first-category transaction element, the second-category transaction element, the supplementary transaction element and the transaction type.
[0114] In a possible implementation, the receiving module 410 is specifically used to obtain the transaction template in the following manner: generating the transaction template based on the transaction type and transaction elements determined in the configuration operation; or determining the transaction template based on the occurrence frequency of each transaction type and corresponding transaction elements in the historical transaction records.
[0115] In a possible implementation, the receiving module 410 is specifically used to generate an alternative transaction template based on the transaction type and the second-category transaction element determined in the configuration operation; generate confirmation prompt information based on the alternative transaction template, and the confirmation prompt information is used to obtain the user's confirmation indication information for the transaction information corresponding to the alternative transaction template; in response to the received confirmation indication information, determine the alternative transaction template as the transaction template.
[0116] In one possible implementation, the receiving module 410 is specifically used to, based on the transaction frequency ranking of each transaction type in the historical transaction records, determine a set number of transaction types with the highest transaction frequencies as the transaction types in the transaction template; determine the transaction elements and the occurrence frequency of the transaction elements in the historical transaction records corresponding to these transaction types; and determine the second category of transaction elements in the transaction template based on the occurrence frequency.
[0117] In a possible implementation, the receiving module 410 is specifically used to determine the number of occurrences of transaction elements corresponding to each transaction type in the historical transaction records; and determine the transaction elements whose occurrences corresponding to the same transaction type account for more than a set proportion as the second type of transaction elements corresponding to the transaction type.
[0118] In a possible implementation, the processing module 430 is specifically used to generate a second voice prompt message based on a determined transaction instruction, wherein the second voice prompt message is used to obtain a confirmation voice instruction, and the confirmation voice instruction is used to confirm the transaction instruction; obtain the confirmation voice instruction fed back by the user to complete the transaction operation.
[0119] It should be noted that the voice-controlled transaction device shown in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0120] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device includes:
[0121] The electronic device includes a processor 510 and a memory 520; it may also include a communication interface 530 and a bus 540. The processor 510, the memory 520, and the communication interface 530 may communicate with each other through the bus 540. The communication interface 530 may be used for information transmission. The processor 510 may call the logic instructions in the memory 520 to execute the method of the above embodiment.
[0122] In addition, the logic instructions in the memory 520 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0123] The memory 520 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 510 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 520, that is, implementing the methods in the above method embodiments.
[0124] The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 520 may include a high-speed random access memory and may also include a non-volatile memory.
[0125] An embodiment of the present application provides a non-temporary computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment.
[0126] An embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in the above embodiment is implemented.
[0127] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0128] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0129] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0130] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0131] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, and an ASIC, etc. If not otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.
[0132] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0134] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0135] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A voice-controlled transaction method, characterized in that: include: In response to the received voice instruction, determining transaction information corresponding to the voice instruction, wherein the transaction information includes a transaction template corresponding to the voice instruction and a first type of transaction element, the transaction template includes a transaction type, and the first type of transaction element is used to represent the transaction element included in the voice instruction; Determining a transaction instruction corresponding to the voice instruction based on the first type of transaction elements and the transaction template, wherein the transaction instruction includes a transaction type and transaction elements required to complete the transaction operation; Based on the transaction instruction, the transaction operation is completed.
2. The voice-controlled transaction method according to claim 1, characterized in that: The step of determining, in response to the received voice instruction, transaction information corresponding to the voice instruction includes: In response to the received voice command, convert the voice command into command text; Determining the transaction template corresponding to the voice instruction based on a matching relationship between a preset template text name corresponding to the transaction template and the instruction text; Based on text features corresponding to transaction elements, the first category of transaction elements is extracted from the instruction text.
3. The voice-controlled transaction method according to claim 1, characterized in that: The transaction template includes a target element type, and the target element type is used to represent a transaction element required to complete a transaction operation corresponding to the transaction template; The determining, based on the first type of transaction elements and the transaction template, the transaction instruction corresponding to the voice instruction includes: Determine that the first type of transaction elements includes transaction elements corresponding to all the target element types, and generate a transaction instruction based on the first type of transaction elements and the transaction template; or Based on the first category of transaction elements, determining that there is at least one transaction element to be supplemented, the transaction element to be supplemented being used to represent a transaction element corresponding to the target element type that is not included in the first category of transaction elements; Generate a first voice prompt message, wherein the first voice prompt message is used to obtain a supplementary voice instruction, and the supplementary voice instruction includes the transaction element to be supplemented; In response to the received supplemental voice instruction, converting the supplemental voice instruction into supplemental instruction text; extracting the supplementary transaction element based on the supplementary instruction text; A transaction instruction is generated based on the supplementary transaction element, the first type of transaction element and the transaction template.
4. The voice-controlled transaction method according to claim 3, characterized in that: The transaction template includes a second type of transaction element, where the second type of transaction element is used to represent the transaction element included in the transaction template; The generating a transaction instruction based on the first type of transaction element and the transaction template includes: generating a transaction instruction based on the first type of transaction element, the second type of transaction element and the transaction type; The generating a transaction instruction based on the supplementary transaction element, the first type of transaction element and the transaction template includes: A transaction instruction is generated based on the first-category transaction element, the second-category transaction element, the supplementary transaction element and the transaction type.
5. The voice-controlled transaction method according to any one of claims 1 to 4, characterized in that: The transaction template is obtained in the following way: Generate a transaction template based on the transaction type and transaction elements determined in the configuration operation; Alternatively, a transaction template is determined based on the occurrence frequencies of various transaction types and corresponding transaction elements in historical transaction records.
6. The voice-controlled transaction method according to claim 5, characterized in that: The generating of a transaction template based on the transaction type and transaction elements determined in the configuration operation includes: Generate a candidate transaction template based on the transaction type and the second type transaction element determined in the configuration operation; Based on the candidate transaction template, generate confirmation prompt information, wherein the confirmation prompt information is used to obtain confirmation indication information of the user for the transaction information corresponding to the candidate transaction template; In response to the received confirmation indication information, the candidate transaction template is determined as the transaction template.
7. The voice-controlled transaction method according to claim 5, characterized in that: The determining of the transaction template based on the occurrence frequency of each transaction type and corresponding transaction elements in the historical transaction records includes: Based on the sorting of transaction frequencies of various transaction types in historical transaction records, a set number of transaction types with the highest transaction frequencies are determined as transaction types in the transaction template; Determine the transaction elements and the occurrence frequency of the transaction elements in the historical transaction records corresponding to these transaction types; Based on the occurrence frequency, a second type of transaction element in the transaction template is determined.
8. The voice-controlled transaction method according to claim 7, characterized in that: The determining, based on the occurrence frequency, the second type of transaction element in the transaction template includes: Determine the number of occurrences of the transaction element corresponding to each transaction type in the historical transaction records; Transaction elements whose occurrence frequency corresponding to the same transaction type exceeds a set ratio are determined as second-category transaction elements corresponding to the transaction type.
9. The voice-controlled transaction method according to any one of claims 1 to 4, characterized in that: The completing the transaction operation based on the transaction instruction includes: Based on the determined transaction instruction, generating a second voice prompt information, wherein the second voice prompt information is used to obtain a confirmation voice instruction, and the confirmation voice instruction is used to confirm the transaction instruction; Get the confirmation voice command from the user to complete the transaction.
10. A voice-controlled transaction device, characterized in that: include: a receiving module, configured to determine, in response to a received voice instruction, transaction information corresponding to the voice instruction, wherein the transaction information includes a transaction template corresponding to the voice instruction and a first type of transaction element, the transaction template includes a transaction type, and the first type of transaction element is used to represent a transaction element included in the voice instruction; A generating module, configured to determine a transaction instruction corresponding to the voice instruction based on the first type of transaction elements and the transaction template, wherein the transaction instruction includes a transaction type and transaction elements required to complete a transaction operation; The processing module is used to complete the transaction operation based on the transaction instruction.
11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the voice-controlled transaction method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the voice-controlled transaction method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the voice-controlled transaction method according to any one of claims 1 to 9.
