Data processing method, device and electronic equipment

Through the command conversion of voice data and the use of preset models, the problem that existing input methods cannot recognize and execute keyboard commands is solved, the function of voice input keyboard commands is realized, and the input efficiency and user experience are improved.

CN112463105BActive Publication Date: 2024-10-18BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011250881.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-10
Publication Date
2024-10-18
Estimated Expiration
2040-11-10

AI Technical Summary

Technical Problem

Existing input methods cannot effectively recognize and execute keyboard commands in voice input scenarios, resulting in users being unable to switch the input method's uppercase and lowercase or numeric keyboard and other commands through voice input.

Method used

By obtaining the user's voice data, perform command conversion, and perform corresponding keyboard operations after successful conversion, including determining the user's intention and input scenario, using the preset model to perform speech recognition and command conversion, and realizing the function of voice input keyboard commands.

Benefits of technology

It achieves coherent and smooth input of voice input keyboard commands without manually triggering keyboard keys, improving user input efficiency and experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112463105B_ABST
    Figure CN112463105B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method, device and electronic device, wherein the method comprises: obtaining voice data input by a user; performing command conversion on the voice data; if the command conversion is successful, executing the operation corresponding to the keyboard command obtained by the command conversion; thereby realizing voice input of keyboard commands. In the input process, there is no need to manually trigger the keys in the keyboard to input the keyboard commands, thereby realizing the coherent and smooth input of voice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, device and electronic equipment. Background Art

[0002] With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. These electronic devices are usually installed with input method applications (input methods for short), so that users can use the input methods to input information.

[0003] In some scenarios where input methods are used for voice input, keyboard instructions need to be input; for example, when using input methods to input account numbers and passwords, instructions for switching the input method keyboard case, instructions for switching from an English keyboard to a numeric keyboard, etc. need to be input. However, currently input methods can only recognize the acquired voice data into corresponding text information. For example, after a user inputs the voice of "The weather is great today" in Chinese, the input method voice recognizes the text "The weather is great today". Then, when the user intends to input instructions such as "switch to uppercase", if the user inputs "switch to uppercase" by voice, the input method will put the text "switch to uppercase" on the screen, making it impossible for the user to use voice to input keyboard instructions. Summary of the invention

[0004] The embodiment of the present invention provides a data processing method to implement voice input keyboard instructions.

[0005] Correspondingly, an embodiment of the present invention further provides a data processing device and an electronic device to ensure the implementation and application of the above method.

[0006] In order to solve the above problems, an embodiment of the present invention discloses a data processing method, which specifically includes: obtaining voice data input by a user; performing instruction conversion on the voice data; if the instruction conversion is successful, executing the operation corresponding to the keyboard instruction obtained by the instruction conversion.

[0007] Optionally, the method further includes: determining whether the user has a preset intention, wherein the preset intention is an intention for instruction conversion; if it is determined that the user has a preset intention, executing the step of converting the voice data into an instruction.

[0008] Optionally, determining whether the user has a preset intention includes: determining whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

[0009] Optionally, the determining whether the user has a preset intention includes: determining whether the input method keyboard is in a preset state, the preset state including: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

[0010] Optionally, the determining whether the user has a preset intention includes: performing voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; determining whether the voice recognition text information meets preset conditions; if the voice recognition text information meets the preset conditions, determining that the user has a preset intention.

[0011] Optionally, the determining whether the user has a preset intention includes: acquiring input association information; and performing intent analysis based on the input association information to determine whether the user has a preset intention.

[0012] Optionally, the determining whether the user has a preset intention includes: acquiring content of a current input page; and performing analysis based on the content of the current input page to determine whether the user has a preset intention.

[0013] Optionally, the converting the voice data into instructions includes: acquiring voice recognition text information corresponding to the voice data; and converting the voice recognition text information into instructions according to a preset model.

[0014] Optionally, the method further comprises the step of training a preset model: collecting training data, wherein the training data comprises keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; and using the training corpus to train the preset model.

[0015] Optionally, the method further includes: determining whether there is a keyboard instruction corresponding to the voice data; if there is a keyboard instruction corresponding to the voice data, generating and displaying execution prompt information of the keyboard instruction; if the first execution information is received, executing the step of converting the voice data into instructions.

[0016] Optionally, the method further includes: if second execution information is received, displaying the voice recognition text information corresponding to the voice data on the screen.

[0017] Optionally, the method further comprises: if the instruction conversion fails, displaying the speech recognition text information corresponding to the speech data on the screen.

[0018] The embodiment of the present invention also discloses a data processing device, which specifically includes: an acquisition module for acquiring voice data input by a user; a conversion module for performing instruction conversion on the voice data; and an execution module for executing the corresponding operation of the keyboard instruction obtained by the instruction conversion if the instruction conversion is successful.

[0019] Optionally, the device also includes: an intention judgment module, used to judge whether the user has a preset intention, wherein the preset intention is an intention for instruction conversion; and the conversion module, used to execute the step of converting the voice data into instructions if it is determined that the user has a preset intention.

[0020] Optionally, the intention judgment module includes: an attribute judgment submodule, used to judge whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

[0021] Optionally, the intention judgment module includes: a state judgment submodule, used to judge whether the input method keyboard is in a preset state, the preset state includes: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

[0022] Optionally, the intention judgment module includes: a condition judgment submodule, used to perform voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; judge whether the voice recognition text information meets preset conditions; if the voice recognition text information meets the preset conditions, it is determined that the user has a preset intention.

[0023] Optionally, the intention judgment module includes: a first analysis and judgment submodule, used to obtain input-related information; perform intention analysis based on the input-related information to determine whether the user has a preset intention.

[0024] Optionally, the intention judgment module includes: a second analysis and judgment submodule, used to obtain the content of the current input page; and analyze the content of the current input page to determine whether the user has a preset intention.

[0025] Optionally, the conversion module is used to obtain speech recognition text information corresponding to the speech data; and perform instruction conversion on the speech recognition text information according to a preset model.

[0026] Optionally, the device further comprises: a training module for collecting training data, wherein the training data comprises keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; and the training corpus is used to train a preset model.

[0027] Optionally, the device also includes: an instruction judgment module, used to judge whether there is a keyboard instruction corresponding to the voice data; a prompt module, used to generate and display execution prompt information of the keyboard instruction if there is a keyboard instruction corresponding to the voice data; and the conversion module, used to execute the step of converting the voice data into instructions if the first execution information is received.

[0028] Optionally, the device further comprises: a first screen display module, configured to display the speech recognition text information corresponding to the speech data on the screen if the second execution information is received.

[0029] Optionally, the device further comprises: a second screen display module, configured to display the speech recognition text information corresponding to the speech data on the screen if the instruction conversion fails.

[0030] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute a data processing method as described in any one of the embodiments of the present invention.

[0031] An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: obtaining voice data input by a user; performing instruction conversion on the voice data; if the instruction conversion is successful, executing the corresponding operation of the keyboard instruction obtained by the instruction conversion.

