Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of music method for recording, Apparatus and system are provided, can be after the user has recorded music file; Automatically for this music file adds ID3 information, need not the user manual editing, raise the efficiency; Avoid makeing mistakes the follow-up management that conveniently is used for.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of music method for recording, comprising:
Gather sound external, generate music file;
Said music file is uploaded database, utilize the music recognition technology in said database, to search and obtain the corresponding song label ID3 information of said music file;
Form according to the rules writes said ID3 information the corresponding field of said music file.
Wherein, said collection sound external data generate music file and comprise:
Start virtual sound card, gather sound external, generate the music file that only contains acoustic information.
Wherein, said collection sound external generates after the music file, also comprises:
With the format conversion of said music file is the audio format that said database is supported.
Wherein, said said music file is uploaded database, utilizes the music recognition technology in said database, to search and obtain the corresponding song label ID3 information of said music file, comprising:
From the audio fragment of said music file intercepting regulation duration, said audio fragment is uploaded database;
With said audio fragment is index, utilizes the music recognition technology in said database, to search the ID3 information of said music file;
Obtain the ID3 information of said music file.
Wherein, said form according to the rules writes said ID3 information after the corresponding field of said music file, also comprises:
According to title title information in the said ID3 information and artist artist information, the front cover of the said music file of search in network;
Form according to the rules, the front cover of the said music file that search is obtained writes the corresponding field of said music file.
Correspondingly, the embodiment of the invention also provides a kind of music recording system, comprising: database and music record device;
Database, the ID3 information that is used to store music file and music file;
The music record device is used to gather after sound external generates music file, and said music file is uploaded database, utilizes the music recognition technology in database, to search and obtain the corresponding song label ID3 information of said music file; And form according to the rules, the ID3 information that said information inquiry module is obtained writes the corresponding field of said music file.
Correspondingly, the embodiment of the invention also provides a kind of music record device, comprising:
The sound collection module is used to gather sound external, generates music file;
The information inquiry module is used for the music file that said sound collection module generates is uploaded database, utilizes the music recognition technology in said database, to search and obtain the corresponding song label ID3 information of said music file;
The ID3 load-on module is used for form according to the rules, and the ID3 information that said information inquiry module is obtained writes the corresponding field of said music file.
Wherein, said music record device also comprises: format converting module, the format conversion that is used for said music file is the audio format that said database is supported.
Wherein, said information inquiry module comprises:
Interception unit is used for from the audio fragment of said music file intercepting regulation duration, and said audio fragment is uploaded database;
Query unit, being used for said audio fragment is index, utilizes the music recognition technology in said database, to search the ID3 information of said music file; And obtain the ID3 information of said music file.
Wherein, said music record device also comprises:
The front cover enquiry module is used for title information and artist information according to said ID3 information, the front cover of the said music file of search in network;
The front cover load-on module is used for form according to the rules, and the front cover of the said music file that the search of said front cover enquiry module is obtained writes the corresponding field of said music file.
Music method for recording, Apparatus and system that the embodiment of the invention provides can for this music file adds ID3 information, need not the user manual editing automatically after the user has recorded music file, raise the efficiency, and avoid makeing mistakes.Further, the music method for recording that present embodiment provides, Apparatus and system be the corresponding front cover of search for music file in network automatically, writes then in the music file, and the user need not oneself to search and insert front cover, reduces user's workload.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Referring to Fig. 1, be music method for recording first embodiment flow process intention provided by the invention, as shown in Figure 1, the flow process of this music method for recording comprises:
Step S100 gathers sound external, generates music file.
Step S101 uploads database with said music file, utilizes the music recognition technology, in said database, searches and obtain the corresponding song label ID3 information of said music file.
Step S102, form according to the rules writes said ID3 information the corresponding field of said music file.
The music method for recording that the embodiment of the invention provides can for this music file adds ID3 information, need not the user manual editing automatically after the user has recorded music file, raise the efficiency, and avoids makeing mistakes user friendly follow-up management.
Referring to Fig. 2, be music method for recording second embodiment flow process intention provided by the invention, in the present embodiment, with the flow process of this music method for recording of more detailed description.As shown in Figure 1, the flow process of this music method for recording comprises:
Step S200 starts virtual sound card, gathers sound external, generates the music file that only contains acoustic information.More concrete, suppose virtual sound card soundflower is installed in mac os system, when the recording music file, virtual sound card is gathered the music file that voice data generates the m4a form.In this music file, audio-frequency information is only arranged, there is not ID3 information.That is, the user can be directly plays this music file in the mp3 player, but the mp3 player can not show information such as the music title, singer of current broadcast, because there is not ID3 information in the music file.
Operating system and other the virtual sound card that it will be appreciated by persons skilled in the art that other also can embodiment of the present invention, and its principle is identical with present embodiment with effect, also belongs to protection scope of the present invention.
Step S201 is the audio format that said database is supported with the format conversion of said music file.Because the music method for recording that the embodiment of the invention provides need be uploaded to database with music file, with inquiry ID3 information, so need be the audio format that said database is supported with the format conversion of said music file.For example, database is only supported the audio file of wav form, then need the music file of the m4a form that generates among the step S200 be converted into the music file of wav form.
Certainly,, then can omit this step, directly execution in step S202 if the form of the music file that generates among the step S200 itself is exactly the form that database is supported.
Step S202 is from the audio fragment of music file intercepting regulation duration.More concrete, the purpose of music file being uploaded database is to inquire about its corresponding ID3 information, so there is no need whole music file is all uploaded, gets final product and only need upload an audio fragment.
The method of intercepting audio fragment can effectively reduce the quantity of information of uploading database, saves time and Internet resources, has also reduced the database analysis music file simultaneously, the workload and the time of coupling ID3 information.But the quantity of information in the audio fragment of institute's intercepting is wanted the music file of definite its representative that can be unique.The duration of audio fragment is too short, possibly can't confirm the music file of its representative; The duration of audio fragment is long, wastes Internet resources again, increases the work load of database.In embodiments of the present invention, the duration of the audio fragment in the intercepting music file is preferably 10 to 60 seconds.
Step S203 uploads database with said audio fragment, and is index with said audio fragment, utilizes the music recognition technology in said database, to search the ID3 information of said music file.The database that provides with GRACENOTE company in the present embodiment is an example; Many musical sound files and corresponding ID3 information have been included in this database; After this database is received the audio fragment of uploading; With this audio fragment is index, searches and feed back the pairing ID3 information of music file at this audio fragment place.
Certainly, also maybe be in the database because the audio fragment uploaded is too short, can't identification; Or do not include this music file in the database and cause the ID3 information corresponding with audio fragment that can not find, at this moment, database can feed back the information of an inquiry failure and give the user.
It will be appreciated by persons skilled in the art that database can be realized above-mentioned functions like the class database that provides with GRACENOTE company, so can not limit protection scope of the present invention with this.
Step S204, form according to the rules, the ID3 information of the music file that will from database, obtain writes the corresponding field of said music file.More concrete, ID3 information generally is to be positioned at the beginning of a mp3 file or some bytes at end, has added information such as singer about this music file, title, title.ID3 information is divided into two versions, v1 and v2 version.Wherein: the ID3 of v1 version is 128 bytes at the end of mp3 file, with three character beginnings of TAG, ID3 information on the followed.The v2 version generally is positioned at the beginning of music file, can store lyrics, and bulky information such as the picture of this special edition.After adding ID3 information, the user just can see the information such as singer, title, title of this music file simultaneously when playing this music file.
Along with development of electronic technology; The function of electronic product is also more and more; Present prevailing mp3 also often has certain image display function; So the user who has can also see something of more intuitive pictorial information, for example the front cover of special edition except hope can be seen the ID3 information of music file of current broadcast.For addressing the above problem, the present invention implements to comprise following preferred step.
Step S205, according to title title information in the said ID3 information and artist artist information, the front cover of the said music file of search in network.More concrete; Owing to possibly have many front cover pictures relevant on the network with this music file; So two kinds of selectable process modes are arranged in this step, the one, choose the front cover picture of a pictures automatically as this music file, for example obtain to a certain fixedly website; Perhaps according to certain algorithm, obtain the frequency of occurrences the highest or a top-quality pictures as the front cover picture; The 2nd, obtain plurality of pictures (for example 5), select by the user then.
Step S206, form according to the rules, the front cover of the said music file that search is obtained writes the corresponding field of said music file.More concrete, behind selected front cover picture, selected front cover picture is inserted the corresponding field of music file.Because the space of reserving in the v1 version is less, so possibly be only applicable to the v2 version of ID3 at present, it will be appreciated by persons skilled in the art that the version that has the picture-storage ability for other, the present invention is suitable equally.
The music method for recording that the embodiment of the invention provides can be searched the corresponding ID3 information of this music file, and insert in the music file after the user record music file automatically in database, need not the user manual editing, raises the efficiency, and avoids makeing mistakes.Further, the music method for recording that present embodiment provides can also utilize the ID3 information the obtained front cover of search for music file in network automatically, writes then in the music file, and the user need not oneself to search and insert front cover, reduces user's workload.
Referring to Fig. 3, be music recording system example structure synoptic diagram provided by the invention, as shown in the figure, this system comprises: database 1 and music record device 2.
Database 1, the ID3 information that is used to store music file and music file.
Music record device 2 is used to gather after sound external generates music file, said music file is uploaded database 1, and utilize the music recognition technology in database 1, to search and obtain the corresponding song label ID3 information of said music file; And form according to the rules, the ID3 information that said information inquiry module is obtained writes the corresponding field of said music file.
The music recording system that the embodiment of the invention provides can generate the music file that has ID3 information automatically.After the user has recorded music file, the ID3 information of in database, searching music file automatically, and insert automatically in this music file, need not the user manual editing, raise the efficiency, avoid makeing mistakes user friendly follow-up management work.
Referring to Fig. 4, be the music record device first example structure synoptic diagram provided by the invention, the device that present embodiment provides can be applied to music recording system provided by the invention, implements the method that is provided among music method for recording first embodiment.
As shown in Figure 4, this music record device comprises:
Sound collection module 21 is used to gather sound external, generates music file.
Information inquiry module 22 is used for the music file that said sound collection module 21 generates is uploaded database, utilizes the music recognition technology in said database, to search and obtain the corresponding song label ID3 information of said music file.
ID3 load-on module 23 is used for form according to the rules, and the ID3 information that said information inquiry module 22 is obtained writes the corresponding field of said music file.
The music record device that the embodiment of the invention provides can connect database automatically after the user has recorded music file, for this music file adds ID3 information, need not the user manual editing, raises the efficiency, and avoids makeing mistakes user friendly follow-up management work.
Referring to Fig. 5, be the music record device second example structure synoptic diagram provided by the invention, the device that present embodiment provides can be applied to music recording system provided by the invention, implements the method that is provided among music method for recording second embodiment.
As shown in Figure 5, this music record device comprises: sound collection module 21, information inquiry module 22, ID3 load-on module 23, format converting module 24, front cover enquiry module 25 and front cover load-on module 26.Concrete:
Sound collection module 21 is used to gather sound external, generates music file.In practical application, this sound collection module 21 can be the virtual sound card in the computer system.More concrete, suppose that in mac os system, sound collection module 21 can be virtual sound card soundflower.When the recording music file, sound collection module 21 is gathered the music file that voice data generates the m4a form, in this music file, audio-frequency information is only arranged, but does not have ID3 information.That is, the user can be directly plays this music file in the mp3 player, but the mp3 player can not show information such as the music title, singer of current broadcast, because there is not ID3 information in the music file.
It will be appreciated by persons skilled in the art that sound collection module 21 also can be other equipment with sound collection and recording function, its principle is identical with present embodiment with effect, also belongs to protection scope of the present invention.
Format converting module 24, the format conversion of the music file that is used for said sound collection module 21 is generated is the audio format that said database is supported.More concrete; Because the music record device that the embodiment of the invention provides need be uploaded to database with music file; With inquiry ID3 information, be the form that database is supported with the format conversion of the music file of said sound collection module 21 generations so need format converting module 24.For example, database is only supported the wav form, and the music file that sound collection module 21 generates is the m4a form, and then format converting module 24 need convert the music file that sound collection module 21 generates into the wav form.Certainly, if the form of the music file that sound collection module 21 generates itself is exactly the form that database is supported, then format converting module 24 need not to carry out the processing of format conversion.
Information inquiry module 22; Be used for said sound collection module 21 is generated; Or the music file after format converting module 24 conversion uploads database, utilizes the music recognition technology in said database, to search and obtain the corresponding song label ID3 information of said music file.More concrete, information inquiry module 22 comprises:
Interception unit 221 is used for from the audio fragment of music file intercepting regulation duration, and said audio fragment is uploaded database.More concrete, the purpose of music file being uploaded database is to inquire about its corresponding ID3 information, thus there is no need to upload whole music file, and an audio fragment only need uploading in the music file gets final product.
The method of intercepting audio fragment can effectively reduce the quantity of information of uploading database, saves time and Internet resources, has also reduced the database analysis music file simultaneously, the workload and the time of coupling ID3 information.But the quantity of information in the audio fragment of institute's intercepting is wanted the music file of definite its representative that can be unique.The duration of audio fragment is too short, possibly can't confirm the music file of its representative; The duration of audio fragment is long, wastes Internet resources again, increases the work load of database.In embodiments of the present invention, the duration of the audio fragment in the interception unit 221 intercepting music files is preferably 10 to 60 seconds.
Query unit 222, being used for said audio fragment is index, in said database, searches the ID3 information of said music file; And obtain the ID3 information of said music file.The database that provides with GRACENOTE company in the present embodiment is an example; Many musical sound files and corresponding ID3 information have been included in this database; Query unit 222 is an index with the audio fragment of interception unit 221 interceptings, in database, searches and feed back the pairing ID3 information of music file at this audio fragment place.
Certainly, also maybe be in the database because the audio fragment uploaded is too short, can't identification; Or do not include this music file in the database and cause the ID3 information corresponding with audio fragment that can not find, at this moment, database can feed back the information of an inquiry failure and give query unit 222.
It will be appreciated by persons skilled in the art that database can be realized above-mentioned functions like the class database that provides with GRACENOTE company, so can not limit protection scope of the present invention with this.
ID3 load-on module 23 is used for form according to the rules, and the ID3 information that said information inquiry module 22 is obtained writes the corresponding field of said music file.More concrete, ID3 information generally is to be positioned at the beginning of a mp3 file or some bytes at end, has added information such as singer about this music file, title, title.ID3 load-on module 23 adds ID3 information in music file after, the user just can see the information such as singer, title, title of this music file simultaneously when playing this music file.
Along with development of electronic technology; The function of electronic product is also more and more; Present prevailing mp3 also often has certain image display function; So the user who has can also see something of more intuitive pictorial information, for example the front cover of special edition except hope can be seen the ID3 information of music file of current broadcast.For addressing the above problem, the music record device that the present invention implements to provide also comprises following preferred module: front cover enquiry module 25 and front cover load-on module 26.
Front cover enquiry module 25 is used for title information and artist information according to said ID3 information, the front cover of the said music file of search in network.More concrete; Owing to possibly have many front cover pictures relevant on the network with this music file; So at front cover enquiry module 25 two kinds of selectable process modes are arranged, the one, front cover enquiry module 25 is chosen the front cover picture of a pictures as this music file automatically, for example obtains to a certain fixedly website; Perhaps according to certain algorithm, obtain the frequency of occurrences the highest or a top-quality pictures as the front cover picture; The 2nd, front cover enquiry module 25 obtains plurality of pictures (for example 5), is selected by the user then.
Front cover load-on module 26 is used for form according to the rules, and the front cover of the said music file that 25 search of said front cover enquiry module are obtained writes the corresponding field of said music file.More concrete, behind front cover enquiry module 25 selected front cover pictures, front cover load-on module 26 inserts selected front cover picture the corresponding field of music file.Because the space of reserving in the v1 version is less, so possibly be only applicable to the v2 version of ID3 at present, it will be appreciated by persons skilled in the art that the version that has the picture-storage ability for other, the present invention is suitable equally.
The music record device that the embodiment of the invention provides can be searched the corresponding ID3 information of this music file, and insert in the music file after the user record music file automatically in database, need not the user manual editing, raises the efficiency, and avoids makeing mistakes.Further, the music record device that present embodiment provides can also utilize the ID3 information the obtained front cover of search for music file in network automatically, writes then in the music file, and the user need not oneself to search and insert front cover, reduces user's workload.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely a kind of preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.