Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Fig. 1 is the music recognition methods of a kind of vehicle-mounted broadcasting that the embodiment of the present invention provides, it is adaptable to vehicle-mounted
Terminal unit, comprises the following steps.
In the step s 100, after being triggered into music recognition pattern, gather vehicle-mounted broadcasting output
Snatch of music, and extract the fingerprint characteristic of snatch of music.
During vehicle travels, vehicle-mounted terminal equipment is triggered into music when receiving triggering command
Recognition mode.This triggering command may be from the operation of driver, or is automatically given birth to by vehicle-mounted terminal equipment
Become, make vehicle-mounted terminal equipment can be automatically performed the music to vehicle-mounted broadcasting while vehicle travels and know
Not.By this music recognition process, identify the relevant information of the music that vehicle-mounted broadcasting is play, such as,
The media informations such as musical designation, singer, album name.Driver is no longer necessary to come by other equipment
Become music recognition process, improve the convenience simultaneously carrying out music recognition in driving procedure.
After vehicle-mounted terminal equipment enters music recognition pattern, the music starting to play vehicle-mounted broadcasting is adopted
Collection.From the moment starting this music recognition functions, gather the snatch of music of predetermined time period, example
If this predetermined time period is 15 seconds.The mode of the snatch of music gathering vehicle-mounted broadcasting output is collecting vehicle
Carry broadcast and carry out the audio output signal before power amplification, the most directly gather the audio frequency within vehicle-mounted broadcasting
Output signal, it is not necessary to use the audio input device such as mike to gather the sound that vehicle-mounted broadcast playback goes out,
Thus the audio signal that other sound interference in avoiding driver's cabin collect.Utilize music fingerprint technique pair
The snatch of music intercepted carries out feature extraction, gathers fingerprint special inside the voice data of this snatch of music
Levy.
In step S101, send fingerprint characteristic and be identified to server, and receive server and return
The recognition result returned.
This server has established the audio fingerprint database system comprising magnanimity music, it is provided that the finger of music
Stricture of vagina feature identification services.By Index Algorithm by fingerprint characteristic to be identified at the audio-frequency fingerprint of server end
Data base is identified.
When this server identification success, vehicle-mounted terminal equipment receives the music information identified;At this
During server recognition failures, vehicle-mounted terminal equipment receives the message of recognition failures.
In step s 102, recognition result is shown.
Vehicle-mounted terminal equipment show server return recognition result, such as, show musical designation, singer,
Media informations such as album name or play the entire music that this snatch of music is corresponding;Lose in server identification
When losing, show the message of recognition failures.
Vehicle-mounted terminal equipment just can enter music recognition pattern according to triggering command, is automatically performed music recognition
Process also shows recognition result, and driver, without using other equipment such as mobile phone, drives thus without increase
The non-security driving behavior of the person of sailing, driver can continue to be absorbed in vehicle drive, and vehicle-mounted terminal equipment can
Travel, at vehicle, the music that record vehicle-mounted broadcasting was play the most automatically, improve music in driving procedure and know
Other convenience, has reached safety and has taken into account easily.
Below by several embodiments, technical scheme is described further.
Embodiment one
Fig. 2 is the music recognition methods of a kind of vehicle-mounted broadcasting that the embodiment of the present invention one provides, it is adaptable to car
Mounted terminal equipment, comprises the following steps.
In step s 200, receive the triggering command from the shortcut in car, refer to according to described triggering
Order enters music recognition pattern.
The embodiment of the present invention one enters music recognition pattern by the shortcut in car.User passes through button
Operation is transmitted into the triggering command of music recognition pattern to vehicle-mounted terminal equipment.Drive in order to avoid increasing
The non-security driving behavior of person, shortcut is arranged at the position that driver can touch easily.Driver receives
When listening vehicle-mounted broadcasting, if hear the music liked but do not know about the relevant information of this music, then point
Hit this shortcut and make the entrance music recognition pattern of vehicle-mounted terminal equipment.
In one embodiment, this shortcut is arranged at the steering wheel of vehicle.Driver drive time, hands
Refer to touch easily any position of steering wheel.This shortcut is arranged on steering wheel, driver without
Need to divert sb.'s attention and can touch this shortcut, bring any impact from without aligning often to drive.Or,
In car, multiple positions arrange this shortcut, except being arranged at steering wheel, it is also possible to be arranged on copilot
The positions such as the seat back of seat, driver and copilot so that it is he rider can help driver to make
Vehicle-mounted terminal equipment enters music recognition pattern, or is determined when to make car-mounted terminal by other riders
Equipment enters music recognition pattern.This by shortcut triggering vehicle-mounted terminal equipment entrance music recognition mould
The mode of formula, hears playing in vehicle-mounted broadcasting driver or other riders and oneself likes
Music, but triggering mode when oneself not knowing about this music-related information.
In step s 201, the snatch of music of vehicle-mounted broadcasting output is gathered.
In step S202, extract the fingerprint characteristic of snatch of music.
In step S203, send fingerprint characteristic and be identified to server.
If server identifies the music information corresponding with snatch of music, then perform step S204;As
Really server does not identify the music information corresponding with snatch of music, then perform step S207.
In step S204, receiving the music information that server returns, music information includes audio frequency literary composition
Part and media information.
This audio file is the complete music file corresponding with collecting snatch of music, and is can be by
The file that vehicle-mounted terminal equipment plays out, such as, the audio file of the form such as MP3, WAV.Should
Media information is the relevant information corresponding with this audio file, including singer, album name, music style,
One or more in album cover and the lyrics.
Now can arrange according to system and perform step S205 or step S206 further.
In step S205, show media information.
Vehicle-mounted terminal equipment can show the media information in the music information received by display screen, or
Person shows this media information by the way of voice message.
In step S206, while showing media information, play audio file.
Vehicle-mounted terminal equipment shows the media information in music information by the way of in step S205, with
Time play the audio file in this music information, allow users to again to enjoy corresponding with this snatch of music
Complete music.
In step S207, receive the message of the recognition failures that server returns.
In step S208, show the message of recognition failures and preserve snatch of music in this locality.
Vehicle-mounted terminal equipment shows the message of recognition failures by the way of display screen or voice message.Due to
Server does not identify the music information of this snatch of music, then this snatch of music is protected by vehicle-mounted terminal equipment
There is this locality, during preservation, the time collecting this snatch of music can be recorded the file at this snatch of music
In Ming, in order to user searches or derives, this snatch of music by other from vehicle-mounted terminal equipment
Approach searches for the relevant information of this snatch of music.
Below by an application example, the scheme of the embodiment of the present invention one is described further.
When user drives and listens to vehicle-mounted broadcasting, hear one section of melodious music, but this user not knowing about
Any information of this music.User clicks on the shortcut being arranged on steering wheel while driving, with
Trigger vehicle-mounted terminal equipment and enter music recognition pattern.Vehicle-mounted terminal equipment gathers the sound of vehicle-mounted broadcasting output
Happy fragment a, extracts the fingerprint characteristic of this snatch of music a, sends the fingerprint characteristic of this snatch of music a extremely
Server is identified.
If server recognizes the music information of this snatch of music a, such as, audio file A.mp3,
And media information: singer B, album name C, album art files C.jpg and lyrics file A.lrc;
Then vehicle-mounted terminal equipment can receive above-mentioned music information.According to user, the system of vehicle-mounted terminal equipment is set
Putting, vehicle-mounted terminal equipment can show above-mentioned media information, as demonstrated singer B, special edition at display screen
The information such as the lyrics content in title C, album art files C.jpg and lyrics file A.lrc, or logical
Cross voice message to show the information such as singer B, album name C;Or vehicle-mounted terminal equipment is on showing
Also play this audio file A while stating media information, allow users to again enjoy snatch of music a
Corresponding entire music, the automatic pause vehicle-mounted broadcasting when playing this audio file A, at this audio frequency
File A recovers vehicle-mounted broadcasting after finishing the most automatically.
If do not recognize the music information of this snatch of music a at server, then vehicle-mounted terminal equipment connects
The message the display that receive the recognition failures that server returns on a display screen or are accused by voice message
Know driver.Vehicle-mounted terminal equipment preserves this snatch of music a in this locality, will collect this sound when stored
The time of happy fragment a records in filename, such as " unidentified fragment a_1125.mp3 ", it is simple to use
Find after family this unidentified go out snatch of music a.
The embodiment of the present invention one triggers vehicle-mounted terminal equipment by shortcut and enters music recognition pattern, will not
Increase any other operations affecting driving safety, while automatically identifying the music that driver is liked
Also the safe driving of vehicle will not be impacted.
Embodiment two
Fig. 3 is the music recognition methods of a kind of vehicle-mounted broadcasting that the embodiment of the present invention two provides, it is adaptable to car
Mounted terminal equipment, comprises the following steps.
The embodiment of the present invention two, the music play in vehicle-mounted broadcasting is known by vehicle-mounted terminal equipment automatically
Not, when user opens vehicle-mounted broadcasting, vehicle-mounted terminal equipment begins to automatically to broadcasting in vehicle-mounted broadcasting
Music is identified, it is not necessary to carry out any operation in user's driving procedure, it is possible to keep driving further
Safety.Automatically the music play in vehicle-mounted broadcasting is identified, need to first determine whether out vehicle-mounted extensively
Broadcast and the most play music.In the present embodiment, vehicle-mounted terminal equipment also can be opened according to user setup
Or close the function automatically identifying vehicle-mounted broadcasting.
In step S300, after detecting that vehicle-mounted broadcasting starts, obtain the audio frequency of vehicle-mounted broadcasting output
Fragment.
Vehicle-mounted terminal equipment obtains vehicle-mounted broadcasting and carries out the audio output signal before power amplification.At one
In embodiment, vehicle-mounted terminal equipment obtains the audio fragment of vehicle-mounted broadcasting output every predetermined period, such as
The time overall length of music is usually 3-5 minute, therefore can obtain a train every 90 seconds or 120 seconds
Carrying the audio fragment of broadcast output, the duration of the audio fragment every time obtaining vehicle-mounted broadcasting output can be
10 seconds-20 seconds.
In step S301, it is judged that whether the audio fragment of vehicle-mounted broadcasting output is snatch of music;
The audio frequency such as music VF and other audio frequency, such as news voice, Chinese folk art forms program, talk show, have
Different audio frequency characteristics;Different audio frequency characteristics also can be there is between different genres of music.Mobile unit
Terminal prestores the characteristic model of different classes of music, according to the audio frequency of the vehicle-mounted broadcasting output got
Judge that vehicle-mounted broadcasting is the most playing music.When the audio fragment of vehicle-mounted broadcasting output is snatch of music
Time, perform step S302;When the audio fragment of vehicle-mounted broadcasting output is not snatch of music, return step
Rapid S300.
In step s 302, triggering command is generated to enter music recognition pattern.
Vehicle-mounted terminal equipment is judged when vehicle-mounted broadcasting plays music, generate triggering command automatically into
Music recognition pattern, and carry out any operation without driver.
In step S303, extract the fingerprint characteristic of snatch of music.
In step s 304, send fingerprint characteristic to be identified to server.
If server identifies the music information corresponding with snatch of music, then perform step S305;As
Really server does not identify the music information corresponding with snatch of music, then perform step S307.
In step S305, receive the media information in the music information that server returns.
In the present invention implements two, no matter whether driver likes the music that vehicle-mounted broadcasting is currently playing, car
The music occurred in vehicle-mounted broadcasting all can be all identified by mounted terminal equipment, if identifying successfully
Audio file in the music information that snatch of music is corresponding is all downloaded, then can cause the wave of network traffics
Take.Therefore, when server identifies the music information corresponding with snatch of music, vehicle-mounted terminal equipment receives
Media information in this music information, and do not download the audio file in this music information.
In step S306, set up the first corresponding relation of media information and snatch of music and be saved in this
Ground, performs step S309.
The snatch of music judged in the media information received in step S305 and step S302 is set up
First corresponding relation is also saved in this locality.The first corresponding relation list is preserved in vehicle-mounted terminal equipment this locality,
It is used for preserving all having identified the first corresponding relation between successful snatch of music and media information.
In step S307, receive the message of the recognition failures that server returns.
In step S308, set up the message of recognition failures and the second corresponding relation of snatch of music and protect
There is this locality, perform step S309.
The musical film will judged in the message of the recognition failures received in step S308 and step S302
Duan Jianli the second corresponding relation is also saved in this locality.The second corresponding relation is preserved in vehicle-mounted terminal equipment this locality
List, is used for preserving between all unidentified successful snatch of musics and the message of recognition failures second corresponding
Relation.
In step S309, it is judged that whether vehicle-mounted broadcasting closes.When vehicle-mounted broadcasting is turned off, perform
Step S310;When vehicle-mounted broadcasting is not turned off, return step S301.
In step S310, show recognition result according to the first corresponding relation and the second corresponding relation.
After driver is stopped and closed vehicle-mounted broadcasting, whole music can be browsed to by vehicle-mounted terminal equipment
Recognition result.Vehicle-mounted terminal equipment shows all musical films according to the first corresponding relation and the second corresponding relation
The recognition result of section.For identifying successful snatch of music, it is possible to browse to the media information of correspondence;Right
Snatch of music in recognition failures, it is possible to browse to the message of this snatch of music recognition failures.
Below by an application example, the scheme of the embodiment of the present invention two is described further.
The music recognition functions of vehicle-mounted terminal equipment is set to automatic mode by driver.When driver opens
After vehicle-mounted broadcasting, vehicle-mounted terminal equipment starts automatically to identify the music play in vehicle-mounted broadcasting.Car-mounted terminal
Equipment obtains the audio fragment of vehicle-mounted broadcasting output every predetermined period, it is necessary first to judge vehicle-mounted broadcasting
The most playing music, inside it, prestoring the characteristic model of multiple music, for judging car
Carry broadcast and the most play music.Interpretation goes out vehicle-mounted broadcasting when playing music, extracts snatch of music
Fingerprint characteristic;Send fingerprint characteristic to be identified to server.
The fingerprint characteristic of snatch of music a is sent to server by such as vehicle-mounted terminal equipment equipment, if clothes
Business device recognizes the music information of snatch of music a, such as, audio file A.mp3;And media information:
Singer B, album name C, album art files C.jpg and lyrics file A.lrc;Then car-mounted terminal
Equipment receives the media information in above-mentioned music information.The media letter setting up snatch of music a and receive
The first corresponding relation between breath is also saved in the first corresponding relation list of this locality, returns again to continue to sentence
Disconnected vehicle-mounted broadcasting is the most playing music, if it is judged that playing music, then continues next secondary noise
Happy identification process.
If do not recognize the music information of this snatch of music a at server, then vehicle-mounted terminal equipment connects
Receive the message of the recognition failures that server returns.Set up between snatch of music a and the message of recognition failures
The second corresponding relation and be saved in this locality the second corresponding relation list in, return again to continue judge vehicle-mounted
Music is the most being play in broadcast, if it is judged that playing music, then continues music recognition next time
Process.
Vehicle-mounted terminal equipment judges that vehicle-mounted broadcasting is playing music, will enter the music play
Row identifies, until vehicle-mounted broadcasting is closed.Such as at vehicle-mounted broadcasting during opening to and closing,
Vehicle-mounted terminal equipment collects 6 sections of snatch of musics, respectively snatch of music 16 altogether;Wherein musical film
Section 1,3 and 4, in server identification success, is respectively received media information 1, matchmaker that server returns
Body information 3 and media information 4;Snatch of music 2,5 and 6, at server recognition failures, receives clothes
The message of the recognition failures that business device returns.First corresponding relation list of vehicle-mounted terminal equipment is preserved
" snatch of music 1 media information 1, snatch of music 3 media information 3, snatch of music 4
Media information 4 " etc. the first corresponding relation.In second corresponding relation list of vehicle-mounted terminal equipment, preserve
There are " snatch of music 2 recognition failures, snatch of music 5 recognition failures, snatch of music 6
Recognition failures " etc. the second corresponding relation.After driver is stopped and closed vehicle-mounted broadcasting, can pass through vehicle-mounted end
The end above-mentioned recognition result of equipment browse, it is possible to select successful snatch of music to download, from clothes from identifying
Complete audio file downloaded by business device;For the snatch of music of recognition failures, can derive to mobile phone, computer
Re-start identification Deng mobile terminal, or directly delete to discharge memory space.
Vehicle-mounted terminal equipment can select between the scheme of above-described embodiment one and embodiment two according to user
Switch over, it is achieved the music recognition mode of different vehicle-mounted broadcastings.User is selected by embodiment one
The music oneself liked is known otherwise automatically;Embodiment two is automatically to identify that vehicle-mounted broadcasting is play
All modes of music.It is automatic that above-described embodiment one and embodiment two all achieve vehicle-mounted broadcasting music
Identify, the non-security driving behavior of driver will not be increased simultaneously, reached safety and taken into account easily.
In these external the various embodiments described above, if vehicle-mounted terminal equipment has speech identifying function, user can be simultaneously
Trigger vehicle-mounted terminal equipment by voice mode and enter music recognition pattern, also will not increase driving procedure
In non-security driving behavior.
In sum, compared with prior art, the embodiment of the present invention can obtain techniques below effect:
1) vehicle-mounted terminal equipment enters music recognition pattern when receiving triggering command, and this triggering command is come
From the operation of driver or being automatically generated by vehicle-mounted terminal equipment, vehicle-mounted terminal equipment refers to according to this triggering
Order just can be automatically performed music recognition and show recognition result, and without using mobile phone etc., other set driver
Standby, thus without the non-security driving behavior of increase driver, driver can continue to be absorbed in vehicle drive,
Vehicle-mounted terminal equipment can travel, at vehicle, the music that record vehicle-mounted broadcasting was play the most automatically, improves
The convenience of music recognition in driving procedure, has reached safety and has taken into account easily.
2), when the shortcut by being arranged in car enters music recognition pattern, this shortcut is arranged to be driven
The position that the person of sailing or other riders easily touch, when this shortcut is arranged at steering wheel, driver without
The music recognition functions that can open vehicle-mounted broadcasting easily need to be diverted sb.'s attention, will not cause to safe driving
Impact.
3), when driver enters music recognition pattern by shortcut, vehicle-mounted terminal equipment will identify immediately
Result is shown, and can suspend vehicle-mounted broadcasting and play the complete audio file recognized, and allows
Driver appreciates the music oneself liked again, after audio file finishes, recovers vehicle-mounted broadcasting.
4) vehicle-mounted terminal equipment is set open vehicle-mounted broadcasting and begins to automatically identify the sound of broadcasting
Happy, after vehicle-mounted broadcasting is closed, driver can browse through whole recognition result, it is not necessary to driver is carried out
Any operation, does not interferes with the safety of driving.Driver can select under needs from recognition result
The music carried.
Fig. 4 is the music recognition device of a kind of vehicle-mounted broadcasting that the embodiment of the present invention provides, including:
Acquisition module 40, for after being triggered into music recognition pattern, gathers vehicle-mounted broadcasting output
Snatch of music, and extract the fingerprint characteristic of snatch of music;
Communication module 41, is used for sending fingerprint characteristic and is identified to server and receives server returning
The recognition result returned;
Display module 42, is used for showing recognition result.
In one embodiment, this acquisition module 40 includes:
First receives submodule, for receiving the triggering command from the shortcut in car;In this car
Shortcut is arranged at steering wheel.
First promoter module, for starting music recognition process according to triggering command.
This communication module 41 includes:
Second receives submodule, and for receiving the music information that server returns, music information includes sound
Frequency file and media information;
This display module 42 includes:
First shows submodule, is used for showing media information;Or,
Second shows submodule, while being used for showing media information, plays audio file.
This display module 42 also includes:
3rd shows submodule, for showing the message of recognition failures and preserving snatch of music in this locality.
In one embodiment, this acquisition module 40 also includes:
Second promoter module, for when judging that the audio fragment that vehicle-mounted broadcasting exports is snatch of music
Time, generate triggering command to enter music recognition pattern.
This communication module 41 also includes:
3rd receives submodule, for receiving the media information in the music information that server returns;
First preserves submodule, for setting up the first corresponding relation of media information and snatch of music and preserving
In this locality.
This communication module 41 also includes:
4th receives submodule, for receiving the message of the recognition failures that server returns;
Second preserves submodule, for setting up the message of recognition failures and the second corresponding relation of snatch of music
And it is saved in this locality.
This display module 42 also includes:
Second judges submodule, is used for judging whether vehicle-mounted broadcasting has been switched off;
3rd shows submodule, for when judging that vehicle-mounted broadcasting has been switched off, according to the first corresponding pass
System and the second corresponding relation show the recognition result of music recognition process.
Come real additionally, the embodiment of the present invention can be passed through hardware processor (hardware processor)
Existing each functional module above-mentioned.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.