Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
An information input method, an information input device, and a terminal device according to embodiments of the present application are described below with reference to the drawings.
Fig. 1 is a flowchart of an information input method according to an embodiment of the present application.
As shown in fig. 1, the information input method includes:
step 101, detecting a trigger operation of a user on an input box in an application program interactive interface.
Specifically, the information input method provided by the present embodiment is applied to an application program (simply referred to as an application) having a function of interacting information with a user. Since there are many service providers, for example: map service providers, e-commerce, audio video service providers, etc., search service providers, etc., different service providers providing different applications.
In the interactive interface provided by the application of the embodiment to the user, in order to meet different input requirements of the user, a plurality of input modes are supported, for example: a voice input mode, a text input mode, and the like. Therefore, in the process of using various applications by a user, when information needs to be input into an interactive interface provided by the current application, the input mode of the information is firstly selected according to a specific application scene.
In order to avoid deploying a corresponding input mode guidance icon for each input mode in the interactive interface, the information input method provided by this embodiment provides the corresponding input mode to the user by detecting different trigger operations of the user on the input box.
Therefore, it is necessary to detect a trigger operation of a user on an input box in an interactive interface of a terminal device in real time so as to obtain an information input mode corresponding to the trigger operation provided to the user.
It should be noted that, the triggering operation of the user on the input box in the interactive interface may be detected through the data change of the sensor on the terminal device interacting with the current application program.
The types of the sensors correspondingly arranged on the terminal equipment are different, and for example, the types of the sensors include at least one of the following: capacitive sensor, pressure sensor, gravity sensor. Because the types of data collected by different types of sensors are different, the subsequent judgment standards are also different. And may be selected according to the specific application requirements. The types of the triggering operation of the user on the input box in the interactive interface are many, and include:
a single click operation, a double click operation, a press operation, or a shake operation.
And step 102, providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation.
Specifically, the information input method provided in this embodiment may preset a corresponding relationship between the trigger operation and the information input method. It should be noted that there are many setting ways of the corresponding relationship between the trigger operation and the information input way, including:
may be pre-cured by the service provider, and/or,
may be generated through machine learning based on the user's usage habits, and/or,
the user can actively set according to own requirements.
It should be noted that the content of the correspondence between the trigger operation and the information input method may be set according to specific situations, for example, as follows:
when the triggering operation of the user on the interactive interface input box is a clicking operation, the corresponding information input mode is a text input mode; or,
when the triggering operation of the user on the interactive interface input box is a double-click operation, the corresponding information input mode is a voice input mode; or,
when the triggering operation of the user on the interactive interface input box is sliding operation, the corresponding information input mode is a flow chart input mode; or,
when the triggering operation of the user on the input box of the interactive interface is shaking operation after the input box is focused, the corresponding information input mode is a picture input mode; or,
when the trigger operation is a pressing operation, an information input mode corresponding to a pressure value of the pressing operation may be set in advance, for example:
when the pressure value of the pressing operation of the user on the interactive interface input box is smaller than a preset threshold value and is a light pressing operation, the corresponding information input mode is a text input mode; or,
when the pressure value of the pressing operation of the user on the interactive interface input box is greater than or equal to the preset threshold value and the pressing operation is the heavy pressing operation, the corresponding information input mode is a voice input mode.
It should be emphasized that the above is merely an example, and the content of the corresponding relationship between the triggering operation of the user on the input box and the information input method may be set or adjusted according to a specific application scenario, which is not limited in this embodiment.
Therefore, the information input mode corresponding to the triggering operation of the current user on the input frame is obtained from the preset corresponding relation, and an information input interface corresponding to the information input mode is provided for the user. It can be understood that different information input modes correspond to different information input interfaces.
Further, when an information input interface corresponding to a trigger operation on the input frame is provided to the user, the user inputs information according to an information input mode corresponding to the trigger operation. Examples are as follows:
when the information input mode is a text mode, providing an input method keyboard for the user, and then the user inputs text information, or,
and when the information input mode is a voice mode, providing a voice input identification for the user, and then inputting voice information by the user.
It should be emphasized that the above is merely an example, and the type of the input method keyboard on the information input interface or the pattern of the voice input identifier may be adjusted, which is not limited in this embodiment.
The information input method of the embodiment detects the triggering operation of a user on an input frame in an interactive interface of the terminal equipment; and providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation. Therefore, the selection and switching functions of various information input modes are simplified, a user can call the required input mode through the triggering operation of the input box, the switching processing at different positions of an interactive interface is avoided, and the information input efficiency is improved.
Fig. 2 is a flowchart of an information input method according to another embodiment of the present application.
As shown in fig. 2, the information input method includes the steps of:
step 201, detecting a trigger operation of a user on an input frame in an application program interaction interface through a capacitance sensor on a terminal device.
Specifically, a large number of capacitive sensors are deployed on a touch screen of the terminal device, and since a finger of a user is equivalent to another electrode plate of the capacitor, the change of capacitance data on the touch screen is different according to different trigger operations of the user on the touch screen. Therefore, the triggering operation of the user on the input frame is detected by monitoring the capacitance value change on the touch screen corresponding to the input frame.
Step 202, providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation.
The specific implementation process of step 202 in this embodiment may refer to step 102 in the above embodiments, and is not described here again.
Step 203, receiving the input information corresponding to the information input mode input by the user.
And step 204, displaying the input information in the input box.
Specifically, after a user selects a required information input mode through a trigger operation on an input box, input information corresponding to the information input mode and input by the user is received, and the input information is displayed in the input box of the interactive interface and is displayed to the user.
It should be noted that, because different information input methods correspond to different input information, the process of displaying the input information in the input box is also different, and the following example is given:
as an example, the text input method is specifically as follows:
and when the information input mode is a text mode, receiving text information input by the user through an input method keyboard, and directly displaying the text information in the input box.
As another example, the voice input mode is specifically as follows:
when the information input mode is a voice mode, receiving voice information input by the user through a voice input interface, and identifying the voice information to acquire corresponding text information; displaying the text information in the input box.
In order to more clearly describe the above embodiment, the selection of the voice input mode through the trigger operation on the input box shown in fig. 3 to 5 is taken as an example, and the following is detailed:
fig. 3 is a first schematic interface diagram of the information input method provided in this embodiment, and referring to fig. 3, an interactive interface provided for an application program, for example,
when a user needs to input price information, if the price input box is slightly pressed (namely the pressure is smaller than a preset threshold), a keyboard corresponding to a text input mode is provided for the user; and if the price input box is pressed again (namely the pressure is greater than or equal to the preset threshold), providing a voice input identification corresponding to the voice input mode for the user. As shown in fig. 4.
Fig. 4 is a second interface schematic diagram of the information input method provided in this embodiment. Referring to fig. 4, after the user presses the voice input identifier for a long time and finishes speaking the price, the finger is released, the system performs voice recognition and fills the text into the page, and the voice input is finished, as shown in fig. 5.
Fig. 5 is a third interface schematic diagram of the information input method provided in this embodiment, and referring to fig. 5, 123 yuan is displayed on the price input box of the interactive interface.
The information input method of the embodiment detects the triggering operation of a user on an input frame in an interactive interface of the terminal equipment; and providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation, receiving input information corresponding to the information input mode and input by the user, and displaying the input information in the input frame. Therefore, the selection and switching functions of various information input modes are simplified, a user can call the required input mode through the triggering operation of the input box, the switching processing at different positions of an interactive interface is avoided, and the information input efficiency is improved.
In order to implement the above embodiments, the present application further provides an information input device.
Fig. 6 is a schematic structural diagram of an information input device according to an embodiment of the present application.
As shown in fig. 6, the information input apparatus includes:
the detection module 11 is used for detecting the triggering operation of the user on an input box in the application program interactive interface;
and the processing module 12 is configured to provide an information input interface corresponding to the information input mode to the user according to a preset information input mode corresponding to the trigger operation.
In one embodiment, the detection module 11 is configured to:
and detecting the triggering operation of the user on an input box in the application program interactive interface through a sensor on the terminal equipment.
Wherein the types of sensors include:
a capacitive sensor, a pressure sensor, or a gravity sensor.
Wherein the triggering operation comprises:
a single click operation, a double click operation, a press operation, or a shake operation.
In one embodiment, when the triggering operation is a pressing operation, the preset information input mode corresponding to the triggering operation includes:
an information input mode corresponding to the pressure value of the pressing operation is set. In particular, the processing module 12 is configured to:
in one embodiment, when the information input mode is a text mode, an input method keyboard is provided for the user; or,
in one embodiment, when the information input mode is a voice mode, a voice input identification is provided for the user.
It should be noted that the foregoing explanation of the embodiment of the information input method is also applicable to the information input device of the embodiment, and is not repeated here.
The information input device of the embodiment of the application detects the triggering operation of a user on an input frame in an interactive interface of the terminal equipment; and providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation. Therefore, the selection and switching functions of various information input modes are simplified, a user can call the required input mode through the triggering operation of the input box, the switching processing at different positions of an interactive interface is avoided, and the information input efficiency is improved.
Fig. 7 is a schematic structural diagram of an information input device according to another embodiment of the present application, and as shown in fig. 7, based on the embodiment shown in fig. 6, the information input device further includes:
a receiving module 13, configured to receive input information corresponding to the information input manner, which is input by the user;
and the display module 14 is used for displaying the input information in the input box.
In one embodiment of the present invention,
the receiving module 13 is configured to: when the information input mode is a text mode, receiving the text information input by the user through an input method keyboard,
the display module 14 is configured to: displaying the text information in the input box.
In one embodiment of the present invention,
the receiving module 13 is configured to: when the information input mode is a voice mode, receiving voice information input by the user through a voice input interface;
the display module 14 is configured to: and identifying the voice information to acquire corresponding text information, and displaying the text information in the input box.
It should be noted that the foregoing explanation of the embodiment of the information input method is also applicable to the information input device of the embodiment, and the implementation principle is similar, and is not repeated here.
The information input device of the embodiment detects the triggering operation of a user on an input frame in an interactive interface of the terminal equipment; and providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation, receiving input information corresponding to the information input mode and input by the user, and displaying the input information in the input frame. Therefore, the selection and switching functions of various information input modes are simplified, a user can call the required input mode through the triggering operation of the input box, the switching processing at different positions of an interactive interface is avoided, and the information input efficiency is improved.
In order to implement the foregoing embodiment, the present application further provides a terminal device, including: the device body, and the information input device provided by the above embodiment of the present invention.
It should be noted that the foregoing explanation on the embodiment of the information input method is also applicable to the terminal device of the embodiment, and is not repeated here.
The terminal device provided by the embodiment detects the triggering operation of the user on the input frame in the interactive interface of the terminal device; and providing an information input interface corresponding to the information input mode for the user according to a preset information input mode corresponding to the trigger operation. Therefore, the selection and switching functions of various information input modes are simplified, a user can call the required input mode through the triggering operation of the input box, the switching processing at different positions of an interactive interface is avoided, and the information input efficiency is improved.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present application may be integrated into one proxy module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.