CN108897466B - Input method panel adjusting method, device, equipment and storage medium - Google Patents

Input method panel adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN108897466B
CN108897466B CN201810516534.8A CN201810516534A CN108897466B CN 108897466 B CN108897466 B CN 108897466B CN 201810516534 A CN201810516534 A CN 201810516534A CN 108897466 B CN108897466 B CN 108897466B
Authority
CN
China
Prior art keywords
input
panel
input method
voice
view
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810516534.8A
Other languages
Chinese (zh)
Other versions
CN108897466A (en
Inventor
杨李莲
田思明
刘荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810516534.8A priority Critical patent/CN108897466B/en
Publication of CN108897466A publication Critical patent/CN108897466A/en
Application granted granted Critical
Publication of CN108897466B publication Critical patent/CN108897466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The present disclosure provides an input method panel adjustment method, apparatus, device and storage medium, the method comprising: when the input method is called and the preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view; and displaying the updated input method panel. According to the method and the device for adjusting the original input method panel, when the input method is called and the layout condition of the preset panel is met, the original input method panel corresponding to the input method is adjusted, so that the voice input view can automatically appear on the input method panel, a user is guided to use voice input, and therefore the input efficiency is improved.

Description

Input method panel adjusting method, device, equipment and storage medium
Technical Field
The present application relates to the field of input method technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting a panel of an input method.
Background
The basic principle of voice input is to receive the voice of an operator, and then recognize the voice of the operator into Chinese characters through a voice recognition technology for input. With the improvement of the demand of people, the voice input can be regarded as the simplest and most easy-to-use input method at present, and the input can be completed only by speaking without manually typing by a user. For example, in some chat applications having a voice input control and a text input control, a user may enter voice input by clicking on the voice input control and text input by clicking on the text input control.
In practical applications, some applications do not provide a voice input control in the presentation page, but only present a text input control. If the user clicks the input control, the system calls the input method and displays the original input method panel corresponding to the input method near the input control. The user often can only input text information through the original input method panel, and the input efficiency is low.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an input method panel adjustment method, apparatus, device, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an input method panel adjustment method, including:
when the input method is called and the preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view;
and displaying the updated input method panel.
In an optional implementation manner, the preset panel layout condition at least includes: and the scene of the input operation executed based on the input control is a search scene, and the input control is an input control for triggering the input method to be called.
In an alternative implementation, whether the scene to which the input operation belongs is a search scene is determined based on whether the attribute of the input control contains a specified attribute.
In an optional implementation manner, the preset panel layout condition includes one or more of the following:
the input method belongs to input methods in a white list;
the terminal equipment executing the input method panel adjusting method is in a vertical screen state;
the view type of the view in the original input method panel is in a specified view type set;
the original input method panel is not in a user adjustment state;
the soft keyboard view of the original input method panel is not in a suspension state;
the target application where the input control is located does not belong to the applications in the blacklist, and the blacklist comprises the applications which have provided the voice input control.
In an optional implementation, the method further includes:
and informing a target application that the current input is voice input so that the target application identifies the input voice data, and jumping to a result page corresponding to a specified keyword when the specified keyword is identified, wherein the target application is the application of the input control.
In an optional implementation, the method further includes:
and when voice data are received, sound decibel animation display is carried out according to the voice data.
According to a second aspect of the embodiments of the present disclosure, there is provided an input method panel adjustment apparatus, the apparatus including:
the panel updating module is configured to adjust an original input method panel corresponding to the input method when the input method is called and a preset panel layout condition is met, so as to obtain an updated input method panel added with a voice input view;
and the panel display module is configured to display the updated input method panel.
In an optional implementation manner, the preset panel layout condition at least includes: and the scene of the input operation executed based on the input control is a search scene, and the input control is an input control for triggering the input method to be called.
In an alternative implementation, whether the scene to which the input operation belongs is a search scene is determined based on whether the attribute of the input control contains a specified attribute.
In an optional implementation manner, the preset panel layout condition includes one or more of the following:
the input method belongs to input methods in a white list;
the terminal equipment executing the input method panel adjusting device is in a vertical screen state;
the view type of the view in the original input method panel is in a specified view type set;
the original input method panel is not in a user adjustment state;
the soft keyboard view of the original input method panel is not in a suspension state;
the target application where the input control is located does not belong to the applications in the blacklist, and the blacklist comprises the applications which have provided the voice input control.
In an optional implementation, the apparatus further comprises:
and the information notification module is configured to notify a target application that the current input is voice input so that the target application recognizes the input voice data, and when a specified keyword is recognized, jumping to a result page corresponding to the specified keyword, wherein the target application is the application where the input control is located.
In an optional implementation, the apparatus further comprises:
and the animation display module is configured to display sound decibels in an animation mode according to the voice data when the voice data are received.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the input method is called and the preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view;
and displaying the updated input method panel.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any of the methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method and the device for adjusting the original input method panel, when the input method is called and the layout condition of the preset panel is met, the original input method panel corresponding to the input method is adjusted, so that the voice input view can automatically appear on the input method panel, a user is guided to use voice input, and therefore the input efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1A is a flowchart illustrating an input method panel adjustment method according to an exemplary embodiment of the present disclosure.
FIG. 1B is a schematic diagram of an input method panel shown in accordance with an exemplary embodiment of the present disclosure.
FIG. 2 is a flow chart illustrating another input method panel adjustment method according to an exemplary embodiment of the present disclosure.
FIG. 3 is a block diagram illustrating a speech input according to an exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating an input method panel adjustment apparatus according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating another input method panel adjustment apparatus according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating another input method panel adjustment apparatus according to an exemplary embodiment of the present disclosure.
FIG. 7 is a block diagram illustrating an apparatus for input method panel adjustment according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Some applications do not provide voice input controls in the presentation page, but only present one text input control. If the user clicks the input control, the system calls the input method and displays an input method panel corresponding to the input method near the input control. The user often can only input text information through the input method panel, and the input efficiency is low.
In order to avoid the problem of low input efficiency, according to the embodiment of the disclosure, when the input method is called and the preset panel layout condition is satisfied, the original input method panel corresponding to the input method is adjusted to automatically present a voice input view on the input method panel to guide a user to use voice input, so that the input efficiency is improved. The embodiments of the present disclosure are described below with reference to the accompanying drawings.
As shown in fig. 1A, fig. 1A is a flowchart illustrating an input method panel adjustment method according to an exemplary embodiment of the present disclosure, which may include the steps of:
in step 101, when an input method is called and a preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view;
in step 102, the updated input method panel is displayed.
The embodiment of the disclosure can be used in a terminal with an input method system, in particular in an Input Method Framework (IMF) in the terminal. The smart terminal may be a smart phone, a tablet computer, a PDA (Personal Digital Assistant), an e-book reader, a multimedia player, and the like. In one example, the InputMethodService is a class that each three-party input method needs to inherit, and can be regarded as an interface class provided by an android input method framework for a third-party developer, and a layout process can be replaced in a showwindowInner method (which is used for displaying an input method panel) in the inputmethod framework.
For convenience of description, the input method panel of the nine-grid keyboard is exemplified in the embodiments of the present disclosure. As shown in fig. 1B, fig. 1B is a schematic diagram of an input method panel shown in the present disclosure according to an exemplary embodiment. "Sudoku keyboard," also known as a "keypad," means a keyboard that maps 26 letters to 1-9 numeric keys for input. It should be understood by those skilled in the art that the foregoing examples are merely examples for illustrating the present disclosure, and should not be construed as limiting the present disclosure in any way, and the input method panel in the embodiments of the present disclosure may also be other types of input method panels, such as a full keyboard input method panel and a handwriting input method panel. The input method panel includes multiple types of views, for example, the input method panel may include a soft keyboard view, a candidate word view, and the like.
And when the input method is called and the preset panel layout condition is met, adjusting the original input method panel corresponding to the input method to obtain an updated input method panel added with the voice input view.
When the triggering event of the input control is monitored, the system can call the input method. As can be seen, the input control is an input control that causes the input method to be invoked. The input control may be a control for a user to input information, and may also be referred to as an input box, particularly a text input box. When the user clicks on the input control, the system may parse the click event, thereby invoking the input method. The input method may be a three-way input method, such as a Baidu input method, a dog search input method, or the like.
The preset panel layout condition may be a preset condition for determining whether to adjust the input method panel. In one example, when an input method is called and a preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view; when the input method is called and the layout condition of the preset panel is not met, the original input method panel can be directly displayed.
It can be understood that, in order to distinguish different input method panels, an input method panel originally corresponding to an input method is named as an original input method panel, and an adjusted input method panel is named as an updated input method panel.
In an optional implementation manner, the preset panel layout condition at least includes: and the scene of the input operation executed based on the input control is a search scene, and the input control is an input control for triggering the input method to be called.
In this embodiment, the scene to which the input operation performed based on the input control belongs may be an application scene in which information is input by using the input control. Different applications have different purposes of providing input controls, different scenes of input operation belong to, and different instructions executed after information is input by using the input controls. In a search scenario, after the information input based on the input control is completed, a search instruction may be executed. Accordingly, the input control may also be referred to as a search input control, a search box, or the like. For example, an input control provided for searching for an application in a smartphone is a search scenario to which a scenario to which an input operation executed based on the input control belongs. For another example, an input control provided for searching for a file, where a scene to which an input operation performed based on the input control belongs is a search scene. As another example, the input control can be a search box or the like provided by a search application such as a browser.
According to the method and the device, the current input scene is the search scene and serves as the preset panel layout condition, voice input can be provided in the search scene, and the search efficiency is improved.
Further, as one of the ways of determining whether the scene to which the input operation belongs is a search scene, whether the scene to which the input operation belongs is a search scene may be determined based on whether the attribute of the input control includes a specified attribute.
Wherein the specified attribute is an attribute for indicating a search scene. For example, the method comprises: when the attribute of the input control comprises any one of the designated attributes in the designated attribute set, judging that a scene to which an input operation executed based on the input control belongs is a search scene; and when the attribute of the input control does not comprise any specified attribute in the specified attribute set, judging that the scene to which the input operation executed based on the input control belongs is not a search scene. For example, EditorInfo of an input control may be obtained, which contains many fields, and by determining whether there is an IME _ ACTION _ SEARCH or IME _ ACTION _ GO field, it is determined whether it is in a SEARCH scene.
Therefore, in this embodiment, whether a scene to which an input operation executed based on the input control belongs is a search scene is determined by whether the attribute of the input control includes a specified attribute, so that the determination speed can be increased.
The preset panel layout condition may also be other conditions, and may include one or more of the following conditions, for example:
the input method belongs to input methods in a white list;
the terminal equipment executing the input method panel adjusting method is in a vertical screen state;
the view type of the view in the original input method panel is in a specified view type set;
the original input method panel is not in a user adjustment state;
the soft keyboard view of the original input method panel is not in a suspension state;
the target application where the input control is located does not belong to the applications in the blacklist, and the blacklist comprises the applications which have provided the voice input control.
As an implementation manner, if the preset panel layout condition includes multiple conditions, it may be determined that the preset panel layout condition is satisfied only when the multiple conditions are satisfied at the same time.
In one example, since each additional input method requires the corresponding input method to be adapted to the system, in view of this, a white list may be established, in which the identification of the input method that allows the panel adjustment is recorded. The input method belongs to the input methods in the white list, and may be an identifier that the input method currently called exists in the white list.
According to the embodiment, whether the currently called input method belongs to the input methods in the white list or not can be used as a condition for whether the panel adjustment is carried out or not, so that the input methods which do not meet the requirements can be quickly eliminated.
In another example, a special condition may be preset, and when the preset special condition is satisfied, it is determined that the preset panel layout condition is not satisfied, and the original input method panel is directly displayed. As can be seen, in this embodiment, one of the preset panel layout conditions is: the preset special condition is not met.
For example, special conditions may include: and the terminal equipment executing the input method panel adjusting method is in a horizontal screen state. In other words, the terminal device that executes the input method panel adjustment method may be in a portrait state as a condition for allowing adjustment of the input method panel.
It can be understood that, the related art may be adopted to determine whether the terminal device is in the landscape screen state or the portrait screen state, which is not limited herein.
Therefore, when the terminal is in a horizontal screen state, the initial input method panel is reserved, and the situation that the input method panel is not matched with the horizontal screen size and the like in updating is avoided.
As another example, special conditions may include: views of other view types besides the specified view type are included in the original input method panel. In other words, the view type of the view in the original input method panel can be in a specified view type set as a condition for allowing the input method panel to be adjusted.
In this embodiment, when views of other view types than the specified view type are included in the original input method panel, the original input method panel may be retained to retain the diversified functions of the original input method panel.
As another example, special conditions may include: the original input method panel is in a user adjustment state. In other words, the original input method panel may not be in the user adjustment state as a condition for allowing adjustment of the input method panel.
The original input method panel corresponding to some input methods can be adjusted, for example, the keyboard height of the original input method panel, the positions of different types of views, and the like can be adjusted. When the original input method panel is in a user adjustment state, the original input method panel is reserved so that a user can adjust the original input method panel conveniently, the adjustment function of the original input method panel is reserved, and the adjustment operation of the user is not influenced.
As another example, special conditions may include: the soft keyboard view of the original input method panel is in a floating state. In other words, the soft keyboard view of the original input method panel is not in the floating state, and is taken as the preset panel layout condition.
In this embodiment, when the soft keyboard view of the original input method panel is in the floating state, the original input method panel is retained to retain the soft keyboard view in the floating state.
As another example, special conditions may include: and the target application where the input control is located belongs to the applications in the blacklist. In other words, the target application where the input control is located does not belong to the application in the blacklist, and the target application is used as the preset panel layout condition.
Wherein the blacklist includes applications that have provided voice input controls. The target application in which the input control is located may be the target application that provides the input control. For example, if the input control is a search control in a browser, then the target application is the browser. When the target application provides the voice input control, the voice input view is not added in the input method panel, so that the original input method panel is reserved.
It should be understood that the preset panel layout conditions are only examples and should not be construed as any limitation to the present disclosure, and other existing or future conditions for triggering the input method panel to add a voice input view may be applicable to the present disclosure and shall be included in the protection scope of the present disclosure.
And adjusting the original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view.
The voice input view, which may also be referred to as a voice guidance control, is used to guide the user to use the voice input. A guide identifier can be arranged on the voice input view, and the guide identifier can be words, such as 'voice input'; the guide mark may also be a pattern, such as a microphone pattern or the like. The embodiment of the disclosure adjusts an original input method panel corresponding to an input method, and aims to obtain an updated input method panel added with a voice input view, so that a user is guided to use voice input by using the voice input view, and thus, the information input efficiency and diversity are improved.
In one example, a speech input view may be added directly at a designated location of the original input method panel. For example, a speech input view is added above the original input method panel, and other views in the original input method panel are retained.
In another example, a layout template may be preset, a voice input view is set in the preset layout template, and each view in the original input method panel is added to the preset layout template to obtain an updated input method panel.
Therefore, the embodiment can realize the re-layout of the input method panel and obtain the updated input panel which is in accordance with the layout template.
It can be understood that other adjustment methods may be adopted to adjust the original input method panel corresponding to the input method, as long as the updated input method panel added with the voice input view can be obtained, which is not described herein again.
In order to further improve the search efficiency, the method further comprises:
and informing a target application that the current input is voice input so that the target application identifies the input voice data, and jumping to a result page corresponding to a specified keyword when the specified keyword is identified, wherein the target application is the application of the input control.
The application where the input control is located may be referred to as a target application.
Therefore, after a user inputs certain special characters, the user can jump to a related result page, and the user can realize efficient experience of completing search by one-step operation.
In one example, the method further comprises: and when voice data are received, animation display is carried out on the sound decibel according to the voice data so as to prompt a user of the current input voice decibel. Further, when an abnormal condition occurs, the abnormal condition is reminded. The abnormal condition can be the conditions that the network is abnormal, the work queue is busy due to frequent clicks of the user and the like.
The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification. One of the combinations is exemplified below.
As shown in fig. 2, fig. 2 is a flowchart illustrating another input method panel adjustment method according to an exemplary embodiment of the present disclosure, which may include the steps of:
in step 201, when an input method is called, a scene to which an input operation executed based on an input control belongs is a search scene, and a preset special condition is not satisfied, re-laying an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view; the voice input view is used for guiding a user to input voice;
in step 202, the updated input method panel is displayed.
Step 201 and step 202 in fig. 2 are the same as those in the related art in fig. 1A, and are not described again.
Therefore, in the embodiment, when the input method is called, the scene to which the input operation executed based on the input control belongs is a search scene, and the preset special condition is not satisfied, the original input method panel corresponding to the input method is rearranged to obtain the updated input method panel added with the voice input view, so that the user can use voice input when the user cannot use the keyboard for input, and the input efficiency is improved.
Embodiments of the present disclosure are also presented from the perspective of a voice input method. As shown in fig. 3, fig. 3 is a block diagram of a speech input shown in accordance with an exemplary embodiment of the present disclosure. The user interface may be a direct interaction part with the user. When a user clicks the text input box, the input method system is triggered to interact with the input method framework core processing module. In addition, the sound decibel animation display module can dynamically display the sound decibel according to the decibel of the sound when a user inputs the voice, so that the user can visually experience the sound decibel animation display module, and meanwhile, abnormal conditions can be prompted.
In the core processing module, after a user triggers input, a search scene recognition module carries out recognition, and after the recognition is that the scene is met, a user voice interaction button is provided on an interface to prompt the user to carry out voice input operation. After the user operates, the voice data directly enters the voice engine processing module to identify the voice data of the user, and the process can respectively process the voice data: and part of information is transmitted to the interface for sound decibel animation display, and part of information is transmitted to the voice recognition result preprocessing module. The language identification preprocessing module can integrate the final voice data, including whether the voice engine has errors or not, and the result is displayed on a screen through the internal framework.
The whole voice input is completed through the above process from the moment that the user clicks the input box to the moment that the data is displayed, and the voice input method is simple and convenient.
Corresponding to the embodiment of the input method panel adjusting method, the disclosure also provides an embodiment of an input method panel adjusting device, equipment applied by the device and a storage medium.
As shown in fig. 4, fig. 4 is a block diagram of an input method panel adjustment apparatus according to an exemplary embodiment shown in the present disclosure, the apparatus including:
the panel updating module 410 is configured to adjust an original input method panel corresponding to an input method when the input method is called and a preset panel layout condition is met, so as to obtain an updated input method panel added with a voice input view;
and the panel display module 420 is configured to display the updated input method panel.
In an optional implementation manner, the preset panel layout condition at least includes: and the scene of the input operation executed based on the input control is a search scene, and the input control is an input control for triggering the input method to be called.
In an alternative implementation, whether the scene to which the input operation belongs is a search scene is determined based on whether the attribute of the input control contains a specified attribute.
In an optional implementation manner, the preset panel layout condition includes one or more of the following:
the input method belongs to input methods in a white list;
the terminal equipment executing the input method panel adjusting device is in a vertical screen state;
the view type of the view in the original input method panel is in a specified view type set;
the original input method panel is not in a user adjustment state;
the soft keyboard view of the original input method panel is not in a suspension state;
the target application where the input control is located does not belong to the applications in the blacklist, and the blacklist comprises the applications which have provided the voice input control.
As shown in fig. 5, fig. 5 is a block diagram of another input method panel adjustment apparatus according to an exemplary embodiment, where the apparatus further includes:
and an information notification module 430 configured to notify a target application that the current input is a voice input, so that the target application recognizes the input voice data, and when a specified keyword is recognized, jumps to a result page corresponding to the specified keyword, where the target application is the application where the input control is located.
As shown in fig. 6, fig. 6 is a block diagram of another input method panel adjustment apparatus according to an exemplary embodiment, where the apparatus further includes:
and the animation display module 440 is configured to perform sound decibel animation display according to the voice data when the voice data is received.
Correspondingly, the present disclosure also provides an electronic device, which includes a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
when the input method is called and the preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view;
and displaying the updated input method panel.
Accordingly, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
The present disclosure may take the form of a computer program product embodied on one or more storage media including, but not limited to, disk storage, CD-ROM, optical storage, and the like, having program code embodied therein. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The specific details of the implementation process of the functions and actions of each module in the device are referred to the implementation process of the corresponding step in the method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
As shown in fig. 7, fig. 7 is a block diagram of an apparatus for input method panel adjustment shown in the present disclosure according to an exemplary embodiment. The apparatus 700 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, or the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a 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 an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be 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.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, the change in position of device 700 or one of the components of device 700, the presence or absence of user contact with device 700, the orientation or acceleration/deceleration of device 700, and the change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may 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 716 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 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 700 to perform an input method panel adjustment method comprising:
when the input method is called and the preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view;
and displaying the updated input method panel.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. An input method panel adjusting method is characterized by comprising the following steps:
when an input method is called, a scene to which an input operation executed based on an input control belongs is a search scene, and a preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view, wherein the voice input view is used for guiding a user to perform voice input, and the preset panel layout condition comprises:
the target application where the input control is located does not belong to the application in the blacklist, and the blacklist comprises the applications which have provided the voice input control;
and displaying the updated input method panel.
2. The method of claim 1, wherein the preset panel layout conditions at least comprise: and the scene of the input operation executed based on the input control is a search scene, and the input control is an input control for triggering the input method to be called.
3. The method of claim 2, wherein whether the scene to which the input operation belongs is a search scene is determined based on whether the property of the input control contains a specified property.
4. The method of claim 1 or 2, wherein the preset panel layout conditions comprise one or more of:
the input method belongs to input methods in a white list;
the terminal equipment executing the input method panel adjusting method is in a vertical screen state;
the view type of the view in the original input method panel is in a specified view type set;
the original input method panel is not in a user adjustment state;
and the soft keyboard view of the original input method panel is not in a floating state.
5. The method of claim 2, further comprising:
and informing a target application that the current input is voice input so that the target application identifies the input voice data, and jumping to a result page corresponding to a specified keyword when the specified keyword is identified, wherein the target application is the application of the input control.
6. The method of claim 1, further comprising:
and when voice data are received, sound decibel animation display is carried out according to the voice data.
7. An input method panel adjustment apparatus, comprising:
the panel updating module is configured to adjust an original input method panel corresponding to an input method when the input method is called, a scene to which an input operation executed based on an input control belongs is a search scene, and a preset panel layout condition is met, so as to obtain an updated input method panel added with a voice input view, wherein the voice input view is used for guiding a user to perform voice input, and the preset panel layout condition includes:
the target application where the input control is located does not belong to the application in the blacklist, and the blacklist comprises the applications which have provided the voice input control;
and the panel display module is configured to display the updated input method panel.
8. The apparatus of claim 7, wherein the preset panel layout conditions at least comprise: and the scene of the input operation executed based on the input control is a search scene, and the input control is an input control for triggering the input method to be called.
9. The apparatus according to claim 8, wherein whether the scene to which the input operation belongs is a search scene is determined based on whether the attribute of the input control includes a specified attribute.
10. The apparatus of claim 7 or 8, wherein the preset panel layout conditions comprise one or more of:
the input method belongs to input methods in a white list;
the terminal equipment executing the input method panel adjusting device is in a vertical screen state;
the view type of the view in the original input method panel is in a specified view type set;
the original input method panel is not in a user adjustment state;
the soft keyboard view of the original input method panel is not in a suspension state;
the target application where the input control is located does not belong to the applications in the blacklist, and the blacklist comprises the applications which have provided the voice input control.
11. The apparatus of claim 8, further comprising:
and the information notification module is configured to notify a target application that the current input is voice input so that the target application recognizes the input voice data, and when a specified keyword is recognized, jumping to a result page corresponding to the specified keyword, wherein the target application is the application where the input control is located.
12. The apparatus of claim 7, further comprising:
and the animation display module is configured to display sound decibels in an animation mode according to the voice data when the voice data are received.
13. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an input method is called, a scene to which an input operation executed based on an input control belongs is a search scene, and a preset panel layout condition is met, adjusting an original input method panel corresponding to the input method to obtain an updated input method panel added with a voice input view, wherein the voice input view is used for guiding a user to perform voice input, and the preset panel layout condition comprises:
the target application where the input control is located does not belong to the application in the blacklist, and the blacklist comprises the applications which have provided the voice input control;
and displaying the updated input method panel.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201810516534.8A 2018-05-25 2018-05-25 Input method panel adjusting method, device, equipment and storage medium Active CN108897466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810516534.8A CN108897466B (en) 2018-05-25 2018-05-25 Input method panel adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810516534.8A CN108897466B (en) 2018-05-25 2018-05-25 Input method panel adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108897466A CN108897466A (en) 2018-11-27
CN108897466B true CN108897466B (en) 2020-11-27

Family

ID=64343268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810516534.8A Active CN108897466B (en) 2018-05-25 2018-05-25 Input method panel adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108897466B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176698A (en) * 2013-03-12 2013-06-26 东莞宇龙通信科技有限公司 Method and system for dynamically displaying implementation operation buttons on input method panel
CN105183881A (en) * 2015-09-23 2015-12-23 百度在线网络技术(北京)有限公司 Information query method and device
CN106814879A (en) * 2017-01-03 2017-06-09 北京百度网讯科技有限公司 A kind of input method and device
WO2017128849A1 (en) * 2016-01-28 2017-08-03 中兴通讯股份有限公司 Method and device for customizing keyboard layout
CN107300986A (en) * 2017-06-30 2017-10-27 联想(北京)有限公司 Input method switching method and device
CN107318036A (en) * 2017-06-01 2017-11-03 腾讯音乐娱乐(深圳)有限公司 Song search method, intelligent television and storage medium
CN107831994A (en) * 2017-11-28 2018-03-23 珠海市魅族科技有限公司 Input method enables method and device, computer installation and readable storage medium storing program for executing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176698A (en) * 2013-03-12 2013-06-26 东莞宇龙通信科技有限公司 Method and system for dynamically displaying implementation operation buttons on input method panel
CN105183881A (en) * 2015-09-23 2015-12-23 百度在线网络技术(北京)有限公司 Information query method and device
WO2017128849A1 (en) * 2016-01-28 2017-08-03 中兴通讯股份有限公司 Method and device for customizing keyboard layout
CN106814879A (en) * 2017-01-03 2017-06-09 北京百度网讯科技有限公司 A kind of input method and device
CN107318036A (en) * 2017-06-01 2017-11-03 腾讯音乐娱乐(深圳)有限公司 Song search method, intelligent television and storage medium
CN107300986A (en) * 2017-06-30 2017-10-27 联想(北京)有限公司 Input method switching method and device
CN107831994A (en) * 2017-11-28 2018-03-23 珠海市魅族科技有限公司 Input method enables method and device, computer installation and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN108897466A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
US10296201B2 (en) Method and apparatus for text selection
US10152207B2 (en) Method and device for changing emoticons in a chat interface
US20180046336A1 (en) Instant Message Processing Method and Apparatus, and Storage Medium
US10108323B2 (en) Method and device for drawing a graphical user interface
CN107908351B (en) Application interface display method and device and storage medium
US11086482B2 (en) Method and device for displaying history pages in application program and computer-readable medium
US10509540B2 (en) Method and device for displaying a message
CN110231901B (en) Application interface display method and device
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
RU2669683C2 (en) METHOD AND DEVICE FOR DISPLAYING WiFi SIGNAL ICON AND MOBILE TERMINAL
CN106528735B (en) Method and device for controlling browser to play media resources
US20180341501A1 (en) Method and device for distributing application
CN106354504B (en) Message display method and device
US20150339016A1 (en) Tab creation method, device, and terminal
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
US20150116368A1 (en) Method and device for adjusting characters of application
CN106155703B (en) Emotional state display method and device
JP2017525076A (en) Character identification method, apparatus, program, and recording medium
US20170308397A1 (en) Method and apparatus for managing task of instant messaging application
CN110968364A (en) Method and device for adding shortcut plug-in and intelligent equipment
CN110618783B (en) Text broadcasting method, device and medium
CN107402756B (en) Method, device and terminal for drawing page
CN108829473B (en) Event response method, device and storage medium
CN110782510A (en) Sticker generation method and device
US10613622B2 (en) Method and device for controlling virtual reality helmets

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant