Patent Description:
With the rapid development of information technologies, voice interaction has become the most imaginative method of interaction in the future.

A user may input information by voice, for example, when the user enters a keyword in a search engine to search for a web page, or enters words in an instant messenger to communicate with other users, etc. Specifically, after the voice of the user is obtained, the voice may be converted into text, and the converted text may be used as input information. For instance, the converted text may be sent to other users for communication via the instant messenger. Related technologies are known from <CIT> and <CIT>.

This Summary is provided to introduce a selection of aspects of the present disclosure in a simplified form that are further described below in the Detailed Description.

In order to overcome problems existing in relevant technology, the present disclosure provides an input method, an input device, a storage medium and a computer program comprising the features of the respective independent claims.

According to an aspect, the method further includes obtaining state information of a terminal to which the user inputs the voice data, wherein using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm, to obtain the output of the matching algorithm includes using the state information of the terminal, the voice text, and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm, to obtain the output of the matching algorithm.

In an example, the device further includes:.

The invention can be implemented by a terminal including:.

The invention also provides a non-transitory computer readable storage medium, wherein, when executed by a processor of a terminal, instructions in a storage medium enable the terminal to perform the method of any of the above-described first aspect.

The invention also provides a computer program, which when executing on a processor, performs a method of the above-described methods.

In the input method, the device, the apparatus, and the storage medium provided by the present disclosure, by recognizing the voice data inputted by the user, the voice text corresponding to the voice data is obtained, the text to-be-input corresponding to the voice data is obtained according to the voice text, and the text to-be-input is displayed in the input textbox of the input interface, the text to-be-input is a phrase or a short sentence, so that a quick input based on voice input is realized, the user's input operations are simplified and a user experience is provided.

It shall be understood that both the foregoing general description and the following detailed description are illustrative and explanatory only and are not restrictive of the present disclosure.

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate aspects consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

The specific aspects of the present disclosure, which have been illustrated by the accompanying drawings described above, will be described in detail below. These accompanying drawings and description are not intended to limit the scope of the present disclosure in any manner, but to explain the concept of the present disclosure to those skilled in the art via referencing specific aspects.

Reference will now be made in detail to exemplary aspects, examples of which are illustrated in the accompanying drawings. The implementations set forth in the following description of exemplary aspects do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects related to the present disclosure as recited in the appended claims.

<FIG> is a block diagram illustrating an input method according to an exemplary aspect. An executive body of the input method provided by this aspect may be a terminal such as a mobile phone, a tablet computer. As shown in <FIG>, the method of this aspect may include the following steps:
In step <NUM>, voice data inputted by a user is recognized, and a voice text corresponding to the voice data is obtained.

In this step, the voice data inputted by the user may be collected and obtained through an audio input device (for example, a microphone). Specifically, voice recognition may be performed on the voice data inputted by the user to obtain the voice text corresponding to the voice data. For example, when the user says "my mailbox", the terminal may obtain corresponding voice data by the microphone, and obtain the voice text corresponding to the voice data according to the voice data, i.e., the text of "my mailbox".

In step <NUM>, a text to-be-input or a to-be-input text corresponding to the voice data is obtained according to the voice text, wherein the text to-be-input is a phrase or a short sentence.

In this step, the text to-be-input is text obtained according to the voice text and corresponding to the voice data. Optionally, the phrase may be specifically a subject-predicate phrase, a verb-object phrase, an endocentric phrase. The short sentence may be specifically a sentence having words a number of which is less than or equal to a specified threshold, for example, a sentence having words a number of which is less than or equal to <NUM>. Wherein the text to-be-input may be text different from the voice text. For example, the voice text may be "my mailbox", and the text to-be-input may be "****@<NUM>. Here, the phrase or short sentence corresponding to the voice text is obtained according to the voice text, and input of a shortcut phrase or short sentence based on voice input may be realized.

In step <NUM>, the text to-be-input is displayed in an input textbox of an input interface.

In this step, the text to-be-input is directly displayed in the input textbox of the input interface. For example, the input interface may be a chat interface, a search engine interface, or the like. An example, in which the input interface is the chat interface, and the user inputs a voice by clicking an icon of the microphone, and the text to-be-input is "****@<NUM>. com", is taken, and the display effect of the text to-be-input, which is displayed in the input textbox of the input interface, may be as shown in <FIG>, for example. Here, displaying the text to-be input in the input textbox of the input interface enables the user input the text to-be input more quickly and conveniently.