[0032] Optionally, it also includes instructions for performing the following operations: determining whether the user has a preset intention, wherein the preset intention is the intention of instruction conversion; if it is determined that the user has the preset intention, executing the step of converting the voice data into an instruction.

[0033] Optionally, determining whether the user has a preset intention includes: determining whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

[0034] Optionally, the determining whether the user has a preset intention includes: determining whether the input method keyboard is in a preset state, the preset state including: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

[0035] Optionally, the determining whether the user has a preset intention includes: performing voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; determining whether the voice recognition text information meets preset conditions; if the voice recognition text information meets the preset conditions, determining that the user has a preset intention.

[0036] Optionally, the determining whether the user has a preset intention includes: acquiring input association information; and performing intent analysis based on the input association information to determine whether the user has a preset intention.

[0037] Optionally, the determining whether the user has a preset intention includes: acquiring content of a current input page; and performing analysis based on the content of the current input page to determine whether the user has a preset intention.

[0038] Optionally, the converting the voice data into instructions includes: acquiring voice recognition text information corresponding to the voice data; and converting the voice recognition text information into instructions according to a preset model.

[0039] Optionally, it also includes instructions for training a preset model as follows: collecting training data, the training data including keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; and using the training corpus to train the preset model.

[0040] Optionally, it also includes instructions for performing the following training of a preset model: determining whether there is a keyboard instruction corresponding to the voice data; if there is a keyboard instruction corresponding to the voice data, generating and displaying execution prompt information for the keyboard instruction; if a first execution information is received, executing the step of converting the voice data into instructions.

[0041] Optionally, it also includes instructions for performing the following operations: if the second execution information is received, the voice recognition text information corresponding to the voice data is displayed on the screen.

[0042] Optionally, it also includes instructions for performing the following operations: if the instruction conversion fails, the voice recognition text information corresponding to the voice data is displayed on the screen.

[0043] The embodiments of the present invention include the following advantages:

[0044] In the embodiment of the present invention, the voice data input by the user can be obtained, and then the voice data can be converted into a command; and after the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed, thereby realizing the voice input keyboard command. In addition, during the input process, there is no need to manually trigger the keys in the keyboard to input the keyboard command, so that the voice can be input smoothly and coherently. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of steps of an embodiment of a data processing method of the present invention;

[0046] Figure 2 is a flowchart of steps of an optional embodiment of a data processing method of the present invention;

[0047] Figure 3 is a flowchart of steps of another optional embodiment of a data processing method of the present invention;

[0048] Figure 4 is a flowchart of steps of another optional embodiment of a data processing method of the present invention;

[0049] Figure 5 is a flowchart of steps of another optional embodiment of a data processing method of the present invention;

[0050] Figure 6 is a flowchart of steps of another optional embodiment of a data processing method of the present invention;

[0051] Figure 7 is a flowchart of steps of another input method embodiment of the present invention;

[0052] Figure 8 is a structural block diagram of an embodiment of a data processing device of the present invention;

[0053] Fig. 9 is a structural block diagram of an optional embodiment of a data processing device of the present invention;

[0054] Fig.10 A structural block diagram of an electronic device for data processing according to an exemplary embodiment;

[0055] Fig.11 It is a structural schematic diagram of an electronic device for data processing according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0057] The data processing method provided by the embodiment of the present invention can be applied to voice input scenarios of various electronic devices, such as in the voice input scenario of a television, in the voice input scenario of a learning machine, in the voice input scenario of a smart watch, etc., and the embodiment of the present invention does not limit this.

[0058] One of the core concepts of the embodiment of the present invention is that after obtaining the voice data input by the user, the voice data is converted into a command, and after successfully converting the voice data into a keyboard command, the operation corresponding to the keyboard command is executed; thereby realizing voice input of keyboard commands. In addition, during the input process, there is no need to manually trigger the keys in the keyboard to input the keyboard command, thereby realizing the coherent and smooth input of the voice.

[0059] Reference Figure 1 , shows a flow chart of steps of a data processing method embodiment of the present invention, which may specifically include the following steps:

[0060] Step 102: Acquire voice data input by the user.

[0061] Step 104: Perform command conversion on the voice data.

[0062] Step 106: If the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed.

[0063] In the embodiment of the present invention, the user can use voice input when using the input method for input; wherein, the user can use various languages ​​for voice input, such as Chinese, English, Japanese, Korean, etc., and the embodiment of the present invention does not limit this.

[0064] During the user voice input process, the input method can obtain the voice data input by the user; then the voice data can be converted into commands. The command conversion of the voice data can refer to the process of converting the voice data into keyboard commands. The keyboard commands can refer to commands corresponding to function keys in the input method keyboard, for example, the backspace key has a corresponding keyboard command of "delete"; the enter key has a corresponding keyboard command of "new line" or "confirm"; and so on.

[0065] Among them, the voice data may be converted into corresponding keyboard commands (i.e., the command conversion is successful), or it may not be able to convert the voice data into corresponding keyboard commands (i.e., the command conversion is successful). If the command conversion is successful, the operation corresponding to the keyboard command can be executed. For example, if the command conversion is successful, the obtained keyboard command is a delete command; the information in the input box can be deleted; if the command conversion is successful, the obtained keyboard command is to switch to lowercase, then the uppercase keyboard is switched to a lowercase keyboard.

[0066] If the instruction conversion fails, the speech recognition text information obtained by performing speech recognition on the speech data can be displayed on the screen.

[0067] In summary, in the embodiment of the present invention, the voice data input by the user can be obtained, and then the voice data can be converted into a command; and after the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed, thereby realizing voice input keyboard command. In addition, during the input process, there is no need to manually trigger the keys in the keyboard to input the keyboard command, so that the voice can be input coherently and smoothly.

[0068] In an optional embodiment of the present invention, the method may further include: determining whether the user has a preset intention; if it is determined that the user has a preset intention, executing the step of converting the voice data into a command, wherein the preset intention is an intention of command conversion.

[0069] Among them, it is possible to judge whether the user has the preset intention before obtaining the voice data input by the user; it is also possible to judge whether the user has the preset intention when obtaining the voice data input by the user; it is also possible to judge whether the user has the preset intention after obtaining the voice data input by the user, and the embodiments of the present invention do not limit this.

[0070] In an embodiment of the present invention, there may be multiple ways to determine whether the user has a preset intention, such as determining based on the current input box, determining based on the state of the input method keyboard, determining based on the voice recognition result of the voice data, determining based on input-related information, and determining based on the content of the current input page, etc.; the embodiment of the present invention does not limit this. Among them, the input-related information may include all information related to the input, such as interaction information, location information, and related information of other applications such as interface information, etc., and the embodiment of the present invention does not limit this. The other applications may refer to applications other than the input method. The following takes the example of determining whether the user has a preset intention after obtaining the voice data input by the user, and explains the various ways of determining whether the user has a preset intention.

