Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearlyChu, intactly description, obviously, described embodiment is only the present invention's part embodiment, instead of completeThe embodiment of portion. Based on the embodiment in the present invention, those of ordinary skill in the art are not making creativenessThe every other embodiment obtaining under work prerequisite, belongs to the scope of protection of the invention.
As shown in Figure 1, the stream that helps the method for singing in a kind of song recording process providing for the embodiment of the present inventionJourney schematic diagram, can comprise the following steps:
S101, receive for the song record command of target song.
In the embodiment of the present invention, said method can be applied to song records the applications client of class software, asWhole people K song, K song intelligent etc. For ease of explanation, be applied to client taking said method and be described as example.
In the embodiment of the present invention, song record command can include but not limited to that user clicks client and specifies boundaryAppointed function button in face (selecting interface, song recommendations interface etc. as song), as " K song ", " recordSong ", or user specifies interface to input song record command etc. by voice mode in client.
For instance, suppose that user wants recording song " afterwards ", user can move above-mentioned client, entersSong is selected interface, inquires target song " afterwards ", and clicks this target song " afterwards " corresponding " K song "Function button, sends the song record command for target song " afterwards " to client.
S102, with the mode playback target song of accompanying.
In the embodiment of the present invention, when client arrives for the song record command of target song, can obtainGet music file corresponding to target song (including but not limited to audio file, the lyrics etc.), and enter song recordInterface processed, with this target song of mode playback of accompanying.
Wherein, in embodiments of the present invention, client is obtained music file corresponding to target song and can be comprisedFollowing steps:
Step 11), judge local music file corresponding to described target song that whether be cached with; If be judged as YES,Go to step 12), otherwise, go to step 13);
Step 12), obtain the music file corresponding to described target song of local cache;
Step 13), obtain music file corresponding to described target song from network side.
In the embodiment of the present invention, when client terminal playing target song, can be synchronously aobvious in song recording interfaceShow the lyrics of target song, so that user is according to the lyrics of target song recording song better.
S103, help while singing instruction when receiving, play mode is switched to original singer's pattern, until target songHelp sing part play finish time, play mode is switched to accompaniment pattern again.
As the optional embodiment of one, in above-mentioned steps S103, help sing instruction can headed by sentence help and sing fingerOrder, the first sentence that part is target song is sung in helping of target song.
Correspondingly, above-mentioned steps S103 can specifically comprise:
Help while singing instruction when receiving first sentence, the play mode of target song is switched to original singer's pattern, and work asThe first sentence of target song is play while end, and the play mode of target song is switched to accompaniment pattern.
For instance, suppose that user wants recording song " afterwards ", and entered the song of target song " afterwards "After recording interface, can not remember first this how to sing, now, user can be in song recording interfaceInputting first sentence helps and sings instruction; Client, after this instruction, switches to original singer's pattern by current play mode,And in the time that end play in the first sentence (first) of target song " afterwards ", play mode is switched to companion againPlay pattern.
As the optional embodiment of another kind, in above-mentioned steps S103, helping and sing instruction can be that front N second (canTo preset, as 3S, 5S etc.) help and sing instruction, wherein, this front N refers to target song prelude part secondWhen end, start the N second of timing, the helping of target song sung part, and for target song, formally to play the lyrics correspondingThe front N second of content.
Correspondingly, above-mentioned steps S103 can specifically comprise:
Help second while singing instruction when receiving front N, play mode is switched to original singer's pattern, and monitoring objective songBent playing progress rate starts timing in the time that target song prelude part finishes, and in the time that timing reaches N second,The play mode of target song is switched to accompaniment pattern.
For instance, suppose that user wants recording song " afterwards ", and entered the song of target song " afterwards "After recording interface, how this plays tune to can not remember this first song, and now, user can be at song recording interfaceMiddle input helps and sings instruction for first 5 seconds; Client, after this instruction, switches to original singer by current play modePattern, and the playing progress rate of monitoring objective song " afterwards ", in the time that the prelude part of target song " afterwards " finishesStart timing (being the timer of 5 seconds as an overtime duration is set), and reach 5 seconds (regularly when timingDevice is overtime) time, play mode is switched to accompaniment pattern again.
Should be realized that, it is only to help and sing instruction in the embodiment of the present invention that helping of enumerating in aforesaid way sung instructionTwo kinds of concrete examples, and be not limiting the scope of the present invention,, in the embodiment of the present invention, helpSinging instruction can also be other situations, sings instruction as N second (can preset, as 3S, 5S etc.) helps,Be client to helping while singing instruction, after original singer's mode playback N target song second, by play mode weightNewly switch to accompaniment pattern, or lower M sentence (can preset, as 1,2 etc.) helps and sings instruction,Be client to helping while singing instruction, after the lower N sentence with original singer's mode playback target song, will play mouldFormula switches to accompaniment pattern again. Based on the embodiment of the present invention, those skilled in the art are not paying creativenessUnder the prerequisite of work, sing any amendment or the modification that instruction makes and all should belong to protection domain of the present invention helping.
As the optional embodiment of one, in above-mentioned steps S103, until target song help sing part broadcastPut while end, play mode switched to accompaniment pattern again, can specifically comprise:
In the time that helping of target song sung part broadcasting end, play mode is switched to accompaniment pattern again, broadcastPut the remainder of target song.
For instance, sing part as the sentence of song is as example to help, client is to helping while singing instruction, generalThe play mode of target song switches to original singer's pattern, and in the time that end play in the first sentence of target song, will broadcastMode playback switches to accompaniment pattern, starts to play this target song from second of target song.
As the optional embodiment of another kind, in above-mentioned steps S103, until part is sung in helping of target songPlay while end, play mode switched to accompaniment pattern again, can specifically comprise:
In the time that helping of target song sung part broadcasting end, play mode is switched to accompaniment pattern again, fromHelp and sing part and start to play target song.
For instance, still sing part as the sentence of song is as example to help, client is to helping while singing instruction,The play mode of target song is switched to original singer's pattern, and in the time that end play in the first sentence of target song, willPlay mode switches to accompaniment pattern, and starts to play target song from the first sentence of target song, again withAccompaniment pattern is play once to help again and is sung part.
What deserves to be explained is, in embodiments of the present invention, when client is sung instruction to helping, with original singer's mouldFormula is play the helping while singing part of target song, can only play 1 time, also can loop play K all over (canPreset, as 2 times, 3 times etc.).
For instance, sing headed by instruction sentence and help and sing instruction as example to help, client helps and sings instruction to firstTime, the play mode of target song can be switched to original singer's pattern, and loop play K time target songAfter first sentence, the play mode of target song is switched to accompaniment pattern, so that user can sing song betterPart is sung in bent helping.
It should be noted that in the above embodiment of the present invention, client, to song record command, is gone forward side by sideThe target song of after entering song recording interface, record the target song of user's performance, user being sung is carried outThe songs such as scoring are recorded the specific implementation of the conventional func of class software can record class software referring to existing songCorrelation function is realized, and the present invention does not repeat them here.
In the described method flow of Fig. 1, when song is recorded, sing instruction and can realize broadcasting by helpingPattern switches to original singer's pattern by accompaniment pattern, and works as specified portions (help and the sing part) broadcasting of target songWhen pattern finishes, do not need additionally inputting switching command again, can be automatically by play mode by original singer's pattern weightNewly switch to accompaniment pattern, in prior art, must, by first clicking corresponding function button, will playPattern switches to original singer's pattern by accompaniment pattern, and then clicks corresponding function button, by original singer's pattern weightThe implementation that newly switches to accompaniment pattern is compared, and has simplified the switching of the play mode in song recording processOperation, has improved song and has recorded efficiency.
As shown in Figure 2, help the method for singing in the another kind of song recording process providing for the embodiment of the present inventionSchematic flow sheet, can comprise the following steps:
S201, receive for the song record command of target song, and with accompaniment mode playback target song.
In the embodiment of the present invention, song record command can include but not limited to that user clicks client and specifies boundaryAppointed function button in face (selecting interface, song recommendations interface etc. as song), as " K song ", " recordSong ", or user specifies interface to input song record command etc. by voice mode in client.
For instance, suppose that user wants recording song " afterwards ", user can move above-mentioned client, entersSong is selected interface, inquires target song " afterwards ", and clicks this target song " afterwards " corresponding " K song "Function button, sends the song record command for target song " afterwards " to client.
In the embodiment of the present invention, when client arrives for the song record command of target song, can obtainGet music file corresponding to target song, and enter song recording interface, with this target song of mode playback of accompanyingBent.
Wherein, in embodiments of the present invention, client is obtained music file corresponding to target song and can be comprisedFollowing steps:
Step 21), judge local music file corresponding to described target song that whether be cached with; If be judged as YES,Go to step 22), otherwise, go to step 23);
Step 22), obtain the music file corresponding to described target song of local cache;
Step 23), obtain music file corresponding to described target song from network side.
In the embodiment of the present invention, when client terminal playing target song, can be synchronously aobvious in song recording interfaceShow the lyrics of target song, so that user is according to the lyrics of target song recording song better.
S202, in song recording interface display reminding message, this prompting message is used for pointing out user to open to help singing.
In the embodiment of the present invention, client arrives song record command, and after entering song recording interface,Can be in song recording interface display reminding message, sing to point out user to open to help, taking " first sentence helps and sings " as example,The schematic diagram of this prompting message can be as shown in Figure 2 A.
As the optional embodiment of one, in above-mentioned steps S202, disappear at song recording interface display remindingBreath can comprise:
In the time playing the prelude part of target song, in song recording interface display reminding message.
In this embodiment, when client is to song record command, after entering song recording interface,Client can be in the time playing the prelude part of target song, the instruction area output in song recording interfacePrompting message, sings to point out user to open to help.
In this embodiment, if the instruction of closing prompting message that client is inputted to user, for example,User clicks the "×" mark in the prompting message shown in Fig. 2 A, or client is inputted to userUnlatching helps the instruction of singing, and for example, user clicks " open first sentence the help sing " district in the prompting message shown in Fig. 2 ATerritory, or client detects when the prelude part of target song is play end, can close this prompting and disappearBreath.
It should be noted that in embodiments of the present invention logical except described in can be in the manner described aboveCross the mode in song recording interface display reminding message, prompting user unlatching can also be passed through beyond helping and singingOther modes realize helping sings open function, for example, can in song recording interface, increase " help and a sing " functionButton, user can be somebody's turn to do by click " help and sing " function button, helps and sings instruction to client input, and it is specifically realNow do not repeat them here; In addition, the prompting message shown in Fig. 2 A is only also that in the embodiment of the present invention, prompting disappearsA kind of example of breath, in the embodiment of the present invention, also can pass through other formal output prompting messages, for example,The schematic diagram of prompting message also can be as shown in Figure 2 B, and user can be helped and be sung by the first sentence of click "Yes" unlatching,Close prompting message by clicking "No" or "×". Based on the embodiment of the present invention, those skilled in the art are notPay under the prerequisite of creative work, sing any amendment or the modification that instruction makes and all should belong to the present invention helpingProtection domain.
S203, help while singing instruction when receiving, play mode is switched to original singer's pattern, until target songHelp sing part play finish time, play mode is switched to accompaniment pattern again.
In the embodiment of the present invention, client is after song recording interface output prompting message, if detect userClick in this prompting message and help the region of singing corresponding to unlatching, for example, user clicks prompting as shown in Figure 2 A" open first sentence help sing " region in message, or client detects that user clicks song and records display interfaceIn " help and sing " function button, determine and receive to help and sing instruction, now, client can be cut play modeBe changed to original singer's pattern, and in the time that helping of target song sung part broadcasting end, play mode switched to againAccompaniment pattern.
As the optional embodiment of one, in above-mentioned steps S203, help sing instruction can headed by sentence help and sing fingerOrder, the first sentence that part is target song is sung in helping of target song.
Correspondingly, above-mentioned steps S203 can specifically comprise:
Help while singing instruction when receiving first sentence, the play mode of target song is switched to original singer's pattern, and work asThe first sentence of target song is play while end, and the play mode of target song is switched to accompaniment pattern.
For instance, suppose that user wants recording song " afterwards ", and entered the song of target song " afterwards "After recording interface, can not remember first this how to sing, now, user can be in song recording interfaceInputting first sentence helps and sings instruction; Client, after this instruction, switches to original singer's pattern by current play mode,And in the time that end play in the first sentence (first) of target song " afterwards ", play mode is switched to companion againPlay pattern.
As the optional embodiment of another kind, in above-mentioned steps S203, helping and sing instruction can be that front N second (canTo preset, as 3S, 5S etc.) help and sing instruction, wherein, this front N refers to target song prelude part secondWhen end, start the N second of timing, the helping of target song sung part, and for target song, formally to play the lyrics correspondingThe front N second of content.
Correspondingly, above-mentioned steps S203 can specifically comprise:
Help second while singing instruction when receiving front N, play mode is switched to original singer's pattern, and monitoring objective songBent playing progress rate starts timing in the time that target song prelude part finishes, and in the time that timing reaches N second,The play mode of target song is switched to accompaniment pattern.
For instance, suppose that user wants recording song " afterwards ", and entered the song of target song " afterwards "After recording interface, how this plays tune to can not remember this first song, and now, user can be at song recording interfaceMiddle input helps and sings instruction for first 5 seconds; Client, after this instruction, switches to original singer by current play modePattern, and the playing progress rate of monitoring objective song " afterwards ", in the time that the prelude part of target song " afterwards " finishesStart timing (being the timer of 5 seconds as an overtime duration is set), and reach 5 seconds (regularly when timingDevice is overtime) time, play mode is switched to accompaniment pattern again.
As the optional embodiment of one, in above-mentioned steps S203, until target song help sing part broadcastPut while end, play mode switched to accompaniment pattern again, can specifically comprise:
In the time that helping of target song sung part broadcasting end, play mode is switched to accompaniment pattern again, broadcastPut the remainder of target song.
For instance, sing part as the sentence of song is as example to help, client is to helping while singing instruction, generalThe play mode of target song switches to original singer's pattern, and in the time that end play in the first sentence of target song, will broadcastMode playback switches to accompaniment pattern, starts to play this target song from second of target song.
As the optional embodiment of another kind, in above-mentioned steps S203, until part is sung in helping of target songPlay while end, play mode switched to accompaniment pattern again, can specifically comprise:
In the time that helping of target song sung part broadcasting end, play mode is switched to accompaniment pattern again, fromHelp and sing part and start to play target song.
For instance, still sing part as the sentence of song is as example to help, client is to helping while singing instruction,The play mode of target song is switched to original singer's pattern, and in the time that end play in the first sentence of target song, willPlay mode switches to accompaniment pattern, and starts to play target song from the first sentence of target song, again withAccompaniment pattern is play once to help again and is sung part.
Can find out by above description, in the technical scheme providing in the embodiment of the present invention, when receiving pinTo the song record command of target song, and during with accompaniment mode playback target song, help and sing finger if receiveOrder, switches to original singer's pattern by play mode, until helping while singing part broadcasting end of target song will be broadcastMode playback switches to accompaniment pattern again, has simplified the handover operation of the play mode in song recording process,Improve song and recorded efficiency.
Based on the identical technical conceive of said method embodiment, the embodiment of the present invention also provides a kind of song recordIn process processed, help the equipment of singing, can be applied in said method embodiment.
As shown in Figure 3, the knot that helps the equipment of singing in a kind of song recording process providing for the embodiment of the present inventionStructure schematic diagram, can comprise:
Receiver module 301, for receiving the song record command for target song;
Playing module 302, for accompaniment mode playback described in target song;
Help and sing module 303, for helping while singing instruction when receiving, play mode is switched to original singer's pattern, straightWhile singing part broadcasting end to helping of described target song, play mode is switched to accompaniment pattern again.
In optional embodiment, described in help and sing headed by instruction sentence and help and sing instruction, described in help and sing part for described orderThe sentence of mark song;
Correspondingly, described in help sing module 303 can be specifically for, help while singing instruction when receiving first sentence, willThe play mode of described target song switches to original singer's pattern, in the time that end play in the first sentence of described target song,The play mode of described target song is switched to accompaniment pattern.
See also Fig. 4, Fig. 4 is that helping in the disclosed another kind of song recording process of the embodiment of the present invention sungThe structural representation of equipment. Wherein, the equipment of singing that helps in the song recording process shown in Fig. 4 is by Fig. 3 instituteIn the song recording process showing, help the equipment of singing to be optimized to obtain, with the song recording process shown in Fig. 3In the equipment of singing that helps compare, the equipment of singing that helps in the song recording process shown in Fig. 4 can also comprise:
Display module 304, in song recording interface display reminding message; Described prompting message is for promptingUser opens to help and sings.
In optional embodiment, described display module 304 can be specifically for, when playing described target songPrelude part time, show described prompting message at described song recording interface.
See also Fig. 5, Fig. 5 is that helping in the disclosed another kind of song recording process of the embodiment of the present invention sungThe structural representation of equipment. Wherein, the equipment of singing that helps in the song recording process shown in Fig. 5 is by Fig. 4 instituteIn the song recording process showing, help the equipment of singing to be optimized to obtain, with the song recording process shown in Fig. 4In the equipment of singing that helps compare, the equipment of singing that helps in the song recording process shown in Fig. 5 can also comprise:
Closing module 305, for playing and finish when the prelude part of described target song, or connects when described equipmentReceive the instruction of closing prompting message that user inputs, or the unlatching that receives user input when described equipment helpsSing instruction time, close described prompting message.
In the description of this description, reference term " embodiment ", " some embodiment ", " example ", " toolBody example " or the description of " some examples " etc. mean specific features, the knot described in conjunction with this embodiment or exampleStructure, material or feature are contained at least one embodiment of the present invention or example. In this manual,To the schematic statement of above-mentioned term not must for be identical embodiment or example. And, descriptionSpecific features, structure, material or feature can one or more embodiment in office or example in suitableMode combination. In addition,, not conflicting in the situation that, those skilled in the art can be by this descriptionThe feature of the different embodiment of middle description or example and different embodiment or example is carried out combination and combination.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relativelyImportance or the implicit quantity that indicates indicated technical characterictic. Thus, be limited with " first ", " second "Feature can express or impliedly comprise at least one this feature. In description of the invention, " multiple "Implication be at least two, for example two, three etc., unless otherwise expressly limited specifically.
Any process of otherwise describing in flow chart or at this or method are described and can be understood to, tableShow and comprise that one or more is for realizing the code of executable instruction of step of specific logical function or processModule, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, itsIn can be not according to order shown or that discuss, comprise according to related function by the mode of basic while orBy contrary order, carry out function, this should be by embodiments of the invention person of ordinary skill in the fieldInstitute is understood.
The logic and/or the step that in flow chart, represent or otherwise describe at this, for example, can be recognizedFor being the sequencing list of the executable instruction for realizing logic function, may be embodied in any computerIn computer-readable recording medium, for instruction execution system, device or equipment (as computer based system, comprise placeThe reason system of device or other can and be carried out the system of instruction from instruction execution system, device or equipment instruction fetch)Use, or use in conjunction with these instruction execution systems, device or equipment. With regard to this description, " calculateMachine computer-readable recording medium " can be anyly can comprise, storage, communication, propagation or transmission procedure carry out for instructionSystem, device or equipment or the device using in conjunction with these instruction execution systems, device or equipment. CalculateThe example more specifically (non-exhaustive list) of machine computer-readable recording medium comprises following: have one or more wiringsElectrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM),Read-only storage (ROM), erasable read-only storage (EPROM or flash memory), the light editedFine device, and portable optic disk read-only storage (CDROM). In addition, computer-readable medium evenCan be paper or other the suitable media that can print described program thereon, because can for example pass through paperOr other media carry out optical scanner, then edit, decipher or carry out with other suitable methods if desiredProcess and obtain described program in electronics mode, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can be held with being stored in memory and by suitable instructionSoftware or firmware that row system is carried out are realized. For example, if realized with hardware, and in another enforcement sideThe same in formula, can realize by any one in following technology well known in the art or their combination: haveFor data-signal being realized to the discrete logic of the logic gates of logic function, there is suitable combinationThe special IC of logic gates, programmable gate array (PGA), field programmable gate array (FPGA)Deng.
Those skilled in the art are appreciated that the whole or portion that above-described embodiment method is carried that realizesBe can carry out the hardware that instruction is relevant by program to complete step by step, described program can be stored in a kind of meterIn calculation machine readable storage medium storing program for executing, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module,Also can be that the independent physics of unit exists, also can be integrated in a module in two or more unitIn. Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt software function moduleForm realizes. If described integrated module realizes and as product independently using the form of software function moduleWhen selling or using, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium of mentioning can be read-only storage, disk or CD etc. Although show aboveGo out and described embodiments of the invention, being understandable that, above-described embodiment is exemplary, Bu NengliSeparate as limitation of the present invention, those of ordinary skill in the art within the scope of the invention can be to above-mentioned realityExecute that example changes, amendment, replacement and modification.