An input method, apparatus and device for inputting
By pre-setting mapping relationships in the input method, the user's input information is associated with sound effect data, which solves the problem of the input method's lack of interactivity and fun, and improves the efficiency and fun of user input.
Patent Information
- Application Number
- CN202111131918.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-09-26
AI Technical Summary
Existing input methods lack interactivity and fun during the user input process, resulting in low user input efficiency.
By using preset mapping relationships to associate user input information with sound effect data, and matching and playing corresponding sound effect data according to the input information, the interactivity and fun of the input process can be enhanced.
It increases user engagement and efficiency in inputting data, and enhances the interactivity and enjoyment of the input process.
Smart Images

Figure CN115877958B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more particularly to an input method, apparatus, and apparatus for input. Background Technology
[0002] When using an input method, whether it's Chinese, Japanese, Korean, or other languages, the input string is converted into candidate words for the corresponding language, and then the user selects the content to be output. Summary of the Invention
[0003] This invention provides an input method, apparatus, and device for input, which can output sound effect data according to input information, enhance the interactivity and fun of the user input process, thereby stimulating the user's enthusiasm for input and improving the efficiency of user input.
[0004] To address the above problems, this invention discloses an input method, the method comprising:
[0005] After invoking the input method program, it receives the user's input information;
[0006] The input information is matched with a preset mapping relationship, which includes a preset correspondence between input information and sound effect data;
[0007] If the input information matches the mapping relationship, then the sound effect data corresponding to the input information is played.
[0008] Optionally, the input information includes any of the following: key sequence of the keyboard, input character sequence, screen candidate selected for the input encoded string, handwritten input content, and voice input content.
[0009] Optionally, the method further includes:
[0010] In response to an edit trigger command, an editing interface is displayed, which shows the preset mapping relationship;
[0011] In response to an editing operation command, the mapping relationship displayed in the editing interface is edited and the edited mapping relationship is saved; wherein, the editing operation command includes any one of the following: creating a new preset correspondence between input information and sound effect data, deleting an existing correspondence between input information and sound effect data, or modifying an existing correspondence between input information and sound effect data.
[0012] Optionally, the method further includes:
[0013] Detect the application to which the input information belongs;
[0014] If it is determined that the application to which the input information belongs is the first application, then the playback of the sound effect data corresponding to the input information is allowed;
[0015] If it is determined that the application to which the input information belongs is the second application, then the audio data corresponding to the input information will not be played.
[0016] Optionally, the method further includes:
[0017] Get instant messages, including sent and / or received messages;
[0018] If the content of the instant message contains preset input information in the mapping relationship, then the sound effect data corresponding to the input information is played.
[0019] Optionally, the method further includes:
[0020] The input information is spell-checked, and if it is determined that the input information contains incorrect information, sound effects are played to indicate the error.
[0021] Optionally, the sound effect data includes audio files or audio / video files.
[0022] On the other hand, embodiments of the present invention disclose an input device, the device comprising:
[0023] The information receiving module is used to receive user input information after the input method program is invoked;
[0024] The information matching module is used to match the input information with a preset mapping relationship, wherein the mapping relationship includes a preset correspondence between input information and sound effect data;
[0025] The sound effect playback module is used to play the sound effect data corresponding to the input information if the input information matches the mapping relationship.
[0026] Optionally, the input information includes any of the following: key sequence of the keyboard, input character sequence, screen candidate selected for the input encoded string, handwritten input content, and voice input content.
[0027] Optionally, the device further includes:
[0028] An editing display module is used to display an editing interface in response to an editing trigger command, wherein the preset mapping relationship is displayed in the editing interface;
[0029] The editing operation module is used to respond to editing operation instructions, edit the mapping relationship displayed in the editing interface, and save the edited mapping relationship; wherein, the editing operation instructions include any one of the following: creating a new preset correspondence between input information and sound effect data, deleting an existing correspondence between input information and sound effect data, and modifying an existing correspondence between input information and sound effect data.
[0030] Optionally, the device further includes:
[0031] The application detection module is used to detect the application to which the input information belongs;
[0032] The playback permission module is configured to allow playback of the sound effect data corresponding to the input information if it is determined that the application to which the input information belongs is the first application.
[0033] The refuse-play module is used to refuse to play the sound effect data corresponding to the input information if it is determined that the application to which the input information belongs is a second application.
[0034] Optionally, the device further includes:
[0035] The message acquisition module is used to acquire instant messages, including sent messages and / or received messages;
[0036] The sound effect playback module is further configured to play the sound effect data corresponding to the input information if the content of the instant message contains preset input information in the mapping relationship.
[0037] Optionally, the device further includes:
[0038] The error message module is used to perform spell checking on the input information, and when it is determined that the input information contains error information, it plays sound effects data to indicate the error.
[0039] In another aspect, embodiments of the present invention disclose an input device, including a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs containing instructions for performing the following operations.
[0040] In another aspect, embodiments of the present invention disclose a machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause a device to perform one or more of the aforementioned input methods.
[0041] The embodiments of the present invention have the following advantages:
[0042] This invention establishes a predefined association between input information and sound effect data through a preset mapping relationship. When a user's input information matches the preset mapping relationship, the corresponding sound effect data is played. For example, when a user triggers a predefined key sequence, the sound effect data corresponding to that key sequence can be played; when a user's input character sequence matches a predefined character sequence, the sound effect data corresponding to that character sequence can be played; when a user selects a predefined candidate for the input encoded string, the sound effect data corresponding to that candidate can be played, and so on. Through this invention, during the user's input process, corresponding sound effect data can be played for different types of user input information, which can enhance the interactivity and fun of the input process, thereby stimulating the user's enthusiasm for input and improving the efficiency of user input. Attached Figure Description
[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a flowchart illustrating the steps of an embodiment of the input method of the present invention;
[0045] Figure 2 This is a structural block diagram of an embodiment of the input device of the present invention;
[0046] Figure 3 This is a block diagram of an input device 800 according to the present invention;
[0047] Figure 4 This is a schematic diagram of the server structure in some embodiments of the present invention. Detailed Implementation
[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] Method Implementation Examples
[0050] Reference Figure 1 The flowchart illustrates an embodiment of the input method of the present invention, which may specifically include the following steps:
[0051] Step 101: After calling the input method program, receive the user's input information;
[0052] Step 102: Match the input information with a preset mapping relationship, wherein the mapping relationship includes a preset correspondence between input information and sound effect data;
[0053] Step 103: If the input information matches the mapping relationship, then play the sound effect data corresponding to the input information.
[0054] The input method provided in this invention can be applied to electronic devices, which can be any electronic product capable of human-computer interaction with a user via a keyboard. These electronic devices include, but are not limited to: servers, smartphones, voice recorders, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, in-vehicle computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc. The keyboard can be any physical or virtual keyboard, including but not limited to a QWERTY keyboard, a mobile phone keyboard, an alphabetically arranged keyboard, and any custom-laid-out virtual keyboard.
[0055] After invoking the input method program, the system can receive input information from the user via the keyboard into the electronic device. It should be noted that this embodiment of the invention does not limit the input scenario. For example, input scenarios include, but are not limited to, input in instant messaging applications, input in a search box, etc. Furthermore, this embodiment of the invention can also set scenarios for playing sound effects. For example, if the user sets the sound effect playback scenario to include chat and entertainment scenarios, then the sound effect data corresponding to the user's input information will only be played in chat or entertainment scenarios to reduce unnecessary interference to the user.
[0056] In this embodiment of the invention, a mapping relationship is pre-established, which includes a preset correspondence between input information and sound effect data. During the user's input process using an input method program, this embodiment matches the received user input information with the preset mapping relationship. If the received input information matches the mapping relationship, the sound effect data corresponding to the input information is played.
[0057] In an optional embodiment of the present invention, the input information includes, but is not limited to, any one of the following: a key sequence of an operation keyboard, an input character sequence, an on-screen candidate selected for an input encoded string, handwritten input content, and voice input content.
[0058] The input information may be any information input by the user using the input method program. For example, the input information may be a key sequence generated by a user operating a physical keyboard or a virtual keyboard. If the user clicks key a, key b, and key c in sequence, the key sequence is "key a - key b - key c". For another example, the input information may be a character sequence input by a user by operating keys of a physical keyboard or a virtual keyboard. For example, after the user clicks key l, key o, key v, and key e in sequence, the input character sequence is "love". The character sequence includes, but is not limited to, any combination of letters, numbers, symbols, and the like. For another example, the input information may be an on-screen candidate selected by the user for the input encoded string. If the user selects the candidate "你好" as the on-screen candidate for the input encoded string "nihao", the input method displays "你好" on the screen. For another example, the input information may be handwritten input content of the user, such as a character sequence and / or a text sequence input by handwriting. For another example, the input information may be voice input content of the user. When the input information is voice input content, the voice input content may be subjected to voice recognition and converted into a corresponding text sequence. Certainly, the input information may also be any information such as an emoticon input through an input method program.
[0059] The preset mapping relationship may include, but is not limited to: a correspondence between a preset key sequence and sound effect data, a correspondence between a preset character sequence and sound effect data, a correspondence between a preset on-screen candidate and sound effect data, a correspondence between a preset text sequence and sound effect data, and a correspondence between a preset emoticon and sound effect data, and the like.
[0060] In an example, assuming that a correspondence between a preset key sequence "key a - key b - key c" and sound effect data A is stored in the preset mapping relationship, when it is detected that the key sequence "key a - key b - key c" generated by the user sequentially triggering key a, key b, and key c hits the preset mapping relationship, the sound effect data A may be played.
[0061] In another example, assuming that a correspondence between a preset character sequence "love" and sound effect data B is stored in the preset mapping relationship, when the character sequence "love" input by the user through a keyboard is received, or when the character sequence "love" input by the user through handwriting is received, it is determined that the character sequence "love" hits the preset mapping relationship, and the sound effect data B may be played.
[0062] In another example, assuming that the preset mapping relationship stores the correspondence between the pre-set candidate "baby" and the sound effect data C, when the user selects the candidate "baby" for the input encoded string "baobei" to display on the screen, it is determined that the candidate "baby" selected by the user matches the preset mapping relationship, and then the sound effect data C can be played.
[0063] In another example, assuming a preset mapping relationship stores a correspondence between the text sequence "lullaby" and sound effect data F, when the user's handwritten input contains the text sequence "lullaby," it is determined that the handwritten input matches the preset mapping relationship, and sound effect data F can be played. Alternatively, when the user's voice input is received, speech recognition is performed on the voice input, and if the recognition result contains the text sequence "lullaby," it is determined that the voice input matches the preset mapping relationship, and sound effect data F can be played.
[0064] In an optional embodiment of the present invention, the sound effect data may include, but is not limited to, audio files or audio / video files.
[0065] The sound effect data can be an audio / video file pre-installed in the input method program, or it can be an audio / video file recorded and saved by the user on the electronic device, or it can be an audio / video file downloaded or imported by the user to the electronic device, etc. This embodiment of the invention does not limit the specific source of the sound effect data.
[0066] This invention establishes a predefined association between input information and sound effect data through a preset mapping relationship. When a user's input information matches the preset mapping relationship, the corresponding sound effect data is played. For example, when a user triggers a predefined key sequence, the sound effect data corresponding to that key sequence can be played; when a user's input character sequence matches a predefined character sequence, the sound effect data corresponding to that character sequence can be played; when a user selects a predefined candidate for displaying an input encoded string, the sound effect data corresponding to that candidate can be played, and so on. Through this invention, during the user's input process, corresponding sound effect data can be played for different types of user input information, which can enhance the interactivity and fun of the input process, thereby stimulating the user's enthusiasm for input and improving the efficiency of user input.
[0067] It should be noted that the embodiments of the present invention do not limit the specific form of the preset mapping relationship. For example, different mapping relationship tables can be established for different mapping relationships, or a single mapping relationship table containing all mapping relationships can be established. For example, a mapping relationship table can be established to store the correspondence between preset key sequences and sound effect data. Another example is a mapping relationship table to store the correspondence between preset character sequences and sound effect data. Yet another example is a mapping relationship table to store the correspondence between preset on-screen candidates and sound effect data, and so on.
[0068] In an optional embodiment of the present invention, the method may further include:
[0069] Step S11: In response to the edit trigger command, the edit interface is displayed, and the preset mapping relationship is displayed in the edit interface;
[0070] Step S12: In response to the editing operation command, edit the mapping relationship displayed in the editing interface and save the edited mapping relationship; wherein, the editing operation command includes any one of the following: create a new preset correspondence between input information and sound effect data, delete an existing correspondence between input information and sound effect data, or modify an existing correspondence between input information and sound effect data.
[0071] This invention supports editing operations on preset mapping relationships. Specifically, this invention provides an entry point to an editing interface, which can be used to receive editing trigger commands from users. In response to the editing trigger command, an editing interface can be displayed, showing the preset mapping relationships, where users can perform editing operations on the preset mapping relationships.
[0072] It should be noted that the embodiments of the present invention do not limit the specific form of the entry point to the editing interface. This entry point can be a preset button, link, graphic, etc.
[0073] In response to user editing commands, the mapping relationship can be edited and saved. These editing commands may include, but are not limited to, adding, deleting, and modifying. For example, a new preset mapping relationship between input information and sound effect data can be created, and / or an existing mapping relationship between input information and sound effect data can be deleted, and / or an existing mapping relationship between input information and sound effect data can be modified.
[0074] Furthermore, the editing operation instructions may also include instructions for setting playback parameters for the sound effect data. These playback parameters may include, but are not limited to, playback duration, loop count, and animation effects. For each mapping relationship, the playback parameters for the corresponding sound effect data can be set independently.
[0075] In one example, regarding the preset correspondence between the candidate word "baby" and sound effect data C, assuming the playback count of sound effect data C is set to 1, when the user selects "baby" as the candidate for the character sequence "baobei", sound effect data C is played once. For example, sound effect data C is a pre-recorded child's murmur. Assume the user receives an editing instruction to replace sound effect data C with sound effect data D, which is a pre-recorded child's laughter, and receives an editing instruction to set the loop playback count of sound effect data D in the mapping relationship to 3 times. After saving the edited mapping relationship, the next time the user selects "baby" as the candidate for the character sequence "baobei", sound effect data D is played 3 times in a loop.
[0076] In an optional embodiment of the present invention, the method may further include:
[0077] Step S21: Obtain instant messages, which include sent messages and / or received messages;
[0078] Step S22: If the content of the instant message contains the preset input information in the mapping relationship, then play the sound effect data corresponding to the input information.
[0079] In addition to playing sound effect data corresponding to the user's input information during the input process using the input method program, this embodiment of the invention can also acquire instant messages sent or received by the electronic device. When the content of the instant message contains preset input information in a preset mapping relationship, the sound effect data corresponding to the input information can be played.
[0080] In one example, User1 chats with User2 via an instant messaging application on their electronic device. Assume User1's electronic device receives an instant message from User2's electronic device: "Baby, what are you doing?" After receiving this message, User1's electronic device recognizes that the message contains the preset input information "Baby" from a pre-defined mapping relationship, and can then play the sound effect data D corresponding to the input information "Baby".
[0081] Furthermore, in order to avoid causing unnecessary interference to users when they do not need to listen to sound effect data, embodiments of the present invention can provide a function to enable or disable the playback of sound effect data.
[0082] Optionally, a first application in the electronic device can be configured through predefined settings, wherein the first application is an application that allows the playback of sound effect data; and a second application in the electronic device can be configured, wherein the second application is an application that disables the playback of sound effect data.
[0083] In an optional embodiment of the present invention, the method may further include:
[0084] Step S31: Detect the application to which the input information belongs;
[0085] Step S32: If it is determined that the application to which the input information belongs is the first application, then the playback of the sound effect data corresponding to the input information is allowed;
[0086] Step S33: If it is determined that the application to which the input information belongs is the second application, then refuse to play the sound effect data corresponding to the input information.
[0087] In one example, assuming a text editor is set as the first application on an electronic device, when user input matches a preset mapping and the application to which the input belongs is the text editor, the corresponding sound effect data can be played. That is, for input generated by the user while using the text editor, the corresponding sound effect data can be played.
[0088] In another example, assuming the chat application on the electronic device is set as the second application, when it is detected that the user's input matches a preset mapping and the application to which the input belongs is the chat application, the corresponding sound effect data is refused to be played. That is, for input generated by the user while using the chat application, the corresponding sound effect data is prohibited from being played.
[0089] In an optional embodiment of the present invention, the method may further include: performing a spell check on the input information, and when it is determined that the input information contains error information, playing sound effect data to prompt the error information.
[0090] In this embodiment of the invention, when the user's input information matches a preset mapping relationship during the user's input process, the sound effect data corresponding to the user's preset input information can be played.
[0091] Furthermore, embodiments of the present invention can also perform spell checking on user input information. When it is determined that the input information contains errors, sound effects used to indicate the errors can be played. These sound effects can be different from the preset sound effects corresponding to the input information, to remind the user that the current input is incorrect. The errors include, but are not limited to, grammatical errors and semantic errors.
[0092] Furthermore, in specific implementations, while playing the sound effect data corresponding to the hit input information, preset special effects data can also be played to increase the diversity of input interaction. The preset special effects data includes, but is not limited to, preset animation effects, text effects, and emoticon effects.
[0093] It should be noted that, for ease of explanation, this embodiment of the invention uses Chinese input information as an example. In specific applications, this embodiment of the invention does not limit the language of the input information. The language includes, but is not limited to, any of the following: French, German, Italian, Portuguese, Spanish, Japanese, Korean, etc. That is, this embodiment of the invention can be applied to input scenarios of any language.
[0094] In summary, this invention establishes a predefined association between input information and sound effect data through a pre-set mapping relationship. When a user's input information matches a pre-defined mapping relationship, the corresponding sound effect data is played. For example, when a user triggers a predefined key sequence, the sound effect data corresponding to that key sequence can be played; when a user's input character sequence matches a predefined character sequence, the sound effect data corresponding to that character sequence can be played; when a user selects a predefined candidate for the input encoded string, the sound effect data corresponding to that candidate can be played, and so on. Through this invention, during the user's input process, corresponding sound effect data can be played for different types of user input information, enhancing the interactivity and fun of the input process, thereby motivating users to input and improving input efficiency.
[0095] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0096] Device Examples
[0097] Reference Figure 2The diagram illustrates a structural block diagram of an embodiment of the input device of the present invention, the device comprising:
[0098] The information receiving module 201 is used to receive user input information after the input method program is invoked;
[0099] The information matching module 202 is used to match the input information with a preset mapping relationship, wherein the mapping relationship includes a preset correspondence between input information and sound effect data;
[0100] The sound effect playback module 203 is used to play the sound effect data corresponding to the input information if the input information matches the mapping relationship.
[0101] Optionally, the input information includes any of the following: key sequence of the keyboard, input character sequence, screen candidate selected for the input encoded string, handwritten input content, and voice input content.
[0102] Optionally, the device further includes:
[0103] An editing display module is used to display an editing interface in response to an editing trigger command, wherein the preset mapping relationship is displayed in the editing interface;
[0104] The editing operation module is used to respond to editing operation instructions, edit the mapping relationship displayed in the editing interface, and save the edited mapping relationship; wherein, the editing operation instructions include any one of the following: creating a new preset correspondence between input information and sound effect data, deleting an existing correspondence between input information and sound effect data, and modifying an existing correspondence between input information and sound effect data.
[0105] Optionally, the device further includes:
[0106] The application detection module is used to detect the application to which the input information belongs;
[0107] The playback permission module is configured to allow playback of the sound effect data corresponding to the input information if it is determined that the application to which the input information belongs is the first application.
[0108] The refuse-play module is used to refuse to play the sound effect data corresponding to the input information if it is determined that the application to which the input information belongs is a second application.
[0109] Optionally, the device further includes:
[0110] The message acquisition module is used to acquire instant messages, including sent messages and / or received messages;
[0111] The sound effect playback module is further configured to play the sound effect data corresponding to the input information if the content of the instant message contains preset input information in the mapping relationship.
[0112] Optionally, the device further includes:
[0113] The error message module is used to perform spell checking on the input information, and when it is determined that the input information contains error information, it plays sound effects to indicate the error.
[0114] Optionally, the sound effect data includes audio files or audio / video files.
[0115] This invention establishes a predefined association between input information and sound effect data through a preset mapping relationship. When a user's input information matches the preset mapping relationship, the corresponding sound effect data is played. For example, when a user triggers a predefined key sequence, the sound effect data corresponding to that key sequence can be played; when a user's input character sequence matches a predefined character sequence, the sound effect data corresponding to that character sequence can be played; when a user selects a predefined candidate for the input encoded string, the sound effect data corresponding to that candidate can be played, and so on. Through this invention, during the user's input process, corresponding sound effect data can be played for different types of user input information, which can enhance the interactivity and fun of the input process, thereby stimulating the user's enthusiasm for input and improving the efficiency of user input.
[0116] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0117] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0118] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0119] This invention provides an input device, including a memory and one or more programs, wherein the programs are stored in the memory and configured to be executed by one or more processors. The programs include instructions for performing the following operations: receiving user input information after invoking an input method program; matching the input information with a preset mapping relationship, the mapping relationship including a preset correspondence between input information and sound effect data; and playing the sound effect data corresponding to the input information if the input information matches the mapping relationship.
[0120] Optionally, the input information includes any of the following: key sequence of the keyboard, input character sequence, screen candidate selected for the input encoded string, handwritten input content, and voice input content.
[0121] Optionally, the device is configured to execute the one or more programs by one or more processors, including instructions for performing the following operations:
[0122] In response to an edit trigger command, an editing interface is displayed, which shows the preset mapping relationship;
[0123] In response to an editing operation command, the mapping relationship displayed in the editing interface is edited and the edited mapping relationship is saved; wherein, the editing operation command includes any one of the following: creating a new preset correspondence between input information and sound effect data, deleting an existing correspondence between input information and sound effect data, or modifying an existing correspondence between input information and sound effect data.
[0124] Optionally, the device is configured to execute the one or more programs by one or more processors, including instructions for performing the following operations:
[0125] Detect the application to which the input information belongs;
[0126] If it is determined that the application to which the input information belongs is the first application, then the playback of the sound effect data corresponding to the input information is allowed;
[0127] If it is determined that the application to which the input information belongs is the second application, then the audio data corresponding to the input information will not be played.
[0128] Optionally, the device is configured to execute the one or more programs by one or more processors, including instructions for performing the following operations:
[0129] Get instant messages, including sent and / or received messages;
[0130] If the content of the instant message contains preset input information in the mapping relationship, then the sound effect data corresponding to the input information is played.
[0131] Optionally, the device is configured to execute the one or more programs by one or more processors, including instructions for performing the following operations:
[0132] The input information is spell-checked, and if it is determined that the input information contains incorrect information, sound effects are played to indicate the error.
[0133] Optionally, the sound effect data includes audio files or audio / video files.
[0134] Figure 3 This is a block diagram illustrating an input device 800 according to an exemplary embodiment. For example, device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0135] Reference Figure 3 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0136] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0137] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0138] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.
[0139] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0140] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice information processing mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0141] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0142] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 can detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, and can also input changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0143] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency information processing (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0144] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0146] Figure 4This is a schematic diagram of the server structure in some embodiments of the present invention. The server 1900 can vary considerably depending on its configuration or performance, and may include one or more central processing units (CPUs) 1922 (e.g., one or more processors) and memory 1932, and one or more storage media 1930 (e.g., one or more mass storage devices) for storing application programs 1942 or data 1944. The memory 1932 and storage media 1930 can be temporary or persistent storage. The program stored in the storage media 1930 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 1922 may be configured to communicate with the storage media 1930 and execute the series of instruction operations in the storage media 1930 on the server 1900.
[0147] Server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input / output interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0148] A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform... Figure 1 The input method shown.
[0149] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform an input method, the method comprising: receiving user input information after invoking an input method program; matching the input information with a preset mapping relationship, the mapping relationship including a preset correspondence between input information and sound effect data; and playing the sound effect data corresponding to the input information if the input information matches the mapping relationship.
[0150] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0151] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
[0152] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0153] The above provides a detailed description of an input method, an input device, and an input apparatus provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. An input method, characterized in that, The method includes: After invoking the input method program, the user's input information is received. The input information includes at least one of the following: the input character sequence, the screen candidate selected for the input encoded string, the handwritten input content, the voice input content, and the input emoticon information. The input information is matched with a preset mapping relationship, which includes a pre-defined correspondence between the input information and the sound effect data. The mapping relationship is created, deleted or modified by the user through the editing interface. Each mapping relationship is set with corresponding playback parameters for the sound effect data. The playback parameters include at least one of playback duration, number of loop playbacks or animation effects. If the input information matches the mapping relationship, the application to which the input information belongs is detected; if the application is determined to be a first application, the sound effect data corresponding to the input information is allowed to be played according to the playback parameters of the corresponding sound effect data; if the application is determined to be a second application, the sound effect data corresponding to the input information is refused to be played.
2. The method according to claim 1, characterized in that, The method further includes: Obtain instant messages, wherein the instant messages include at least one of sent messages or received messages; If the content of the instant message contains the preset input information in the mapping relationship, the application to which the instant message belongs is detected; if the application is determined to be a first application, the sound effect data corresponding to the input information is allowed to be played according to the playback parameters of the sound effect data corresponding to the input information in the instant message; if the application is determined to be a second application, the sound effect data corresponding to the input information is refused to be played.
3. The method according to claim 1, characterized in that, The method further includes: In response to an edit trigger command, an editing interface is displayed, which shows the preset mapping relationship; In response to an editing operation command, the mapping relationship displayed in the editing interface is edited and the edited mapping relationship is saved; wherein, the editing operation command includes any one of the following: creating a new preset correspondence between input information and sound effect data, deleting an existing correspondence between input information and sound effect data, or modifying an existing correspondence between input information and sound effect data.
4. The method according to claim 3, characterized in that, The editing operation instructions include instructions for setting playback parameters for sound effect data.
5. The method according to claim 1, characterized in that, The method further includes: While playing the sound effect data corresponding to the input information, preset special effects data are also played. The preset special effects data includes at least one of preset animation effects, text effects, or facial expression effects.
6. The method according to claim 1, characterized in that, The method further includes: The input information is spell-checked. If it is determined that the input information contains incorrect information, sound effect data for prompting the error is played. The sound effect data for prompting the error is different from the sound effect data corresponding to the input information.
7. The method according to claim 1, characterized in that, The sound effect data includes audio files or audio / video files.
8. The method according to claim 1, characterized in that, The method further includes: If the user's settings for playing sound effects include both chat and entertainment scenarios, then the sound effect data corresponding to the user's input information will only be played in either the chat or entertainment scenario.
9. The method according to any one of claims 1 to 8, characterized in that, The preset mapping relationship includes any one of the following: The pre-defined correspondence between character sequences and sound effect data; The pre-defined correspondence between on-screen candidates and sound effect data; The pre-defined correspondence between text sequences and sound effect data; The correspondence between preset facial expression information and sound effect data.
10. An input device, characterized in that, The device includes: The information receiving module is used to receive user input information after the input method program is invoked. The input information includes at least one of the following: input character sequence, screen candidates selected for the input encoded string, handwritten input content, voice input content, and input emoticon information. The information matching module is used to match the input information with a preset mapping relationship. The mapping relationship includes a preset correspondence between input information and sound effect data. The mapping relationship can be created, deleted or modified by the user through the editing interface. Each mapping relationship is set with corresponding playback parameters for sound effect data. The playback parameters include at least one of playback duration, number of loop playbacks or animation effects. The sound effect playback module is used to detect the application to which the input information belongs if the input information matches the mapping relationship; if the application is determined to be a first application, the sound effect data corresponding to the input information is allowed to be played according to the playback parameters of the corresponding sound effect data; if the application is determined to be a second application, the sound effect data corresponding to the input information is refused to be played.
11. The apparatus according to claim 10, characterized in that, The device further includes: The message acquisition module is used to acquire instant messages, which include at least one of sent messages or received messages; The sound effect playback module is further configured to detect the application to which the instant message belongs if the content of the instant message contains preset input information in the mapping relationship; if the application is determined to be a first application, then the sound effect data corresponding to the input information is allowed to be played according to the playback parameters of the sound effect data corresponding to the input information in the instant message; if the application is determined to be a second application, then the sound effect data corresponding to the input information is refused to be played.
12. The apparatus according to claim 11, characterized in that, The device further includes: An editing display module is used to display an editing interface in response to an editing trigger command, wherein the preset mapping relationship is displayed in the editing interface; The editing operation module is used to respond to editing operation instructions, edit the mapping relationship displayed in the editing interface, and save the edited mapping relationship; wherein, the editing operation instructions include any one of the following: creating a new preset correspondence between input information and sound effect data, deleting an existing correspondence between input information and sound effect data, and modifying an existing correspondence between input information and sound effect data.
13. The apparatus according to claim 12, characterized in that, The editing operation instructions include instructions for setting playback parameters for sound effect data.
14. The apparatus according to claim 10, characterized in that, The sound effect playback module is also used to play preset special effects data while playing the sound effect data corresponding to the input information. The preset special effects data includes at least one of preset animation effects, text effects, or facial expression effects.
15. The apparatus according to claim 10, characterized in that, The device further includes: The error message module is used to perform spelling checks on the input information. When it is determined that the input information contains error information, it plays sound effect data to indicate the error information. The sound effect data to indicate the error information is different from the sound effect data corresponding to the input information.
16. The apparatus according to claim 10, characterized in that, The sound effect data includes audio files or audio / video files.
17. The apparatus according to claim 10, characterized in that, The sound effect playback module is also used to play the sound effect data corresponding to the user's input information only in the chat scenario or the entertainment scenario when the user sets the scenario for playing the sound effect.
18. The apparatus according to any one of claims 10 to 17, characterized in that, The preset mapping relationship includes any one of the following: The pre-defined correspondence between character sequences and sound effect data; The pre-defined correspondence between on-screen candidates and sound effect data; The pre-defined correspondence between text sequences and sound effect data; The correspondence between preset facial expression information and sound effect data.
19. A device for input, characterized in that, It includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, wherein the one or more programs contain instructions for performing the input method as described in any one of claims 1 to 9.
20. A machine-readable medium having instructions stored thereon that, when executed by one or more processors of a device, cause the device to perform the input method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Input method and apparatus
CN106445180A
Input method and device
CN108874172A
Apparatus and method for generating audio and graphical animations in an instant messaging environment
US20040024822A1