[0071] In an optional embodiment of the present invention, it is possible to determine whether the user has a preset intention based on the current input box. This can be applied to voice input scenarios that only support inputting one or more of English, numbers, and symbols, such as inputting an account number, a password, an email address, inputting verification information, etc., and the present invention does not limit this. It can be as follows:

[0072] Reference Figure 2 , shows a flow chart of steps of an optional embodiment of a data processing method of the present invention, which may specifically include the following steps:

[0073] Step 202: Acquire voice data input by the user.

[0074] In the embodiment of the present invention, when the user needs to input information in the input box, the user can call up the input method; then use the input method to perform voice input to input the required information into the input box.

[0075] Step 204: determine whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes.

[0076] Among them, the input box has attributes, such as search attributes, chat attributes, comment attributes, account attributes, password attributes, email attributes, verification attributes, etc. Among them, the input box with search attributes can be used to input search information, and the search information can include words, symbols, numbers, pictures, etc. in various languages; the input box with chat attributes can be used to input interactive information, and the interactive information can include words, symbols, numbers, pictures, etc. in various languages; the input box with comment attributes can be used to input comment information, and the comment information can include words, symbols, numbers, pictures, etc. in various languages. The input box with account attributes can be used to input account, and the account can include one or more of English, numbers and symbols; the input box with password attributes can be used to input password, and the password can include one or more of English, numbers and symbols; the input box with email attributes can be used to input email name, and the email name can include one or more of English, numbers and symbols; the input box with verification attributes can be used to input verification information, and the verification information can include one or more of English, numbers and symbols.

[0077] In an embodiment of the present invention, in a scenario where the user inputs an account number, password, email address, verification information, etc. by voice, and only supports inputting one or more of English, numbers, and symbols, voice input keyboard commands can be supported; this facilitates users to quickly input account numbers, passwords, email addresses, verification information, and other information. Furthermore, in an embodiment of the present invention, the attributes corresponding to an input box that only supports inputting one or more of English, numbers, and symbols can be set as preset attributes; for example, account attributes, password attributes, email address attributes, or verification attributes can be set as preset attributes. Then, by judging whether the input box has the preset attributes, it is judged whether the user has the preset intention. Of course, other attributes corresponding to an input box that only supports inputting one or more of English, numbers, and symbols can also be set as preset attributes, and the embodiment of the present invention does not limit this.

[0078] The embodiment of the present invention can obtain the attribute of the current input box, and then determine whether the attribute of the current input box is one of the preset attributes; if the attribute of the current input method is one of the preset attributes, it can be determined that the input box has the preset attribute, and at this time, it can be determined that the user has the preset intention, and step 206 can be executed. If the attribute of the current input box is not any of the preset attributes, it can be determined that the input box does not have the preset attribute, and at this time, it can be determined that the user does not have the preset intention, and step 212 can be executed.

[0079] The command conversion of the voice data may refer to the following steps 206 to 208:

[0080] Step 206: If the input box has a preset attribute, then obtain the speech recognition text information corresponding to the speech data.

[0081] Step 208: convert the speech recognition text information into instructions according to a preset model.

[0082] In the embodiment of the present invention, speech recognition may be performed on the speech data to determine corresponding speech recognition text information.

[0083] In one example, the speech recognition text information can be input into a pre-trained preset model, and the preset model processes the speech recognition text information and outputs corresponding keyboard commands.

[0084] In an optional embodiment of the present invention, a step of training a preset model includes the following sub-steps S22 to S24:

[0085] Sub-step S22: Collect training data, where the training data includes keyboard instructions of the input method keyboard and trigger text information corresponding to each keyboard instruction.

[0086] Sub-step S24: using the training data to train the preset model.

[0087] In an example, the training corpus can be shown in Table 1 below:

[0088] Keyboard Commands Trigger text message Delete command delete Delete All Commands Clear / Delete All Uppercase instructions Toggle uppercase / capital Lowercase instructions Toggle lowercase / uppercase Numeric keypad commands number English keyboard commands English Chinese keyboard commands Chinese Line break instructions Line Break Space Command Space / blank

[0089] Table 1

[0090] Among them, only some keyboard commands and some trigger text information corresponding to each keyboard command are shown in Table 1. In addition, only Chinese trigger text information is shown in Table 1, and the trigger text information corresponding to each keyboard command can be in other languages, which is not limited in the embodiment of the present invention.

[0091] Among them, a keyboard command and its corresponding trigger text information can be called a set of training data; then multiple sets of training data can be used to train the preset model. Among them, for each set of training data, the trigger text information in the set of training data can be input into the preset model for forward calculation to obtain the probability of each keyboard command output by the preset model; then the preset model can be reversely trained until the probability of the preset model outputting the keyboard command in the set of training data is maximized.

[0092] When using the trained preset model for command conversion, the speech recognition text information can be first segmented to obtain multiple corresponding segmented segments; and then each segmented segment can be input into the trained preset model in turn. For each segmented segment, the preset model can output the keyboard instruction with the highest probability. Among them, when the segmented segment hits a certain trigger text information, the preset model can determine that the probability of the keyboard instruction corresponding to the trigger text information is the highest, and can output the keyboard instruction; at this time, it can be determined that the instruction conversion of the segmented segment is successful. When the segmented segment does not hit any trigger text information, the preset model can output other instructions; at this time, it can be determined that the instruction conversion of the segmented segment has failed.

[0093] Among them, for the word segmentation segment that has been successfully converted into a command, the operation of the keyboard command corresponding to the word segmentation segment can be executed, that is, step 210 is executed.

[0094] For the word segment that fails to be converted, if the word segment is any one of English, numbers and symbols, the word segment can be displayed on the screen, that is, step 212 is executed.

[0095] In one example, the speech recognition text information can be input into a pre-trained preset model, and the preset model processes the speech recognition text information and outputs a command identifier of a keyboard command; and then the command identifier is converted into a corresponding keyboard command.

[0096] In an optional embodiment of the present invention, a step of training a preset model includes the following sub-steps S42 to S44:

[0097] Sub-step S42: collecting training data, wherein the training data includes instruction identifiers corresponding to keyboard instructions of the input method keyboard and trigger text information corresponding to each keyboard instruction.

[0098] Sub-step S44: using the training data to train the preset model.

[0099] In an example, the training corpus can be shown in Table 2 below:

[0100] <![CDATA[ Keyboard Commands ]]> <![CDATA[ Instruction ID ]]> <![CDATA[ Trigger text message ]]> Delete command Ⅰ delete Delete All Commands Ⅱ Clear / Delete All Uppercase instructions Ⅲ Toggle uppercase / capital Lowercase instructions Ⅳ Toggle lowercase / uppercase Numeric keypad commands Ⅴ number English keyboard commands Ⅵ English Chinese keyboard commands Ⅶ Chinese Line break instructions Ⅷ Line Break Space Command Ⅸ Space / blank

[0101] Table 2

[0102] Among them, sub-steps 42 to 44 are similar to the above-mentioned sub-steps 22 to 24 and are not repeated here.