While in a related aspect, the user has to perform further selection operation to select the text in the candidate box, then the selected text may be displayed in the input textbox.

For example, in a first kind of related aspect, where a user selects to enter a shortcut input interface, and manually selects a phrase or a short sentence in a list of phrases and short sentences presented on a shortcut interface of "****@<NUM>. com", to input the selected phrase or short sentence into an input interface.

As compared to the first kind of related aspect, the input method provided by this aspect reduces the user's selection operations and simplifies user input.

Another example relates to a second kind of related aspect, in which a text inputted by a user through a keyboard is obtained, and a candidate text (which may include a phrase or a short sentence corresponding to the text inputted by the user) corresponding to the text inputted by the user is displayed in a candidate box, and the text selected by the user in the candidate box is displayed in an input box. An example is taken in which the phrase or short sentence corresponding to "jf" is "****@<NUM>. com", and the text inputted by the user is "jf", the effect of displaying the candidate box in the input interface may be as shown in <FIG>, for example. The user has to complete the shortcut input of "****@<NUM>. com" by selecting "****@<NUM>. com" in the candidate box.

As compared to the second kind of related aspect, the input method provided by this aspect reduces the user's selection operations and simplifies user input.

In the input method provided by this aspect, the voice data inputted by the user is recognized and the voice text corresponding to the voice data is obtained, the text to-be-input corresponding to the voice data is obtained according to the voice text, and the text to-be-input is displayed in the input textbox of the input interface, the text to-be-input is a phrase or a short sentence, so that a quick input based on voice input is realized, the user's input operations are simplified and a user experience is improved.

<FIG> is a block diagram illustrating an input method according to another exemplary aspect. Referring to <FIG>, the method provided by this aspect is based on the method as shown in <FIG>, and mainly describes an optional implementation manner of obtaining text to-be-input corresponding to voice data according to the voice text. As shown in <FIG>, the method in this aspect may include the following steps:
In step <NUM>, voice data inputted by a user is recognized, and a voice text corresponding to the voice data is obtained.

It shall be noted that the step <NUM> is similar to the step <NUM>, and details will not be elaborated herein.

In step <NUM>, according to the voice text and corresponding relationships between different voice texts and target texts, it is decided whether there is a target text that matches the voice text.

In this step, the corresponding relationships may be corresponding relationships preset by a server, or may be corresponding relationships set by the user. Further, when the corresponding relationships are the corresponding relationships set by the user, a terminal may also send the corresponding relationships set by the user to the server, so that when using other terminals except for the terminal for voice input, the user may also perform a shortcut input based on the corresponding relationships. It should be noted that the present disclosure does not impose any limitation on a specific manner for setting the corresponding relationships by the user. For example, the user may establish an object relationship between the voice texts and the target texts in a setting interface as shown in <FIG>.

Specifically, if there is a target text matching the voice text, the target text matching the voice text is decided as the text to-be-input; and if there is no target text matching the voice text, the voice text is decided as the text to-be-input.

In this step, specifically, when it is decided in step <NUM> that there is a target text matching the voice text, the target text matching the voice text is displayed in the input interface. When it is decided in step <NUM> that there is no target text matching the voice text, the voice text is displayed in the input interface. An example is taken, in which the input interface is a chat interface, the voice text corresponding to the voice data, which is inputted by the user by clicking a microphone icon is "my mailbox", and the target text matching "my mailbox" is "****@<NUM>. com", the display effect of the text to-be-input displayed in the input textbox of the input interface may be as shown in <FIG>, for example. An example is taken, in which the input interface is the chat interface, the voice text corresponding to the voice data, which is inputted by the user by clicking the microphone icon is "my mailbox", and there is no target text matching "my mailbox", the display effect of the text to-be-input, which is displayed in the input textbox of the input interface may be as shown in <FIG>, for example.

Here, when there is a target text matching the voice text, the target text matching the voice text is displayed in the input textbox of the input interface, but when there is no target text matching the voice text, the voice text is displayed in the input textbox of the input interface, an implementation manner may be realized by causing the input of voice text in the input interface be compatible with the shortcut input of the phrase or short sentence based on the voice input.

