Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Below with reference to the accompanying drawings in search interface, provide input interface control method and the device of the embodiment of the present invention are described.
The present invention proposes a kind of control method providing input interface in search interface, comprising: provide search interface, wherein, search interface has search box; Receive user to the trigger action of search box; If trigger action is the first trigger action, then in search interface, provide Text Input interface; And if trigger action is the second trigger action, then provide speech input interface in search interface.
Fig. 2 for providing the process flow diagram of the control method of input interface according to an embodiment of the invention in search interface;
As shown in Figure 2, the control method providing input interface in search interface of the embodiment of the present invention, can comprise:
S201, provides search interface, and wherein search interface has search box.
Wherein, in an embodiment of the present invention, search interface may be provided in mobile terminal.That is, in search interface, the control method of input interface is provided to be applicable to mobile terminal.Wherein, this mobile terminal can be the hardware device that mobile phone, panel computer, personal digital assistant etc. have various operating system.
In addition, the search box of the present embodiment can be understood as user is used for inputting a corresponding search word or voice messaging tool box when the information of search, and Word message or the identified voice messaging of user's input all can here show intuitively.
Such as, that supposes that the control method of the embodiment of the present invention is applied to mobile terminal has in the browser application of function of search, when user opens this browser application, this browser application can be user and provides search interface, and this search interface has search box.User can carry out corresponding trigger action in this search box.
S202 receives user to the trigger action of search box.
Wherein, in an embodiment of the present invention, trigger action can include but not limited to click, double-click, long by etc. operation.
Particularly, when the trigger action that user inputs for search box being detected, this trigger action can be received, can judge this trigger action afterwards, and providing different input interfaces according to judged result.
S203, if trigger action is the first trigger action, then provides Text Input interface in search interface.
Wherein, in an embodiment of the present invention, the first trigger action can be clicking operation, namely carries out clicking operation to the search box position of search interface, and this clicking operation can be to be clicked or the operation such as double-click.
For example, if detect that user has carried out clicking operation to search box, Text Input plug-in unit (as dummy keyboard) then on mobile terminal device will be called, namely search interface provides text event detection interface for user, user can by phonetic, five, the mode such as hand-written inputs relevant text.
S204, if trigger action is the second trigger action, then provides speech input interface in search interface.
Wherein, in an embodiment of the present invention, the second trigger action can be long by operation.In an embodiment of the present invention, long can be understood as that user do not leave by operation pin search box a period of time (being such as 1 second).
Such as, when detecting that user grows by operation search box, phonetic entry button can be provided in search interface, so that user enters phonetic entry by this button.
In order to make those skilled in the art understanding the present invention clearly, can illustrate below.
For example, as shown in Figure 3, suppose that the control method of input interface that provides in search interface of the embodiment of the present invention is applied in the browser application of mobile terminal, when user opens this application program, this application program is provided as user and provides search interface, this search interface has search box C, user can carry out corresponding operating to enter input pattern to search box C, when detecting that user clicks search box C, Text Input interface can be provided in search interface, namely in search interface, provide soft keyboard so that user carries out Text Input; When detecting with the head of a household by search box C, speech input interface can be provided in search interface, and open the microphone of mobile terminal, to receive the speech data of user.
The control method that input interface is provided in search interface of the embodiment of the present invention, first can provide search interface, this search interface has search box, the trigger action of user to search box can be received afterwards, if trigger action is the first trigger action, then can provide Text Input interface in search interface, if trigger action is the second trigger action, then can provide speech input interface in search interface, namely passing through Text Input and phonetic entry unification is an entrance, only need according to user to the different trigger actions of search box (as clicked, long to press) be defined as user Text Input interface or speech input interface are provided, more focus on for input, improve the switching efficiency of input mode, improve Consumer's Experience, and the unnecessary buttons that can effectively reduce on searched page, the page is made to seem more succinct.
It should be noted that, in one embodiment of the invention, should in search interface, the control method of input interface be provided also to can be applicable in the Mobile solution needing phonetic entry and Text Input mutually to switch, such as chat application, so that user carries out the mutual switching of phonetic entry, Text Input.
Fig. 4 is the process flow diagram of the control method providing input interface in accordance with another embodiment of the present invention in search interface.
As shown in Figure 4, should in search interface, the control method of input interface be provided to comprise:
S401, provides search interface, and wherein, search interface has search box.
S402, receives user to the trigger action of search box.
S403, if trigger action is the first trigger action, then provides Text Input interface in search interface.
S404, if trigger action is the second trigger action, then provides speech input interface in search interface.
S405, receives the speech data of user's input.
Wherein, speech data can be understood as user by long by after the search box of search interface, search interface there will be the virtual microphone on invoked mobile terminal, when the microphone plug-in unit of mobile terminal is called, what is said or talked about facing to the microphone of mobile terminal for user.
S406, identifies to generate search word to speech data.
Particularly, by speech recognition technology, this speech data is identified, to identify text message corresponding in this speech data, and using text information as search word.
S407, carries out searching for obtain Search Results and being provided to user according to search word.
For example, want in the information of mobile phone terminal search about " apple " for user, this user can pass through mobile phone open browser and (suppose that user has downloaded the APP of this browser at mobile phone terminal, and this browser application the present invention), when the search box of user to the search interface of this browser is grown by operation, speech input interface can be provided on search interface, namely on search interface, microphone virtual interface is provided, microphone plug-in unit simultaneously in this terminal is called, this browser application provides speech input interface for user, now, user can clearly say " apple " two words facing to the microphone of terminal, when judging user speech end of input, can identify to identify text message " apple " to the speech data of user's input, can will should " apple " search for as search word afterwards, user can see accordingly about the information of " apple " on the result of page searching of this browser.
The control method that input interface is provided in search interface of the embodiment of the present invention, there is provided speech input interface in search interface after, receive the speech data of user's input, and identify to obtain search word to this speech data, and search for according to this search word, and Search Results is supplied to user, achieve the function of phonetic search, facilitate the search operation of user, improve the search experience of user.
Further, in one embodiment of the invention, should in search interface, the control method of input interface be provided also can to comprise: in search interface, provide image input key, image input key can be positioned at the side of search box.Thus, extend the input mode of user, namely user also can carry out image input by this image input key, and the input improving user is experienced.
In order to realize above-described embodiment, the invention allows for a kind of control device that input interface is provided in search interface, comprising: first provides module, and for providing search interface, wherein, search interface has search box; First receiver module, for receiving the trigger action of user to search box; Second provides module, for when trigger action is the first trigger action, provides Text Input interface in search interface; And provide module also for when trigger action is the second trigger action, in search interface, provide speech input interface.
Fig. 5 is the structured flowchart of the control device providing input interface according to an embodiment of the invention in search interface.
As shown in Figure 5, should in search interface, provide the control device of input interface can comprise the first control module 100, first receiver module 200 and second and module 300 was provided.
Particularly, first provides module 100 for providing search interface, and wherein, search interface has search box.Wherein, in an embodiment of the present invention, search interface may be provided in mobile terminal.That is, in search interface, the control method of input interface is provided to be applicable to mobile terminal.Wherein, this mobile terminal can be the hardware device that mobile phone, panel computer, personal digital assistant etc. have various operating system.In addition, the search box of the present embodiment can be understood as user is used for inputting a corresponding search word or voice messaging tool box when the information of search, and Word message or the identified voice messaging of user's input all can here show intuitively.
Such as, that supposes that the control device of the embodiment of the present invention is applied to mobile terminal has in the browser application of function of search, when user opens this browser application, first of this browser application provides module 100 to can be user and provides search interface, and this search interface has search box.
First receiver module 200 can be used for receiving user to the trigger action of search box.Wherein, in an embodiment of the present invention, trigger action can include but not limited to click, double-click, long by etc.More specifically, the first receiver module 200, when the trigger action that user inputs for search box being detected, can receive this trigger action, can judge afterwards, and provide different input interfaces according to judged result to this trigger action.
Second provides module 300 when trigger action is the first trigger action, can provide Text Input interface in search interface, and when trigger action is the second trigger action, in search interface, provides speech input interface.
Wherein, in an embodiment of the present invention, the first trigger action can be clicking operation, namely carries out clicking operation to the search box position of search interface, and this clicking operation can be to be clicked or the operation such as double-click.In addition, the second trigger action can be long by operation, in an embodiment of the present invention, long can be understood as that user do not leave by operation pin search box a period of time (being such as 1 second).
For example, if detect that user has carried out clicking operation to search box, then second provide module 300 can call Text Input plug-in unit (as dummy keyboard) on mobile terminal device, user can by phonetic, five, the mode such as hand-written inputs relevant text.If when detecting that user grows by operation search box, second provides module 300 can provide phonetic entry button in search interface, so that user enters phonetic entry by this button.
The control device that input interface is provided in search interface of the embodiment of the present invention, module is provided to provide search interface by first, wherein search interface has search box, first receiver module receives user to the trigger action of search box, second provides module when trigger action is the first trigger action, Text Input interface is provided in search interface, and when trigger action is the second trigger action, speech input interface is provided in search interface, namely passing through Text Input and phonetic entry unification is an entrance, only need according to user to the different trigger actions of search box (as clicked, long to press) be defined as user Text Input interface or speech input interface are provided, more focus on for input, improve the switching efficiency of input mode, improve Consumer's Experience, and the unnecessary buttons that can effectively reduce on searched page, the page is made to seem more succinct.
Further, in one embodiment of the invention, as shown in Figure 6, in this search interface, the control device of input interface is provided also to comprise: the second receiver module 400, generation module 500 and acquisition module 600.
Particularly, the second receiver module 400, for providing after module 300 provides speech input interface in search interface second, receives the speech data of user's input.Wherein, speech data can be understood as user by long by after the search box of search interface, search interface there will be the virtual microphone on invoked mobile terminal, when the microphone plug-in unit of mobile terminal is called, what is said or talked about facing to the microphone of mobile terminal for user.
Generation module 500 is for identifying to generate search word to speech data.More specifically, generation module 500 identifies this speech data by speech recognition technology, to identify text message corresponding in this speech data, and using text information as search word.
Acquisition module 600 is for carrying out searching for obtain Search Results and being supplied to user according to search word.
For example, want in the information of mobile phone terminal search about " apple " for user, this user can pass through mobile phone open browser and (suppose that user has downloaded the APP of this browser at mobile phone terminal, and this browser application the present invention), when the search box of user to the search interface of this browser is grown by operation, second provides module 300 can provide speech input interface on search interface, namely on search interface, microphone virtual interface is provided, microphone plug-in unit simultaneously in this terminal is called, this browser application provides speech input interface for user, now, user can clearly say " apple " two words facing to the microphone of terminal, when judging user speech end of input, second receiver module 400 can receive the speech data of user's input, generation module 500 can identify to identify text message " apple " to the speech data of user's input, acquisition module 600 can will should " apple " be searched for as search word, user can see accordingly about the information of " apple " on the result of page searching of this browser.
Thus, after providing speech input interface by the second receiver module in search interface, receive the speech data of user's input, generation module identifies to obtain search word to this speech data, acquisition module is searched for according to this search word, and Search Results is supplied to user, achieves the function of phonetic search, facilitate the search operation of user, improve the search experience of user.
Further, in one embodiment of the invention, as shown in Figure 7, should in search interface, the control device of input interface be provided also can to comprise: the 3rd provides module 700.
Particularly, the 3rd provides module 700 for providing image input key in search interface, and in one embodiment of the invention, image input key is positioned at the side of search box.For example, user can complete the input of picture by clicking this image key, and after user's end of input, can identify the image of user's input, to identify the characteristic information in image, search word can be generated according to this characteristic information afterwards, and search for according to this search word, and Search Results is supplied to user.Wherein, in an embodiment of the present invention, image can be the picture of certain fruit, the photo of certain star, the picture of certain cosmetics, certain placard, the sectional drawing of books section word or the photo etc. of mathematical formulae.
For example, picture with " HappyBirthday " printed words is input in the search box of browser by image input key by user, browser identifies the text message " HappyBirthday " corresponding to this image by image recognition technology, can search for according to this " HappyBirthday " afterwards, and corresponding Search Results is presented to user.
Thus, there is provided module in search interface, provide image input key by the 3rd, image input key can be positioned at the side of search box, extends the input mode of user, namely user also can carry out image input by this image input key, and the input improving user is experienced.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.