[0103] Step 210: If the instruction conversion is successful, the corresponding operation of the keyboard instruction obtained by the instruction conversion is executed.

[0104] Step 212: If the input box does not have a preset attribute or fails to convert the instruction, the speech recognition text information corresponding to the speech data is displayed on the screen.

[0105] In the embodiment of the present invention, if it is determined that the user does not have the preset intention, speech recognition can be performed on the speech data to obtain corresponding speech recognition text information; then the speech recognition text information can be displayed on the screen.

[0106] As for the word segmentation fragment that fails to convert the instruction, if the word segmentation fragment is any one of English, numbers and symbols, the word segmentation fragment can also be displayed on the screen; that is, the partial speech recognition text information corresponding to the voice data is displayed on the screen.

[0107] For example, the voice data is "switch to uppercase", if the input box has an account attribute, the voice data is converted into a command to obtain a keyboard command "uppercase command"; then the keyboard can be switched to an uppercase keyboard.

[0108] For another example, if the voice data is "delete", if the input box has a password attribute, the voice data is converted into a command to obtain a keyboard command "delete command"; then a text in the delete input box can be deleted.

[0109] For another example, if the voice data is "delete all", if the input box has a mailbox attribute, the voice data is converted into a command to obtain a keyboard command "delete command"; then the text in the input box can be cleared.

[0110] For another example, if the voice data is "123", if the input box has a search attribute, the voice recognition text information "123" corresponding to the voice data will be displayed on the screen.

[0111] In an example of the present invention, if the voice data is "uppercase ABC" and if the input box has an account attribute, the voice data is converted into a command to obtain a keyboard command "uppercase command", and then the keyboard can be switched to an uppercase keyboard and the uppercase "ABC" can be displayed on the screen.

[0112] In summary, in the embodiments of the present invention, it is determined whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention; and thus it is able to accurately determine whether the user is entering an account, password, email address, verification information, etc., and implement voice input keyboard commands in scenarios such as user account, password, email address, verification information, etc., which is conducive to improving the user's input efficiency and improving the user experience.

[0113] In an optional embodiment of the present invention, it is possible to determine whether the user has a preset intention based on the current state of the input method keyboard. This can be applied to voice input scenarios that only support inputting one or more of English, numbers, and symbols, such as inputting an account number, a password, an email address, inputting verification information, etc., and the present invention does not limit this. It can be as follows:

[0114] Reference Figure 3 , shows a flow chart of steps of another optional embodiment of a data processing method of the present invention, which may specifically include the following steps:

[0115] Step 302: Acquire voice data input by the user.

[0116] Step 304: determine whether the input method keyboard is in a preset state, wherein the preset state includes: English state, number state or symbol state.

[0117] In an embodiment of the present invention, in a scenario where voice input of account, password, email address, verification information, etc. only supports input of one or more of English, numbers and symbols, the attributes of the current input box can be the above-mentioned preset attributes; and then when the user calls up the input method keyboard in the current input box, the input method keyboard can automatically switch states, such as switching to English state, number state or symbol state. And then the English state, number state or symbol state can be set to the preset state; and then by judging whether the input method keyboard is in the preset state, it is judged whether the user has the preset intention.

[0118] If the input method keyboard is in the preset state, it is determined that the user has the preset intention, and step 306 can be executed; if the input method keyboard is not in the preset state, it is determined that the user does not have the preset intention, and step 312 can be executed.

[0119] Step 306: If the input method keyboard is in a preset state, obtain the speech recognition text information corresponding to the speech data.

[0120] Step 308: convert the speech recognition text information into instructions according to a preset model.

[0121] Among them, steps 306 to 308 are similar to the above steps 206 to 208 and are not described again here.

[0122] It should be noted that when the input method keyboard is in English mode, it is impossible to determine whether the user inputs the account, password, email address, verification information (i.e., it is impossible to determine whether the user has the intention to convert the command), or uses English to input information such as search information, interactive information, comment information, etc. Therefore, when the input method keyboard is in English mode, if the voice recognition text information hits the English trigger text information, the preset model can output other information. In this way, when the user uses English to input information other than the account, password, email address, and verification information, the keyboard command is prevented from being triggered by mistake.

[0123] Step 310: If the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed.

[0124] Among them, step 310 is similar to the above-mentioned step 210 and will not be repeated here.

[0125] Step 312: If the input method keyboard is not in a preset state or the command conversion fails, the speech recognition text information corresponding to the speech data is displayed on the screen.

[0126] Among them, step 312 is similar to the above step 212 and will not be repeated here.

[0127] In summary, in the embodiments of the present invention, it is possible to determine whether the input method keyboard is in a preset state, and the preset state includes: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention; and thus it is possible to quickly determine whether the user is inputting an account, password, email address, verification information, etc., and implement voice input keyboard instructions in scenarios such as user account, password, email address, verification information, etc., which is conducive to improving the user's input efficiency and improving the user experience.

[0128] In an optional embodiment of the present invention, it is possible to determine whether the user has a preset intention based on the voice data. It can be applied to voice input scenarios that support inputting various information such as one or more of words, English, numbers and symbols, such as inputting search information, inputting interactive information, inputting comment information, inputting an account, inputting a password, inputting an email address, inputting verification information, etc. It can be as follows:

[0129] Reference Figure 4 , shows a flow chart of steps of another optional embodiment of a data processing method of the present invention, which may specifically include the following steps:

[0130] Step 402: Acquire voice data input by the user.

[0131] Step 404: Perform speech recognition on the speech data to obtain speech recognition text information corresponding to the speech data.

[0132] In the embodiment of the present invention, speech recognition may be performed on the speech data to obtain speech recognition text information corresponding to the speech data; then, based on the analysis of the speech recognition text information, it is determined whether the current input scene is a preset input scene, which may refer to step 406:

[0133] Step 406: Determine whether the speech recognition text information meets a preset condition.

[0134] In an embodiment of the present invention, a preset condition may be pre-set, and the preset condition is used to determine whether the user has a preset intention. The preset condition may include a preset mode, such as a mode of "At+email suffix", a mode of "uppercase+English", a mode of "lowercase+English", etc.

[0135] Then, it can be determined whether the speech recognition text information conforms to any preset mode; if the speech recognition text information conforms to a preset mode, it can be determined that the speech recognition text information meets the preset condition, and at this time it can be determined that the user has the preset intention, and 408 can be executed. If the speech recognition text information does not conform to any preset mode, it can be determined that the speech recognition text information does not meet the preset condition, and at this time it can be determined that the user does not have the preset intention, and 412 can be executed.

[0136] Step 408: If the speech recognition text information meets the preset conditions, the speech recognition text information is converted into instructions according to a preset model.

[0137] Step 408 is similar to the above step 208 and will not be described again.

[0138] Step 410: If the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed.

[0139] Among them, step 410 is similar to the above-mentioned step 210 and will not be repeated here.

[0140] Step 412: If the speech recognition text information does not meet the preset conditions or the instruction conversion fails, the speech recognition text information corresponding to the speech data is displayed on the screen.