In the input method provided by this aspect, it is decided whether there is a target text that matches the voice text according to the voice text and corresponding relationships between different voice texts and target texts; when there is a target text matching the voice text, the target text matching the voice text is displayed in the input textbox of the input interface, so that the quick input based on the voice input is realized, the user's input operations are simplified and a user experience is improved. In addition, when there is no target text matching the voice text, the voice text is displayed in the input textbox of the input interface, so that an implementation manner may be realized by causing the input of voice text in the input interface be compatible with the shortcut input of the phrase or short sentence based on the voice input.

<FIG> is a block diagram illustrating an input method according to still another exemplary aspect. Referring to <FIG>, the method provided by this aspect is based on the method as shown in <FIG>, and mainly describes an optional implementation manner of deciding whether there is a target text matching the voice text. As shown in <FIG>, the method in this aspect may include the following steps:
In step <NUM>, the voice text and the corresponding relationships between the different voice texts and the target texts are used as an input of a matching algorithm to obtain an output of the matching algorithm.

In this step, the matching algorithm may be specifically a fuzzy matching algorithm or an exact matching algorithm. For example, it is supposed that the corresponding relationships include the corresponding relationship between the voice text "my mailbox" and the target text ****@<NUM>. com, and when the matching algorithm is the exact matching algorithm, if the voice text corresponding to the voice data inputted by the user is "mailbox", the output of the matching algorithm may be NULL or an error code for indicating that there is no target text matching the voice text, and if the voice text corresponding to the voice data inputted by the user is "my mailbox", the output of the matching algorithm may be "****@<NUM>. com"; and when the matching algorithm is the fuzzy matching algorithm, if the voice text corresponding to the voice data inputted by the user is "mailbox", the output of the matching algorithm may be " ****@<NUM>.

Optionally, before the step <NUM>, the method may further include: determining non-voice text information of the voice data according to the voice data, and selecting a matching algorithm corresponding to the voice data in a set of matching algorithms according to the non-voice text information. The voice data is the above-described voice data inputted by the user. The non-voice text information may be specifically one or more of information other than the voice text, which is obtained from the voice data. Optionally, the non-voice text information may include at least one of the following: emotion information, gender information, or age information.

The set of matching algorithms may include a plurality of matching algorithms. When the non-voice text information includes the emotion information, different emotions may correspond to different matching algorithms. When the non-voice text information includes the gender information, different genders may correspond to different matching algorithms. When the non-voice text information includes the age information, different age groups may correspond to different matching algorithms. Correspondingly, the step <NUM> may specifically include: using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm corresponding to the voice data, and obtaining the target text that matches the voice text. Here, the matching algorithm is selected according to the non-voice text information of the voice data, so that the corresponding matching algorithm may be selected for quick input of different voice text information, and the flexibility of the shortcut input is improved.

Optionally, the output of the matching algorithm may be related to state information of the terminal, wherein the state information herein may be, for example, location information, speed information, or the like. Correspondingly, the method in this aspect may further include: obtaining the state information of the terminal to which the user inputs the voice data. The step <NUM> may specifically include: using the state information of the terminal, the voice text, and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm to obtain an output of the matching algorithm. Here, by using the state information of the terminal as the input of the matching algorithm, the flexibility of matching may be improved, thereby improving the flexibility of the quick input.

For example, it is supposed that the voice text corresponding to the voice data is "weather", and the corresponding relationships include the corresponding relationship between the voice text "weather" and the target text "current weather", and when the location information of the terminal is Beijing, the voice text "weather", the location information "Beijing" and the corresponding relationship are used as the input of the matching algorithm, to obtain the output of the matching algorithm, for example, "current weather in Beijing"; and when the location information of the terminal is "Shanghai", the voice text "weather", the location information "Shanghai" and the corresponding relationship may be used as the input of the matching algorithm, to obtain the output of the matching algorithm, for example, " current weather in Shanghai".

