Input method, device and electronic device

By obtaining the user's voice data and using a preset model to perform symbol conversion, it solves the problem that existing input methods cannot input speech symbols, and achieves coherent fluency and high efficiency of speech input symbols.

CN112445453BActive Publication Date: 2024-09-13BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing input methods cannot effectively recognize and input speech symbols, resulting in users being unable to directly input symbols during speech input, and need to switch keyboards or repeatedly modify input.

Method used

By obtaining the user's voice data, it determines the user's intention and performs symbol conversion. It uses the preset model to convert the voice data into symbols. If successful, it will be displayed on the screen. Otherwise, the speech recognition text will be displayed on the screen.

Benefits of technology

It achieves the continuity and fluency of voice input symbols without the need to switch keyboards, which improves input efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112445453B
    Figure CN112445453B
Patent Text Reader

Abstract

The embodiment of the present invention provides an input method, device and electronic device, wherein the method comprises: obtaining voice data input by a user; performing symbol conversion on the voice data; if the symbol conversion is successful, displaying the converted symbol on the screen; and then realizing voice input of symbols. In the input process, there is no need to switch to the symbol keyboard to input symbols, and there is no need to make repeated modifications, so that the voice can be input coherently and smoothly.
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 an input 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] Currently, input methods can only recognize the acquired voice data into corresponding text information. For example, after a user inputs the voice of "Today's weather is very good" in Chinese, the input method voice recognizes the text "Today's weather is very good". For another example, after a user inputs the voice of "the weather is nice today" in English, the input method voice recognizes the text "theweather is nice today". Therefore, when the user intends to input a symbol such as "," and the user inputs the voice "comma", the input method will put the two texts of "comma" on the screen, making it impossible for the user to use voice to input symbols. Summary of the invention

[0004] The embodiment of the present invention provides an input method to implement voice input of symbols.

[0005] Correspondingly, an embodiment of the present invention further provides an input 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 an input method, which specifically includes: acquiring voice data input by a user; performing symbol conversion on the voice data; if the symbol conversion is successful, displaying the converted symbol on the screen.

[0007] Optionally, the method further includes: determining whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers and symbols; if it is determined that the user has a preset intention, executing the step of converting the voice data into symbols.

[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, determining whether the user has a preset intention includes: obtaining input-related information; performing intent analysis based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

[0012] Optionally, determining whether the user has a preset intention includes: obtaining the content of the current input page; analyzing based on the content of the current input page to determine whether the user has a preset intention, the preset intention including: account input intention, password input intention, email input intention and verification information input intention.

[0013] Optionally, the symbol conversion of the voice data includes: acquiring voice recognition text information corresponding to the voice data; and symbol conversion of the voice data 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 symbols and symbol names corresponding to each symbol; and using the training corpus to train the preset model.

[0015] Optionally, the method further includes: determining whether there is a symbol corresponding to the voice data; if there is a symbol corresponding to the voice data, generating and displaying a prompt message of the symbol on the upper screen; if a first execution message is received, executing the step of converting the voice data into symbols.

[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 includes: if the symbol 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 an input device, which specifically includes: an acquisition module, used to acquire voice data input by a user; a conversion module, used to perform symbol conversion on the voice data; and a first screen display module, used to display the converted symbol on the screen if the symbol 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 to input one or more of English, numbers and symbols; and the conversion module, used to execute the step of symbol conversion of the voice data 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 intent analysis based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

[0024] Optionally, the intention judgment module includes: a second analysis and judgment sub-module, used to obtain the content of the current input page; analyze based on the content of the current input page to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

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

[0026] Optionally, the device further comprises: a training module for collecting training data, wherein the training data comprises symbols and symbol names corresponding to each symbol; and the training corpus is used to train a preset model.

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

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

[0029] Optionally, the device further comprises: a third screen display module, configured to display the speech recognition text information corresponding to the speech data on the screen if the symbol 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 the input 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 symbol conversion on the voice data; and if the symbol conversion is successful, displaying the converted symbols on the screen.

[0032] Optionally, it also includes instructions for performing the following operations: determining whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers and symbols; if it is determined that the user has a preset intention, executing the step of converting the voice data into symbols.

[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, determining whether the user has a preset intention includes: obtaining input-related information; performing intent analysis based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

[0037] Optionally, determining whether the user has a preset intention includes: obtaining the content of the current input page; analyzing based on the content of the current input page to determine whether the user has a preset intention, the preset intention including: account input intention, password input intention, email input intention and verification information input intention.

[0038] Optionally, the symbol conversion of the voice data includes: acquiring voice recognition text information corresponding to the voice data; and symbol conversion of the voice data according to a preset model.

[0039] Optionally, it also includes instructions for performing the following training of a preset model: collecting training data, the training data including symbols and symbol names corresponding to each symbol; and using the training corpus to train the preset model.

[0040] Optionally, it also includes instructions for performing the following operations: determining whether there is a symbol corresponding to the voice data; if there is a symbol corresponding to the voice data, generating and displaying a prompt message of the symbol on the upper screen; if a first execution message is received, executing the step of converting the voice data into symbols.

[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 symbol 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 symbols; if the symbol conversion is successful, the converted symbols are displayed on the screen, thereby realizing voice input of symbols. In addition, during the input process, there is no need to deliberately switch to the symbol keyboard to input symbols, and there is no need to repeatedly modify, so that the voice can be input coherently and smoothly. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

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

[0050] Figure 6 is a flowchart of steps of another optional embodiment of the input 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 input device embodiment of the present invention;

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

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

[0055] Fig.11 It is a structural schematic diagram of an electronic device for input 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 input 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 symbols, and after the voice data is successfully converted into symbols, the symbols are displayed on the screen, thereby realizing voice input of symbols. In addition, during the input process, there is no need to deliberately switch to the symbol keyboard to input symbols, and there is no need to repeatedly modify, so that the voice can be input coherently and smoothly.

[0059] Reference Figure 1 , shows a flow chart of steps of an input 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 symbol conversion on the voice data.

[0062] Step 106: If the symbol conversion is successful, the converted symbol is displayed on the screen.

[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 symbols. The symbol conversion of the voice data can refer to the process of converting the voice data into symbols; the symbols can include punctuation marks such as ",",".",".", etc., mathematical symbols such as "*", " / ", "+", "-", "&", etc.; unit symbols such as "%", etc., currency symbols such as "¥", etc., and other symbols such as "@", etc., which are not limited in the embodiment of the present invention.

[0065] The symbol conversion of the voice data may convert the voice data into corresponding symbols (i.e., the symbol conversion is successful), or may fail to convert the voice data into corresponding symbols (i.e., the symbol conversion fails). If the symbol conversion is successful, the converted symbols can be displayed on the screen. If the symbol conversion fails, the voice recognition text information obtained by performing voice recognition on the voice data can be displayed on the screen.

[0066] 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 symbols; if the symbol conversion is successful, the converted symbols are displayed on the screen, thereby realizing voice input symbols. In addition, during the input process, there is no need to deliberately switch to the symbol keyboard to input symbols, and there is no need to repeatedly modify, so that the voice can be input coherently and smoothly.

[0067] 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 symbols. The preset intention is one or more of the intentions of inputting English, numbers and symbols, and may include: account input intention, password input intention, email input intention and verification information input intention.

[0068] 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.

[0069] 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.

[0070] 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:

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

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

[0073] 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.

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

[0075] 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.

[0076] 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 of symbols 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.

[0077] 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 box 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 method 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.

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

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

[0080] Step 208: Convert the speech recognition text information into symbols according to a preset model.

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

[0082] 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 symbols.

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

[0084] Sub-step S22: Collect training data, where the training data includes symbols and symbol names corresponding to each symbol.

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

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

[0087]

[0088]

[0089] Table 1

[0090] Among them, only some symbols and the symbol names corresponding to each symbol are shown in Table 1. In addition, only the symbol names in Chinese are shown in Table 1, and the symbol names corresponding to each symbol can be in other languages, which is not limited in the embodiment of the present invention.

[0091] A symbol and a corresponding symbol name can be called a set of training data; then multiple sets of training data can be used to train the preset model. For each set of training data, the symbol name in the set of training data can be input into the preset model for forward calculation to obtain the probability of each symbol output by the preset model; then the preset model can be reversely trained until the probability of the symbol in the set of training data output by the preset model is maximized.

[0092] When using the trained preset model for symbol 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 symbol with the highest probability. Among them, when the segmented segment hits a certain symbol name, the preset model can determine that the probability of the symbol corresponding to the symbol name is the highest and can output the symbol; at this time, it can be determined that the symbol conversion of the segmented segment is successful. When the segmented segment does not hit any symbol name, the preset model can output other information; at this time, the symbol conversion of the segmented segment can be considered to have failed.

[0093] Among them, for the word segmentation fragment that has been successfully converted into a symbol, the symbol corresponding to the word segmentation fragment can be displayed on the screen, that is, step 210 is executed.

[0094] For the word segmentation fragment that fails to be converted into symbols, if the word segmentation fragment is English or a number, the word segmentation fragment can be displayed on the screen, that is, step 212 is executed.

[0095] Step 210: If the symbol conversion is successful, the converted symbol is displayed on the screen.

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

[0097] 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.

[0098] And for the word segmentation fragment that fails to convert symbols, if the word segmentation fragment is English or a number, the word segmentation fragment can also be displayed on the screen; that is, the partial speech recognition text information corresponding to the speech data is displayed on the screen.

[0099] In an example of the present invention, the symbol obtained by the symbol conversion may be an English symbol.

[0100] For example, if the voice data is "comma", if the input box has an account attribute, the voice data is converted into a symbol, and the English symbol "," is displayed on the screen.

[0101] For another example, if the voice data is "RMB", if the input box has a password attribute, the voice data is converted into symbols, and the symbol "¥" is displayed on the screen.

[0102] For another example, if the voice data is "ABC underline", if the input box has an email attribute, the voice data will be converted into symbols; wherein, the "underline" symbol conversion of part of the voice data can be successful to obtain the symbol "_", and the symbol "ABC" of another part of the voice data can be recognized to obtain the voice recognition text information "ABC"; then "ABC_" can be displayed on the screen.

[0103] 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 inputting an account, password, email address, verification information, etc., and implement voice input symbols 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.

[0104] 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:

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

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

[0107] 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.

[0108] 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.

[0109] 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.

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

[0111] Step 308: Convert the speech recognition text information into symbols according to a preset model.

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

[0113] It should be noted that when the input method keyboard is in English, it is impossible to determine whether the user is entering an account, password, email address, verification information, or information such as search information, interactive information, and comment information in English; therefore, when the input method keyboard is in English, if the voice recognition text information hits the English symbol name, the preset model can output other information. This prevents the user from mistakenly entering symbols when entering information other than account, password, email address, and verification information in English.

[0114] Step 310: If the symbol conversion is successful, the converted symbol will be displayed on the screen.

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

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

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

[0118] In an example of the present invention, the symbol obtained by the symbol conversion may be an English symbol.

[0119] 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 symbols 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.

[0120] In an optional embodiment of the present invention, it is possible to determine whether the user has a preset intention based on 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:

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

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

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

[0124] 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:

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

[0126] 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", a mode of "symbol name", etc.

[0127] 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.

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

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

[0130] Step 410: If the symbol conversion is successful, the converted symbol will be displayed on the screen.

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

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

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

[0134] In an example of the present invention, the symbol obtained by the symbol conversion can be a Chinese symbol or an English symbol.

[0135] 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 symbols 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.

[0136] 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:

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

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

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

[0140] The input-related information may include interaction information, other application-related 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.

[0141] Step 506: perform intent analysis based on the input-related information to determine whether the user has a preset intent, wherein the preset intent includes: account input intent, password input intent, email input intent, and verification information input intent.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] Step 508: Obtain the speech recognition text information corresponding to the speech data.

[0146] Step 510: Convert the speech recognition text information into symbols according to a preset model.

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

[0148] Step 512: If the symbol conversion is successful, the converted symbol will be displayed on the screen.

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

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

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

[0152] In an example of the present invention, the symbol obtained by the symbol conversion can be a Chinese symbol or an English symbol.

[0153] In summary, in an embodiment of the present invention, input-related information can be obtained; then, intent analysis is performed based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention, and verification information input 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 symbols are implemented in scenarios such as user account, password, email, verification information, etc., which is conducive to improving the user's input efficiency and improving the user experience.

[0154] 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:

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

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

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

[0158] 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.

[0159] Step 606: Analyze the content of the current input page to determine whether the user has a preset intention, wherein the preset intention includes: account input intention, password input intention, email input intention, and verification information input intention.

[0160] 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.

[0161] 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 and stored. For example, keywords extracted from the recognition result of the mailbox login page are: account number and password; the positional relationship between the two is: "password" is located in the next line of "account number", 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.

[0162] 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.

[0163] Step 608: Obtain the speech recognition text information corresponding to the speech data.

[0164] Step 610: Convert the speech recognition text information into symbols according to a preset model.

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

[0166] Step 612: If the symbol conversion is successful, the converted symbol will be displayed on the screen.

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

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

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

[0170] 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, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention; and then it can be quickly determined whether the user is entering an account, password, email, verification information, etc., and voice input keyboard commands can be implemented in scenarios such as user account, password, email, verification information, etc., which is conducive to improving the user's input efficiency and improving the user experience.

[0171] In an optional embodiment of the present invention, in order to prevent the mistaken input of symbols by voice, after acquiring the voice data, it can be determined whether there is a symbol corresponding to the voice data; when it is determined that there is a symbol corresponding to the voice data, a prompt message is generated to prompt the user whether to input a symbol 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, etc.

[0172] Reference Figure 7 , shows a step flow chart of another input method embodiment of the present invention.

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

[0174] Step 704: Determine whether there is a symbol corresponding to the voice data.

[0175] In an embodiment of the present invention, after acquiring the voice data, it is possible to first determine whether there is a symbol 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 symbol corresponding to the voice data.

[0176] The speech recognition text information can be compared with the symbol name in the training data. If the speech recognition text information hits the symbol name, it can be determined that the symbol corresponding to the speech data exists; if the speech recognition text information does not hit the symbol name, it can be determined that the symbol corresponding to the speech data does not exist.

[0177] Step 706: If there is a symbol corresponding to the voice data, a prompt message of the symbol on the screen is generated and displayed.

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

[0179] In one example, the pop-up window displays prompt information in a variety of ways, such as displaying the text information "whether to put the symbol on the screen" and displaying the two options "yes" and "no". For another example, directly displaying the two options "symbol on the screen" and "text on the screen". For another example, displaying "whether to put the symbol on the screen or text on the screen" and displaying the two options "symbol" and "text".

[0180] Step 708: If the first execution information is received, perform symbol conversion on the voice data.

[0181] When the user determines to execute the input symbol, the corresponding option can be selected; correspondingly, the input method can receive the first execution information, which can refer to the confirmation information of executing the symbol on the screen; then the voice data can be converted into symbols.

[0182] Among them, the speech recognition text information can be input into the preset model for symbol conversion to obtain the symbols output by the preset model.

[0183] Step 710: If the symbol conversion is successful, the converted symbol will be displayed on the screen.

[0184] Step 712: If there is no symbol 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.

[0185] When the user determines to execute the text on the screen, the corresponding option can be selected; correspondingly, 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.

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

[0187] 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 mode, since the embodiment of the present invention generates and displays prompt information of the upper-screen symbol, if the voice recognition text information hits the English symbol name, the preset model can output the corresponding symbol.

[0188] In an example of the present invention, the symbol obtained by symbol conversion can be an English symbol or a Chinese symbol.

[0189] 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 symbol corresponding to the voice data; if the voice data has a corresponding symbol, a prompt message of the upper screen symbol is generated and displayed; if the first execution message is received, the step of converting the voice data into a symbol is executed. Then, by displaying the prompt message to the user for secondary confirmation, the erroneous input of the symbol can be effectively prevented.

[0190] 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.

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

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

[0193] The conversion module 804 is used to perform symbol conversion on the voice data;

[0194] The first on-screen module 806 is used to display the converted symbol on the screen if the symbol conversion is successful.

[0195] Reference Fig. 9 , shows a structural block diagram of an optional embodiment of an input device of the present invention.

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

[0197] The intention determination module 808 is used to determine whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers and symbols;

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

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

[0200] 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.

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

[0202] 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.

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

[0204] 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.

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

[0206] The first analysis and judgment submodule 8088 is used to obtain input-related information; perform intent analysis based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

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

[0208] 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, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

[0209] In an optional embodiment of the present invention, the conversion module 804 is used to obtain the speech recognition text information corresponding to the speech data; and perform symbol conversion on the speech data according to a preset model.

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

[0211] The training module 810 is used to collect training data, wherein the training data includes symbols and symbol names corresponding to each symbol; and use the training corpus to train the preset model.

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

[0213] A symbol determination module 812, used to determine whether there is a symbol corresponding to the voice data;

[0214] A prompt module 814, configured to generate and display prompt information of the upper screen symbol if there is a symbol corresponding to the voice data;

[0215] The conversion module 804 is configured to execute the step of performing symbol conversion on the voice data if the first execution information is received.

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

[0217] The second 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.

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

[0219] The third on-screen module 818 is used to display the speech recognition text information corresponding to the speech data on the screen if the symbol conversion fails.

[0220] 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 symbols; if the symbol conversion is successful, the converted symbols are displayed on the screen, thereby realizing voice input symbols. In addition, during the input process, there is no need to deliberately switch to the symbol keyboard to input symbols, and there is no need to repeatedly modify, so that the voice can be input coherently and smoothly.

[0221] 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.

[0222] Fig.10 1 is a block diagram of an electronic device 1000 for input 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.

[0223] 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 .

[0224] 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.

[0225] 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.

[0226] The power component 1006 provides power to 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.

[0227] 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.

[0228] 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.

[0229] 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: a home button, a volume button, a start button, and a lock button.

[0230] 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.

[0231] 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.

[0232] 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.

[0233] 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.

[0234] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute an input method, the method comprising: obtaining voice data input by a user; performing symbol conversion on the voice data; if the symbol conversion is successful, displaying the converted symbol on the screen.

[0235] Optionally, the method further includes: determining whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers and symbols; if it is determined that the user has a preset intention, executing the step of converting the voice data into symbols.

[0236] 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.

[0237] 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.

[0238] 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.

[0239] Optionally, determining whether the user has a preset intention includes: obtaining input-related information; performing intent analysis based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

[0240] Optionally, determining whether the user has a preset intention includes: obtaining the content of the current input page; analyzing based on the content of the current input page to determine whether the user has a preset intention, the preset intention including: account input intention, password input intention, email input intention and verification information input intention.

[0241] Optionally, the symbol conversion of the voice data includes: acquiring voice recognition text information corresponding to the voice data; and symbol conversion of the voice data according to a preset model.

[0242] Optionally, the method further comprises the step of training a preset model: collecting training data, wherein the training data comprises symbols and symbol names corresponding to each symbol; and using the training corpus to train the preset model.

[0243] Optionally, the method further includes: determining whether there is a symbol corresponding to the voice data; if there is a symbol corresponding to the voice data, generating and displaying a prompt message of the symbol on the upper screen; if a first execution message is received, executing the step of converting the voice data into symbols.

[0244] 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.

[0245] Optionally, the method further includes: if the symbol conversion fails, displaying the speech recognition text information corresponding to the speech data on the screen.

[0246] Fig.111 is a schematic diagram of the structure of an electronic device 1100 for input 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 temporary 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.

[0247] 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.

[0248] In an exemplary embodiment, the server is configured to have one or more central processors 1122 execute one or more programs including instructions for performing the following operations: obtaining voice data input by the user; converting the voice data into symbols; if the symbol conversion is successful, displaying the converted symbols on the screen.

[0249] Optionally, the method further includes: determining whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers and symbols; if it is determined that the user has a preset intention, executing the step of converting the voice data into symbols.

[0250] 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.

[0251] 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.

[0252] 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.

[0253] Optionally, determining whether the user has a preset intention includes: obtaining input-related information; performing intent analysis based on the input-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

[0254] Optionally, determining whether the user has a preset intention includes: obtaining the content of the current input page; analyzing based on the content of the current input page to determine whether the user has a preset intention, the preset intention including: account input intention, password input intention, email input intention and verification information input intention.

[0255] Optionally, the symbol conversion of the voice data includes: acquiring voice recognition text information corresponding to the voice data; and symbol conversion of the voice data according to a preset model.

[0256] Optionally, the method further comprises the step of training a preset model: collecting training data, wherein the training data comprises symbols and symbol names corresponding to each symbol; and using the training corpus to train the preset model.

[0257] Optionally, the method further includes: determining whether there is a symbol corresponding to the voice data; if there is a symbol corresponding to the voice data, generating and displaying a prompt message of the symbol on the upper screen; if a first execution message is received, executing the step of converting the voice data into symbols.

[0258] 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.

[0259] Optionally, the method further includes: if the symbol conversion fails, displaying the speech recognition text information corresponding to the speech data on the screen.

[0260] 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.

[0261] 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.

[0262] 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.

[0263] 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.

[0264] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other 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.

[0265] 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.

[0266] The above is a detailed introduction to an input method, an input device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. 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 method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An input method, characterized in that: include: Get the voice data input by the user; Performing symbol conversion on the voice data; If the symbol conversion is successful, the converted symbol will be displayed on the screen, and the symbol includes punctuation marks, mathematical symbols, unit symbols, and currency symbols; The performing symbol conversion on the voice data comprises: Acquire speech recognition text information corresponding to the speech data; Performing symbol conversion on the speech data according to a preset model; The performing symbol conversion on the speech data according to a preset model includes: Segmenting the speech recognition text information to obtain a plurality of segmented word segments, and inputting each of the segmented word segments into the preset model to obtain a symbol with the highest probability corresponding to each of the segmented word segments; The method further comprises the step of training a preset model: Collecting training data, wherein the training data includes symbols and symbol names corresponding to each symbol; The training corpus is used to train the preset model.

2. The method according to claim 1, characterized in that The method further comprises: Determining whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers, and symbols; If it is determined that the user has a preset intention, the step of symbolizing the voice data is performed.

3. The method according to claim 2, 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.

4. The method according to claim 2, 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.

5. The method according to claim 2, 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.

6. The method according to claim 2, 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-related information to determine whether the user has a preset intention, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

7. The method according to claim 2, characterized in that The determining whether the user has a preset intention includes: Get the content of the current input page; An analysis is performed based on the content of the current input page to determine whether the user has a preset intention, the preset intention including: account input intention, password input intention, email input intention and verification information input intention.

8. The method according to claim 1, characterized in that: The method further comprises: Determine whether there is a symbol corresponding to the voice data; If there is a symbol corresponding to the voice data, generate and display the prompt information of the symbol on the screen; If the first execution information is received, the step of symbol conversion of the voice data is executed.

9. The method according to claim 8, 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.

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

11. An input device, characterized in that: include: An acquisition module, used to acquire voice data input by the user; A conversion module, used for performing symbol conversion on the voice data; A first screen display module, used for displaying the converted symbols on the screen if the symbol conversion is successful, wherein the symbols include punctuation marks, mathematical symbols, unit symbols, and currency symbols; The conversion module is used to obtain the speech recognition text information corresponding to the speech data; and perform symbol conversion on the speech data according to a preset model; The conversion module is further used to segment the speech recognition text information to obtain a plurality of segmented word segments, and input each of the segmented word segments into the preset model to obtain a symbol with the highest probability corresponding to each of the segmented word segments; The device also includes: A training module, used for collecting training data, wherein the training data includes symbols and symbol names corresponding to each symbol; The training corpus is used to train the preset model.

12. The device according to claim 11, characterized in that The device also includes: An intention determination module, used to determine whether the user has a preset intention, wherein the preset intention is an intention to input one or more of English, numbers and symbols; The conversion module is used to execute the step of symbol conversion of the voice data if it is determined that the user has a preset intention.

13. The device according to claim 12, 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.

14. The device according to claim 12, 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.

15. The device according to claim 12, 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.

16. The device according to claim 12, 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, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

17. The device according to claim 12, characterized in that The intention judgment module includes: The second analysis and judgment submodule 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, and the preset intention includes: account input intention, password input intention, email input intention and verification information input intention.

18. The device according to claim 11, characterized in that The device also includes: A symbol determination module, used to determine whether there is a symbol corresponding to the voice data; A prompt module, used for generating and displaying prompt information of the upper screen symbol if there is a symbol corresponding to the voice data; The conversion module is used to execute the step of symbol conversion of the voice data if the first execution information is received.

19. The device according to claim 18, characterized in that The device also includes: The second 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.

20. The device according to claim 11, characterized in that The device also includes: The third on-screen module is used to display the voice recognition text information corresponding to the voice data on the screen if the symbol conversion fails.

21. An electronic device, characterized in that: The device 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 to perform the input method as described in any one of method claims 1-10.

22. 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 input method as described in any one of method claims 1-10.