[0141] Among them, step 412 is similar to the above step 212 and will not be repeated here.

[0142] In summary, in the embodiments of the present invention, voice recognition can be performed on the voice data to obtain voice recognition text information corresponding to the voice data; it is determined whether the voice recognition text information meets the preset conditions; if the voice recognition text information meets the preset conditions, it is determined that the user has the preset intention; and there is no need to obtain the attributes of the input box or the state of the input method keyboard. It is possible to quickly determine whether the user is entering an account, password, email address, verification information, etc. based directly on the voice recognition text information of the voice data, and implement voice input keyboard commands in scenarios such as user account, password, email address, verification information, etc., which is conducive to improving the user's input efficiency and improving the user experience.

[0143] In an optional embodiment of the present invention, it is possible to determine whether the user has a preset intention based on the input association information. It can be applied to voice input scenarios that support inputting various information such as one or more of words, English, numbers and symbols, such as inputting search information, inputting interactive information, inputting comment information, inputting an account, inputting a password, inputting an email address, inputting verification information, etc. It can be as follows:

[0144] Reference Figure 5 , shows a flow chart of steps of another optional embodiment of a data processing method of the present invention, which may specifically include the following steps:

[0145] Step 502: Acquire voice data input by the user.

[0146] Step 504: Obtain input-related information.

[0147] The input-related information may include interaction information, other application-related information, location information, etc.; the other application-related information may include all information related to other applications that call the input method, such as interface information of other applications calling the input method interface, etc.

[0148] Step 506: Perform intent analysis based on the input association information to determine whether the user has a preset intent.

[0149] For example, if the input-related information includes interface information of other applications calling the input method interface, it is analyzed whether the interface is a login interface. If the interface is a login interface, it can be determined that the user has a preset intention.

[0150] For another example, the input association information includes interaction information, such as the other end user: "Give me your account and password", and the local end user: "OK, I'll give it to you right away", it can be determined that the user has a preset intention.

[0151] When it is determined that the user has the preset intention, step 508 may be executed; when it is determined that the user does not have the preset intention, step 514 may be executed.

[0152] Step 508: If the user has a preset intention, then obtain the speech recognition text information corresponding to the speech data.

[0153] Step 510: convert the speech recognition text information into instructions according to a preset model.

[0154] Among them, step 508 to step 510 are similar to the above-mentioned step 206 to step 208, and will not be repeated here.

[0155] Step 512: If the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed.

[0156] Among them, step 512 is similar to the above-mentioned step 210 and will not be repeated here.

[0157] Step 514: If it is determined that the user does not have a preset intention or the instruction conversion fails, the speech recognition text information corresponding to the speech data is displayed on the screen.

[0158] Among them, step 514 is similar to the above step 212 and will not be repeated here.

[0159] In summary, in the embodiments of the present invention, input association information can be obtained; then, intent analysis is performed based on the input association information to determine whether the user has a preset intention; and then, through the judgment of the input intention, it is accurately determined whether the current input scenario is a preset input scenario; and voice input keyboard commands are implemented in scenarios such as user account, password, email, and verification information, which is conducive to improving the user's input efficiency and improving the user experience.

[0160] In an optional embodiment of the present invention, it is possible to determine whether the user has a preset intention based on the content of the current input page; it can be applied to voice input scenarios that support inputting various information such as one or more of words, English, numbers and symbols, such as inputting search information, inputting interactive information, inputting comment information, inputting an account, inputting a password, inputting an email address, inputting verification information, etc. It can be as follows:

[0161] Reference Figure 6 , showing a step flow chart of another optional embodiment of the input method of the present invention.

[0162] Step 602: Acquire voice data input by the user.

[0163] Step 604: Get the content of the current input page.

[0164] In an embodiment of the present invention, a screenshot of the current input page can be taken to obtain an image of the current input page. In one example, the image of the current input page can be used as the content of the current input page. In another example, image recognition can be performed on the image of the current input page, for example, using OCR (Optical Character Recognition) recognition technology to recognize the image and obtain an image recognition result; then the image recognition result is used as the content of the current input page.

[0165] Step 606: Analyze the content of the current input page to determine whether the user has a preset intention.

[0166] In an embodiment of the present invention, images of pages containing input boxes that only support input of one or more of English, numbers and symbols can be obtained in advance, such as a mailbox login page, a ** member login page, a bank account login page, etc. And the images of these pages are stored. For the convenience of subsequent description, these pages can be referred to as preset pages. Then, after obtaining the image of the current input page, the image of the current input page can be compared with the image of the preset page to determine whether the user has a preset intention. When it is determined that the image of the current input page has a similarity with the image of the preset page that is higher than a similarity threshold, it can be determined that the user has a preset intention. When the image of the current input page has a similarity with the image of the preset page that is lower than a similarity threshold, it can be determined that the user does not have a preset intention. The similarity threshold can be set as required, and the embodiment of the present invention does not limit this.

[0167] In an embodiment of the present invention, the preset page can also be preset to perform image recognition to obtain an image recognition result corresponding to the preset page. Then, keywords and the positional relationship of each keyword can be extracted from the image recognition result as preset information. For example, keywords extracted from the recognition result of the email login page are such as: account and password; the positional relationship between the two is: "password" is located in the next line of "account", and the two are aligned. After obtaining the image recognition result of the current input page, the image recognition result of the current input page can be compared with the preset information to determine whether the user has the preset intention. When the image recognition result of the current input page matches the preset information, it can be determined that the user has the preset intention. When the image recognition result of the current input page does not match the preset information, it can be determined that the user does not have the preset intention.

[0168] When it is determined that the user has the preset intention, it can be determined that the user has the preset intention, and step 608 can be executed; when it is determined that the user does not have the preset intention, it can be determined that the user does not have the preset intention, and step 614 can be executed.

[0169] Step 608: If the user has a preset intention, then obtain the speech recognition text information corresponding to the speech data.

[0170] Step 610: convert the speech recognition text information into instructions according to a preset model.

[0171] Among them, steps 608 to 610 are similar to the above steps 206 to 208 and are not described again here.

[0172] Step 612: If the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed.

[0173] Among them, step 612 is similar to the above-mentioned step 210 and will not be repeated here.

[0174] Step 614: If it is determined that the user does not have a preset intention or the instruction conversion fails, the speech recognition text information corresponding to the speech data is displayed on the screen.

[0175] Among them, step 614 is similar to the above-mentioned step 212 and will not be repeated here.

[0176] In summary, in the embodiments of the present invention, the content of the current input page can be obtained, and analysis can be performed based on the content of the current input page to determine whether the user has a preset intention; then, it can be quickly determined whether the user is entering an account, password, email address, verification information, etc., and voice input keyboard commands can be implemented in scenarios such as user account, password, email address, verification information, etc., which is conducive to improving the user's input efficiency and improving the user experience.