For example, it is supposed that the voice text corresponding to the voice data is "now", and the corresponding relationships include the corresponding relationship between the voice text "now" and the target text "I am now. ", and when the speed information of the terminal is <NUM>/s, the voice text "now", the speed information "<NUM>/s" and the corresponding relationship may be used as the input of the matching algorithm, to obtain the output of the matching algorithm, for example, "I am walking now"; and when the speed information of the terminal is <NUM>/s, the voice text "now", the speed information "<NUM>/s", and the corresponding relationship may be used as the input of the matching algorithm to obtain the output of the matching algorithm, for example, "I am running now".

In the step <NUM>, based on the output of the matching algorithm, it is decided whether there is a target text that matches the voice text.

In this step, the output of the matching algorithm may indicate whether there is a target text that matches the voice text. For example, when the output of the matching algorithm is null, it may indicate that there is no target text that matches the voice text. For another example, when the output of the matching algorithm is non-null, it may indicate that there is a target text that matches the voice text.

In the input method provided by this aspect, the output of the matching algorithm is obtained by using the voice text and the corresponding relationships between the different voice texts and the target text as the input of the matching algorithm, and it is decided whether there is a target text matching the voice text according to the output of the matching algorithm, so that the decide of whether there is a target text that matches the voice text is realized.

Device aspects of the present disclosure will be described below, which may be used to implement the method aspects of the present disclosure. For details not disclosed in the device aspects of the present disclosure, please refer to the method aspects of the present disclosure.

<FIG> is a block diagram illustrating an input device according to an exemplary aspect. The device may be implemented as all or part of the terminal by software, hardware or a combination thereof. Referring to <FIG>, the device includes a recognition module <NUM>, an obtaining module <NUM>, and a displaying module <NUM>.

The recognition module <NUM> is configured to recognize voice data inputted by a user, and obtain a voice text corresponding to the voice data.

The obtaining module <NUM> is configured to obtain text to-be-input corresponding to the voice data according to the voice text, wherein the text to-be-input is a phrase or a short sentence.

The displaying module <NUM> is configured to display the text to-be-input in an input textbox of an input interface.

In summary, the input device provided by the aspects of the present disclosure recognizes the voice data inputted by the user through the recognition module, and obtains the voice text corresponding to the voice data, obtains the text to-be-input corresponding to the voice data according to the voice text through the obtaining module, and displays the text to-be-input in the input textbox of the input interface through the displaying module, and the text to-be-input is a phrase or a short sentence, so that the quick input based on voice input is realized, input operations of the user are simplified and a user experience is improved.

<FIG> is a block diagram illustrating an input device according to another exemplary aspect. Referring to <FIG>, the device is based on the block diagram illustrated in <FIG>. Optionally, the obtaining module <NUM> may include a deciding sub-module <NUM>.

The deciding sub-module <NUM> is configured to, according to the voice text and corresponding relationships between different voice texts and target texts, decide whether there is a target text that matches the voice text;.

In summary, the input device provided by the aspects of the present disclosure decides, through the deciding sub-module, whether there is a target text that matches the voice text according to the voice text and corresponding relationships between different voice texts and target texts; when there is a target text matching the voice text, the target text matching the voice text is displayed in the input textbox of the input interface, so that the quick input based on the voice input is realized, the user's input operations are simplified and a user experience is improved. In addition, when there is no target text matching the voice text, the voice text is displayed in the input textbox of the input interface, so that an implementation manner may be realized by causing the input of voice text in the input interface be compatible with the shortcut input of the phrase or short sentence based on the voice input.

<FIG> is a block diagram illustrating an input device according to still another exemplary aspect. Referring to <FIG>, the device is based on the block diagram shown in <FIG>. Optionally, the deciding sub-module <NUM> includes a matching sub-module <NUM> and a first deciding sub-module <NUM>.

The matching sub-module <NUM> is configured to use the voice text and the corresponding relationships between the different voice texts and the target texts as an input of a matching algorithm to obtain an output of the matching algorithm.

The first deciding sub-module <NUM> is configured to decide whether there is a target text matching the voice text according to the output of the matching algorithm.

In summary, in the input device provided by the aspects of the present disclosure, the output of the matching algorithm is obtained through the matching sub-module by using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm, and it is decided through the first deciding by deciding whether there is a target text matching the voice text according to the output of the matching algorithm, so that decide of whether there is a target text that matches the voice text is realized.

