Music playing method and device, vehicle and medium
By matching vehicle driving information and music tags, automatically sorting and playing music stored by USB devices, it solves the problem that users find it difficult to hear their favorite music during driving, and improves driving experience and safety.
Patent Information
- Application Number
- CN202310837714.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-10
- Publication Date
- 2025-01-10
AI Technical Summary
During driving, users need to manually select and switch multiple music stored on USB devices, which affects the driving experience and may affect driving safety, making it difficult to ensure that they hear songs they are interested in.
By determining that the vehicle's driving information matches the music's label, sorting and playing music matching the driving information, the music required by users can be automatically played, improving driving experience and safety.
Play music that meets your needs without manual operation by the user, improving driving experience and safety, ensuring you hear your favorite music while driving.
Smart Images

Figure CN119293284A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more specifically, to a music playing method, device, vehicle and medium in the field of vehicles. Background Art
[0002] In the related technology, users can connect a USB device to a vehicle, read the music stored in the USB device through the vehicle computer and play it. However, the USB device stores a large amount of music, and users need to manually select or switch songs to hear the songs they are interested in while driving, which affects the driving experience and makes it difficult to ensure vehicle safety. Summary of the invention
[0003] The present application provides a music playing method, device, vehicle and medium. The method can adjust the playing order of in-vehicle music so that the user can play music matching the user's needs without manual switching during driving, thereby improving the user's driving experience.
[0004] In a first aspect, a music playing method is provided, the method comprising:
[0005] Determine driving information of the vehicle;
[0006] Matching the driving information with a label corresponding to each piece of music to determine a match between the label corresponding to each piece of music and the driving information; the label corresponding to the music is generated based on a playback scene of the music in historical playback;
[0007] sorting the multiple pieces of music according to the matching conditions;
[0008] The corresponding music is played in sequence according to the sorted playing order of each piece of music.
[0009] Through the above technical solution, the connected music can be sorted according to the matching between the vehicle's driving information and the tags generated during the historical playback of the music, and the music can be played in sequence according to the target playback order, so that the corresponding music can be played according to the user's needs. Without the need for manual operation by the user, music that meets the user's needs can be played during driving, thereby improving driving safety and the user's driving experience.
[0010] In combination with the first aspect, in some possible implementations, music whose tags match the driving information is determined as target music; and the playing order of the target music is determined to be earlier than the playing order of other music.
[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target music is sorted according to the corresponding playback volume of each target music; wherein, the playback order of the target music with a high playback volume is earlier than the playback order of the target music with a low playback volume.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the driving information includes occupant information and driving scenes. When there is music with a label matching the occupant information and there is no music with a label matching the driving scene, or when there is music with a label matching the occupant information and there is music with a label matching the driving scene, the music with a label matching the occupant information is determined as the target music; when there is no music with a label matching the occupant information, the music with a label matching the driving scene is determined as the target music.
[0013] In combination with the first aspect and the above-mentioned implementation manner, in some possible implementation manners, when there is no music with a tag matching the driving information, the multiple music pieces are sorted according to the import time of each piece of music.
[0014] In combination with the first aspect and the above implementations, in some possible implementations, determining a playback scene corresponding to when the vehicle plays the music;
[0015] According to the corresponding playback scene when the vehicle plays the music, a corresponding label is added to the music, and the playback volume is counted according to the playback situation of the music.
[0016] In combination with the first aspect and the above implementation, in some possible implementations, when the playing time of the music is longer than the set time, the corresponding effective playing amount is increased based on the playing amount of the music recorded last time;
[0017] When the playing time of the music is less than or equal to the set time, the playing amount of the music recorded last time is kept.
[0018] In a second aspect, a music playing device is provided, the device comprising:
[0019] A first determination module, used to determine driving information of a vehicle;
[0020] A second determination module is used to match the driving information with a label corresponding to each piece of music, and determine a matching situation between the label corresponding to each piece of music and the driving information; the label corresponding to the music is generated based on a playback scene of the music in historical playback;
[0021] A sorting module, used for sorting the multiple pieces of music according to the matching conditions;
[0022] The playing module is used to play the corresponding music in sequence according to the sorted playing order of each piece of music.
[0023] In a third aspect, a car is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method in the first aspect or any possible implementation of the first aspect is executed.
[0024] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0025] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a schematic flow chart of a music playing method in one embodiment;
[0027] Figure 2 is a schematic flow chart of a music playing method in yet another embodiment;
[0028] Figure 3 is a schematic diagram of a process for collecting relevant information of music being played in one embodiment;
[0029] Figure 4 is a schematic flow chart of a music playing method in one embodiment;
[0030] Figure 5 is a schematic flow chart of a music playing method in one embodiment;
[0031] Figure 6 is a schematic diagram of a music playing interface in an embodiment;
[0032] Figure 7 is a complete flow chart of a music playing method in one embodiment;
[0033] Figure 8 The structure diagram of a music playing device in an embodiment is shown. DETAILED DESCRIPTION
[0034] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0035] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0036] In the related art, users can download their favorite music to a local USB device through the network, and then read the song list in the USB device through the music application in the car computer to play it in the vehicle. In the process of playing music stored in the USB device, there is no need to connect to the Internet, saving network data, and it will not be disturbed by unstable network signals, bringing a better listening experience. However, the number of music stored in USB devices is generally large, and users will regularly add some popular songs. When there are many songs, it is difficult for users to hear their favorite music during a driving process. In one solution, users can choose to loop their favorite music, but looping the same song for a long time will cause users to become bored, and users need to switch manually. In another solution, in order to enable users to quickly listen to their favorite songs, a variety of music playback orders are provided, such as sorting music by name, by duration, by entry time, by file classification, etc., but these sorting methods are single and can only satisfy one order of playback. The user's favorite songs may be scattered in different playlists, resulting in the user having to search before listening to them, and playing according to the existing sorting method, the music played may contain songs that the user does not want to listen to, and the user needs to manually switch during driving, affecting driving safety and driving experience.
[0037] The technical implementation details of the technical solution of the embodiment of the present application are described in detail below.
[0038] Figure 1 It is a schematic flow chart of a music playing method provided in an embodiment of the present application.
[0039] For example, Figure 1 As shown, the music playing method includes:
[0040] Step S101, determining the driving information of the vehicle.
[0041] Here, driving information refers to data related to passengers and driving behavior. Driving information can be obtained and displayed through vehicle sensors, dashboard displays, on-board systems, or connected mobile devices.
[0042] Step S102, matching the driving information with the label corresponding to each piece of music, and determining the matching status between the label corresponding to each piece of music and the driving information.
[0043] Here, the music can be online music or local music pre-imported by the user. During the previous music playback process, the car computer will process the played music and add corresponding tags to each piece of music based on the playback scene of the music during the historical playback process. The playback scene may include the driving information of the vehicle during the music playback process. Therefore, the driving information matched by the music during the historical playback process can be determined through the tags corresponding to the music. Therefore, during the current music playback process, the tags corresponding to each piece of music can be matched with the driving information to determine the matching situation between the tags corresponding to each piece of music and the driving information. Through the matching situation, it can be determined whether the music is suitable for playback under the current driving information.
[0044] The application of step S102 is explained below using local music as an example. The user first downloads the music to a USB device, and then connects the USB device to the vehicle, so that the vehicle can play the local music in the USB device. After the USB is connected to the vehicle, the vehicle computer can scan the USB device and read the local music in the USB device, including reading the relevant information of the local music (such as song title, author, etc.) and the tags corresponding to the local music, and store the music information (including the name and author of the music) and the tags corresponding to the music in the local database of the vehicle computer. Based on this, each time the USB device is connected, the vehicle computer will scan the USB device, compare the name and author of the music in the USB device with the local database, and if there are relevant records in the local database, the matching of the tags corresponding to each local music and the driving information can be determined according to the tags stored in the local database.
[0045] Figure 2 is a schematic flow chart of a music playing method provided in an embodiment of the present application. Figure 2 What is shown is the specific process of adding corresponding tags to music.
[0046] Step S201, determining the corresponding playing scene when the vehicle is playing music.
[0047] Step S202, adding corresponding tags to the music according to the corresponding playing scene when the vehicle is playing the music, and counting the playing volume according to the playing situation of the music.
[0048] Here, in the previous music playing process, the playing scene of the vehicle during the playing of each piece of music is obtained, and then according to the playing scene of the vehicle during the music playing process, the corresponding label is added to the corresponding music, so as to determine in which scene each piece of music is suitable for playing. It should be noted that the playing scene here may include the corresponding driving information when the music is playing. Specifically, the driving information may also include passenger information and driving scene, wherein the passenger information includes whether there are child members in the car and the driver's emotional information. For example, during the playing of music A, the passenger information of the vehicle indicates that there are child passengers in the vehicle, then the label of child passengers is added to music A, indicating that music A is suitable for playing to child passengers, and the emotional information of the driver during the playing of music A can also be obtained, and the emotional information of the driver is used as the label of music A.
[0049] In addition, during the music playing process, the amount of music played can be counted according to the playing situation of the music, so that the music that the user likes can be reflected according to the amount of music played. In practical applications, in the process of counting the amount of music played, the amount of play under each label can also be calculated. For example, assuming that the labels corresponding to music A are child passengers and happy, the amount of music A played when there are child passengers in the car and the amount of music A played when the driver is happy can be counted respectively. According to the amount of play under different labels, it can be determined in what situations the user prefers to play the corresponding music, which can help improve the accuracy of determining the order of music play according to at least one of the passenger information and the driving scene, so that the played music better meets the needs of the user.
[0050] In one embodiment of the present application, the counted playback volume is the effective playback volume of the music, wherein effective playback means that the playback time of the music exceeds the set time. In the present embodiment, the set time is set to 1 / 2 of the playback length of the music, that is, when the playback progress of the music exceeds 50%, the current playback is recorded as effective playback, and 1 effective playback is added on the basis of the playback volume of the music recorded last time. When the playback progress of the music does not exceed 50%, for example, the user cuts off the music after playing a short segment, then the current playback is recorded as invalid playback, that is, the playback volume is not included in the current playback, and the corresponding playback volume of the music is still the playback volume recorded last time.
[0051] Reference Figure 3 , Figure 3 A schematic diagram showing a process of collecting relevant information about the music being played.
[0052] Step 1, start playing music.
[0053] Step 2, determine whether the local database stores relevant information. Here, the local database can store relevant information such as song titles and tags of different music. If the local database does not store relevant information about the music being played, step 3 is processed. If the local database stores relevant information about the music being played, step 4 is processed.
[0054] Step 3, when the local database does not store the relevant information of the music being played, the music title and other contents of the music are updated to the local database.
[0055] Step 4, judging whether the music is played effectively. Here, whether the music is played effectively is determined based on whether the playing time of the music exceeds half of the music time.
[0056] Step 5: In case of effective playback, update the label and effective playback amount in the local database +1.
[0057] Step 6: In case of invalid playback, update the label in the local database and keep the original valid playback volume.
[0058] Step S103, sorting the multiple pieces of music according to the matching conditions.
[0059] After the matching situation is determined, the multiple music pieces can be sorted according to the matching situation, wherein the music matching the driving information can be preferentially placed at the front of the playlist.
[0060] In one embodiment of the present application, Figure 4 As shown, Figure 4 It is a schematic flow chart of a music playing method provided in an embodiment of the present application.
[0061] Step S401: determine the music whose tag matches the driving information as the target music.
[0062] Here, according to the determined matching situation, target music whose label matches the driving information can be screened out from multiple pieces of music, wherein the target music refers to music suitable for playing under the current driving information.
[0063] In one embodiment of the present application, Figure 5 As shown, Figure 5 It is a schematic flow chart of a music playing method provided in an embodiment of the present application.
[0064] Step S501, when there is music with a label matching the passenger information and there is no music with a label matching the driving scene, or when there is music with a label matching the passenger information and there is music with a label matching the driving scene, the music with a label matching the passenger information is determined as the target music.
[0065] Here, the passenger information can record the passengers in the car and the relevant information of the passengers. For example, the passenger information can be used to determine the number of passengers in the car, whether there are child passengers among the passengers, the driver's emotional information, etc. In practical applications, the passenger information can be determined by the vehicle's in-car personnel monitoring system. The image information collected by the in-car personnel monitoring system can be used by a third-party face recognition technology to determine the age, gender, expression and emotional state of the passengers. Among them, when the in-car personnel monitoring system determines that there are passengers under the age of 14 in the car, it can be determined that there are child passengers in the car. In addition, the in-car personnel monitoring system can classify the driver's emotions into: expressionless, happy, angry, surprised, sad, calm, etc.
[0066] Determine whether there is music matching the occupant information. If there is music matching the occupant information, determine the music matching the occupant information as target music to sort the multiple pieces of music. The existence of music matching the occupant information includes two situations. The first situation is that there is music matching the occupant information and there is music matching the driving scene. The second situation is that there is music matching the occupant information and there is no music matching the driving scene. In both situations, the music matching the occupant information is determined as the target music, that is, determining whether there is music matching the occupant information is taken as the highest priority judgment condition. As long as there is music matching the occupant information, the music matching the occupant information is determined as the target music.
[0067] The process of determining whether there is music matching the passenger information includes determining whether there is music matching the child passenger and determining whether there is music matching the driver's emotions. The process of determining music matching the passenger information is described in detail below.
[0068] In the first case, it is determined that there is a child in the vehicle based on the passenger information. Then, based on the matching of the child passenger information and the tags corresponding to each piece of music, the music corresponding to the tag with the child passenger is determined as the target music from multiple pieces of music. Thus, when the order of playing the music is determined later, the order of playing the music corresponding to the tag with the child passenger can be set to take precedence over the order of playing other music. In this case, as long as there is music matching the child passenger, the music matching the child passenger is determined as the target music.
[0069] In the second case, it is determined based on the passenger information that there are no children in the vehicle, but there is a driver in the vehicle. Then, based on the matching of the driver's passenger information and the label corresponding to each piece of music, where the driver's passenger information here is mainly the driver's emotional information, the music whose label matches the driver's emotional information can be determined as the target music from the music, so that when the music playback order is subsequently determined, the playback order of the music matching the driver's emotional information can be set to be superior to the playback order of other music. For example, when the driver is in a sad state, calm music is determined as the target music; when the driver is in a happy state, cheerful music is determined as the target music.
[0070] Step S502: When there is no music whose tag matches the passenger information, the music whose tag matches the driving scene is determined as the target music.
[0071] Here, the vehicle's on-board computer is equipped with a scene engine system, which can be used to determine the vehicle's current driving scene. The scene engine system can determine the driving scene by changes in driving speed and the driver's facial expressions. For example, when the vehicle speed is greater than 60KM / H and the continuous duration exceeds 30 seconds, the vehicle is considered to be in a high-speed scene; when the vehicle speed is less than 30KM / H and the continuous duration exceeds 30 seconds, the vehicle is considered to be in a congestion scene; it can also be determined by determining whether the vehicle passes through a fixed route in a fixed time period to determine whether the vehicle is in a commuting scene; by recognizing the driver's facial expression, it can be determined whether it is in a fatigue driving scene.
[0072] In the matching situation, there is no music with a tag matching the occupant information, which means that there is no child occupant in the vehicle and no music matching the driver's emotional information, resulting in the inability to determine the target music from multiple pieces of music. In this case, based on the matching situation, the music matching the driving scene is determined as the target music from multiple pieces of music, so that the multiple pieces of music can be sorted according to the driving scene in the subsequent process. For example, when the vehicle is in the scene of going to work, the driver may be relatively anxious at this time, so the play order of soothing music (such as light music) can be set to play first.
[0073] Step S402: determine that the play order of the target music is earlier than the play order of other music.
[0074] After the target music is determined, the target music is arranged in a play order ahead of other music, so that the play order of the target music is prioritized over other music, thereby ensuring that the user can listen to the user's favorite music during a driving process.
[0075] It should be noted that, assuming that the target music is determined based on the passenger information, the play order determined in step S402 defines that the play order of the target music is superior to the play order of other music, and the play order of each piece of other music can also be determined based on the driving scene. Specifically, the play order of the music that matches the driving scene in other music is located after the play order of the target music. In addition, for the music that does not match the driving scene in other music, the play order can also be determined based on the import time of the music. Specifically, the play order of the newly imported music is located after the play order of the music that matches the driving scene. Based on this, the music is divided into two sets, namely music set A and music set B, where music set A represents the target music, and music set B represents other music except the target music. Music set B is then divided into music set B1 and music set B2, where music set B1 refers to the music that matches the driving scene, and music set B2 refers to other music in music set B except music set B1. Thus, the complete target playback sequence is: first play music set A, and after music set A is played, play music set B1, and then play the first music imported in music set B2. In the process of playing music set A, the music with high playback volume in music set A is played first, and then the music with low playback volume is played; in the process of playing music set B1, the music with high playback volume in music set B1 is played first, and then the music with low playback volume is played. In this way, all music can be sorted, so that users can continue to play music that meets their needs during a long journey.
[0076] It should be noted that, assuming that the target music is determined according to the driving scene, the target playback order determined in step S402 limits the playback order of the target music to be superior to the playback order of other music, and the playback order of each piece of music in other music can also be determined by the recording time. Specifically, the playback order of the newly recorded music in other music is after the playback order of the target music. Based on this, the music is divided into two sets, namely music set A and music set B, wherein music set A represents the target music, and music set B represents other music except the target music, so as to complete the target playback order: first play music set A, and after music set A is played, play music set B, wherein, in the process of playing music set A, the music with high playback volume in music set A is played first, and then the music with low playback volume is played; in the process of playing music set B, the newly imported music in music set B is played first, and then the later imported music is played.
[0077] It should be noted that in the case of newly recorded music, that is, new music that has not been played, since these new music do not have labels, in the process of determining the playback order according to the matching situation, the playback order of the new music is set after the playback order of the target music, and thus the newly recorded music cannot be played during a driving process, resulting in an inability to add corresponding labels to the newly recorded music. In some cases, users prefer to play newly recorded music. Based on this, when it is detected that there is newly recorded music, it can output whether to give priority to the newly recorded music, and then the user can choose to give priority to the newly recorded music. While meeting the needs of the user, corresponding labels can also be added to the newly recorded music, so that the playback scene matching the newly recorded music can be determined, which is conducive to determining the playback order of the next music playback.
[0078] In one embodiment of the present application, when determining the target playback order based on the target music, two playback orders need to be determined. The first playback order that needs to be determined is to determine the playback order of the target music and other music, wherein the playback order of the target music is set to take precedence over the playback order of other music; the second playback order that needs to be determined is to determine the playback order between the target music. In this embodiment, it is determined based on the playback volume, that is, the playback order of the target music with a high playback volume takes precedence over the playback order of the target music with a low playback volume. For example, assuming that the target music includes target music A, target music B, and target music C, wherein the playback volume of target music A>the playback volume of target music B>the playback volume of target music C, so that the target playback order finally determined is: play target music A first, then play target music B, then play target music C, and finally play other music.
[0079] In one embodiment of the present application, when there is no music whose tag matches the driving information, that is, it is impossible to sort the multiple pieces of music according to the driving information, in this case, the multiple pieces of music can be sorted according to the import time of the music, where for local music, the import time refers to the music imported into the USB device, and for network music, the import time may refer to the time when it was added to the playlist.
[0080] It can be understood that the latest imported music is the user's favorite music recently. Based on this, the playback order of the latest imported music can be set to take precedence over the playback order of music imported later, that is, the latest imported music is played first, and then the previously imported music is played. In this way, the user's recently imported music can be played during driving, which can meet the user's needs to the greatest extent.
[0081] In actual applications, when there is newly imported and unplayed music, the newly imported unplayed music can be ranked first in the play order according to the import time of the music. In addition, when the music is imported within a relatively recent period of time (for example, within a week), the newly imported unplayed music can be ranked first in the play order according to the import time of the music. If the music is imported a long time ago, for example, the last time the music was imported was a month ago, in this case, the time interval between the last import of music is relatively long, so the music can be sorted according to the playing frequency of the singer, the order of the name, etc., instead of sorting the music according to the import time of the music.
[0082] Step S104, playing the corresponding music in sequence according to the sorted playing order of each piece of music.
[0083] After all the music is sorted, the car computer reads and plays the corresponding music in the order of each piece of music after sorting. Figure 6 As shown, Figure 6 The schematic diagram of the music playing interface is shown. The music playing interface displays the relevant information of the music being played. In the music playing interface, the play list can be opened. Through the play list, the played music and the music to be played can be viewed. The play list is generated according to the determined target playing order, and the name of each music is displayed in the play list. In actual application, the music that matches the driving information is located at the front of the target playing order, so that the user's favorite music can be automatically played during driving, avoiding the user from selecting the music to be played, and reducing cumbersome operations.
[0084] In actual application, the user can choose to start the intelligent sorting and playback function. After the user chooses to start the intelligent sorting and playback function, multiple songs can be intelligently sorted according to driving information, and the music can be played according to the generated target playback order.
[0085] In the process of playing music in sequence according to the target playback order, the driving information monitored by the in-vehicle personnel monitoring system can be compared with the label corresponding to the music being played. If there is a mismatch, the corresponding label can be added to the music, and the playback scenario suitable for the music can be supplemented in time, so that music that meets user needs can be played first.
[0086] In summary, this application sorts the music according to the vehicle's driving information, so that the music can be played according to the sorted order. It can give priority to playing music that meets the user's needs, avoiding the need for users to manually switch when they hear music they don't like while driving, thereby ensuring driving safety and improving the user's riding experience.
[0087] like Figure 7 As shown, Figure 7 A complete flow chart of a music playing method is shown.
[0088] Step 1: The user starts the smart sorting and playing function.
[0089] Step 2, determining whether the vehicle has a target passenger. Here, the determination can be made by identifying the passenger in the vehicle through a vehicle occupant monitoring system.
[0090] Step 3: If there is a target passenger in the vehicle, music for the target passenger is placed at the front of the playlist. The target passengers here include child passengers and drivers. If there is a child passenger, music for the child is placed at the front of the playlist. If there is no child passenger, music that matches the driver's mood is placed at the front of the playlist.
[0091] Step 4, when there is no target occupant, determine whether there is a target driving scene, wherein the target driving scene here refers to a scene that matches the tag corresponding to the music.
[0092] Step 5, when there is a target driving scene, put the music related to the target driving scene at the front of the playlist.
[0093] Step 6: If there is no target driving scene, the latest imported music is placed in front of the playlist, that is, the music is sorted according to the import time.
[0094] Step 7, sorting the matched music according to the amount of play. In the case of putting the target passenger music at the front of the playlist, each piece of music in the target passenger music is sorted according to the amount of play; in the case of putting the target scene music at the front of the playlist, each piece of music in the target scene music is sorted according to the amount of play. In the case of putting the latest imported music at the front of the playlist, the music with the same import date is sorted according to the amount of play.
[0095] Step 8: Generate a music playlist.
[0096] Figure 8 It is a structural schematic diagram of a music playing device provided in an embodiment of the present application.
[0097] For example, Figure 8 As shown, the music playing device 800 may include:
[0098] The first determination module 801 is used to determine the driving information of the vehicle;
[0099] The second determination module 802 is used to match the driving information with the label corresponding to each piece of music, and determine the matching situation between the label corresponding to each piece of music and the driving information; the label corresponding to the music is generated based on the playing scene of the music in the historical playing;
[0100] Sorting module 803: used to sort the multiple pieces of music according to the matching conditions;
[0101] Playing module 804: used to play the corresponding music in sequence according to the sorted playing order of each piece of music.
[0102] Furthermore, the sorting module 803 is specifically used to determine the music whose tag matches the driving information as the target music; and determine that the playing order of the target music is earlier than the playing order of other music.
[0103] Furthermore, the sorting module 803 is specifically used to sort the target music according to the corresponding playback volume of each target music; wherein the playback order of the target music with a high playback volume is earlier than the playback order of the target music with a low playback volume.
[0104] Furthermore, the driving information includes occupant information and driving scenes, and the sorting module 803 is specifically used to, when there is music with a label matching the occupant information and there is no music with a label matching the driving scene, determine the music with a label matching the occupant information as the target music; when there is no music with a label matching the occupant information and there is music with a label matching the driving scene, determine the music with a label matching the driving scene as the target music.
[0105] Furthermore, the sorting module 803 is also used to sort the multiple pieces of music according to the import time of each piece of music when there is no music with a tag matching the driving information.
[0106] In one embodiment, the second determination module 802 is also used to determine the playback scene corresponding to the vehicle when playing the music; according to the playback scene corresponding to the vehicle when playing the music, add corresponding tags to the music, and count the playback volume according to the playback situation of the music.
[0107] Furthermore, the second determination module 802 is also used to, when the playback time of the music is greater than the set time, increase the corresponding effective playback amount based on the last recorded playback amount of the music; and when the playback time of the music is less than or equal to the set time, maintain the last recorded playback amount of the music.
[0108] In one embodiment, a vehicle is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements a music playing method when executing the computer program.
[0109] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to perform the music playback method provided by the embodiment of the present application.
[0110] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0111] In the case of dividing each functional module according to each function, the device may also include a determination module, a sorting module, a playing module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0112] It should be understood that the device provided in this embodiment is used to execute the above-mentioned music playing method, and thus can achieve the same effect as the above-mentioned implementation method.
[0113] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing mutual program codes, etc.
[0114] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0115] In addition, the device provided in the embodiments of the present application may specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the music playback method provided in the above embodiments.
[0116] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a music playing method provided by the above-mentioned embodiment.
[0117] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement a music playing method provided by the above embodiment.
[0118] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0119] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0120] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0121] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A music playing method, characterized in that: The method comprises: Determine driving information of the vehicle; Matching the driving information with a label corresponding to each piece of music to determine a match between the label corresponding to each piece of music and the driving information; the label corresponding to the music is generated based on a playback scene of the music in historical playback; sorting the multiple pieces of music according to the matching conditions; The corresponding music is played in sequence according to the sorted playing order of each piece of music.
2. The method according to claim 1, characterized in that The step of sorting the plurality of pieces of music according to the matching conditions includes: determining music with a tag matching the driving information as target music; Determine that the target music is played earlier than other music.
3. The method according to claim 2, characterized in that There are at least two target music pieces, and the order of the target music pieces includes: The target music is sorted according to the corresponding playback volume of each target music; wherein the playback order of the target music with a high playback volume is earlier than the playback order of the target music with a low playback volume.
4. The method according to any one of claims 2, characterized in that The driving information includes passenger information and driving scenes, and determining music with tags matching the driving information as target music includes: In a case where there is music with a label matching the passenger information and there is no music with a label matching the driving scene, or in a case where there is music with a label matching the passenger information and there is music with a label matching the driving scene, the music with a label matching the passenger information is determined as the target music; When there is no music with a tag matching the occupant information and there is music with a tag matching the driving scene, the music with a tag matching the driving scene is determined as the target music.
5. The method according to claim 1, characterized in that The step of sorting the plurality of pieces of music according to the matching conditions includes: When there is no music with a tag matching the driving information, the multiple pieces of music are sorted according to the import time of each piece of music.
6. The method according to claim 1, characterized in that Before matching the driving information with the label corresponding to each piece of music and determining the matching status between the label corresponding to each piece of music and the driving information, the method includes: Determine a playback scene corresponding to the music played by the vehicle; According to the corresponding playback scene when the vehicle plays the music, a corresponding label is added to the music, and the playback volume is counted according to the playback situation of the music.
7. The method according to claim 6, characterized in that The counting of the amount of playback according to the playback situation of the music includes: When the playing time of the music is longer than the set time, the corresponding effective playing amount is increased based on the playing amount of the music recorded last time; When the playing time of the music is less than or equal to the set time, the playing amount of the music recorded last time is kept.
8. A music playing device, characterized in that: The device comprises: A first determination module, used to determine driving information of a vehicle; A second determination module is used to match the driving information with a label corresponding to each piece of music, and determine a matching situation between the label corresponding to each piece of music and the driving information; the label corresponding to the music is generated based on a playback scene of the music in historical playback; A sorting module, used for sorting the multiple pieces of music according to the matching conditions; The playing module is used to play the corresponding music in sequence according to the sorted playing order of each piece of music.
9. A vehicle, characterized in that: The vehicle comprises: a memory and a processor, wherein the memory stores a computer program, and wherein when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.