CN112445451A - Music playing method and device and electronic equipment - Google Patents
Music playing method and device and electronic equipment Download PDFInfo
- Publication number
- CN112445451A CN112445451A CN201910824160.0A CN201910824160A CN112445451A CN 112445451 A CN112445451 A CN 112445451A CN 201910824160 A CN201910824160 A CN 201910824160A CN 112445451 A CN112445451 A CN 112445451A
- Authority
- CN
- China
- Prior art keywords
- music
- user
- playing
- keyboard
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 177
- 230000008569 process Effects 0.000 claims abstract description 32
- 230000006870 function Effects 0.000 description 40
- 238000010586 diagram Methods 0.000 description 19
- 238000012545 processing Methods 0.000 description 15
- 238000012795 verification Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 10
- 230000001960 triggered effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000004044 response Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000035876 healing Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The embodiment of the invention provides a music playing method, a music playing device and electronic equipment, wherein the method comprises the following steps: 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; thereby realizing playing music in the input process.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a music playing method and apparatus, and an electronic device.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people. These electronic devices are typically installed with an input method application (abbreviated as input method) so that a user can input information using the input method.
With the increasing demand of users, the functions of input methods also need to be enriched to improve the user experience.
Disclosure of Invention
The embodiment of the invention provides a music playing method, which is used for playing music in an input process.
Correspondingly, the embodiment of the invention also provides a music playing device and electronic equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a music playing method, which specifically includes: and receiving the clicking operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: when the clicking operation is received, music corresponding to the music keyboard information is played; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and gradually reducing the volume and/or speed of the music corresponding to the music keyboard information in the continuous playing process.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation of the user is received again before the time length after the receiving of the clicking operation is stopped reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: before the click operation is received and the click operation is stopped being received, 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, the music corresponding to the music keyboard information is played again when the current click operation is received; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation is directed at the retracting key, stopping playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: when the clicking operation of the user for the input method keyboard is received again, if the music corresponding to the music keyboard information is one, the music corresponding to the music keyboard information is played again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: and determining the clicking speed of the user according to the clicking operation, and adjusting the volume and/or speed of music corresponding to the music keyboard information.
Optionally, the click operation is directed to at least one of the following regions: a candidate area, an association area and a key area.
Optionally, the method further comprises: receiving a setting operation of the user for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
Optionally, the method further includes the step of displaying music on the music keyboard setting interface: respectively adopting each piece of music to generate a single music option, and displaying each single music option on the music keyboard setting interface; and/or generating a music collection option by adopting each type of music respectively, and displaying each music collection option on the music keyboard setting interface.
Optionally, the generating the music keyboard information set by the user according to the music corresponding to the setting operation includes: and if the setting operation is directed at the music collection option, generating the music keyboard information set by the user by using each piece of music corresponding to the music collection option.
Optionally, the method further includes the step of obtaining music resource information of the music displayed on the music keyboard setting interface: acquiring music resource information corresponding to platform music in other music platforms from a server according to a preset recommendation rule; and/or determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server.
The embodiment of the invention also discloses a music playing device, which specifically comprises: and the playing module is used for receiving the clicking operation of the user on the input method keyboard and playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing module includes: the first music playing sub-module is used for starting to play music corresponding to the music keyboard information when the click operation is received; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
Optionally, the playing module further includes: and the second music playing sub-module is used for gradually reducing the volume and/or speed of the music corresponding to the music keyboard information in the continuous playing process.
Optionally, the playing module further includes: and the third music playing sub-module is used for continuing to play the music corresponding to the music keyboard information if the clicking operation of the user is received again before the time length after the clicking operation is stopped to be received reaches the first set time length.
Optionally, the playing module further includes: a fourth music playing sub-module, configured to, before the click operation is received and the click operation is stopped from being received, when the music is played to the end when the last click operation is received, restart to play the music corresponding to the music keyboard information when the click operation is received if the music corresponding to the music keyboard information is one piece; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
Optionally, the playing module further includes: and the fifth music playing submodule is used for stopping playing the music corresponding to the music keyboard information set by the user if the clicking operation is directed at the retracting key.
Optionally, the playing module further includes: a sixth music playing sub-module, configured to restart playing music corresponding to the music keyboard information if the music corresponding to the music keyboard information is a first music when a click operation of the user on an input method keyboard is received again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
Optionally, the playing module includes: and the seventh music playing sub-module is used for determining the clicking speed of the user according to the clicking operation and adjusting the volume and/or speed of playing music corresponding to the music keyboard information.
Optionally, the click operation is directed to at least one of the following regions: a candidate area, an association area and a key area.
Optionally, the apparatus further comprises: the setting module is used for receiving the setting operation of the user for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
Optionally, the apparatus further comprises: the display module is used for generating a single music option by adopting each piece of music respectively and displaying each single music option on the music keyboard setting interface; and/or generating a music collection option by adopting each type of music respectively, and displaying each music collection option on the music keyboard setting interface.
Optionally, the display module is configured 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.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring music resource information corresponding to platform music in other music platforms from the server according to a preset recommendation rule; and/or determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server.
The embodiment of the invention also discloses a readable storage medium, and when the instructions in the storage medium are executed by a processor of the electronic equipment, the electronic equipment can execute the music playing method in any embodiment of the invention.
An embodiment of the present invention also discloses an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, and the one or more programs include instructions for: and receiving the clicking operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: when the clicking operation is received, music corresponding to the music keyboard information is played; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and gradually reducing the volume and/or speed of the music corresponding to the music keyboard information in the continuous playing process.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation of the user is received again before the time length after the receiving of the clicking operation is stopped reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: before the click operation is received and the click operation is stopped being received, 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, the music corresponding to the music keyboard information is played again when the current click operation is received; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation is directed at the retracting key, stopping playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: when the clicking operation of the user for the input method keyboard is received again, if the music corresponding to the music keyboard information is one, the music corresponding to the music keyboard information is played again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: and determining the clicking speed of the user according to the clicking operation, and adjusting the volume and/or speed of music corresponding to the music keyboard information.
Optionally, the click operation is directed to at least one of the following regions: a candidate area, an association area and a key area.
Optionally, further comprising instructions for: receiving a setting operation of the user for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
Optionally, the method further includes an instruction for performing the following music displaying operation on the music keyboard setting interface: respectively adopting each piece of music to generate a single music option, and displaying each single music option on the music keyboard setting interface; and/or generating a music collection option by adopting each type of music respectively, and displaying each music collection option on the music keyboard setting interface.
Optionally, the generating the music keyboard information set by the user according to the music corresponding to the setting operation includes: and if the setting operation is directed at the music collection option, generating the music keyboard information set by the user by using each piece of music corresponding to the music collection option.
Optionally, the method further includes an instruction for performing the following operations of obtaining music resource information of music displayed on the music keyboard setting interface: acquiring music resource information corresponding to platform music in other music platforms from a server according to a preset recommendation rule; and/or determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, an input method plays music corresponding to music keyboard information set by a user in the process of receiving click operation of the user on an input method keyboard; thereby realizing playing music in the input process.
Drawings
FIG. 1 is a flow chart of steps of a music playing method embodiment of the present invention;
FIG. 2a is a flowchart illustrating steps of a method for setting a music keyboard according to an embodiment of the present invention;
FIG. 2b is a diagram of a musical keyboard setup interface according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps in an alternative embodiment of a music keyboard setup method of the present invention;
FIG. 4a is a schematic diagram of a musical keyboard presentation interface according to an embodiment of the present invention;
FIG. 4b is a schematic diagram of an individual music viewing interface in accordance with an embodiment of the present invention;
FIG. 4c is a schematic view of a music collection viewing interface according to an embodiment of the present invention;
FIG. 5 is a block diagram of a music player according to an embodiment of the present invention;
fig. 6 is a block diagram showing the structure of an alternative embodiment of a music player apparatus according to the present invention;
FIG. 7 illustrates a block diagram of an electronic device for music playback, in accordance with an exemplary embodiment;
fig. 8 is a schematic structural diagram of an electronic device for music playing according to another exemplary embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core ideas of the embodiment of the invention is that a user can select music which meets the requirements from various music resources provided by an input method to set a music keyboard, and then the input method can respond to the clicking operation of the user to play the music selected by the user in the input process, so that the music can be played in the input process.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a music playing method according to the present invention is shown, which may specifically include the following steps:
and 102, 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.
In the embodiment of the invention, the input method can provide the function of the music keyboard, so that a user can set the music keyboard in a self-defined way, such as self-defining selection of music provided by the input method, self-defining setting of the playing sequence of the selected music and the like; so as to play the music set by the user in the input process.
After the user sets the music keyboard, the input method can generate corresponding music keyboard information according to the setting of the user; and then playing music corresponding to the music keyboard information in the process of receiving the clicking operation of the user on the input method keyboard.
In this embodiment of the present invention, the music keyboard information may include multiple types, such as a music identifier, and when the user sets that the selected music includes multiple pieces, the music keyboard information may further include a sequence identifier, and the like. And then the input method can search and play the corresponding music according to the music keyboard information.
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 (which may be referred to as platform music later); the embodiments of the present invention are not limited in this regard. The input method server can periodically acquire music from other music platforms, and can also acquire corresponding platform music from other music platforms when receiving a request sent by a trigger client in the process of setting a music keyboard by a user; of course, corresponding platform music may also be added from the local music application according to the operation of the user, which is not limited in this embodiment of the present invention.
In summary, in the embodiment of the present invention, the input method may receive music corresponding to the music keyboard information set by the user in the process of clicking the input method keyboard by the user; thereby realizing playing music in the input process.
In the embodiment of the invention, when the clicking operation of the user on the input method keyboard is the operation on the preset area of the input method keyboard, the input method can respond to the clicking operation of the user to play the corresponding music. Wherein the preset area may include at least one of: a candidate area, an association area and a key area; of course, the setting may be specifically set according to the requirement, and the embodiment of the present invention is not limited to this. The playing mode of playing the corresponding music in response to the click operation of the user is as follows:
in one example of the present invention, music may be played at a speed that is adapted to the user's corresponding click operation. The music corresponding to the music keyboard information set by the user can be played: and determining the clicking speed of the user according to the clicking operation, and adjusting the volume and/or speed of music corresponding to the music keyboard information. The time interval of two adjacent click operations can be determined, and then the volume and/or speed of playing corresponding music can be adjusted according to the time interval; of course, the click speed of the user may also be determined according to the time interval, and then the volume and/or speed of playing the corresponding music may be adjusted according to the click speed of the user. For example, when the user click speed is less than the first speed threshold, the volume of playing music may be adjusted to a first preset volume value, and the volume of playing music may be adjusted to a first preset speed value; when the user click speed is greater than the first speed threshold and less than the second speed threshold, the volume of the played music can be adjusted to a second preset volume value, the volume of the played music can be adjusted to a second preset speed value, and the like; the specific volume and speed adjusting mode may be set as required, and the embodiment of the present invention is not limited thereto. 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 may be set as required, which is not limited in the embodiment of the present invention.
In an example of the present invention, one example of playing music corresponding to the music keyboard information set by the user may be: when the clicking operation is received, music corresponding to the music keyboard information is played; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing. When a user starts to click an input method keyboard, music corresponding to the music keyboard information starts to be played; and then, starting timing after detecting that the user stops clicking the input method keyboard, and judging whether the time length after stopping receiving the clicking operation reaches a first set time length. And when the duration after the click operation is stopped is determined to reach the first set duration, continuously playing the music for a second set duration, and stopping playing the music. The first set time period and the second set time period may both be set as required, for example, 2s, which is not limited in the embodiment of the present invention.
In an example of the present invention, before the click operation is received to stop receiving the click operation, when music corresponding to the last click operation is received and the music is played to the end, if the music corresponding to the music keyboard information is one, the music corresponding to the music keyboard information is played again when the current click operation is received; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received. And further, in the clicking process of the user, music is played in a single-song cycle or multi-song cycle.
In an example of the present invention, one example of playing the music corresponding to the music keyboard information set by the user may be that, if the click operation of the user is received again before the time length after the click operation is stopped to be received reaches the first set time length, the music corresponding to the music keyboard information is continuously played.
In an example of the present invention, one way to play music corresponding to the music keyboard information set by the user may be to gradually decrease the volume and/or speed of the music corresponding to the music keyboard information during the continuous playing process. The method for reducing music and/or speed may be set as required, and the embodiment of the present invention is not limited thereto.
In an example of the present invention, in playing music corresponding to the music keyboard information set by the user, if the click operation is directed to a pack key in a user input process, the playing of the music corresponding to the music keyboard information set by the user is stopped. Of course, when it is detected that the user performs another operation of triggering the retraction of the input method keyboard, for example, clicking an interface of another application program, the music corresponding to the music keyboard information set by the user may also be stopped from being played.
In the embodiment of the invention, when the clicking operation of the user on the input method keyboard is received again, the music corresponding to the music keyboard information can be continuously played. The music corresponding to the music keyboard information set by the user can be one or more; therefore, when the user clicks the input method keyboard again, if the music corresponding to the music keyboard information is a first music, the music corresponding to the music keyboard information is played again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time. And if the user sets a piece of music, the piece of music is played again when the user starts the input method interface to click the input method keyboard each time or starts to click the input method keyboard after stopping clicking the input method keyboard for the first set time last time. If the user sets a plurality of pieces of music, when the user starts up the input method interface and starts to click the input method keyboard each time, or starts to click the input method keyboard after stopping clicking the input method keyboard for the first set time for the last time, the playing sequence of the plurality of pieces of music corresponding to the music keyboard information and the music stopped playing for the last time can be determined; and then plays the next piece of music of the music that was last stopped playing.
The playing order is determined in various ways, for example, the order selected by the user in a self-defined manner can be determined according to the music keyboard set by the user; for another example, the information may be determined according to input information of the user (the input information may refer to information related to input, such as on-screen candidates, interaction information, and the like); for example, the input method may be determined according to an order set by the input method, and the like, which is not limited in this embodiment of the present invention.
In an optional embodiment of the present invention, when the input method keyboard is turned on, it may be checked to the server whether music corresponding to the music keyboard setting information is valid. When the server determines that the music corresponding to the music keyboard setting information is not off the shelf of the music platform and the user has the right to use the music, the server can return verification success information; and then in the process of subsequent user input on the keyboard interface, the input method can respond to the click operation of the user to play the music corresponding to the music keyboard setting information. When the server determines that the music platform has off-shelf the music corresponding to the music keyboard setting information or the user does not have the right to use the music, verification failure information can be returned. If the user does not input the verification failure information when the client receives the verification failure information, the prompt information corresponding to the verification failure information can be displayed, for example, the prompt information is displayed in a popup window mode. If the user inputs the verification failure information when the client receives the verification failure information, the user can continue to respond to the click operation to play the music with verification failure, and prompt information corresponding to the verification failure information does not need to be displayed, so that the user experience is improved. And then after the music failed in the verification is played, deleting the music failed in the verification from the local music resource library.
In summary, in the embodiments of the present invention, by using one or more of the above-mentioned playing modes, the corresponding music is played in response to the click operation of the user, so that the interest of the music keyboard is increased, and the user experience is improved.
In another embodiment of the present invention, a user may enter a setting interface of a music keyboard to set music played in an input process, and refer to the following steps:
referring to fig. 2a, a flowchart illustrating steps of an embodiment of a music keyboard setting method according to the present invention is shown, which may specifically include the following steps:
And step 204, generating the music keyboard information set by the user according to the music corresponding to the setting operation.
In the embodiment of the invention, when a user needs to set the music keyboard, the input method interface can be called up, and then the starting operation of the music keyboard setting interface is triggered in the input method interface; after receiving the starting operation, the input method can enter a music keyboard setting interface and display music in the music keyboard setting interface so as to facilitate the user to set in the music keyboard setting interface.
In the embodiment of the invention, the music displayed in the music keyboard setting interface can comprise local music and/or music in a music platform, so that more various choices can be provided for users.
The user can set the music required to be set to play in response to the clicking operation in the music keyboard setting interface. After the input method receives the setting operation of the user for the music keyboard, the music corresponding to the setting operation can be determined; and then generating the music keyboard information set by the user according to the music resource information of the music corresponding to the setting operation. And then the user can respond to the click operation of the user to play the music corresponding to the music keyboard setting information in the process of executing the click operation on the input method keyboard.
In an example of the present invention, after a user needs to set a music keyboard and trigger a start operation of a music keyboard setting interface, an input method may enter the music keyboard setting interface of the input method according to the start operation, and display music on the music keyboard setting interface. As shown in fig. 2b, local music is shown in box 1 and music in the music platform is shown in box 2. The user may set the music that needs to be set to play in response to a clicking operation, such as setting the song "Song A", in the music keyboard settings interface of FIG. 2 b. Correspondingly, the input method can receive the setting operation of the user for the music keyboard; and then generating the music keyboard information set by the user according to the music corresponding to the setting operation. For example, music keyboard information set by the user is generated by adopting a music identifier corresponding to the song of 'song A'; and then after the input method receives the clicking operation of the user on the input method keyboard, searching the storage position of the audio data of the song of song A according to the music identifier corresponding to the song of song A, and then playing the song of song A.
In summary, in the embodiment of the present invention, after entering the music keyboard setting interface, a user may perform a setting operation, and after receiving the setting operation of the user for the music keyboard, an input method may generate music keyboard information set by the user according to music corresponding to the setting operation; and in the process that the subsequent user carries out the clicking operation on the input method keyboard, the music corresponding to the music keyboard setting information can be played in response to the clicking operation of the user.
In the embodiment of the invention, one option displayed on the music keyboard setting interface can correspond to one piece of music or one type of music; thereby facilitating the user to select a piece of music or a class of music as the music to be played in response to the clicking operation.
Referring to fig. 3, a flowchart illustrating steps of an alternative embodiment of the music keyboard setting method of the present invention is shown, which may specifically include the following steps:
In the embodiment of the present invention, after the input method adds the function of the music keyboard, when the user first invokes the input method interface, the input method may pop up the introduction popup of the music keyboard as shown in fig. 4 a. When the user closes the pop-up window, the user enters the music keyboard setting interface and displays music as shown in fig. 2 b. When the user needs to set the music keyboard after subsequently starting up the input interface, the setting tool corresponding to the music keyboard can be searched from the input method tool display interface. The tool may then be launched, e.g., by clicking on an icon corresponding to the tool, and the corresponding input method may be entered into the musical keyboard setup interface.
In the embodiment of the invention, after the music keyboard setting interface is entered, local music and/or platform music can be displayed in the music keyboard setting interface. One way to display local music in the music keyboard setting interface may be: music resource information corresponding to local music is obtained from a local music resource library, and the local music is displayed in a first display area according to the music resource information corresponding to the local music. In the embodiment of the invention, an input method is configured with a local music resource library, wherein the local music resource library is used for storing target music and corresponding music resource information which are set by a user history; and manually adding the music in the local music set and the corresponding music resource information according to the user. The music resource information may refer to information describing music, such as a music name, a singer, a release date, a version, a type, a cover picture, and the like, which is not limited in this embodiment of the present invention. Then, according to a first preset display rule, corresponding music display information can be selected from the music resource information of each local music; and displaying the music display information of each local music in the first display area to realize the display of the local music. The first preset display rule may be determined as required, for example, to display the music cover and the music name, and also to display the music cover, the music name, and the singer, which is not limited in this embodiment of the present invention. The first presentation area may refer to an area for presenting local music, such as an area corresponding to block 1 in fig. 2 b. When the user needs to view more local music, the viewing operation can be executed; correspondingly, after receiving the checking operation of the user, the input method can enter a local music display page so as to display more local music to the user for the user to select.
One way to display platform music in the music keyboard setting interface may be: and acquiring music resource information corresponding to platform music in other music platforms from a server, and displaying the platform music in a second display area according to the music resource information corresponding to the platform music. In one example of the present invention, a server of the input method may periodically obtain platform music and corresponding music resource information from a music platform. When a client of the input method enters a music keyboard setting interface, an acquisition request of music resource information corresponding to platform music can be sent to a corresponding server; and after receiving an acquisition request aiming at the music resource information corresponding to the platform music sent by the client, the server can return the corresponding music resource information. And the client can receive the music resource information returned by the server and display the platform music corresponding to the received music resource information in the second display area. The period of the server obtaining the platform music from the music platform may be set as required, for example, 2 hours, which is not limited in this embodiment of the present invention. Of course, the server may also obtain the corresponding platform music and music resource information from the music platform according to the obtaining request after receiving the obtaining request sent by the client for the music resource information corresponding to the platform music. And then the corresponding music resource information is returned to the client. In the embodiment of the invention, the client of the input method can select corresponding music display information from the music resource information of each platform music according to a second preset display rule; and displaying the platform music by displaying the music display information of each platform music in the second display area. The second preset display rule can be determined according to requirements; for example, the music cover and the music title are shown, and the music cover, the music title and the singer are shown, which is not limited in this embodiment of the present invention.
In this 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 this is not limited in this embodiment of the present invention. The number and the display style of the music displayed in the first display area and the second display area can be set according to requirements; the display style may refer to a display method of music display information, such as a size of a displayed music cover, a number of texts of a displayed music name, a font size, and the like, which is not limited in this embodiment of the present invention. Of course, the number and the style of music displayed correspondingly in the first display area and the number and the style of music displayed correspondingly in the second display area may be set as required, and may be the same or different; the embodiments of the present invention are not limited in this regard.
In an example of the present invention, a manner of obtaining platform music resource information corresponding to platform music from a server may be: and acquiring music resource information corresponding to platform music in other music platforms from the server according to a preset recommendation rule. In the embodiment of the present invention, a preset recommendation rule may be set in advance according to a requirement, where the preset recommendation rule may be a rule for recommending platform music for a user, for example, recommending the latest platform music for the user, and for example, recommending hot platform music for the user, and the like. Then, generating an acquisition request of music resource information corresponding to platform music according to the preset recommendation rule and sending the acquisition request to a server; after the server acquires the acquisition request, the server can search the music resource information matched with the acquisition request and then return the music resource information to the corresponding client. And the client can further acquire the music resource information of the platform music corresponding to the preset recommendation rule from the server and display the platform music corresponding to the preset recommendation rule. For example, the preset recommendation rule: and recommending hot platform music for the user, wherein the client can acquire the music resource information of the hot platform music from the server and display the hot platform music.
In an example of the present invention, another way to obtain platform music resource information corresponding to platform music from a server may be: determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server. In the embodiment of the present invention, the input method may record input information of the user in a process of user input, where the input information may refer to information related to input, such as an input sequence, interaction information of a home terminal and an opposite terminal, candidate on a screen, an input environment, and usage information of other application programs on the terminal, and the embodiment of the present invention is not limited to this. Then, analyzing the music interest of the user according to the historical input information of the user to determine the music interest information of the user; for example, the category of the favorite music of the user is analyzed according to the historical input information of the user, and the category is taken as the music interest information of the user. The input method can acquire historical input information of a user in the whole network, and then determine music interest information of the user according to the historical input information of the user in the whole network, or only acquire the historical input information of the user and determine the music interest information of the user according to the historical input information of the user. Then, an acquisition request of music resource information corresponding to platform music can be generated according to the music interest information and sent to a server; after the server acquires the acquisition request, the server can search the music resource information matched with the acquisition request and then return the music resource information to the corresponding client. And the client can further acquire the music resource information of the platform music matched with the music interest information of the user from the server and display the platform music matched with the music interest information of the user. For example, music interest information: the client side can obtain music resource information corresponding to the platform music of the ballad from the server, and the ballad is displayed.
In the embodiment of the present invention, no matter local music or platform music is displayed, step 304 may be referred to when a piece of music is displayed as an option, or step 306 may be referred to when a piece of music is displayed as an option; the method and the device can be specifically set according to requirements, and the embodiment of the invention is not limited in this respect.
The music described below includes local music and platform music, among others.
And step 304, generating a single music option by adopting each piece of music, and displaying each single music option on the music keyboard setting interface.
In the embodiment of the present invention, for each piece of music, a single music option may be generated by using the piece of music; and then displaying the single music options on the music keyboard setting interface. Such as "Song A", "Song B", etc. in box 1 of FIG. 2B, are each a single music option; "Song E", "Song F", etc. in box 2 are all single music selections.
And step 306, generating a music collection option by adopting each type of music, and displaying each music collection option on the music keyboard setting interface.
Wherein a type of music may comprise at least two pieces of music.
In one example of the present invention, for local music, the input method may take the music in each local music set as a type of music, and then generate a music set option using each type of music, as in block 1 of fig. 2 b: "My song list". The local music collection may include a music collection preset by an input method (may be referred to as a default music collection), or may include various music collections created by a user.
In an example of the invention, a music platform can classify platform music in advance, and then a server of an input method can acquire various platform music and corresponding music resource information from the music platform; after the client side of the input method obtains the music resource information corresponding to various types of platform music from the server, for each type of platform music, a corresponding music set option can be generated by adopting the type of platform music. Then, each music album option is presented on the music keyboard setup interface, as in block 2 of fig. 2 b: "warm male voice for healing" and "new work of singer c" etc. The music platform can classify the platform music from different dimensions, for example, classifying according to the music, and obtaining balladry, rock, electric sound and the like; for example, according to the category of singers, singer a, singer b, etc. can be obtained; the embodiments of the present invention are not limited in this regard.
When the music is a song, the single music option may also be referred to as a song option, and the music collection option may also be referred to as a song list option.
In an example of the present invention, the input method may further use platform music corresponding to the music interest information of the user as a category, and then use the category of music to generate a music collection option, such as "you may like".
Of course, in the embodiment of the present invention, the single music option and the music set option may be displayed in the music keyboard setting interface at the same time, so that the user may select a single music or a type of music as the target music; the embodiments of the present invention are not limited in this regard.
In an alternative embodiment of the present invention, for each music set option, a music set identifier may be added to the music set option to distinguish it from a single music option when the music set option is presented. For example adding a word "song list", as in box 2 of fig. 2 b: the "cured warm male voice" corresponds to the word "song list" shown in the upper right corner of the picture.
In addition, in the embodiment of the invention, the display interface of the music keyboard can also display the button sound effect; the input method may use all the key sound effects as a class and generate the corresponding music set option, such as "key sound effect" in block 1 of fig. 2 b.
And 308, receiving the setting operation of the user for the music keyboard.
And 310, if the setting operation is directed at the music collection option, generating the music keyboard information set by the user according to a plurality of pieces of music in the music collection option corresponding to the setting operation.
In the embodiment of the invention, aiming at each single music option in the music keyboard setting interface, various functions can be provided, such as functions of audition, starting, deleting, adding to a local file set, collecting, viewing and the like; of course, other functions may be included, and the embodiment of the present invention is not limited thereto.
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 executed 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 is executed on the downloaded music.
In one example of the present invention, when it is determined that the user triggers the audition function, music corresponding to the single music option may be played; when it is determined that the user triggers the enabling function, a setting operation of the user for music corresponding to the single-music option may be received, and at this time, music keyboard information may 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. And if the music corresponding to the single-music option is platform music, deleting the music resource information of the music corresponding to the single-music option, and deleting the single-music option from the music keyboard display interface. When it is determined that the user triggers the add to local music collection (collection) function, music corresponding to the single music option may be added to the corresponding selected local music collection; and delete the mono-music option. When the user is determined to trigger the viewing function, music resource information of music corresponding to the single music option can be displayed; for example, after determining that the user triggered the view function of the single music option "Song B," an interface may be presented as shown in FIG. 4B, where only a portion of the music asset information is presented in FIG. 4B.
If the user triggers the starting function aiming at a plurality of single music options, the input method can generate music keyboard information according to music corresponding to each single music option; the embodiments of the present invention are not limited in this regard.
Of course, for each music set option in the music keyboard setup interface, various functions similar to the single music option described above may be provided; when the user is determined to trigger the audition function, playing each piece of music in the music collection option; when it is determined that the user triggers the enabling function, a setting operation of the user for each piece of music in the music collection option may be received, and the music keyboard information may 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 delete function, if the music corresponding to the music collection option is local music, the music and the music resource information corresponding to the music collection option are deleted from the local music resource library; of course, the music album option may be deleted from the music keyboard display interface, or may be kept. If the music corresponding to the music collection option is platform music, the music resource information of each music corresponding to the music collection option is deleted, and the music collection option is deleted from the music keyboard display interface. When determining that the user triggers the function of adding to the local file set (collection), each piece of music corresponding to the music set option can be added to the corresponding selected file set (default file set); and delete the music collection option. When it is determined that the user triggers the view function, a list of music corresponding to the music collection option may be presented, as shown in fig. 4 c. Various functions similar to the single music option can be provided for each piece of music in the music list, and are not described herein again.
After determining that the user triggers the single music option (or music in the music set option or music in the music set list) to trigger the enabling function or add the enabling function to the music set function or the 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 may be determined to be local music. If the starting function is triggered aiming at the single music option, the corresponding platform music and music resources can be stored in a local music resource library; and deleting the mono-music option from the second presentation area and presenting the mono-music option in the first presentation area. If the starting function is triggered aiming at the music in the music list, the music in the music list and the corresponding music resource can be stored in a local music resource library; and deleting the music from the music list, and displaying a single-music option corresponding to the music in a first display area. If the function of adding to the music collection or the collection function is triggered for the single music option (or music collection option), the corresponding platform music and music resource information can be stored in the corresponding local music collection; and deleting the single music option (or music collection option) from the second presentation area. If the function of adding music to a music set or the collection function is triggered aiming at the music in the music list, the music and the corresponding music resource information in the music list can be stored in a corresponding local music set; and deleting the music from the music list.
Certainly, when the user triggers the starting function or the audition function, the corresponding music can be verified; and when the corresponding music is verified successfully, generating music keyboard information or playing the music according to the music. When the corresponding music verification fails, prompt information corresponding to the verification failure can be displayed.
The platform music downloaded based on the audition function triggered by the user can be deleted after a set period, so that the storage space is reduced. The set period may be set as required, for example, 24 hours, which is not limited in this embodiment of the present invention.
In summary, in the embodiments of the present invention, the input method may respectively use each piece of music to generate a single-music option, and display each single-music option on the music keyboard setting interface, or may also respectively use each type of music to generate a music album option, and display each music album option on the music keyboard setting interface, and then display the single-music option and/or the music album option. The user can conveniently execute setting operation aiming at one piece of music and can also execute setting operation aiming at one type of music; after the input method receives the setting operation of the user for the music in the music keyboard setting interface, if the setting operation is for the music collection option, generating corresponding music keyboard information according to each piece of music corresponding to the music collection option; when the setting operation is directed at the single music option, generating corresponding music keyboard information according to a piece of music corresponding to the single music option; and then improve the flexibility that the user selected, improve user experience.
Secondly, in the embodiment of the invention, the input method can acquire the historical input information of the user, then determine the music interest information of the user according to the historical input information of the user, and acquire the music resource information corresponding to the platform music matched with the music interest information from the server; and then, music meeting the user interest can be recommended, and the user requirements can be better met.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a music playing device according to an embodiment of the present invention is shown, and may specifically include the following modules:
the playing module 502 is configured 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.
Referring to fig. 6, a block diagram of an alternative embodiment of a music playing device of the present invention is shown.
In an optional embodiment of the present invention, the playing module 502 includes:
the first music playing sub-module 5022 is used for starting to play music corresponding to the music keyboard information when the click operation is received; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
In an optional embodiment of the present invention, the playing module 502 further includes:
the second music playing sub-module 5024 is configured to gradually decrease the volume and/or speed of the music corresponding to the music keyboard information during the continuous playing process.
In an optional embodiment of the present invention, the playing module 502 further includes:
the third music playing sub-module 5026 is configured to continue to play the music corresponding to the music keyboard information if the click operation of the user is received again before the time length after the click operation is stopped reaching the first set time length.
In an optional embodiment of the present invention, the playing module 502 further includes:
the fourth music playing sub-module 5028 is configured to, before the click operation is received and the click operation is stopped, restart to play the music corresponding to the music keyboard information when the music corresponding to the music keyboard information is received if the music corresponding to the music keyboard information is a first music when the music corresponding to the music keyboard information is played to the end of the music when the last click operation is received; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
In an optional embodiment of the present invention, the playing module 502 further includes:
the fifth music playing sub-module 50210 is configured to stop playing music corresponding to the music keyboard information set by the user if the clicking operation is for a pack-up key.
In an optional embodiment of the present invention, the playing module 502 further includes:
the sixth music playing sub-module 50212 is configured to restart playing of music corresponding to the music keyboard information if the music corresponding to the music keyboard information is a first music when the user clicks the input method keyboard again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
In an optional embodiment of the present invention, the playing module 502 includes:
the seventh music playing sub-module 50214 is configured to determine the click speed of the user according to the click operation, and adjust the volume and/or speed of playing music corresponding to the music keyboard information.
In an optional embodiment of the present invention, the click operation is directed to at least one of the following areas: a candidate area, an association area and a key area.
In an optional embodiment of the present invention, the apparatus further comprises: a setting module 504, configured to receive a setting operation of the user for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
In an optional embodiment of the present invention, the apparatus further comprises: a display module 506, configured to generate a single music option by using each piece of music, and display each single music option on the music keyboard setting interface; and/or generating a music collection option by adopting each type of music respectively, and displaying each music collection option on the music keyboard setting interface.
In an optional embodiment of the present invention, the displaying module 506 is configured 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.
In an optional embodiment of the present invention, the apparatus further comprises: an obtaining module 508, configured to obtain, according to a preset recommendation rule, music resource information corresponding to platform music in other music platforms from a server; and/or determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server.
In the embodiment of the invention, an input method plays music corresponding to music keyboard information set by a user in the process of receiving click operation of the user on an input method keyboard; thereby realizing playing music in the input process.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 7 is a block diagram illustrating a structure of an electronic device 700 for music playing according to an example 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, 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.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 706 provides power to the various components of the electronic device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 may detect an open/closed state of the device 700, the relative positioning of components, such as a display and keypad of the electronic device 700, the sensor assembly 714 may also detect a change in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, orientation or acceleration/deceleration of the electronic device 700, and a change in the temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 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 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the electronic device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a music playing method, the method comprising: and receiving the clicking operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: when the clicking operation is received, music corresponding to the music keyboard information is played; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and gradually reducing the volume and/or speed of the music corresponding to the music keyboard information in the continuous playing process.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation of the user is received again before the time length after the receiving of the clicking operation is stopped reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: before the click operation is received and the click operation is stopped being received, 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, the music corresponding to the music keyboard information is played again when the current click operation is received; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation is directed at the retracting key, stopping playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: when the clicking operation of the user for the input method keyboard is received again, if the music corresponding to the music keyboard information is one, the music corresponding to the music keyboard information is played again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: and determining the clicking speed of the user according to the clicking operation, and adjusting the volume and/or speed of music corresponding to the music keyboard information.
Optionally, the click operation is directed to at least one of the following regions: a candidate area, an association area and a key area.
Optionally, the method further comprises: receiving a setting operation of the user for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
Optionally, the method further includes the step of displaying music on the music keyboard setting interface: respectively adopting each piece of music to generate a single music option, and displaying each single music option on the music keyboard setting interface; and/or generating a music collection option by adopting each type of music respectively, and displaying each music collection option on the music keyboard setting interface.
Optionally, the generating the music keyboard information set by the user according to the music corresponding to the setting operation includes: and if the setting operation is directed at the music collection option, generating the music keyboard information set by the user by using each piece of music corresponding to the music collection option.
Optionally, the method further includes the step of obtaining music resource information of the music displayed on the music keyboard setting interface: acquiring music resource information corresponding to platform music in other music platforms from a server according to a preset recommendation rule; and/or determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server.
Fig. 8 is a schematic structural diagram of an electronic device 800 for music playing according to another exemplary embodiment of the present invention. The electronic device 800 may be a server, which may vary widely due to configuration or performance, and may include one or more Central Processing Units (CPUs) 822 (e.g., one or more processors) and memory 832, one or more storage media 830 (e.g., one or more mass storage devices) storing applications 842 or data 844. Memory 832 and storage medium 830 may be, among other things, transient or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 822 may be configured to communicate with the storage medium 830 to execute a series of instruction operations in the storage medium 830 on the server.
The server may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input-output interfaces 858, one or more keyboards 856, and/or one or more operating systems 841, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for: and receiving the clicking operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: when the clicking operation is received, music corresponding to the music keyboard information is played; and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and gradually reducing the volume and/or speed of the music corresponding to the music keyboard information in the continuous playing process.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation of the user is received again before the time length after the receiving of the clicking operation is stopped reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: before the click operation is received and the click operation is stopped being received, 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, the music corresponding to the music keyboard information is played again when the current click operation is received; and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: and if the clicking operation is directed at the retracting key, stopping playing the music corresponding to the music keyboard information set by the user.
Optionally, the playing the music corresponding to the music keyboard information set by the user further includes: when the clicking operation of the user for the input method keyboard is received again, if the music corresponding to the music keyboard information is one, the music corresponding to the music keyboard information is played again; and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
Optionally, the playing the music corresponding to the music keyboard information set by the user includes: and determining the clicking speed of the user according to the clicking operation, and adjusting the volume and/or speed of music corresponding to the music keyboard information.
Optionally, the click operation is directed to at least one of the following regions: a candidate area, an association area and a key area.
Optionally, further comprising instructions for: receiving a setting operation of the user for the music keyboard; and generating the music keyboard information set by the user according to the music corresponding to the setting operation.
Optionally, the method further includes an instruction for performing the following music displaying operation on the music keyboard setting interface: respectively adopting each piece of music to generate a single music option, and displaying each single music option on the music keyboard setting interface; and/or generating a music collection option by adopting each type of music respectively, and displaying each music collection option on the music keyboard setting interface.
Optionally, the generating the music keyboard information set by the user according to the music corresponding to the setting operation includes: and if the setting operation is directed at the music collection option, generating the music keyboard information set by the user by using each piece of music corresponding to the music collection option.
Optionally, the method further includes an instruction for performing the following operations of obtaining music resource information of music displayed on the music keyboard setting interface: acquiring music resource information corresponding to platform music in other music platforms from a server according to a preset recommendation rule; and/or determining music interest information of the user according to historical input information of the user, and acquiring music resource information corresponding to platform music matched with the music interest information from other music platforms from a server.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for a music playing method, a music playing device and an electronic device, and the principle and the implementation of the present invention are explained by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A music playing method, comprising:
and receiving the clicking operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
2. The method according to claim 1, wherein the playing the music corresponding to the music keyboard information set by the user comprises:
when the clicking operation is received, music corresponding to the music keyboard information is played;
and when the time length after the click operation is stopped being received reaches a first set time length, continuously playing the music corresponding to the music keyboard information for a second set time length, and then stopping playing.
3. The method according to claim 2, wherein the playing the music corresponding to the music keyboard information set by the user further comprises:
and gradually reducing the volume and/or speed of the music corresponding to the music keyboard information in the continuous playing process.
4. The method according to claim 2, wherein the playing the music corresponding to the music keyboard information set by the user further comprises:
and if the clicking operation of the user is received again before the time length after the receiving of the clicking operation is stopped reaches a first set time length, continuing to play the music corresponding to the music keyboard information.
5. The method according to claim 2, wherein the playing the music corresponding to the music keyboard information set by the user further comprises:
before the click operation is received and the reception of the click operation is stopped, 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, restarting playing the music corresponding to the music keyboard information when the click operation is received;
and if the music corresponding to the music keyboard information is a plurality of pieces, starting to play the next piece of music of the music played by the last click operation when the current click operation is received.
6. The method according to claim 2, wherein the playing the music corresponding to the music keyboard information set by the user further comprises:
and if the clicking operation is directed at the retracting key, stopping playing the music corresponding to the music keyboard information set by the user.
7. The method according to claim 2, wherein the playing the music corresponding to the music keyboard information set by the user further comprises:
when the user clicks the input method keyboard again,
if the music corresponding to the music keyboard information is one, restarting playing the music corresponding to the music keyboard information;
and if the music corresponding to the music keyboard information is a plurality of pieces, determining the playing sequence of the music corresponding to the music keyboard information, and playing the next piece of music of the music which is stopped playing last time.
8. A music playing apparatus, comprising:
and the playing module is used for receiving the clicking operation of the user on the input method keyboard and playing the music corresponding to the music keyboard information set by the user.
9. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the music playing method of any of method claims 1-7.
10. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
and receiving the clicking operation of the user on the input method keyboard, and playing the music corresponding to the music keyboard information set by the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910824160.0A CN112445451A (en) | 2019-09-02 | 2019-09-02 | Music playing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910824160.0A CN112445451A (en) | 2019-09-02 | 2019-09-02 | Music playing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112445451A true CN112445451A (en) | 2021-03-05 |
Family
ID=74733866
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910824160.0A Pending CN112445451A (en) | 2019-09-02 | 2019-09-02 | Music playing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112445451A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190156A (en) * | 2021-05-13 | 2021-07-30 | 杭州网易云音乐科技有限公司 | Music playing control method and device, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541408A (en) * | 2010-12-26 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for calling out matched music by using character input interface |
CN102902506A (en) * | 2012-09-18 | 2013-01-30 | 百度在线网络技术(北京)有限公司 | Voice input method and device of mobile terminal |
US20130157761A1 (en) * | 2011-10-05 | 2013-06-20 | Real Keys Music Inc | System amd method for a song specific keyboard |
CN103729141A (en) * | 2013-12-26 | 2014-04-16 | 安徽科大讯飞信息科技股份有限公司 | Method and system for implementing music playing on keyboard by using input method |
CN105119815A (en) * | 2015-09-14 | 2015-12-02 | 小米科技有限责任公司 | Method and device for realizing music play in instant messaging interface |
-
2019
- 2019-09-02 CN CN201910824160.0A patent/CN112445451A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541408A (en) * | 2010-12-26 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for calling out matched music by using character input interface |
US20130157761A1 (en) * | 2011-10-05 | 2013-06-20 | Real Keys Music Inc | System amd method for a song specific keyboard |
CN102902506A (en) * | 2012-09-18 | 2013-01-30 | 百度在线网络技术(北京)有限公司 | Voice input method and device of mobile terminal |
CN103729141A (en) * | 2013-12-26 | 2014-04-16 | 安徽科大讯飞信息科技股份有限公司 | Method and system for implementing music playing on keyboard by using input method |
CN105119815A (en) * | 2015-09-14 | 2015-12-02 | 小米科技有限责任公司 | Method and device for realizing music play in instant messaging interface |
Non-Patent Citations (1)
Title |
---|
玩机大王: ""教你把收集键盘音设置成好听的钢琴曲,很多人都不知道,赶紧试试"", pages 25, Retrieved from the Internet <URL:https://www.bilibili.com/video/BV18s411N7us/?spm_id_from=333.337.search-card.all.click&vd_source=5dd50d0df9c8b8bc11009bed3a6b1751> * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190156A (en) * | 2021-05-13 | 2021-07-30 | 杭州网易云音乐科技有限公司 | Music playing control method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11206448B2 (en) | Method and apparatus for selecting background music for video shooting, terminal device and medium | |
TWI667917B (en) | Multimedia search result display method and device | |
CN104166689B (en) | The rendering method and device of e-book | |
WO2016165325A1 (en) | Audio information recognition method and apparatus | |
WO2016206292A1 (en) | Text input method and device | |
CN105335414B (en) | Music recommendation method and device and terminal | |
CN109413478B (en) | Video editing method and device, electronic equipment and storage medium | |
TW201902232A (en) | Method and apparatus for previewing video search results, and computer readable storage medium | |
CN108334623B (en) | Song display method, device and system | |
CN104111979A (en) | Search recommendation method and device | |
CN107229403B (en) | Information content selection method and device | |
CN111046210B (en) | Information recommendation method and device and electronic equipment | |
CN106815291B (en) | Search result item display method and device and search result item display device | |
CN113411516B (en) | Video processing method, device, electronic equipment and storage medium | |
CN111814088A (en) | Page processing method and device | |
CN112068711A (en) | Information recommendation method and device of input method and electronic equipment | |
CN108156506A (en) | The progress adjustment method and device of barrage information | |
CN113901241B (en) | Page display method and device, electronic equipment and storage medium | |
CN105163141B (en) | The mode and device of video recommendations | |
CN111629270A (en) | Candidate item determination method and device and machine-readable medium | |
CN112988956B (en) | Method and device for automatically generating dialogue, and method and device for detecting information recommendation effect | |
CN112445451A (en) | Music playing method and device and electronic equipment | |
CN110213062B (en) | Method and device for processing message | |
CN114464186A (en) | Keyword determination method and device | |
WO2019196527A1 (en) | Data processing method, apparatus and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |