Music playing method, device and electronic equipment
By receiving user click operations and playing set music, adjusting volume and speed according to operation, the problem of unable to play music during input in the prior art is solved, and the flexible setting of the music keyboard and user experience improvement are achieved.
Patent Information
- Application Number
- CN201910824160.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-02
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-06-25
AI Technical Summary
The prior art is difficult to realize music playback during user input, and lacks flexible music keyboard settings and response mechanisms.
By receiving user clicking on input keyboard, play music corresponding to the music keyboard information set by the user, and adjust the volume and speed according to the duration, speed and area of the click operation, support single loop or multi-music loop playback, and according to Recommended music resources for user interests.
It realizes playing music during the input process, improves the user experience and the fun of the music keyboard, and enhances the user's interaction and personalized settings of the input method.
Smart Images

Figure CN112445451B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a music playing method, device and electronic equipment. Background Art
[0002] With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. These electronic devices are usually installed with input method applications (input methods for short), so that users can use the input methods to input information.
[0003] As user demands continue to increase, the functions of input methods also need to be continuously enriched to improve user experience. Summary of the invention
[0004] The embodiment of the present invention provides a music playing method to play music during the input process.
[0005] Correspondingly, the embodiment of the present invention further provides a music playing device and an electronic device to ensure the implementation and application of the above method.
[0006] In order to solve the above problem, an embodiment of the present invention discloses a music playing method, which specifically includes: receiving a click operation of a user on an input method keyboard, and playing music corresponding to the music keyboard information set by the user.
[0007] Optionally, the playing of the music corresponding to the music keyboard information set by the user includes: when the click operation is received, starting to play the music corresponding to the music keyboard information; when the time after stopping receiving the click operation reaches a first set time, continuously playing the music corresponding to the music keyboard information for a second set time and then stopping.
[0008] Optionally, playing the music corresponding to the music keyboard information set by the user further includes: gradually reducing the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
[0009] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the user's click operation is received again before the time length after stopping receiving the click operation reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
[0010] Optionally, the playing of music corresponding to the music keyboard information set by the user further includes: from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then when this click operation is received, the music corresponding to the music keyboard information is restarted to play; if there are multiple songs corresponding to the music keyboard information, then when this click operation is received, the next song of the music played by the last click operation is started to play.
[0011] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the click operation is for a retract button, stopping the playing of the music corresponding to the music keyboard information set by the user.
[0012] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: when the user's click operation on the input method keyboard is received again, if the music corresponding to the music keyboard information is one song, then restarting the playing of the music corresponding to the music keyboard information; if the music corresponding to the music keyboard information is multiple songs, then determining the playing order of the multiple songs corresponding to the music keyboard information, and playing the next song that was stopped last time.
[0013] Optionally, playing the music corresponding to the music keyboard information set by the user includes: determining the click speed of the user according to the click operation, and adjusting the volume and / or speed of playing the music corresponding to the music keyboard information.
[0014] Optionally, the click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
[0015] Optionally, the method further includes: receiving a setting operation of the user for the music keyboard; and generating music keyboard information set by the user according to the music corresponding to the setting operation.
[0016] Optionally, the method also includes the step of displaying music on the music keyboard setting interface: generating a single music option using each piece of music, and displaying each single music option on the music keyboard setting interface; and / or generating a music collection option using each type of music, and displaying each music collection option on the music keyboard setting interface.
[0017] Optionally, the generating the music keyboard information set by the user based on the music corresponding to the setting operation includes: if the setting operation is for the music collection option, generating the music keyboard information set by the user for each piece of music corresponding to the music collection option.
[0018] Optionally, the method also includes the step of obtaining music resource information of the music displayed on the music keyboard setting interface: according to preset recommendation rules, obtaining music resource information corresponding to platform music in other music platforms from a server; and / or, determining the user's music interest information based on the user's historical input information, and obtaining music resource information corresponding to platform music in other music platforms that matches the music interest information from a server.
[0019] The embodiment of the present invention further discloses a music playing device, which specifically includes: a playing module, which is used to receive a click operation of a user on an input method keyboard and play music corresponding to the music keyboard information set by the user.
[0020] Optionally, the playback module includes: a first music playback sub-module, used to start playing the music corresponding to the music keyboard information when the click operation is received; when the time after stopping receiving the click operation reaches a first set time, the music corresponding to the music keyboard information is played continuously for a second set time and then stopped.
[0021] Optionally, the playing module further includes: a second music playing submodule, which is used to gradually reduce the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
[0022] Optionally, the playback module also includes: a third music playback sub-module, which is used to continue playing the music corresponding to the music keyboard information if the user's click operation is received again before the time length after stopping receiving the click operation reaches a first set time length.
[0023] Optionally, the playback module also includes: a fourth music playback sub-module, which is used to, from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then restart playing the music corresponding to the music keyboard information when this click operation is received; if there are multiple songs corresponding to the music keyboard information, then start playing the next song of the music played by the last click operation when this click operation is received.
[0024] Optionally, the playback module further includes: a fifth music playback submodule, which is used to stop playing the music corresponding to the music keyboard information set by the user if the click operation is for the folding button.
[0025] Optionally, the playback module also includes: a sixth music playback sub-module, which is used to, when receiving a click operation from the user on the input method keyboard again, if the music corresponding to the music keyboard information is one song, restart playing the music corresponding to the music keyboard information; if the music corresponding to the music keyboard information is multiple songs, determine the playback order of the multiple songs corresponding to the music keyboard information, and play the next song of the music that was stopped last time.
[0026] Optionally, the playing module includes: a seventh music playing submodule, used to determine the click speed of the user according to the click operation, and adjust the volume and / or speed of playing the music corresponding to the music keyboard information.
[0027] Optionally, the click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
[0028] Optionally, the device further includes: a setting module, configured to receive a setting operation of the user for the music keyboard; and generate music keyboard information set by the user according to the music corresponding to the setting operation.
[0029] Optionally, the device also includes: a display module, used to generate a single music option using each piece of music, and display each single music option on the music keyboard setting interface; and / or, generate a music collection option using each type of music, and display each music collection option on the music keyboard setting interface.
[0030] Optionally, the display module is used to generate the music keyboard information set by the user for each piece of music corresponding to the music collection option if the setting operation is for the music collection option.
[0031] Optionally, the device also includes: an acquisition module, used to obtain music resource information corresponding to platform music in other music platforms from a server according to preset recommendation rules; and / or, determine the user's music interest information based on the user's historical input information, and obtain music resource information corresponding to platform music in other music platforms that matches the music interest information from the server.
[0032] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the music playing method as described in any one of the embodiments of the present invention.
[0033] An embodiment of the present invention also discloses an electronic device, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: receiving a user's click operation on an input method keyboard, and playing music corresponding to the music keyboard information set by the user.
[0034] Optionally, the playing of the music corresponding to the music keyboard information set by the user includes: when the click operation is received, starting to play the music corresponding to the music keyboard information; when the time after stopping receiving the click operation reaches a first set time, continuously playing the music corresponding to the music keyboard information for a second set time and then stopping.
[0035] Optionally, playing the music corresponding to the music keyboard information set by the user further includes: gradually reducing the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
[0036] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the user's click operation is received again before the time length after stopping receiving the click operation reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
[0037] Optionally, the playing of music corresponding to the music keyboard information set by the user further includes: from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then when this click operation is received, the music corresponding to the music keyboard information is restarted to play; if there are multiple songs corresponding to the music keyboard information, then when this click operation is received, the next song of the music played by the last click operation is started to play.
[0038] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the click operation is for a retract button, stopping the playing of the music corresponding to the music keyboard information set by the user.
[0039] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: when the user's click operation on the input method keyboard is received again, if the music corresponding to the music keyboard information is one song, then restarting the playing of the music corresponding to the music keyboard information; if the music corresponding to the music keyboard information is multiple songs, then determining the playing order of the multiple songs corresponding to the music keyboard information, and playing the next song that was stopped last time.
[0040] Optionally, playing the music corresponding to the music keyboard information set by the user includes: determining the click speed of the user according to the click operation, and adjusting the volume and / or speed of playing the music corresponding to the music keyboard information.
[0041] Optionally, the click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
[0042] Optionally, it also includes instructions for performing the following operations: receiving the user's setting operation for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
[0043] Optionally, it also includes instructions for performing the following music operations on the music keyboard setting interface: generating a single music option using each piece of music, and displaying each single music option on the music keyboard setting interface; and / or generating a music collection option using each type of music, and displaying each music collection option on the music keyboard setting interface.
[0044] Optionally, the generating the music keyboard information set by the user based on the music corresponding to the setting operation includes: if the setting operation is for the music collection option, generating the music keyboard information set by the user for each piece of music corresponding to the music collection option.
[0045] Optionally, it also includes instructions for performing the following operations of obtaining music resource information of the music displayed on the music keyboard setting interface: obtaining music resource information corresponding to platform music in other music platforms from a server according to preset recommendation rules; and / or determining the user's music interest information based on the user's historical input information, and obtaining music resource information corresponding to platform music in other music platforms that matches the music interest information from a server.
[0046] The embodiments of the present invention include the following advantages:
[0047] In the embodiment of the present invention, the input method plays the music corresponding to the music keyboard information set by the user during the process of receiving the user's click operation on the input method keyboard, thereby achieving the playing of music during the input process. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flowchart of a music playing method embodiment of the present invention;
[0049] Figure 2a is a flowchart of a method for setting a music keyboard according to an embodiment of the present invention;
[0050] Figure 2bis a schematic diagram of a music keyboard setting interface according to an embodiment of the present invention;
[0051] Figure 3 is a flowchart of steps of an optional embodiment of a method for setting a music keyboard of the present invention;
[0052] Figure 4a is a schematic diagram of a music keyboard introduction interface according to an embodiment of the present invention;
[0053] Figure 4b is a schematic diagram of a single music viewing interface according to an embodiment of the present invention;
[0054] Figure 4c is a schematic diagram of a music collection viewing interface according to an embodiment of the present invention;
[0055] Figure 5 is a structural block diagram of an embodiment of a music playing device of the present invention;
[0056] Figure 6 is a structural block diagram of an optional embodiment of a music playing device of the present invention;
[0057] Figure 7 A structural block diagram of an electronic device for music playback according to an exemplary embodiment;
[0058] Figure 8 It is a structural schematic diagram of an electronic device for music playing according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] One of the core concepts of the embodiment of the present invention is that the user can select music that meets the needs from a variety of music resources provided by the input method to set up a music keyboard, and then during the input process, the input method can respond to the user's click operation to play the music selected by the user, thereby realizing the playing of music during the input process.
[0061] Reference Figure 1 , shows a flowchart of a music playing method embodiment of the present invention, which may specifically include the following steps:
[0062] Step 102: receiving a click operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
[0063] In an embodiment of the present invention, the input method can provide the function of a music keyboard, and the user can then customize the settings of the music keyboard, such as customizing the selection of music provided by the input method, customizing the playback order of the selected music, etc.; so as to play the music set by the user during the input process.
[0064] After the user has made settings for the music keyboard, the input method can generate corresponding music keyboard information according to the user's settings; and then play the music corresponding to the music keyboard information while receiving the user's click operation on the input method keyboard.
[0065] In the embodiment of the present invention, the music keyboard information may include multiple types, such as music identification, and when the user sets the selected music to include multiple songs, it may also include a sequence identification, etc., which is not limited in the embodiment of the present invention. Then the input method can search for the corresponding music and play it according to the music keyboard information.
[0066] In the embodiment of the present invention, the music provided by the input method may include local music of the input method, and may also include music in other music platforms (hereinafter referred to as platform music); the embodiment of the present invention does not limit this. Among them, the input method server may periodically obtain music from other music platforms, or obtain corresponding platform music from other music platforms when receiving a request sent by the client triggered by the user in the process of setting the music keyboard; of course, the corresponding platform music may also be added from the local music application according to the user's operation, and the embodiment of the present invention does not limit this.
[0067] In summary, in the embodiment of the present invention, the input method can receive a click operation of the user on the input method keyboard and play the music corresponding to the music keyboard information set by the user, thereby playing music during the input process.
[0068] In an embodiment of the present invention, when the user's click operation on the input method keyboard is an operation on a preset area of the input method keyboard, the input method can play corresponding music in response to the user's click operation. The preset area may include at least one of the following: a candidate area, an association area, and a key area; of course, the specific setting can be based on demand, and the embodiment of the present invention does not limit this. The playing method of playing the corresponding music in response to the user's click operation is as follows:
[0069] In one example of the present invention, music can be played at a speed that is adapted to the user's corresponding click operation. One method of playing the music corresponding to the music keyboard information set by the user may be: determining the user's click speed according to the click operation, and adjusting the volume and / or speed of the music corresponding to the music keyboard information. Among them, the time interval between two adjacent click operations can be determined, and then the volume and / or speed of the corresponding music can be adjusted according to the time interval; of course, the user's click speed can also be determined according to the time interval, and then the volume and / or speed of the corresponding music can be adjusted according to the user's click speed. For example, when the user's click speed is less than the first speed threshold, the volume of the music can be adjusted to the first preset volume value, and the volume of the music can be adjusted to the first preset speed value; when the user's click speed is greater than the first speed threshold and less than the second speed threshold, the volume of the music can be adjusted to the second preset volume value, and the volume of the music can be adjusted to the second preset speed value, and so on; the specific method of adjusting the volume and speed can be set according to the requirements, and the embodiment of the present invention does not limit this. Among them, the first speed threshold, the second speed threshold, the first preset volume value, the second preset volume value, the first preset speed value, and the second preset speed value can all be set according to the requirements, and the embodiment of the present invention does not limit this.
[0070] In one example of the present invention, a method of playing the music corresponding to the music keyboard information set by the user may be: when the click operation is received, the music corresponding to the music keyboard information starts to be played; when the time after the click operation stops being received reaches the first set time, the music corresponding to the music keyboard information is played continuously for the second set time and then stopped. That is, when the user starts to click the input method keyboard, the music corresponding to the music keyboard information starts to be played; then the timing is started after detecting that the user stops clicking the input method keyboard, and it is determined whether the time after the click operation stops being received reaches the first set time. When it is determined that the time after the click operation stops being received reaches the first set time, the music is played continuously for the second set time and then stopped. Among them, the first set time and the second set time can be set as required, such as 2s, and the embodiment of the present invention does not limit this.
[0071] In one example of the present invention, a method of playing the music corresponding to the music keyboard information set by the user may be, from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then when the current click operation is received, the music corresponding to the music keyboard information is restarted; if the music corresponding to the music keyboard information is multiple songs, then when the current click operation is received, the next song of the music played by the last click operation is played. This allows the music to be played in a single or multiple loops during the user's click process.
[0072] In one example of the present invention, a method of playing music corresponding to the music keyboard information set by the user may be, if the user's click operation is received again before the time length after stopping receiving the click operation reaches a first set time length, then the music corresponding to the music keyboard information continues to be played.
[0073] In one example of the present invention, a method of playing the music corresponding to the music keyboard information set by the user may be to gradually reduce the volume and / or speed of the music corresponding to the music keyboard information during continuous playing. The specific method of reducing the volume and / or speed of the music may be set as required, and the embodiment of the present invention is not limited thereto.
[0074] In one example of the present invention, a method of playing the music corresponding to the music keyboard information set by the user may be, during the user input process, if the click operation is for the retract key, then the music corresponding to the music keyboard information set by the user is stopped. Of course, when it is detected that the user has performed other operations that trigger the retracting of the input method keyboard, such as clicking on the interface of other applications, the music corresponding to the music keyboard information set by the user may also be stopped.
[0075] In an embodiment of the present invention, when the user clicks on the input method keyboard again, the music corresponding to the music keyboard information can continue to be played. The music corresponding to the music keyboard information set by the user can be one song or multiple songs; therefore, one way to play the music corresponding to the music keyboard information set by the user can be that when the user clicks on the input method keyboard again, if the music corresponding to the music keyboard information is one song, then the music corresponding to the music keyboard information is restarted; if the music corresponding to the music keyboard information is multiple songs, then the order of playing the multiple songs corresponding to the music keyboard information is determined, and the next song of the music that was stopped last time is played. Furthermore, if the user sets a song, then the song will be played again every time the user calls up the input method interface and starts clicking the input method keyboard, or starts clicking the input method keyboard after stopping clicking the input method keyboard for the first set time. If the user has set multiple pieces of music, then each time the user calls up the input method interface and starts clicking the input method keyboard, or starts clicking the input method keyboard after stopping clicking the input method keyboard for the first set time period, the playback order of the multiple pieces of music corresponding to the music keyboard information and the music that was stopped last can be determined; then the next piece of music that was stopped last can be played.
[0076] Among them, there are many ways to determine the playback order, for example, it can be determined according to the order of user-defined selection when the user sets the music keyboard; for example, it can be determined according to the user's input information (the input information can refer to information related to the input, such as upper screen candidates, interaction information, etc.); for example, it can be determined according to the order of input method settings, etc., and the embodiments of the present invention are not limited to this.
[0077] In an optional embodiment of the present invention, when the input method keyboard is called up, the server can be checked to see if the music corresponding to the music keyboard setting information is valid. When the server determines that the music platform has not removed the music corresponding to the music keyboard setting information, and the user has the authority to use the music, a verification success message can be returned; and then in the subsequent user input process in the keyboard interface, the input method can respond to the user's click operation to play the music corresponding to the music keyboard setting information. When the server determines that the music platform has removed the music corresponding to the music keyboard setting information, or the user does not have the authority to use the music, a verification failure message can be returned. If the user does not input when the client receives the verification failure message, the prompt message corresponding to the verification failure message can be displayed, such as by using a pop-up window. If the user is inputting when the client receives the verification failure message, the music that failed the verification can continue to be played in response to the click operation, without displaying the prompt message corresponding to the verification failure message, so as to improve the user experience. Then, after the music that failed the verification is played this time, the music that failed the verification is deleted from the local music resource library.
[0078] In summary, in the embodiments of the present invention, by adopting one or more of the above-mentioned playing methods, corresponding music is played in response to the user's click operation, thereby improving the fun of the music keyboard and improving the user experience.
[0079] In another embodiment of the present invention, the user can enter the setting interface of the music keyboard and set the music to be played during the input process, which can refer to the following steps:
[0080] Reference Figure 2a , shows a flowchart of a method for setting a music keyboard according to an embodiment of the present invention, which may specifically include the following steps:
[0081] Step 202: Receive the user's setting operation for the music keyboard.
[0082] Step 204: Generate the music keyboard information set by the user according to the music corresponding to the setting operation.
[0083] In an embodiment of the present invention, when a user needs to set up a music keyboard, the user can call up the input method interface and then trigger the start operation of the music keyboard setting interface in the input method interface; after the input method receives the start operation, it can enter the music keyboard setting interface and display music in the music keyboard setting interface, so that the user can make settings in the music keyboard setting interface.
[0084] In an embodiment of the present invention, the music displayed in the music keyboard setting interface may include local music and / or music in a music platform, thereby providing users with more diverse choices.
[0085] The user can set the music to be played in response to the click operation in the music keyboard setting interface. After the input method receives the setting operation of the user on the music keyboard, it can determine the music corresponding to the setting operation; then generate the music keyboard information set by the user according to the music resource information of the music corresponding to the setting operation. Then, when the user performs a click operation on the input method keyboard, the music corresponding to the music keyboard setting information can be played in response to the user's click operation.
[0086] In one example of the present invention, when a user needs to set a music keyboard and triggers a start-up operation of the music keyboard setting interface, the input method can enter the music keyboard setting interface of the input method according to the start-up operation and display music on the music keyboard setting interface. As shown in 2b, box 1 displays local music, and box 2 displays music on the music platform. The user can Figure 2b In the music keyboard setting interface, the music that needs to be set to be played in response to the click operation is set, such as setting the song "Song A". Correspondingly, the input method can receive the user's setting operation on the music keyboard; then generate the music keyboard information set by the user according to the music corresponding to the setting operation. For example, the music keyboard information set by the user is generated by using the music identifier corresponding to the song "Song A"; then, after the input method receives the user's click operation on the input method keyboard, it searches for the storage location of the audio data of the song "Song A" according to the music identifier corresponding to the song "Song A", and then plays the song "Song A".
[0087] In summary, in the embodiment of the present invention, after the user enters the music keyboard setting interface, the user can perform a setting operation, and after the input method receives the user's setting operation for the music keyboard, the input method can generate the music keyboard information set by the user based on the music corresponding to the setting operation; subsequently, when the user performs a click operation on the input method keyboard, the music corresponding to the music keyboard setting information can be played in response to the user's click operation.
[0088] In the embodiment of the present invention, an option displayed in the music keyboard setting interface may correspond to a piece of music or a category of music; thereby facilitating the user to select a piece of music or a category of music as the music to be played in response to a click operation.
[0089] Reference Figure 3 , shows a flowchart of an optional embodiment of a method for setting a music keyboard of the present invention, which may specifically include the following steps:
[0090] Step 302: Enter the music keyboard setting interface of the input method according to the user's startup operation on the music keyboard setting interface.
[0091] In the embodiment of the present invention, after the input method adds the function of the music keyboard, when the user calls up the input method interface for the first time, the input method may pop up an introduction window of the music keyboard such as Figure 4a When the user closes the pop-up window, the music keyboard setting interface is displayed and the music is displayed as above. Figure 2b When the user needs to set the music keyboard after calling up the input interface, the user can find the setting tool corresponding to the music keyboard from the input method tool display interface. Then the tool can be started. For example, if the icon corresponding to the tool is clicked, the corresponding input method can enter the music keyboard setting interface.
[0092] In an embodiment of the present invention, after entering the music keyboard setting interface, local music and / or platform music can be displayed in the music keyboard setting interface. Among them, a way to display local music in the music keyboard setting interface can be: obtain music resource information corresponding to local music from the local music resource library, and display the local music in the first display area according to the music resource information corresponding to the local music. In an embodiment of the present invention, the input method is configured with a local music resource library, and the local music resource library is used to store the target music and corresponding music resource information set by the user in history; and the music and corresponding music resource information manually added to the local music collection by the user. Among them, the music resource information can refer to information used to describe music, such as music name, singer, release date, version, type, cover picture, etc., which is not limited in the embodiment of the present invention. Then, according to the first preset display rule, the corresponding music display information can be selected from the music resource information of each local music; and then the music display information of each local music is displayed in the first display area to realize the display of local music. Among them, the first preset display rule can be determined according to demand, such as displaying music cover and music name, and such as displaying music cover, music name and singer, etc., which is not limited in the embodiment of the present invention. The first display area may refer to an area for displaying local music, such as Figure 2b The area corresponding to the square frame 1. When the user needs to view more local music, the user can perform a viewing operation; correspondingly, after receiving the viewing operation of the user, the input method can enter the local music display page to display more local music to the user for the user to choose.
[0093] Among them, a way to display platform music in the music keyboard setting interface can be: obtain music resource information corresponding to platform music in other music platforms from the server, and display the platform music in the second display area according to the music resource information corresponding to the platform music. In one example of the present invention, the server of the input method can periodically obtain platform music and corresponding music resource information from the music platform. When the client of the input method enters the music keyboard setting interface, it can send a request to obtain the music resource information corresponding to the platform music to the corresponding server; after the server receives the request for obtaining the music resource information corresponding to the platform music sent by the client, it can return the corresponding music resource information. Then the client can receive the music resource information returned by the server, and display the corresponding platform music in the second display area according to the received music resource information. Among them, the period for the server to obtain platform music from the music platform can be set as 2 hours according to demand, and the embodiment of the present invention does not limit this. Of course, the server can also obtain the corresponding platform music and music resource information from the music platform according to the acquisition request after receiving the acquisition request for the music resource information corresponding to the platform music sent by the client. Then the corresponding music resource information is returned to the client. In the embodiment of the present invention, the client of the input method can select corresponding music display information from the music resource information of each platform music according to the second preset display rule; and then display the music display information of each platform music in the second display area to display the platform music. The second preset display rule can be determined according to demand; such as displaying the music cover and the music name, or displaying the music cover, the music name and the singer, etc., which is not limited in the embodiment of the present invention.
[0094] In an embodiment of the present invention, the first preset display rule of the first display area and the second preset display rule of the second display area may be the same or different, and the embodiment of the present invention does not limit this. Among them, the number of music displayed in the first display area and the second display area and the display style can be set as required; the display style may refer to the display method of music display information, such as the size of the displayed music cover, the number of texts of the displayed music name, the font size, etc., and the embodiment of the present invention does not limit this. Of course, the number of music displayed in the first display area and the display style, and the number of music displayed in the second display area and the display style can be set as required, and can be the same or different; the embodiment of the present invention does not limit this.
[0095] In one example of the present invention, a method for obtaining platform music resource information corresponding to platform music from a server may be: according to preset recommendation rules, obtain music resource information corresponding to platform music in other music platforms from the server. In an embodiment of the present invention, preset recommendation rules may be set in advance according to demand, and the preset recommendation rules may refer to rules for recommending platform music to users, such as recommending the latest platform music to users, and recommending popular platform music to users, etc., which are not limited in the embodiment of the present invention. Then, a request for obtaining music resource information corresponding to platform music may be generated according to the preset recommendation rules and sent to the server; after the server obtains the acquisition request, it may search for music resource information matching the acquisition request, and then return it to the corresponding client. Then, the client may obtain music resource information corresponding to the platform music of the preset recommendation rules from the server, and display the platform music corresponding to the preset recommendation rules. For example, the preset recommendation rule: recommending popular platform music to users, then the client may obtain music resource information of popular platform music from the server, and display popular platform music.
[0096] In one example of the present invention, another way to obtain platform music resource information corresponding to platform music from a server may be: determine the music interest information of the user based on the user's historical input information, and obtain the music resource information corresponding to the platform music matching the music interest information in other music platforms from the server. In an embodiment of the present invention, the input method can record the user's input information during the user input process, and the input information can refer to information related to the input, such as input sequence, interaction information between the local terminal and the opposite terminal, upper screen candidates, input environment, usage information of other applications on the terminal, etc., which is not limited in the embodiment of the present invention. Then, the user's music interest is analyzed based on the user's historical input information to determine the user's music interest information; for example, the category of the user's favorite music is analyzed based on the user's historical input information, and the category is used as the user's music interest information. Among them, the input method can obtain the historical input information of users of the entire network, and then determine the user's music interest information based on the historical input information of users of the entire network, or only obtain the user's historical input information, and determine the user's music interest information based on the user's historical input information, which is not limited in the embodiment of the present invention. Then, a request for obtaining the music resource information corresponding to the platform music can be generated based on the music interest information and sent to the server; after the server obtains the acquisition request, it can search for the music resource information that matches the acquisition request and then return it to the corresponding client. Then, the client can obtain the music resource information of the platform music that matches the user's music interest information from the server, and display the platform music that matches the user's music interest information. For example, if the music interest information is folk songs, the client can obtain the music resource information corresponding to the platform music of the folk song type from the server and display the platform music of the folk song type.
[0097] In the embodiment of the present invention, whether displaying local music or displaying platform music, a piece of music can be displayed as an option, refer to step 304, or a category of music can be displayed as an option, refer to step 306; the specific settings can be made according to needs, and the embodiment of the present invention does not limit this.
[0098] Among them, the music described below includes local music and platform music.
[0099] Step 304: Generate a single music option using each piece of music, and display each single music option on the music keyboard setting interface.
[0100] In the embodiment of the present invention, for each piece of music, a single music option can be generated using the music; and then the single music options are displayed on the music keyboard setting interface. Figure 2b In box 1, "Song A", "Song B", etc. are all single music options; in box 2, "Song E", "Song F", etc. are all single music options.
[0101] Step 306: Generate a music collection option using each type of music, and display each music collection option on the music keyboard setting interface.
[0102] Among them, one type of music may include at least two pieces of music.
[0103] In an example of the present invention, for local music, the input method can treat the music in each local music collection as a category of music, and then use each category of music to generate a music collection option, such as Figure 2b In block 1 of the input method: "My Playlist". The local music collection may include a music collection preset by the input method (which may be referred to as a default music collection), or may include music collections created by the user.
[0104] In one example of the present invention, the music platform can classify the platform music in advance, and then the input method server can obtain the various types of platform music and corresponding music resource information from the music platform; after the input method client obtains the music resource information corresponding to the various types of platform music from the server, for each type of platform music, a corresponding music collection option can be generated using the platform music of this type. Then, the music collection options are displayed on the music keyboard setting interface, such as Figure 2b In box 2: "Healing warm male voice", "Singer C's new work", etc. The music platform can classify the platform music from different dimensions. For example, according to the genre classification, folk songs, rock, electronic music, etc. can be obtained; for example, according to the singer classification, singer a, singer b, etc. can be obtained; this is not limited in the embodiment of the present invention.
[0105] Among them, when the music is a song, the single music option can also be called a song option, and the music collection option can also be called a playlist option.
[0106] In an example of the present invention, the input method may also classify the platform music corresponding to the music interest information of the user as a category, and then use this category of music to generate a music collection option, such as a name of "You may like".
[0107] Of course, in the embodiment of the present invention, single music options and music collection options can be displayed simultaneously in the music keyboard setting interface to facilitate the user to select a single music or a category of music as the target music; the embodiment of the present invention does not limit this.
[0108] In an optional embodiment of the present invention, for each music collection option, a music collection identifier can be added to the music collection option when the music collection option is displayed to distinguish it from the single music option. For example, the word "playlist" can be added, such as Figure 2b In box 2: "Healing warm male voice" corresponds to the word "playlist" displayed in the upper right corner of the picture.
[0109] In addition, in the embodiment of the present invention, the display interface of the music keyboard can also display key press sound effects; wherein the input method can classify all key press sound effects and generate corresponding music collection options, such as Figure 2b "Key sound effect" in box 1 in the
[0110] Step 308: Receive the user's setting operation for the music keyboard.
[0111] Step 310: If the setting operation is for the music collection option, then generate the music keyboard information set by the user according to the multiple pieces of music in the music collection option corresponding to the setting operation.
[0112] In an embodiment of the present invention, various functions can be provided for each single music option in the music keyboard setting interface, such as audition, activation, deletion, adding to local file collection, collection, viewing, etc.; of course, other functions can also be included, and the embodiment of the present invention does not limit this.
[0113] Among them, no matter which function of the single music option is triggered by the user, if the music corresponding to the single music option is local music, the operation corresponding to the function can be directly performed on the music corresponding to the single music option; if the music corresponding to the single music option is platform music, the music corresponding to the single music option can be downloaded from the server, and then the operation corresponding to the function can be performed on the downloaded music.
[0114] In one example of the present invention, when it is determined that the user triggers the audition function, the music corresponding to the single music option can be played; when it is determined that the user triggers the enable function, the user's setting operation for the music corresponding to the single music option can be received, and at this time, the music keyboard information can be generated according to the music corresponding to the single music option. For another example, when it is determined that the user triggers the delete function, if the music corresponding to the single music option is local music, the music and music resource information corresponding to the single music option are deleted from the local music resource library, and the single music option is deleted from the music keyboard display interface. If the music corresponding to the single music option is platform music, the music resource information of the music corresponding to the single music option is deleted, and the single music option is deleted from the music keyboard display interface. When it is determined that the user triggers the add to local music collection (collection) function, the music corresponding to the single music option can be added to the corresponding selected local music collection; and the single music option is deleted. When it is determined that the user triggers the view function, the music resource information of the music corresponding to the single music option can be displayed; for example, after it is determined that the user triggers the view function of the single music option "Song B", the following can be displayed. Figure 4b The interface shown, where Figure 4b Only part of the music resource information is displayed.
[0115] Among them, if the user triggers the activation function for multiple single music options, the input method can generate music keyboard information according to the music corresponding to each single music option; the embodiment of the present invention does not limit this.
[0116] Of course, for each music collection option in the music keyboard setting interface, various functions similar to the above-mentioned single music option can be provided; among them, when it is determined that the user triggers the audition function, each piece of music in the music collection option is played; when it is determined that the user triggers the activation function, the user's setting operation for each piece of music in the music collection option can be received, and the music keyboard information can be generated according to each piece of music corresponding to the music collection option. For another example, when it is determined that the user triggers the deletion function, if the music corresponding to the music collection option is local music, the music and music resource information corresponding to the music collection option are deleted from the local music resource library; of course, the music collection option can also be deleted from the music keyboard display interface, or the music collection option can continue to be retained. If the music corresponding to the music collection option is platform music, the music resource information corresponding to the music collection option is deleted, and the music collection option is deleted from the music keyboard display interface. When it is determined that the user triggers the add to local file collection (favorites) function, each piece of music corresponding to the music collection option can be added to the corresponding selected file collection (default file collection); and the music collection option is deleted. When it is determined that the user triggers the view function, the music list corresponding to the music collection option can be displayed, such as Figure 4cAmong them, for each music in the music list, various functions similar to the above-mentioned single music option can be provided, which will not be repeated here.
[0117] Among them, when it is determined that the user triggers a single music option (or a music set option or music in a music set music list) to trigger an activation function or add to music set function or collection function, if the music corresponding to the single music option (or the music corresponding to the music set option or the music in the music list) is platform music, the platform music can be determined as local music. Among them, if the activation function is triggered for a single music option, the corresponding platform music and music resources can be stored in the local music resource library; and the single music option is deleted from the second display area, and the single music option is displayed in the first display area. If the activation function is triggered for the music in the music list, the music in the music list and the corresponding music resources can be stored in the local music resource library; and the music is deleted from the music list, and the single music option corresponding to the music is displayed in the first display area. If the add to music set function or collection function is triggered for the single music option (or music set option), the corresponding platform music and music resource information can be stored in the corresponding local music set; and the single music option (or music set option) is deleted from the second display area. If the add to music collection function or the collection function is triggered for the music in the music list, the music in the music list and the corresponding music resource information can be stored in the corresponding local music collection; and the music can be deleted from the music list.
[0118] Of course, when the user triggers the activation function or the audition function, the corresponding music can be verified; when the corresponding music verification succeeds, the music keyboard information will be generated or the music will be played according to the music. When the corresponding music verification fails, the corresponding prompt information of the verification failure can be displayed.
[0119] Among them, platform music downloaded based on the trial listening function triggered by the user can be deleted after a set period to reduce storage space. The set period can be set as required, such as 24 hours, and the embodiment of the present invention does not limit this.
[0120] In summary, in the embodiment of the present invention, the input method can generate a single music option for each piece of music, and display each single music option in the music keyboard setting interface, or can generate a music collection option for each type of music, and display each music collection option in the music keyboard setting interface, and then display the single music option and / or music collection option. This makes it convenient for the user to perform setting operations on a piece of music, or a type of music; after the input method receives the user's setting operation on the music in the music keyboard setting interface, if the setting operation is for the music collection option, then the corresponding music keyboard information is generated according to each piece of music corresponding to the music collection option; when the setting operation is for the single music option, then the corresponding music keyboard information is generated according to the piece of music corresponding to the single music option; thereby improving the flexibility of user selection and improving user experience.
[0121] Secondly, in an embodiment of the present invention, the input method can obtain the user's historical input information, and then determine the user's music interest information based on the user's historical input information, and obtain music resource information corresponding to the platform music matching the music interest information from the server; and then can recommend music that meets the user's interests to better meet the user's needs.
[0122] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0123] Reference Figure 5 , shows a structural block diagram of an embodiment of a music playing device of the present invention, which may specifically include the following modules:
[0124] The playback module 502 is used to receive a click operation of the user on the input method keyboard and play the music corresponding to the music keyboard information set by the user.
[0125] Reference Figure 6 , showing a structural block diagram of an optional embodiment of a music playing device of the present invention.
[0126] In an optional embodiment of the present invention, the playing module 502 includes:
[0127] The first music playing submodule 5022 is used to start playing the music corresponding to the music keyboard information when receiving the click operation; when the time after stopping receiving the click operation reaches a first set time, the music corresponding to the music keyboard information is played continuously for a second set time and then stopped.
[0128] In an optional embodiment of the present invention, the playing module 502 further includes:
[0129] The second music playing submodule 5024 is used to gradually reduce the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
[0130] In an optional embodiment of the present invention, the playing module 502 further includes:
[0131] The third music playing submodule 5026 is used to continue playing the music corresponding to the music keyboard information if the user's click operation is received again before the time length after stopping receiving the click operation reaches the first set time length.
[0132] In an optional embodiment of the present invention, the playing module 502 further includes:
[0133] The fourth music playing submodule 5028 is used for, from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then when the current click operation is received, the music corresponding to the music keyboard information will be restarted to play; if the music corresponding to the music keyboard information is multiple songs, then when the current click operation is received, the next song of the music played by the last click operation will be started to play.
[0134] In an optional embodiment of the present invention, the playing module 502 further includes:
[0135] The fifth music playing submodule 50210 is used to stop playing the music corresponding to the music keyboard information set by the user if the click operation is for the folding button.
[0136] In an optional embodiment of the present invention, the playing module 502 further includes:
[0137] The sixth music playing submodule 50212 is used for restarting the playing of the music corresponding to the music keyboard information if the music corresponding to the music keyboard information is one song when a click operation of the user on the input method keyboard is received again; if the music corresponding to the music keyboard information is multiple songs, determining the playing order of the multiple songs corresponding to the music keyboard information and playing the next song of the music that was stopped last time.
[0138] In an optional embodiment of the present invention, the playing module 502 includes:
[0139] The seventh music playing submodule 50214 is used to determine the click speed of the user according to the click operation, and adjust the volume and / or speed of playing the music corresponding to the music keyboard information.
[0140] In an optional embodiment of the present invention, the click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
[0141] In an optional embodiment of the present invention, the device further includes: a setting module 504, which is used to receive the user's setting operation for the music keyboard; and generate the music keyboard information set by the user according to the music corresponding to the setting operation.
[0142] In an optional embodiment of the present invention, the device also includes: a display module 506, which is used to generate a single music option using each piece of music, and display each single music option on the music keyboard setting interface; and / or, generate a music collection option using each type of music, and display each music collection option on the music keyboard setting interface.
[0143] In an optional embodiment of the present invention, the display module 506 is used to generate the music keyboard information set by the user for each piece of music corresponding to the music collection option if the setting operation is for the music collection option.
[0144] In an optional embodiment of the present invention, the device also includes: an acquisition module 508, which is used to obtain music resource information corresponding to platform music in other music platforms from the server according to preset recommendation rules; and / or, determine the user's music interest information based on the user's historical input information, and obtain music resource information corresponding to platform music in other music platforms that matches the music interest information from the server.
[0145] In the embodiment of the present invention, the input method plays the music corresponding to the music keyboard information set by the user during the process of receiving the user's click operation on the input method keyboard, thereby achieving the playing of music during the input process.
[0146] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0147] Figure 71 is a block diagram of an electronic device 700 for music playback according to an exemplary embodiment. For example, the electronic device 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, etc.
[0148] Reference Figure 7 , the electronic device 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 .
[0149] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0150] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 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 memory, flash memory, magnetic disk or optical disk.
[0151] The power component 706 provides power to the various components of the electronic device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.
[0152] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 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 touch screen to receive input signals from the 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 boundaries of the 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 camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0153] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0154] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as 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.
[0155] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of the components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of contact between the user and the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects 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.
[0156] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can 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 714 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 714 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0157] In an exemplary embodiment, the electronic device 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, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0158] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0159] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to execute a music playing method, the method comprising: receiving a user's click operation on an input method keyboard, and playing music corresponding to the music keyboard information set by the user.
[0160] Optionally, the playing of the music corresponding to the music keyboard information set by the user includes: when the click operation is received, starting to play the music corresponding to the music keyboard information; when the time after stopping receiving the click operation reaches a first set time, continuously playing the music corresponding to the music keyboard information for a second set time and then stopping.
[0161] Optionally, playing the music corresponding to the music keyboard information set by the user further includes: gradually reducing the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
[0162] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the user's click operation is received again before the time length after stopping receiving the click operation reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
[0163] Optionally, the playing of music corresponding to the music keyboard information set by the user further includes: from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then when this click operation is received, the music corresponding to the music keyboard information is restarted to play; if there are multiple songs corresponding to the music keyboard information, then when this click operation is received, the next song of the music played by the last click operation is started to play.
[0164] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the click operation is for a retract button, stopping the playing of the music corresponding to the music keyboard information set by the user.
[0165] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: when the user's click operation on the input method keyboard is received again, if the music corresponding to the music keyboard information is one song, then restarting the playing of the music corresponding to the music keyboard information; if the music corresponding to the music keyboard information is multiple songs, then determining the playing order of the multiple songs corresponding to the music keyboard information, and playing the next song that was stopped last time.
[0166] Optionally, playing the music corresponding to the music keyboard information set by the user includes: determining the click speed of the user according to the click operation, and adjusting the volume and / or speed of playing the music corresponding to the music keyboard information.
[0167] Optionally, the click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
[0168] Optionally, the method further includes: receiving a setting operation of the user for the music keyboard; and generating music keyboard information set by the user according to the music corresponding to the setting operation.
[0169] Optionally, the method also includes the step of displaying music on the music keyboard setting interface: generating a single music option using each piece of music, and displaying each single music option on the music keyboard setting interface; and / or generating a music collection option using each type of music, and displaying each music collection option on the music keyboard setting interface.
[0170] Optionally, the generating the music keyboard information set by the user based on the music corresponding to the setting operation includes: if the setting operation is for the music collection option, generating the music keyboard information set by the user for each piece of music corresponding to the music collection option.
[0171] Optionally, the method also includes the step of obtaining music resource information of the music displayed on the music keyboard setting interface: according to preset recommendation rules, obtaining music resource information corresponding to platform music in other music platforms from a server; and / or, determining the user's music interest information based on the user's historical input information, and obtaining music resource information corresponding to platform music in other music platforms that matches the music interest information from a server.
[0172] Figure 8 1 is a schematic diagram of the structure of an electronic device 800 for music playback according to another exemplary embodiment of the present invention. The electronic device 800 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 may be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 822 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server.
[0173] The server may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, one or more keyboards 856, and / or one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0174] An electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: receiving a user's click operation on an input method keyboard, and playing music corresponding to the music keyboard information set by the user.
[0175] Optionally, the playing of the music corresponding to the music keyboard information set by the user includes: when the click operation is received, starting to play the music corresponding to the music keyboard information; when the time after stopping receiving the click operation reaches a first set time, continuously playing the music corresponding to the music keyboard information for a second set time and then stopping.
[0176] Optionally, playing the music corresponding to the music keyboard information set by the user further includes: gradually reducing the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
[0177] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the user's click operation is received again before the time length after stopping receiving the click operation reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
[0178] Optionally, the playing of music corresponding to the music keyboard information set by the user further includes: from receiving the click operation to stopping receiving the click operation, when the music is played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then when this click operation is received, the music corresponding to the music keyboard information is restarted to play; if there are multiple songs corresponding to the music keyboard information, then when this click operation is received, the next song of the music played by the last click operation is started to play.
[0179] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: if the click operation is for a retract button, stopping the playing of the music corresponding to the music keyboard information set by the user.
[0180] Optionally, the playing of the music corresponding to the music keyboard information set by the user further includes: when the user's click operation on the input method keyboard is received again, if the music corresponding to the music keyboard information is one song, then restarting the playing of the music corresponding to the music keyboard information; if the music corresponding to the music keyboard information is multiple songs, then determining the playing order of the multiple songs corresponding to the music keyboard information, and playing the next song that was stopped last time.
[0181] Optionally, playing the music corresponding to the music keyboard information set by the user includes: determining the click speed of the user according to the click operation, and adjusting the volume and / or speed of playing the music corresponding to the music keyboard information.
[0182] Optionally, the click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
[0183] Optionally, it also includes instructions for performing the following operations: receiving the user's setting operation for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
[0184] Optionally, it also includes instructions for performing the following music operations on the music keyboard setting interface: generating a single music option using each piece of music, and displaying each single music option on the music keyboard setting interface; and / or generating a music collection option using each type of music, and displaying each music collection option on the music keyboard setting interface.
[0185] Optionally, the generating the music keyboard information set by the user based on the music corresponding to the setting operation includes: if the setting operation is for the music collection option, generating the music keyboard information set by the user for each piece of music corresponding to the music collection option.
[0186] Optionally, it also includes instructions for performing the following operations of obtaining music resource information of the music displayed on the music keyboard setting interface: obtaining music resource information corresponding to platform music in other music platforms from a server according to preset recommendation rules; and / or determining the user's music interest information based on the user's historical input information, and obtaining music resource information corresponding to platform music in other music platforms that matches the music interest information from a server.
[0187] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0188] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0189] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0190] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0191] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0192] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0193] The music playing method, the music playing device and the electronic device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A music playing method, characterized in that: include: Receive user settings for the music keyboard; Generating the music keyboard information set by the user according to the music corresponding to the setting operation, including: determining the music interest information of the user according to the historical input information of the user, and obtaining the music resource information corresponding to the platform music matching the music interest information in other application platforms from the server; Receive a user's click operation on an input method keyboard, and play the music corresponding to the music keyboard information set by the user, including: when the click operation is received, start playing the music corresponding to the music keyboard information; when the time after stopping receiving the click operation reaches a first set time, continue playing the music corresponding to the music keyboard information for a second set time and then stop playing; when the user's click operation on the input method keyboard is received again; if there are multiple pieces of music corresponding to the music keyboard information, determine the play order of the multiple pieces of music corresponding to the music keyboard information, and play the next piece of music that was stopped last time, wherein the method for determining the play order includes at least one of: setting the play order according to the user, determining the play order according to the user's input information, and setting the play order according to the input method.
2. The method according to claim 1, characterized in that The playing of the music corresponding to the music keyboard information set by the user also includes: During the continuous playing process, the volume and / or speed of the music corresponding to the music keyboard information is gradually reduced.
3. The method according to claim 1, characterized in that The playing of the music corresponding to the music keyboard information set by the user also includes: If a click operation from the user is received again before the time duration after stopping receiving the click operation reaches the first set time duration, the music corresponding to the music keyboard information continues to be played.
4. The method according to claim 1, characterized in that The playing of the music corresponding to the music keyboard information set by the user also includes: From receiving the click operation to stopping receiving the click operation, when the last click operation is received and the music is played to the end, If the music corresponding to the music keyboard information is a single song, then the music corresponding to the music keyboard information is restarted when the click operation is received; If there are multiple pieces of music corresponding to the music keyboard information, the next piece of music played by the last click operation will start to be played when the current click operation is received.
5. The method according to claim 1, characterized in that: The playing of the music corresponding to the music keyboard information set by the user also includes: If the click operation is for a folding button, the music corresponding to the music keyboard information set by the user is stopped from playing.
6. The method according to claim 1, characterized in that The playing of the music corresponding to the music keyboard information set by the user also includes: When receiving a click operation of the user on the input method keyboard again, If the music corresponding to the music keyboard information is one song, then the music corresponding to the music keyboard information is restarted.
7. The method according to claim 1, characterized in that The playing of the music corresponding to the music keyboard information set by the user includes: The clicking speed of the user is determined according to the clicking operation, and the volume and / or speed of the music corresponding to the music keyboard information is adjusted.
8. The method according to claim 1, characterized in that The click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
9. The method according to claim 1, characterized in that: The method further comprises the step of displaying music on the music keyboard setting interface: Generate a single music option using each piece of music, and display each single music option on the music keyboard setting interface; and / or, A music collection option is generated using each type of music, and each music collection option is displayed on the music keyboard setting interface.
10. The method according to claim 9, characterized in that The step of generating the music keyboard information set by the user according to the music corresponding to the setting operation includes: If the setting operation is for the music collection option, the music keyboard information set by the user is generated for each piece of music corresponding to the music collection option.
11. The method according to claim 9, characterized in that The method further comprises the step of obtaining music resource information of the music displayed on the music keyboard setting interface: According to the preset recommendation rules, the music resource information corresponding to the platform music in other music platforms is obtained from the server.
12. A music playing device, characterized in that: include: A display module, used to generate a single music option using each piece of music, and display each single music option on the music keyboard setting interface; And / or, each type of music is used to generate a music collection option, and each music collection option is displayed on the music keyboard setting interface, which includes: an acquisition module, which is used to determine the music interest information of the user based on the user's historical input information, and obtain music resource information corresponding to the platform music matching the music interest information in other music platforms from the server; The playing module is used to receive a user's click operation on the input method keyboard and play the music corresponding to the music keyboard information set by the user, including: a first music playing submodule, which is used to start playing the music corresponding to the music keyboard information when receiving the click operation; when the time after stopping receiving the click operation reaches a first set time, the music corresponding to the music keyboard information is played continuously for a second set time and then stopped; a sixth music playing submodule is used to determine the playing order of the multiple music corresponding to the music keyboard information when receiving the user's click operation on the input method keyboard again, if there are multiple music corresponding to the music keyboard information, and play the next music of the music that was stopped last time.
13. The device according to claim 12, characterized in that The playback module further includes: The second music playing submodule is used to gradually reduce the volume and / or speed of the music corresponding to the music keyboard information during continuous playing.
14. The device according to claim 12, characterized in that The playback module further includes: The third music playing submodule is used to continue playing the music corresponding to the music keyboard information if the user's click operation is received again before the time length after stopping receiving the click operation reaches the first set time length.
15. The device according to claim 12, characterized in that The playback module further includes: The fourth music playing submodule is used for, from receiving the click operation to stopping receiving the click operation, when the music played to the end when the last click operation is received, if the music corresponding to the music keyboard information is one song, then restart playing the music corresponding to the music keyboard information when receiving this click operation; if there are multiple songs corresponding to the music keyboard information, then start playing the next song of the music played by the last click operation when receiving this click operation.
16. The device according to claim 12, characterized in that The playback module further includes: The fifth music playing submodule is used to stop playing the music corresponding to the music keyboard information set by the user if the click operation is for the folding button.
17. The device according to claim 12, characterized in that The sixth music playing submodule is also used for restarting the playing of the music corresponding to the music keyboard information when receiving a click operation of the user on the input method keyboard again, if the music corresponding to the music keyboard information is a single song.
18. The device according to claim 12, characterized in that The playback module comprises: The seventh music playing submodule is used to determine the click speed of the user according to the click operation, and adjust the volume and / or speed of playing the music corresponding to the music keyboard information.
19. The device according to claim 12, characterized in that The click operation targets at least one of the following areas: a candidate area, an association area, and a key area.
20. The device according to claim 12, characterized in that The device also includes: The setting module is used to receive the setting operation of the user for the music keyboard; and generate the music keyboard information set by the user according to the music corresponding to the setting operation.
21. The device according to claim 12, characterized in that The display module is used to generate the music keyboard information set by the user for each piece of music corresponding to the music collection option if the setting operation is for the music collection option.
22. The device according to claim 12, characterized in that The acquisition module is also used to obtain music resource information corresponding to platform music in other music platforms from the server according to preset recommendation rules.
23. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the music playing method as described in any one of method claims 1-11.
24. An electronic device, characterized in that: It comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to perform the music playing method as described in any one of method claims 1-11.
Citation Information
Patent Citations
Method and system for calling out matched music by using character input interface
CN102541408A
Voice input method and device of mobile terminal
CN102902506A
Method and system for implementing music playing on keyboard by using input method
CN103729141A
Method and device for realizing music play in instant messaging interface
CN105119815A
System AMD method for a song specific keyboard
US20130157761A1