CN109684288A - Synchronous music method, terminal device and the automobile of different terminals - Google Patents
Synchronous music method, terminal device and the automobile of different terminals Download PDFInfo
- Publication number
- CN109684288A CN109684288A CN201811514775.5A CN201811514775A CN109684288A CN 109684288 A CN109684288 A CN 109684288A CN 201811514775 A CN201811514775 A CN 201811514775A CN 109684288 A CN109684288 A CN 109684288A
- Authority
- CN
- China
- Prior art keywords
- music
- information
- character string
- terminal
- author
- 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 55
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 7
- 230000008569 process Effects 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000005012 migration Effects 0.000 abstract description 4
- 238000013508 migration Methods 0.000 abstract description 4
- 230000004888 barrier function Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/10—Indexing; Addressing; Timing or synchronising; Measuring tape travel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
The embodiment of the invention provides a kind of synchronous music methods of different terminals, comprising: second terminal receives the Bluetooth information that the music player of first terminal is sent during music;It obtains in the Bluetooth information for characterizing the character string information of musical designation and/or author information;The character string information is parsed to obtain corresponding musical designation and/or author information;Corresponding music data is downloaded based on the musical designation and/or author information to complete synchronous music.Based on above scheme, user does not need to carry out any manual operation, can be locally generated music playlist during music, realize the seamless migration of music playlist in other terminals;Moreover, the program can break the technical barrier between each music player, the playlist in different music players is merged.The embodiment of the invention also provides a kind of terminal device and automobiles.
Description
Technical Field
The invention relates to the technical field of vehicle internet, in particular to a music synchronization method of different terminals, terminal equipment and an automobile.
Background
The random living standard is improved, and the automobile keeping quantity is larger and larger.
Many people are used to listen to songs on the vehicle, and in order to listen to music frequently listened to on the mobile phone, many people can use the vehicle-mounted central control system Bluetooth to connect the mobile phone music player to play music. However, playing music through bluetooth itself can cause loss of tone quality, and cannot provide good listening experience for the user.
With the rise of internet automobiles, users can also directly play favorite music through the vehicle-mounted central control system, but the mode requires the users to search and download favorite music one by one for playing, the process is very complicated, and the users can spend a long time to form a new favorite list in the vehicle-mounted central control system.
Thus, the user is still faced with a dilemma.
Disclosure of Invention
In order to at least partially solve the problems in the prior art, embodiments of the present invention are directed to a method for synchronizing music of different terminals, a terminal device, and an automobile.
According to a first aspect, an embodiment provides a music synchronization method for different terminals, including:
the second terminal receives Bluetooth information sent by a music player of the first terminal in the music playing process;
the second terminal acquires character string information used for representing music names and/or author information in the Bluetooth information;
the second terminal analyzes the character string information to obtain corresponding music names and/or author information;
and the second terminal downloads corresponding music data based on the music name and/or the author information to complete music synchronization.
Preferably, the method further comprises the preceding steps:
and judging whether the transmission state of the Bluetooth information is stable, and if so, beginning to analyze the Bluetooth information.
Preferably, the determining whether the bluetooth information transmission state is stable includes:
and judging whether the time interval of receiving the same Bluetooth information twice before and after exceeds a preset value, and if not, determining that the information transmission state is stable.
Preferably, the step of the second terminal parsing the character string information to obtain corresponding music name and/or author information includes:
and analyzing the character string according to a preset wildcard analysis rule, wherein the preset wildcard analysis rule is determined by the character string format transmitted by the music player in the first terminal.
Preferably, parsing the character string according to a preset wildcard parsing rule includes:
analyzing the character string in a preset coding mode;
judging whether the character string contains a separator or not;
if yes, extracting fields before and after the separator respectively;
respectively taking the fields in front of and behind the separator as character keywords, and performing character keyword matching in an author information database;
and taking the successfully matched character key word as author information, and taking the other character key word as a music name.
Preferably, when the character string does not contain a separator, the method further comprises:
performing semantic analysis on the character string, and extracting semantic keywords;
semantic keyword matching is carried out in an author information database and a music name database according to the semantic keywords;
determining semantic keywords with high matching degree in an author information database as author information;
and determining the semantic keywords with high matching degree in the music name database as the music names.
Preferably, the method further comprises:
and judging whether the character string is invalid or not, and if so, discarding the character string.
Preferably, the determining whether the character string is invalid includes:
judging whether the character string is a null character or started by http;
if so, the character string is confirmed to be invalid.
According to a fourth aspect, there is provided in an embodiment a terminal device comprising:
the method comprises the following steps:
a memory for storing a program;
a processor for implementing the method of the first aspect by executing a program stored by the memory;
further comprising: a display device and a music player; wherein,
the display device is used for displaying the synchronous music information;
the music player is used for playing music.
According to a third aspect, an embodiment provides an automobile comprising the terminal device of the second aspect.
According to a fourth aspect, an embodiment provides a computer-readable storage medium comprising a program for execution by a processor to implement the method according to the first aspect as described above.
Compared with the prior art, the embodiment of the invention at least has the following advantages:
the music synchronization method for different terminals provided by the embodiment of the invention comprises the following steps: the second terminal receives Bluetooth information sent by a music player of the first terminal in the music playing process; the second terminal acquires character string information used for representing music names and/or author information in the Bluetooth information; the second terminal analyzes the character string information to obtain corresponding music names and/or author information; and the second terminal downloads corresponding music data based on the music name and/or the author information to complete music synchronization. Therefore, the invention has at least the following beneficial effects:
1. the technical scheme for migrating the whole set of user music playlist from the first terminal to the second terminal is provided, the scheme is simple and convenient, and the music information being played can be acquired in the music playing process only by starting Bluetooth, so that seamless migration of the music playlist on other terminals is realized;
2. the technical barriers among the music players can be broken through by the music synchronization scheme of the different terminals, namely, the Bluetooth music from the different music players can generate music storage information on the second terminal and store the music storage information in the music play list, so that the music play lists in the different music players can be fused.
Drawings
FIG. 1 is a flow diagram of a method for music synchronization of disparate terminals in one embodiment of the present invention;
fig. 2 is an exemplary flowchart of a music synchronization method of different terminals according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.
Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.
The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).
Currently, when bluetooth technology is used for music playing, the transmitted information is pcm stream audio source information. However, the pcm stream audio source information does not carry special audio fingerprint information and copyright information, and thus cannot directly generate a music file by importing the pcm stream. Two available placeholders (strings) are included in the pcm stream source information, one for storing the name of the music and the other for storing the name of the singer. However, with respect to the assembly method of the two placeholders, different mobile-end apps have different ways. For example, the cool dog concert adds the song title and singer information at the same time on the music title placeholder, and divides the two information by a special symbol "-", whereas the lyric information is added on the singer name placeholder.
Example one
An embodiment of the present invention provides a music synchronization method for different terminals, and with reference to fig. 1, the method includes:
step 101, a second terminal receives Bluetooth information sent by a music player of a first terminal in a music playing process;
in practical implementations, the first terminal and the second terminal may be the same type of terminal or different types of terminals. After the user connects the first terminal with the second terminal through the Bluetooth, the music on the first terminal can be played through the second terminal. In the music playing process, the second terminal receives the Bluetooth information besides the audio.
The first terminal and the second terminal can be terminals with Bluetooth functions, such as a vehicle-mounted central control large screen, a mobile phone, a tablet computer, a notebook computer and the like. The played music is from a music player installed on the second terminal.
Before receiving the bluetooth information transmitted in the bluetooth music playing process, the method further comprises the following steps:
the second terminal receives the Bluetooth starting instruction and starts Bluetooth;
the second terminal receives a first Bluetooth connection request sent by the first terminal, identity matching is carried out, and if matching is successful, the second terminal agrees with the first Bluetooth connection request and establishes Bluetooth connection with the first terminal; or,
and the second terminal sends a second Bluetooth connection request to the first terminal, performs identity matching, performs Bluetooth connection with the first terminal after successfully matching and receiving a response message of agreeing Bluetooth connection sent by the first terminal.
Further comprising:
and judging whether the transmission state of the Bluetooth information is stable, and if so, beginning to analyze the Bluetooth information.
Specifically, the determining whether the bluetooth information transmission state is stable includes:
and judging whether the time interval of receiving the same Bluetooth information twice before and after exceeds a preset value, and if not, determining that the information transmission state is stable.
The bluetooth information corresponding to different music is different, and usually, at the beginning of each song, the first terminal can send the bluetooth information to the second terminal multiple times within a period of time. When the bluetooth information is received within a few seconds from the beginning of the music, however, it is not certain that the received character string information for characterizing the music name and/or author information is correct, this is because the bluetooth information is not stable, the string information contained in the bluetooth information may be the string information of the previous song for representing the music name and/or the author information, or the messy code information generated by mixing the string information of the previous song for representing the music name and/or the author information with the string information of the song for representing the music name and/or the author information, therefore, it is necessary to determine whether the time interval between the two previous and subsequent times of receiving the same bluetooth message exceeds a preset threshold, if not, the transmission state of the Bluetooth information is determined to be stable, and at this time, the received Bluetooth information can be confirmed to be stable and correct. The preset threshold is usually set according to actual needs, such as 5 seconds, 6 seconds, and the like.
102, the second terminal acquires character string information used for representing music names and/or author information in the Bluetooth information;
when music starts to play, the second terminal receives Bluetooth information sent by the first terminal through Bluetooth, wherein the Bluetooth information comprises character string information used for representing music names and/or author information.
In bluetooth information, the string information used to characterize the name of the music and/or the author information is typically two placeholders for which different players have different format definitions.
For example, the string information format defined by qq music for characterizing the music name and/or author information is:
titile: notice balloon/n
subtitle: zhou Ji Lun/n
The format of the character string information for representing the music name and/or author information defined by the cool dog music is as follows:
title: zhou Ji Lun-balloon/n
subtitle: lyric/n
As can be seen from the above definition, title and subtitle are start identifiers of character string information for characterizing music names and/or author information, and/n is an end identifier of character string information for characterizing music names and/or author information. However, it should be noted that the start identifier and the end identifier of the bluetooth information for the character string information used for characterizing the music title and/or the author information are not limited to the above examples, and in practical applications, the start identifier and the end identifier may be in any form of letters, numbers, symbols, or combinations thereof.
Therefore, the character string information for representing the music title and/or the author information can be acquired from the bluetooth protocol according to the start identifier and the end identifier, that is, when the start identifier is read, the acquisition of the character string information is started until the acquisition of the current character string information is ended when the end identifier is read.
Of course, the above format of the character string information for representing the music name and/or the author information is only an example, and in practical application, the content between the start identifier and the end identifier is not necessarily a chinese character, but may be any form of encoded information.
103, the second terminal analyzes the character string information to obtain corresponding author information and/or music names;
the string information used to characterize the music title and/or author information typically contains two components, such as the two-part information exemplified above with title and subtitle as starting labels. Many mainstream player software will use a separator "-" to separate the author information and the music title in a part of the character string information, and there are players that place the author information and the music title in two components of the character string information, respectively. The string rules of different music players are different, and therefore the wildcard parsing rule needs to be determined by the string format transmitted by the music player in the first terminal.
Methods of determining author information and music names are different for different situations.
The step of the second terminal analyzing the character string information to obtain corresponding music name and/or author information includes:
and analyzing the character string according to a preset wildcard analysis rule, wherein the preset wildcard analysis rule is determined by the character string format transmitted by the music player in the first terminal.
Specifically, the analyzing the character string according to a preset wildcard character analysis rule includes:
analyzing the character string in a preset coding mode;
then, judging whether the character string contains a separator or not;
if so, the processing can be carried out according to any one of the following modes:
the first method comprises the following steps: the field before the separator is determined as author information, and the field after the separator is determined as a music name.
And the second method comprises the following steps: extracting fields before and after the separator respectively;
respectively taking the fields in front of and behind the separator as character keywords, and performing character keyword matching in an author information database;
and taking the successfully matched character key word as author information, and taking the other character key word as a music name.
In another alternative embodiment of the present invention, when the separator is not included in the character string, the author information and the music name may be determined by:
performing semantic analysis on the character string, and extracting semantic keywords;
semantic keyword matching is carried out in an author information database and a music name database according to the semantic keywords;
determining semantic keywords with high matching degree in an author information database as author information;
and determining the semantic keywords with high matching degree in the music name database as the music names.
In an alternative embodiment of the invention, the method further comprises:
and judging whether the character string is invalid or not, and if so, discarding the character string.
Specifically, the determining whether the character string is invalid includes:
judging whether the character string is a null character or started by http;
if so, the character string is confirmed to be invalid.
104, the second terminal downloads corresponding music data based on the music name and/or the author information to complete music synchronization;
specifically, the second terminal first determines music storage information corresponding to the author information and/or the music name, and the step specifically includes:
performing music matching in a music library by taking author information and music names as key words;
and after the matching is successful, acquiring the music storage information of the corresponding music.
The music library can be a self-owned music library or a cooperative third-party music library.
The specific matching method comprises the following two steps:
A. taking the determined author information and/or music name as a matching standard;
and when the determined author information contains the singer field in the music server query result and the determined music name contains the music name field in the music server query result, determining that the music matching is successful.
B. The author information and the music name in the query result are used as matching standards;
and when the singer field in the query result contains the determined author information and the music name field in the music server side query result contains the determined music name, determining that the music matching is successful.
Music matching may be performed using any of the methods described above.
Specifically, the music storage information includes at least one of the following information: author information, music title, singer information, album name, album information, album list, cover information, copyright information, playback authority, playback link, lyrics.
And saving the music storage information to a music play list.
The server can use the author information and/or the music name as keywords, search in a third-party music library by utilizing a crawler technology, so that useful music storage information (author information, music name, singer information, album name, album information, album list, cover information, copyright information, playing authority, playing link, lyrics and the like) is obtained, and the obtained music storage information is stored in a recently played music list in the second terminal, so that a user can directly play favorite music through the music list. Based on this, migration of the user music playlist from the first terminal to the second terminal is realized.
To sum up, a music synchronization method for different terminals provided by an embodiment of the present invention includes: the second terminal receives Bluetooth information sent by a music player of the first terminal in the music playing process; the second terminal acquires character string information used for representing music names and/or author information in the Bluetooth information; the second terminal analyzes the character string information to obtain corresponding music names and/or author information; and the second terminal downloads corresponding music data based on the music name and/or the author information to complete music synchronization. Therefore, the invention has at least the following beneficial effects:
1. the technical scheme for migrating the whole set of user music playlist from the first terminal to the second terminal is provided, the scheme is simple and convenient, the playlist can be locally generated in the music Bluetooth playing process without any manual operation of a user, and seamless migration of the music playlist on other terminals is realized;
2. the technical barriers between the music players on the music playing terminal can be broken through by the music synchronization scheme of the different terminals, namely, the Bluetooth music from the different music players can generate music storage information on the second terminal and store the music storage information in the play list, so that the play lists in the different music players can be fused.
Example two
An embodiment of the present invention provides a terminal device, including:
a memory for storing a program;
a processor for implementing the method of embodiment one by executing the program stored in the memory;
further comprising: a display device and a music player; wherein,
the display device is used for displaying the synchronous music information;
the music player is used for playing music.
Specifically, the processor is configured to perform the following steps:
receiving Bluetooth information sent by a music player of other terminals in the music playing process;
acquiring corresponding character string information used for representing music names and/or author information from the Bluetooth information;
determining author information and music names according to character string information for representing music names and/or author information;
determining corresponding music storage information according to the determined author information and music name;
and saving the music storage information to a local play list.
Specifically, the processor is further configured to, before receiving the bluetooth information transmitted in the bluetooth music playing process, perform the following pre-steps:
and judging whether the Bluetooth information is stable, and if so, starting to receive the Bluetooth information.
The processor is used for judging whether the Bluetooth information is stable according to the following modes:
and judging whether the time interval between the two times of identical Bluetooth information receiving exceeds a preset threshold value, and if not, determining that the information transmission state is stable.
Specifically, the processor is configured to determine the author information and the music title according to the following manner:
and analyzing the character string for representing the music name and/or the author information according to a preset wildcard analysis rule, wherein the preset wildcard analysis rule is determined by the character string format transmitted to your music player by the first terminal.
Analyzing the character string in a preset coding mode;
judging whether the character string contains a separator or not;
if yes, determining a field in front of the separator as author information, and determining a field behind the separator as a music name; or,
extracting fields in front of and behind the separator respectively as character keywords;
respectively taking the fields in front of and behind the separator as keywords, and performing keyword matching in an author information database;
and taking the successfully matched key word as author information, and taking the other key word as a music name.
Specifically, the processor is configured to determine the author information and the music name by:
performing semantic analysis on the character string, and extracting semantic keywords;
semantic keyword matching is carried out in an author information database and a music name database according to the semantic keywords;
determining semantic keywords with high matching degree in an author information database as author information;
and determining the semantic keywords with high matching degree in the music name database as the music names.
The processor is further configured to determine whether the character string is invalid, and discard the character string if the determination result is yes.
The processor is configured to determine whether the string is invalid by:
judging whether the character string is a null character or started by http;
if so, the character string is confirmed to be invalid.
Specifically, the music storage information includes at least one of the following information: author information, music title, singer information, album name, album information, album list, cover information, copyright information, playback authority, playback link, lyrics.
EXAMPLE III
An embodiment of the present invention provides an automobile, including the terminal device according to the embodiment two, wherein the terminal device includes:
a memory for storing a program;
a processor for implementing the method of embodiment one by executing the program stored in the memory;
further comprising: a display device and a music player; wherein,
the display device is used for displaying the synchronous music information;
the music player is used for playing music.
Example four
A fourth embodiment of the present invention provides a computer-readable storage medium, which includes a program for execution by a processor to implement the method according to the first embodiment.
The implementation method of the present invention is further described below with a vehicle-mounted large screen as a specific embodiment.
Referring to fig. 2, this example includes the following steps:
step 201, successfully connecting the vehicle-mounted large screen end and the mobile phone end through Bluetooth;
step 202, playing music by the mobile phone end and transmitting information to the vehicle-mounted large screen end through Bluetooth;
step 203, the vehicle-mounted large screen end receives Bluetooth information;
and step 204, the vehicle-mounted large screen end judges whether the received Bluetooth information is stable, if so, the step 205 is switched to, and if not, the vehicle-mounted large screen end circularly waits.
Specifically, the determining whether the bluetooth information is stable includes:
and judging whether the time interval of the same Bluetooth information received in the two previous times and the time interval of the same Bluetooth information received in the two previous times exceed a preset threshold value, if not, confirming that the Bluetooth information is stable, and if so, turning to the step 203 to continue receiving the Bluetooth information.
Step 205, the vehicle-mounted large screen terminal acquires character string information used for representing music names and/or author information from the Bluetooth information;
and analyzing the character string information used for representing the music name and/or the author information according to the encoding mode of the utf-8 to obtain the character string.
Step 206, the vehicle-mounted large screen end determines author information and music names according to character string information used for representing music names and/or author information;
assume that the character string obtained in the first case is:
title: zhou Ji Lun-balloon/n
subtitle: lyric/n
Assume that the character string obtained in the second case is:
title: notice balloon/n
subtitle: zhou Ji Lun/n
In the first case, since the character string information for representing the music name and/or the author information includes the separator "-", it is possible to directly determine the character string preceding the separator as the author information and the character string following the separator as the music name, that is, "zhou jerong" as the author information and "caucasian balloon" as the music name.
For the first case, the author information and music title may also be determined as follows:
semantic keywords 'Zhougelon', 'Biluong' and 'lyrics' are extracted from the title and the subtitle, keyword matching is carried out in an author information database according to the three semantic keywords, the matching result is that 'Zhougelon' is author information, the remaining two semantic keywords are matched in a music list corresponding to the Zhougelon at the moment, the matching result is that 'Biluon' is a music name, and the semantic keyword of the lyrics is discarded.
In another embodiment, for the first case, after semantic recognition, invalid keyword "lyrics" frequently appearing in the semantic keywords may be discarded, and then "zhou jeren" and "caucasian balloon" are used as the semantic keywords in the above manner, semantic matching is performed in the author information database, and the matching result is that "zhou jeren" is the author information, and then the remaining semantic keyword "caucasian balloon" is confirmed as the music name.
For the second case, the semantic keyword "caucasian balloon" is extracted after the title, and the semantic keyword "zhonglun" is extracted after the subtitle, at this time, the vehicle-mounted large-screen end cannot determine which author information is the music name, and keyword matching is also needed, and it can be determined that one of the semantic keywords is the author information and the other is the music name, and the author information matching is easier, so that the "zhonglun" and the "caucasian balloon" are respectively used as the semantic keywords, keyword matching is performed in the author information database, and according to the matching result, the "zhonglun" is determined as the author information, and accordingly, the "caucasian balloon" is determined as the music name.
Step 207, determining the author information and music storage information corresponding to the music name by the vehicle-mounted large screen terminal;
"Zhougelon" is used as author information, and "caucasian balloon" is used as a music name to perform music matching in a music library.
In practical application, one matching method may be: searching in a music library according to the music name, listing information of all music containing the music name, determining a singer field and a music name field of each music, and determining the music containing the singer field and the music name field as target music.
And if a plurality of target music are obtained, determining the target music with high matching degree as the final music.
For example, the search results for "Zhou Jilun" and "Poulegon" are as follows:
① Author information on Zhou Ji Lun music title, Notepan balloon album, bed story of Zhou Ji Lun
② Author information, Zhou Ji Lun music name, Notepan balloon (Live) album, New singing voice of China, second quarter, No. 14
Since the author information field and the music name field in the first piece of music are completely matched with the semantic keywords, the first piece of music is confirmed as the final piece of music.
Music storage information of the final music is acquired.
And step 208, the vehicle-mounted large screen end stores the music storage information into a local playlist.
After the vehicle-mounted large-screen end stores the music storage information into the local play list, the user can directly play music through the vehicle-mounted large-screen end, and therefore the music play list of the user is transferred from the first terminal to the vehicle-mounted large-screen end.
Those skilled in the art will appreciate that all or part of the functions of the various methods in the above embodiments may be implemented by hardware, or may be implemented by computer programs. When all or part of the functions of the above embodiments are implemented by a computer program, the program may be stored in a computer-readable storage medium, and the storage medium may include: a read only memory, a random access memory, a magnetic disk, an optical disk, a hard disk, etc., and the program is executed by a computer to realize the above functions. For example, the program may be stored in a memory of the device, and when the program in the memory is executed by the processor, all or part of the functions described above may be implemented. In addition, when all or part of the functions in the above embodiments are implemented by a computer program, the program may be stored in a storage medium such as a server, another computer, a magnetic disk, an optical disk, a flash disk, or a removable hard disk, and may be downloaded or copied to a memory of a local device, or may be version-updated in a system of the local device, and when the program in the memory is executed by a processor, all or part of the functions in the above embodiments may be implemented.
The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.
Claims (10)
1. A music synchronization method for different terminals is characterized by comprising the following steps:
the second terminal receives Bluetooth information sent by a music player of the first terminal in the music playing process;
the second terminal acquires character string information used for representing music names and/or author information in the Bluetooth information;
the second terminal analyzes the character string information to obtain corresponding music names and/or author information;
and the second terminal downloads corresponding music data based on the music name and/or the author information to complete music synchronization.
2. The method of claim 1, further comprising:
and judging whether the transmission state of the Bluetooth information is stable, and if so, beginning to analyze the Bluetooth information.
3. The method of claim 2, wherein the determining whether the bluetooth information transmission state is stable comprises:
and judging whether the time interval of receiving the same Bluetooth information twice before and after exceeds a preset value, and if not, determining that the information transmission state is stable.
4. The method according to claim 1, wherein the step of the second terminal parsing the character string information to obtain corresponding music title and/or author information comprises:
and analyzing the character string according to a preset wildcard analysis rule, wherein the preset wildcard analysis rule is determined by the character string format transmitted by the music player in the first terminal.
5. The method of claim 4, wherein parsing the string according to a preset wildcard parsing rule comprises:
analyzing the character string in a preset coding mode;
judging whether the character string contains a separator or not;
if yes, extracting fields before and after the separator respectively;
respectively taking the fields in front of and behind the separator as character keywords, and performing character keyword matching in an author information database;
and taking the successfully matched character key word as author information, and taking the other character key word as a music name.
6. The method of claim 5, wherein when the string does not contain a separator, further comprising:
performing semantic analysis on the character string, and extracting semantic keywords;
semantic keyword matching is carried out in an author information database and a music name database according to the semantic keywords;
determining semantic keywords with high matching degree in an author information database as author information;
and determining the semantic keywords with high matching degree in the music name database as the music names.
7. The method of claim 5 or 6, further comprising:
and judging whether the character string is invalid or not, and if so, discarding the character string.
8. The method of claim 7, wherein the determining whether the character string is invalid comprises:
judging whether the character string is a null character or started by http;
if so, the string is invalid.
9. A terminal device, comprising:
a memory for storing a program;
a processor for implementing the method of any one of claims 1-8 by executing a program stored by the memory;
further comprising: a display device and a music player; wherein,
the display device is used for displaying the synchronous music playing information;
the music player is used for playing music.
10. An automobile, characterized by comprising the terminal device of claim 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811514775.5A CN109684288A (en) | 2018-12-12 | 2018-12-12 | Synchronous music method, terminal device and the automobile of different terminals |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811514775.5A CN109684288A (en) | 2018-12-12 | 2018-12-12 | Synchronous music method, terminal device and the automobile of different terminals |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109684288A true CN109684288A (en) | 2019-04-26 |
Family
ID=66187188
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811514775.5A Pending CN109684288A (en) | 2018-12-12 | 2018-12-12 | Synchronous music method, terminal device and the automobile of different terminals |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109684288A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110399523A (en) * | 2019-07-25 | 2019-11-01 | 上海博泰悦臻电子设备制造有限公司 | Method for playing music and system, storage medium and car-mounted terminal based on car-mounted terminal |
| CN112738776A (en) * | 2020-12-08 | 2021-04-30 | 上海博泰悦臻电子设备制造有限公司 | Method, device, system and storage medium for acquiring music information |
| CN114489559A (en) * | 2022-01-24 | 2022-05-13 | 北京达佳互联信息技术有限公司 | Audio playing method, audio playing processing method and audio playing processing device |
| CN114501402A (en) * | 2021-12-24 | 2022-05-13 | 浙江零跑科技股份有限公司 | Intelligent cabin Bluetooth music playing method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090063660A1 (en) * | 2007-09-04 | 2009-03-05 | Apple Inc. | Synchronization and transfer of digital media items |
| CN104092720A (en) * | 2013-12-26 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Playlist sharing method and device |
| CN105828134A (en) * | 2016-03-22 | 2016-08-03 | 广东欧珀移动通信有限公司 | A playback control method and device in an audio and video playback system |
| CN108924227A (en) * | 2018-07-06 | 2018-11-30 | 盯盯拍(深圳)技术股份有限公司 | Method for playing music and music player based on mobile unit |
-
2018
- 2018-12-12 CN CN201811514775.5A patent/CN109684288A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090063660A1 (en) * | 2007-09-04 | 2009-03-05 | Apple Inc. | Synchronization and transfer of digital media items |
| CN104092720A (en) * | 2013-12-26 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Playlist sharing method and device |
| CN105828134A (en) * | 2016-03-22 | 2016-08-03 | 广东欧珀移动通信有限公司 | A playback control method and device in an audio and video playback system |
| CN108924227A (en) * | 2018-07-06 | 2018-11-30 | 盯盯拍(深圳)技术股份有限公司 | Method for playing music and music player based on mobile unit |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110399523A (en) * | 2019-07-25 | 2019-11-01 | 上海博泰悦臻电子设备制造有限公司 | Method for playing music and system, storage medium and car-mounted terminal based on car-mounted terminal |
| CN112738776A (en) * | 2020-12-08 | 2021-04-30 | 上海博泰悦臻电子设备制造有限公司 | Method, device, system and storage medium for acquiring music information |
| CN114501402A (en) * | 2021-12-24 | 2022-05-13 | 浙江零跑科技股份有限公司 | Intelligent cabin Bluetooth music playing method |
| CN114489559A (en) * | 2022-01-24 | 2022-05-13 | 北京达佳互联信息技术有限公司 | Audio playing method, audio playing processing method and audio playing processing device |
| CN114489559B (en) * | 2022-01-24 | 2023-11-28 | 北京达佳互联信息技术有限公司 | Audio playing method, audio playing processing method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12431119B2 (en) | Systems and methods for providing notifications within a media asset without breaking immersion | |
| CN107918653B (en) | Intelligent playing method and device based on preference feedback | |
| CN107871500B (en) | Method and device for playing multimedia | |
| US7953504B2 (en) | Method and apparatus for selecting an audio track based upon audio excerpts | |
| CN109036417B (en) | Method and apparatus for processing voice request | |
| JP5594532B2 (en) | Information processing apparatus and method, information processing system, and program | |
| JP7112991B2 (en) | Interaction method and apparatus | |
| CN109684288A (en) | Synchronous music method, terminal device and the automobile of different terminals | |
| CN104092654B (en) | media playing method, client and system | |
| CN107526809B (en) | Method and device for pushing music based on artificial intelligence | |
| US20190147863A1 (en) | Method and apparatus for playing multimedia | |
| CN104685854B (en) | Method and system for providing social services based on music information | |
| CN103514885A (en) | Information processing apparatus, information processing method, and program | |
| WO2008056211A1 (en) | Play list creator | |
| WO2011044976A1 (en) | Method for setting up a list of audio files for a mobile device | |
| KR101713988B1 (en) | Method and apparatus for providing content sending metadata extracted from content | |
| CN105760436B (en) | Audio data processing method and device | |
| JP5986387B2 (en) | Information processing program, information processing apparatus, lyrics display method, and communication system | |
| CN108337357A (en) | Audio frequency playing method and device | |
| De Roure et al. | Content-based navigation of music using melodic pitch contours | |
| CN100501738C (en) | A search method, system and device for playable media files | |
| KR101684577B1 (en) | Method of providing tag-based list of content and apparatus for the same | |
| CN114117091B (en) | Methods and apparatus for adding multimedia objects, storage media and electronic devices | |
| KR20170027332A (en) | Method and apparatus for providing content sending metadata extracted from content | |
| CN112738776A (en) | Method, device, system and storage medium for acquiring music information |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190426 |