<FIG> is a block diagram illustrating an input device according to still another exemplary aspect. Referring to <FIG>, the device is based on the block diagram shown in <FIG>. Optionally, the device further includes a determining module <NUM> and a selecting module <NUM>.

The determining module <NUM> is configured to, according to voice data, determine non-voice text information of the voice data.

The selecting module <NUM> is configured to select a matching algorithm corresponding to the voice data in a set of matching algorithms according to the non-voice text information.

The matching sub-module <NUM> includes a first matching sub-module A configured to use the voice text and the corresponding relationships between the different voice texts and the target texts as an input of the matching algorithm corresponding to the voice data, to obtain an output of the matching algorithm.

In a possible implementation, the non-voice text information includes at least one of the following:
emotion information, gender information, or age information.

In summary, in the input device provided by the aspects of the present disclosure, the matching algorithm corresponding to the voice data in the set of matching algorithms is selected by the selecting module according to the non-voice text information, the voice text and the corresponding relationships between the different voice texts and the target texts is used by the first matching sub-module as the input of the matching algorithm corresponding to the voice data, to obtain the output of the matching algorithm, so that the corresponding matching algorithm may be selected for quick input of different voice text information, and the flexibility of the shortcut input is improved.

<FIG> is a block diagram illustrating an input device according to yet another exemplary aspect. Referring to <FIG>, the device is based on the block diagram shown in <FIG>, optionally, the device further includes an information module <NUM>.

The information module <NUM> is configured to obtain state information of the terminal to which the user inputs the voice data.

The matching sub-module <NUM> includes a second matching sub-module B configured to use the state information of the terminal, the voice text, and the corresponding relationships as an input of the matching algorithm to obtain an output of the matching algorithm.

In summary, in the input device provided by the aspects of the present disclosure, the information module obtains the state information of the terminal to which the user inputs the voice data, the second matching sub-module uses the state information of the terminal, the voice text, and the corresponding relationships as the input of the matching algorithm to obtain the output of the matching algorithm, so that it is realized that the state information of the terminal can be the input of the matching algorithm, thereby the flexibility of matching may be improved, and the flexibility of the quick input is improved.

With respect to the device in the above aspect, the specific manners for performing operations for individual modules therein have been described in detail in the aspects regarding the method, which will not be elaborated herein.

<FIG> is a block diagram illustrating a terminal according to yet another exemplary aspect. As shown in <FIG>, the terminal may include a processor <NUM> and a memory <NUM> for storing computer instructions.

The processor <NUM> executes the computer instructions to perform the following method:.

In a possible implementation manner, the obtaining, according to the voice text, text to-be-input corresponding to the voice data includes:.

In a possible implementation manner, the deciding, according to the voice text and corresponding relationships between different voice texts and target texts, whether there is a target text that matches the voice text includes:.

In a possible implementation manner, the method further includes:.

The using the voice text and the corresponding relationships between the different voice texts and the target texts as an input of a matching algorithm to obtain an output of the matching algorithm includes:
using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm corresponding to the voice data, to obtain the output of the matching algorithm.

In one possible implementation manner, the non-voice text information includes at least one of the following:
emotion information, gender information, or age information.

In a possible implementation manner, the method further includes:
obtaining state information of a terminal to which the user inputs the voice data;.

The using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm, to obtain the output of the matching algorithm includes:
using the state information of the terminal, the voice text, and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm, to obtain the output of the matching algorithm.

<FIG> is a block diagram illustrating a terminal <NUM> according to another exemplary aspect. For example, the terminal <NUM> may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical equipment, a fitness equipment, a personal digital assistant, and the like.

Referring to <FIG>, the terminal <NUM> may include one or more of the following components: a processing component <NUM>, a memory <NUM>, a power component <NUM>, a multimedia component <NUM>, an audio component <NUM>, an input/output (I/O) interface <NUM>, a sensor component <NUM>, and a communication component <NUM>.

The processing component <NUM> typically controls overall operations of the terminal <NUM>, such as the operations associated with display, telephone calls, data communications, camera operations, and recording operations.

The memory <NUM> is configured to store various types of data to support the operation of the terminal <NUM>. Examples of such data include instructions for any applications or methods operated on the terminal <NUM>, contact data, phonebook data, messages, pictures, video, etc. The memory <NUM> may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.

The power component <NUM> provides power to various components of the terminal <NUM>. The power component <NUM> may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power for the terminal <NUM>.

The multimedia component <NUM> includes a screen providing an output interface between the terminal <NUM> and the user. In some aspects, the screen may include a liquid crystal display (LCD) and a touch panel (TP). The touch panel includes one or more touch sensors to sense touches, slips, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or slip action, but also sense a period of time and a pressure associated with the touch or slip action. In some aspects, the multimedia component <NUM> includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive an external multimedia datum while the terminal <NUM> is in an operation mode, such as a photographing mode or a video mode.

The audio component <NUM> is configured to output and/or input audio signals. For example, the audio component <NUM> includes a microphone ("MIC") configured to receive an external audio signal when the terminal <NUM> is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory <NUM> or transmitted via the communication component <NUM>. In some aspects, the audio component <NUM> further includes a speaker to output audio signals.

The I/O interface <NUM> provides an interface between the processing component <NUM> and peripheral interface modules (such as a keyboard, a click wheel, buttons, and the like).

The sensor component <NUM> includes one or more sensors to provide status assessments of various aspects of the terminal <NUM>. For instance, the sensor component <NUM> may detect an open/closed status of the terminal <NUM>, relative positioning of components, e.g., the display and the keypad, of the terminal <NUM>, a change in position of the terminal <NUM> or a component of the terminal <NUM>, a presence or absence of user contact with the terminal <NUM>, an orientation or an acceleration/deceleration of the terminal <NUM>, and a change in temperature of the terminal <NUM>. In some aspects, the sensor component <NUM> may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component <NUM> is configured to facilitate communication, wired or wirelessly, between the terminal <NUM> and other devices. The terminal <NUM> can access a wireless network based on a communication standard, such as WiFi, <NUM>, or <NUM>, or a combination thereof. In one exemplary aspect, the communication component <NUM> receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one exemplary aspect, the communication component <NUM> further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In exemplary aspects, the terminal <NUM> may be implemented with 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, micro-controllers, microprocessors, or other electronic components, for performing the above-described methods.

In exemplary aspects, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory <NUM> including the instructions, executable by the processor <NUM> in the terminal <NUM>, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.

A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform an input method including:.

It is noted that the various modules, sub-modules, units, and components in the present disclosure can be implemented using any suitable technology. For example, a module may be implemented using circuitry, such as an integrated circuit (IC). As another example, a module may be implemented as a processing circuit executing software instructions.

Claim 1:
An input method, comprising:
recognizing (<NUM>) voice data inputted by a user, and obtaining a voice text corresponding to the voice data;
obtaining (<NUM>), based on the voice text, a text to-be-input corresponding to the voice data, wherein the text to-be-input includes a plurality of words constituting a phrase or a sentence; and
displaying (<NUM>) the text to-be-input in an input textbox of an input interface, wherein obtaining (<NUM>) the text to-be-input comprises:
determining (<NUM>), based on the voice text and corresponding relationships between different voice texts and target texts, whether the corresponding relationships include a target text that matches the voice text; wherein the corresponding relationships preset by a server or by a user are stored together with said different voice texts and target texts,
when the corresponding relationships include the target text that matches the voice text, designating the target text as the text to-be-input; and
when the corresponding relationships do not include the target text that matches the voice text, designating the voice text as the text to-be-input;
wherein the determining (<NUM>) whether the corresponding relationships include the target text that matches the voice text comprises:
using the voice text and the corresponding relationships between the different voice texts and the target texts as an input of a matching algorithm to obtain an output of the matching algorithm; and
determining, based on the output of the matching algorithm, whether the corresponding relationships include the target text that matches the voice text,
characterized in that the method further comprises:
determining, based on the voice data, non-voice text information of the voice data, wherein the non-voice text information comprises at least one of emotion information, gender information, and age information; and
selecting the matching algorithm corresponding to the voice data from a set of matching algorithms based on the non-voice text information,
wherein using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of a matching algorithm to obtain the output of the matching algorithm comprises using the voice text and the corresponding relationships between the different voice texts and the target texts as the input of the matching algorithm corresponding to the voice data, to obtain the output of the matching algorithm.