[0177] In an optional embodiment of the present invention, in order to prevent voice from mistakenly inputting keyboard instructions, after acquiring voice data, it is possible to determine whether there is a keyboard instruction corresponding to the voice data; when it is determined that there is a keyboard instruction corresponding to the voice data, a prompt message is generated to prompt the user whether to input a keyboard instruction or text information. It can be applied to voice input scenarios that support inputting various information such as one or more of words, English, numbers and symbols, such as inputting search information, inputting interactive information, inputting comment information, inputting an account, inputting a password, inputting an email address, inputting verification information, and the like.

[0178] Reference Figure 7 , showing a step flow chart of another data processing method embodiment of the present invention.

[0179] Step 702: Acquire voice data input by the user.

[0180] Step 704: Determine whether there is a keyboard instruction corresponding to the voice data.

[0181] In an embodiment of the present invention, after acquiring voice data, it is possible to first determine whether there is a keyboard instruction corresponding to the voice data. The voice data can be subjected to voice recognition to determine the corresponding voice recognition text information; and then based on the voice recognition text information, it is determined whether there is a keyboard instruction corresponding to the voice data.

[0182] If the output of the preset model is an instruction, the speech recognition text information can be compared with the trigger text information in the training data for training the preset model. If the speech recognition text information hits the trigger text information, it can be determined that there is a keyboard instruction corresponding to the speech data; if the speech recognition text information does not hit the trigger text information, it can be determined that there is no keyboard instruction corresponding to the speech data.

[0183] If the output of the preset model is a command identifier, the speech recognition text information can be input into the preset model; if the preset model outputs a command identifier of a keyboard command, it can be determined that there is a keyboard command corresponding to the speech data; if the preset model outputs other command identifiers, it can be determined that there is no keyboard command corresponding to the speech data.

[0184] Step 706: If there is a keyboard instruction corresponding to the voice data, generate and display execution prompt information of the keyboard instruction.

[0185] If it is determined that there is a keyboard instruction corresponding to the voice data, execution prompt information of the keyboard instruction can be generated and displayed. In one example, the prompt information is displayed in a pop-up window.

[0186] In one example, the pop-up window displays prompt information in a variety of ways, such as displaying the text message "Do you want to enter a keyboard command?" and displaying two options, "Yes" and "No." For another example, directly displaying two options, "Enter a keyboard command" and "On-screen text." For another example, displaying "Do you want to enter a keyboard command or on-screen text?" and displaying two options, "Command" and "Text."

[0187] Step 708: If the first execution information is received, the voice data is converted into a command.

[0188] When the user determines to input a keyboard command, the corresponding option can be selected; accordingly, the input method can receive the first execution information, which can refer to the confirmation information of executing the operation corresponding to the keyboard command; then the voice data can be converted into a command.

[0189] Among them, if the preset model outputs instructions, the voice recognition text information can be input into the preset model to obtain the keyboard instructions output by the preset model, so as to realize the conversion of keyboard instructions.

[0190] If the preset model outputs a command identifier, the command identifier generated when determining whether there is a keyboard instruction corresponding to the voice data can be converted to obtain the corresponding keyboard instruction.

[0191] Step 710: If the command conversion is successful, the operation corresponding to the keyboard command obtained by the command conversion is executed.

[0192] Step 712: If there is no keyboard instruction corresponding to the voice data, or if second execution information is received, the voice recognition text information corresponding to the voice data is displayed on the screen.

[0193] When the user determines to input text, the corresponding option can be selected; accordingly, the input method can receive the second execution information, which can refer to the confirmation information of executing the text information on the screen; and the voice recognition text information corresponding to the voice data is displayed on the screen.

[0194] Of course, when there is no keyboard instruction corresponding to the voice data, the voice recognition text information corresponding to the voice data can also be displayed on the screen.

[0195] It should be noted that if step 304 is used to determine whether the user has a preset intention, then when the input method keyboard is in English, since the embodiment of the present invention generates and displays execution prompt information for keyboard commands, and then if the voice recognition text information hits the English trigger text information, the preset model can output keyboard commands or the command identifier of keyboard commands.

[0196] In summary, in the embodiment of the present invention, if it is determined that the user has a preset intention, it is determined whether there is a keyboard instruction corresponding to the voice data; if the voice data has a corresponding keyboard instruction, the execution prompt information of the keyboard instruction is generated and displayed; if the first execution information is received, the step of converting the voice data into an instruction is executed. Then, by displaying the prompt information to the user for secondary confirmation, the keyboard instruction can be effectively prevented from being triggered in error.

[0197] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, 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 preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0198] Reference Figure 8 , shows a structural block diagram of a data processing device embodiment of the present invention, which may specifically include the following modules:

[0199] The acquisition module 802 is used to acquire the voice data input by the user;

[0200] A conversion module 804, used for performing instruction conversion on the voice data;

[0201] The execution module 806 is used to execute the operation corresponding to the keyboard instruction obtained by the instruction conversion if the instruction conversion is successful.

[0202] Reference Fig. 9 , showing a structural block diagram of an optional embodiment of a data processing device of the present invention.

[0203] In an optional embodiment of the present invention, the device further comprises:

[0204] The intention determination module 808 is used to determine whether the user has a preset intention, wherein the preset intention is the intention of command conversion;

[0205] The conversion module 804 is used to execute the step of converting the voice data into instructions if it is determined that the user has a preset intention.

[0206] In an optional embodiment of the present invention, the intention determination module 808 includes:

[0207] The attribute judgment submodule 8082 is used to judge whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

[0208] In an optional embodiment of the present invention, the intention determination module 808 includes:

[0209] The state judgment submodule 8084 is used to judge whether the input method keyboard is in a preset state, wherein the preset state includes: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

[0210] In an optional embodiment of the present invention, the intention determination module 808 includes:

[0211] The conditional judgment submodule 8086 is used to perform voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; judge whether the voice recognition text information meets the preset conditions; if the voice recognition text information meets the preset conditions, it is determined that the user has a preset intention.

[0212] In an optional embodiment of the present invention, the intention determination module 808 includes:

[0213] The first analysis and judgment submodule 8088 is used to obtain input-related information; perform intention analysis based on the input-related information to determine whether the user has a preset intention.

[0214] In an optional embodiment of the present invention, the intention determination module 808 includes:

[0215] The second analysis and judgment submodule 80810 is used to obtain the content of the current input page; analyze the content of the current input page to determine whether the user has a preset intention.

[0216] In an optional embodiment of the present invention,

[0217] The conversion module 804 is used to obtain the speech recognition text information corresponding to the speech data; and perform instruction conversion on the speech recognition text information according to a preset model.

[0218] In an optional embodiment of the present invention, the device further comprises:

[0219] The training module 810 is used to collect training data, wherein the training data includes keyboard instructions of the input method keyboard and trigger text information corresponding to each keyboard instruction; and use the training corpus to train the preset model.

[0220] In an optional embodiment of the present invention, the device further comprises:

[0221] An instruction determination module 812 is used to determine whether there is a keyboard instruction corresponding to the voice data;

[0222] A prompt module 814, configured to generate and display execution prompt information of the keyboard command if there is a keyboard command corresponding to the voice data;

[0223] The conversion module 804 is configured to execute the step of converting the voice data into instructions if the first execution information is received.

[0224] In an optional embodiment of the present invention, the device further comprises:

[0225] The first on-screen module 816 is configured to display the voice recognition text information corresponding to the voice data on the screen if the second execution information is received.

[0226] In an optional embodiment of the present invention, the device further comprises:

[0227] The second screen display module 818 is used to display the voice recognition text information corresponding to the voice data on the screen if the instruction conversion fails.

[0228] In summary, in the embodiment of the present invention, the voice data input by the user can be obtained, and then the voice data can be converted into a command; and after the command conversion is successful, the corresponding operation of the keyboard command obtained by the command conversion is executed, thereby realizing voice input keyboard command. In addition, during the input process, there is no need to manually trigger the keys in the keyboard to input the keyboard command, so that the voice can be input coherently and smoothly.

[0229] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0230] Fig.10 1 is a block diagram of an electronic device 1000 for data processing according to an exemplary embodiment. For example, the electronic device 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0231] Reference Fig.10 , the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .

[0232] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.

[0233] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0234] The power component 1006 provides power to the various components of the electronic device 1000. The power component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1000.

[0235] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0236] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

[0237] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0238] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000, and the sensor assembly 1014 can also detect the position change of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of user contact with the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0239] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1014 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1014 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0240] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0241] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0242] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to execute a data processing method, the method comprising: obtaining voice data input by a user; performing instruction conversion on the voice data; if the instruction conversion is successful, executing the corresponding operation of the keyboard instruction obtained by the instruction conversion.

[0243] Optionally, the method further includes: determining whether the user has a preset intention, wherein the preset intention is an intention for instruction conversion; if it is determined that the user has a preset intention, executing the step of converting the voice data into an instruction.

[0244] Optionally, determining whether the user has a preset intention includes: determining whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

[0245] Optionally, the determining whether the user has a preset intention includes: determining whether the input method keyboard is in a preset state, the preset state including: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

[0246] Optionally, the determining whether the user has a preset intention includes: performing voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; determining whether the voice recognition text information meets preset conditions; if the voice recognition text information meets the preset conditions, determining that the user has a preset intention.

[0247] Optionally, the determining whether the user has a preset intention includes: acquiring input association information; and performing intent analysis based on the input association information to determine whether the user has a preset intention.

[0248] Optionally, the determining whether the user has a preset intention includes: acquiring content of a current input page; and performing analysis based on the content of the current input page to determine whether the user has a preset intention.

[0249] Optionally, the converting the voice data into instructions includes: acquiring voice recognition text information corresponding to the voice data; and converting the voice recognition text information into instructions according to a preset model.

[0250] Optionally, the method further comprises the step of training a preset model: collecting training data, wherein the training data comprises keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; and using the training corpus to train the preset model.

[0251] Optionally, the method further includes: determining whether there is a keyboard instruction corresponding to the voice data; if there is a keyboard instruction corresponding to the voice data, generating and displaying execution prompt information of the keyboard instruction; if the first execution information is received, executing the step of converting the voice data into instructions.

[0252] Optionally, the method further includes: if second execution information is received, displaying the voice recognition text information corresponding to the voice data on the screen.

[0253] Optionally, the method further comprises: if the instruction conversion fails, displaying the speech recognition text information corresponding to the speech data on the screen.

[0254] Fig.11 1 is a schematic diagram of the structure of an electronic device 1100 for data processing according to another exemplary embodiment of the present invention. The electronic device 1100 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1122 (for example, one or more processors) and memory 1132, and one or more storage media 1130 (for example, one or more mass storage devices) storing application programs 1142 or data 1144. Among them, the memory 1132 and the storage medium 1130 may be short-term storage or permanent storage. The program stored in the storage medium 1130 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processor 1122 may be configured to communicate with the storage medium 1130 and execute a series of instruction operations in the storage medium 1130 on the server.

[0255] The server may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1158, one or more keyboards 1156, and / or, one or more operating systems 1141, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0256] In an exemplary embodiment, the server is configured to execute one or more programs including instructions for performing the following operations by one or more central processors 1122: obtaining voice data input by the user; performing instruction conversion on the voice data; if the instruction conversion is successful, executing the corresponding operation of the keyboard instruction obtained by the instruction conversion.

[0257] Optionally, it also includes instructions for performing the following operations: determining whether the user has a preset intention, wherein the preset intention is the intention of instruction conversion; if it is determined that the user has the preset intention, executing the step of converting the voice data into an instruction.

[0258] Optionally, determining whether the user has a preset intention includes: determining whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

[0259] Optionally, the determining whether the user has a preset intention includes: determining whether the input method keyboard is in a preset state, the preset state including: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

[0260] Optionally, the determining whether the user has a preset intention includes: performing voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; determining whether the voice recognition text information meets preset conditions; if the voice recognition text information meets the preset conditions, determining that the user has a preset intention.

[0261] Optionally, the determining whether the user has a preset intention includes: acquiring input association information; and performing intent analysis based on the input association information to determine whether the user has a preset intention.

[0262] Optionally, the determining whether the user has a preset intention includes: acquiring content of a current input page; and performing analysis based on the content of the current input page to determine whether the user has a preset intention.

[0263] Optionally, the converting the voice data into instructions includes: acquiring voice recognition text information corresponding to the voice data; and converting the voice recognition text information into instructions according to a preset model.

[0264] Optionally, it also includes instructions for training a preset model as follows: collecting training data, the training data including keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; and using the training corpus to train the preset model.

[0265] Optionally, it also includes instructions for performing the following training of a preset model: determining whether there is a keyboard instruction corresponding to the voice data; if there is a keyboard instruction corresponding to the voice data, generating and displaying execution prompt information for the keyboard instruction; if a first execution information is received, executing the step of converting the voice data into instructions.

[0266] Optionally, it also includes instructions for performing the following operations: if the second execution information is received, the voice recognition text information corresponding to the voice data is displayed on the screen.

[0267] Optionally, it also includes instructions for performing the following operations: if the instruction conversion fails, the voice recognition text information corresponding to the voice data is displayed on the screen.

[0268] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0269] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0270] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0271] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0272] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0273] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0274] The data processing method, the data processing device and the electronic device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data processing method, characterized in that: include: Get the voice data input by the user; Determine whether there is a keyboard instruction corresponding to the voice data, where the keyboard instruction is an instruction corresponding to a function key in an input method keyboard; If there is a keyboard instruction corresponding to the voice data, generating and displaying execution prompt information of the keyboard instruction; If the first execution information is received, the voice data is converted into a command; If the command conversion is successful, the corresponding operation described in the keyboard command obtained by the command conversion is executed; Wherein, the method further comprises: Get the content of the current input page; Analyze the content of the current input page to determine whether the user has a preset intention, wherein the preset intention is an intention of command conversion; If it is determined that the user has a preset intention, the step of converting the voice data into a command is performed.

2. The method according to claim 1, characterized in that The determining whether the user has a preset intention includes: Determine whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; If the input box has a preset attribute, it is determined that the user has a preset intention.

3. The method according to claim 1, characterized in that The determining whether the user has a preset intention includes: Determine whether the input method keyboard is in a preset state, wherein the preset state includes: English state, number state or symbol state; If the input method keyboard is in a preset state, it is determined that the user has a preset intention.

4. The method according to claim 1, characterized in that: The determining whether the user has a preset intention includes: Performing speech recognition on the speech data to obtain speech recognition text information corresponding to the speech data; Determining whether the speech recognition text information meets a preset condition; If the voice recognition text information meets the preset condition, it is determined that the user has a preset intention.

5. The method according to claim 1, characterized in that The determining whether the user has a preset intention includes: Get input related information; Intent analysis is performed based on the input association information to determine whether the user has a preset intention.

6. The method according to claim 1, characterized in that The step of converting the voice data into instructions comprises: Acquire speech recognition text information corresponding to the speech data; The speech recognition text information is converted into instructions according to a preset model.

7. The method according to claim 6, characterized in that The method further comprises the step of training a preset model: Collecting training data, wherein the training data includes keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; The training data is used to train the preset model.

8. The method according to claim 1, characterized in that The method further comprises: If the second execution information is received, the speech recognition text information corresponding to the speech data is displayed on the screen.

9. The method according to claim 1, characterized in that: The method further comprises: If the command conversion fails, the speech recognition text information corresponding to the speech data will be displayed on the screen.

10. A data processing device, characterized in that: include: An acquisition module, used to acquire voice data input by the user; An instruction judging module, used for judging whether there is a keyboard instruction corresponding to the voice data, wherein the keyboard instruction is an instruction corresponding to a function key in an input method keyboard; A prompt module, used for generating and displaying execution prompt information of the keyboard command if there is a keyboard command corresponding to the voice data; A conversion module, configured to perform instruction conversion on the voice data if first execution information is received; An execution module, used for executing the operation corresponding to the keyboard instruction obtained by the instruction conversion if the instruction conversion is successful; Wherein, the device further comprises: An intention judgment module, used to judge whether the user has a preset intention, wherein the preset intention is the intention of command conversion; The conversion module is used to execute the step of converting the voice data into a command if it is determined that the user has a preset intention; Wherein, the intention judgment module includes: The second analysis and judgment submodule is used to obtain the content of the current input page; and analyze the content of the current input page to determine whether the user has a preset intention.

11. The device according to claim 10, characterized in that The intention judgment module includes: The attribute judgment submodule is used to judge whether the input box has preset attributes; the preset attributes include: account attributes, password attributes, email attributes or verification attributes; if the input box has preset attributes, it is determined that the user has a preset intention.

12. The device according to claim 10, characterized in that The intention judgment module includes: The state judgment submodule is used to judge whether the input method keyboard is in a preset state, wherein the preset state includes: English state, number state or symbol state; if the input method keyboard is in the preset state, it is determined that the user has a preset intention.

13. The device according to claim 10, characterized in that The intention judgment module includes: The condition judgment submodule is used to perform voice recognition on the voice data to obtain voice recognition text information corresponding to the voice data; judge whether the voice recognition text information meets the preset conditions; if the voice recognition text information meets the preset conditions, determine that the user has a preset intention.

14. The device according to claim 10, characterized in that The intention judgment module includes: The first analysis and judgment submodule is used to obtain input-related information; perform intention analysis based on the input-related information to determine whether the user has a preset intention.

15. The device according to claim 10, characterized in that The conversion module is used to obtain the speech recognition text information corresponding to the speech data; and perform instruction conversion on the speech recognition text information according to a preset model.

16. The device according to claim 15, characterized in that The device also includes: The training module is used to collect training data, wherein the training data includes keyboard instructions of the input method keyboard and trigger text information corresponding to each keyboard instruction; and the training data is used to train the preset model.

17. The device according to claim 10, characterized in that The device also includes: The first on-screen module is used to display the voice recognition text information corresponding to the voice data on the screen if the second execution information is received.

18. The device according to claim 10, characterized in that The device also includes: The second screen display module is used for displaying the speech recognition text information corresponding to the speech data on the screen if the instruction conversion fails.

19. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Get the voice data input by the user; Determine whether there is a keyboard instruction corresponding to the voice data, where the keyboard instruction is an instruction corresponding to a function key in an input method keyboard; If there is a keyboard instruction corresponding to the voice data, generating and displaying execution prompt information of the keyboard instruction; If the first execution information is received, the voice data is converted into a command; If the command conversion is successful, the corresponding operation described in the keyboard command obtained by the command conversion is executed; The electronic device further includes instructions for performing the following operations: Get the content of the current input page; Analyze the content of the current input page to determine whether the user has a preset intention, wherein the preset intention is an intention of command conversion; If it is determined that the user has a preset intention, the step of converting the voice data into a command is performed.

20. The electronic device according to claim 19, characterized in that: The determining whether the user has a preset intention includes: Determine whether the input box has preset attributes; The preset attributes include: account attributes, password attributes, email attributes or verification attributes; If the input box has a preset attribute, it is determined that the user has a preset intention.

21. The electronic device according to claim 19, characterized in that: The determining whether the user has a preset intention includes: Determine whether the input method keyboard is in a preset state, wherein the preset state includes: English state, number state or symbol state; If the input method keyboard is in a preset state, it is determined that the user has a preset intention.

22. The electronic device according to claim 19, characterized in that: The determining whether the user has a preset intention includes: Performing speech recognition on the speech data to obtain speech recognition text information corresponding to the speech data; Determining whether the speech recognition text information meets a preset condition; If the voice recognition text information meets the preset condition, it is determined that the user has a preset intention.

23. The electronic device according to claim 19, characterized in that: The determining whether the user has a preset intention includes: Get input related information; Intent analysis is performed based on the input association information to determine whether the user has a preset intention.

24. The electronic device according to claim 19, characterized in that The step of converting the voice data into instructions comprises: Acquire speech recognition text information corresponding to the speech data; The speech recognition text information is converted into instructions according to a preset model.

25. The electronic device according to claim 24, characterized in that: It also contains instructions for training the following preset models: Collecting training data, wherein the training data includes keyboard instructions of an input method keyboard and trigger text information corresponding to each keyboard instruction; The training data is used to train the preset model.

26. The electronic device according to claim 19, characterized in that: Also contains instructions for: If the second execution information is received, the speech recognition text information corresponding to the speech data is displayed on the screen.

27. The electronic device according to claim 19, characterized in that: Also contains instructions for: If the command conversion fails, the speech recognition text information corresponding to the speech data will be displayed on the screen.

28. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as described in any one of method claims 1-9.

Citation Information

Patent Citations

  • A voice auxiliary input method and a voice auxiliary input apparatus

    CN103595852A

  • Method and system for automatically adjusting priority of speech input method vocabulary

    CN109213469A