Vehicle music playing method and device, electronic equipment and storage medium
By collecting and processing real-time driving behavior data of the vehicle, generating matching music clips, and combining basic music, the problem of independence between traditional car music systems and driving behavior is solved, the personalization and interactivity of music playback is improved, and driving is improved Experience.
Patent Information
- Application Number
- CN202411415778.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-12-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional on-board music system and driving behavior are independent of each other, limiting the personalization and interactivity of the driving experience.
By collecting real-time driving behavior data of the vehicle and inputting it into a pre-trained music generation model, music clips matching the driving behavior are generated, and they are combined with basic music to achieve music playback and real-time interaction with driving behavior.
Enhance the personalization and interactivity of music playback and enhance the driving experience.
Smart Images

Figure CN119226801A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a vehicle music playing method, device, electronic equipment and storage medium. Background Art
[0002] With the development of artificial intelligence technology, deep learning has made significant progress in the field of music generation. Existing music generation technology mainly focuses on static music creation, but lacks real-time interaction with user behavior. During driving, music is an important element to enhance the driving experience, but traditional in-car music systems are independent of driving behavior. Summary of the invention
[0003] The present invention provides a vehicle music playing method, device, electronic device and storage medium to enhance the personalization and interactivity of music playing and improve the driving experience.
[0004] According to one aspect of the present invention, a method for playing music in a vehicle is provided, the method comprising:
[0005] Collect real-time driving behavior data of the current vehicle during the current driving process;
[0006] Inputting the real-time driving behavior data into a pre-trained music generation model, and outputting a current music clip matching the real-time driving behavior data for the current vehicle;
[0007] The current music clip is combined with the current basic music to achieve music playing.
[0008] According to another aspect of the present invention, a vehicle music playing device is provided, the device comprising:
[0009] A driving behavior data collection module is used to collect real-time driving behavior data of the current vehicle during the current driving process;
[0010] a music clip output module, configured to input the real-time driving behavior data into a pre-trained music generation model, and output a current music clip matching the real-time driving behavior data for the current vehicle;
[0011] The music playing module is used to combine the current music clip with the current basic music to achieve music playing.
[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle music playing method described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle music playing method described in any embodiment of the present invention when executed.
[0017] The technical solution of the embodiment of the present invention collects real-time driving behavior data of the current vehicle during the current driving process; inputs the real-time driving behavior data into a pre-trained music generation model to output a current music clip matching the real-time driving behavior data for the current vehicle; combines the current music clip with the current basic music to achieve music playback, and adopts technical means to achieve music playback by real-time interaction with driving behavior, thereby solving the problem that the traditional in-vehicle music system and driving behavior are independent of each other, which limits the personalization and interactivity of the driving experience, enhances the personalization and interactivity of music playback, and improves the driving experience.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A flowchart of a method for playing vehicle music provided in Embodiment 1 of the present invention;
[0021] Figure 2 A schematic diagram of the structure of a vehicle music playing device provided in Embodiment 3 of the present invention;
[0022] Figure 3 The present invention is a schematic diagram of the structure of an electronic device for implementing the vehicle music playing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Embodiment 1
[0026] Figure 1 This is a flow chart of a method for playing music in a vehicle provided in the first embodiment of the present invention. This embodiment is applicable to playing music while driving a vehicle. The method can be executed by a vehicle music playing device. The vehicle music playing device can be implemented in the form of hardware and / or software. The vehicle music playing device can be configured in a vehicle main controller. Figure 1 As shown, the method includes:
[0027] S110: Collect real-time driving behavior data of the current vehicle during the current driving process.
[0028] Among them, the real-time driving behavior data may refer to the driving parameters of each component of the current vehicle during the current driving process.
[0029] Optionally, real-time driving behavior data may also include but is not limited to:
[0030] Vehicle driving status: including whether the vehicle is in an unmanned driving state. This is an important signal in the vehicle control unit (VCU) because it affects the vehicle's control of safety mechanisms such as the accelerator and brakes.
[0031] Vehicle speed: The real-time speed of the vehicle is crucial to driving safety and vehicle control.
[0032] Accelerator pedal opening: The degree of operation of the accelerator pedal by the driver affects the acceleration of the vehicle.
[0033] Brake pedal status: The driver's operation status of the brake pedal affects the vehicle's deceleration or parking.
[0034] Steering wheel angle: The degree to which the driver operates the steering wheel, which is directly related to the vehicle's steering behavior.
[0035] Door status: Whether the door is closed or not affects vehicle safety and certain functions of the vehicle control system.
[0036] Window status: The open or closed state of the window may affect the in-vehicle environmental control system.
[0037] Headlight status: Whether the headlight is on or off affects the driving vision at night or in bad weather.
[0038] Turn signal status: The status of the vehicle's turn signal, which communicates the vehicle's intention to turn to other road users.
[0039] Airbag Status: The deployment status of the airbag, which is related to the vehicle's passive safety systems.
[0040] Mileage: The total mileage of the vehicle, which is of reference value for maintenance and vehicle performance monitoring.
[0041] ACC (Adaptive Cruise Control) button status: the activation status of the adaptive cruise control system.
[0042] LKA (Lane Keeping Assist) button status: activation status of the lane keeping assist system.
[0043] GPS (Global Positioning System) information: The vehicle's global positioning system information is essential for navigation and vehicle positioning.
[0044] Engine status: including engine speed, output torque, fuel consumption, etc., which is of great significance to vehicle performance and maintenance.
[0045] Tire pressure: The air pressure status of each tire affects driving safety and vehicle handling stability.
[0046] Battery Charge: The state of charge of the vehicle's battery, especially important for electric or hybrid vehicles.
[0047] Vehicle driving mode: The vehicle's driving mode, such as sports mode, economic mode, etc., affects the vehicle's performance.
[0048] In this embodiment, the real-time driving behavior data of the current vehicle during the current driving process may be collected in full, or may be collected according to a pre-set requirement list.
[0049] Optionally, before collecting the real-time driving behavior data of the current vehicle during the current driving process, the method may also include: determining current basic music for the current vehicle when the current vehicle starts to drive.
[0050] The current basic music may be the basic music played by the current vehicle during the entire current driving process. For example, the basic music may be cheerful, dynamic, lyrical, and the like.
[0051] The current basic music may be determined according to user needs, or may be automatically determined according to historical user habits or randomly determined without the user issuing an instruction.
[0052] In one case, determining the current basic music for the current vehicle may include: in response to a first user instruction, determining the current basic music from a basic music library, where each basic music in the basic music library is pre-generated by a pre-trained music generation model; or in response to a second user instruction, generating the current basic music for the current vehicle in real time by a pre-trained music generation model. The first user instruction may be a basic music selection instruction for the basic music library, and the second user instruction may be a basic music generation instruction for the pre-trained music generation model. That is, in the current case, the current basic music may be pre-generated or generated in real time.
[0053] In another case, if the current vehicle has not received any user instructions after starting to drive for a period of time, the current basic music can be determined for the current vehicle based on historical user habits. For example, the basic music that has been played most frequently during a number of historical driving processes can be determined as the current basic music.
[0054] In another case, if the current vehicle has not received any user instructions after starting to travel for a period of time, the current basic music for the current vehicle can be randomly determined from the basic music library, or the current basic music can be randomly generated for the current vehicle through a pre-trained music generation model.
[0055] S120: Input the real-time driving behavior data into a pre-trained music generation model, and output a current music clip matching the real-time driving behavior data for the current vehicle.
[0056] Among them, the pre-trained music generation model may include a basic music generation sub-model and a music clip generation sub-model.
[0057] Optionally, the basic music generation sub-model is obtained by training basic music sample data for at least one round, and the basic music sample data may include music clips of different styles and emotions. In this embodiment, a model can be trained to generate basic music, and this model can be a pre-trained deep learning model, such as VAE (variational autoencoder) or GAN (generative adversarial network). The basic music generation sub-model can learn the general structure and style of music without being directly associated with specific driving behaviors.
[0058] Optionally, the music clip generation sub-model is pre-trained in the following manner: obtaining driving behavior sample data, music clip sample data, driving behavior verification data and music clip verification data; training the initial music clip generation sub-model according to the driving behavior sample data and the music clip sample data to optimize the parameters of the initial music clip generation sub-model to obtain an optimized music clip generation sub-model; evaluating the performance of the optimized music clip generation sub-model according to the driving behavior verification data and the music clip verification data, and fine-tuning the optimized music clip generation sub-model according to the evaluation results to obtain the music clip generation sub-model.
[0059] It can be understood that the initial music clip generation sub-model is first preliminarily trained using the training data set, and then the performance of the preliminarily trained music clip generation sub-model is verified using the verification data set (using indicators such as accuracy, recall rate or F1 score, etc.), and the sub-model is fine-tuned according to the verification results.
[0060] In an optional embodiment, the initial music clip generation sub-model is trained according to the driving behavior sample data and the music clip sample data to optimize the parameters of the initial music clip generation sub-model to obtain the optimized music clip generation sub-model, which may include: using the initial music clip generation sub-model to extract the first feature of the driving behavior sample data, and extracting the second feature of the music clip sample data; training the initial music clip generation sub-model according to the first feature and the second feature to map the first feature to the second feature and generate a music clip matching the first feature; and optimizing the parameters of the initial music clip generation sub-model through a back propagation algorithm according to the music clip matching the first feature to obtain the optimized music clip generation sub-model.
[0061] The first feature of the driving behavior sample data may refer to features such as acceleration and braking frequency, and the second feature of the music clip sample data may refer to features such as pitch, rhythm, and timbre.
[0062] In this embodiment, a deep learning model, such as RNN or LSTM, can be used to learn the long-term dependency between driving behavior and music. Specifically, the model can be trained using the first feature of the driving behavior sample data and the second feature of the music clip sample data, and the model parameters can be optimized through the back propagation algorithm, such as adjusting the model hyperparameters, such as the learning rate, batch size, number of training rounds, etc., to improve the model performance.
[0063] Optionally, user feedback on the music clip generation sub-model may also be obtained; and the music clip generation sub-model may be iteratively improved according to the user feedback.
[0064] In this embodiment, a user feedback function can be set. After the user uses this feedback function, a questionnaire survey can be conducted, for example, music style scoring, music clip 1 scoring, music clip 2 scoring, and the user's opinions can be input (for example, voice input of user opinions is recognized: for example, what are the improvement suggestions for music style and music clips), and user satisfaction is investigated through user feedback. It can be understood that user feedback on the music generated by the optimized music clip generation sub-model is collected to evaluate the actual effect of the model, so as to iterate and improve the model according to user feedback.
[0065] Optionally, the trained music generation model can be deployed on the terminal side, that is, deployed in the actual vehicle system, or deployed on the cloud side, that is, deployed on a cloud computing server, so that it can respond to driving behavior and generate music in real time.
[0066] The current music clip in this embodiment can be a driving sound effect corresponding to the driving behavior data, or it can be music with a rhythm that matches the driving behavior data. In short, the current music clip can make the driver of the current vehicle feel better.
[0067] S130: Combine the current music clip with the current basic music to achieve music playback.
[0068] In this embodiment, after the current driving process of the current vehicle begins, the current basic music starts playing. When driving behavior data is detected, the current music clip corresponding to the driving behavior data can be added to the basic music to achieve a personalized music playback experience.
[0069] The technical solution of the embodiment of the present invention collects real-time driving behavior data of the current vehicle during the current driving process; inputs the real-time driving behavior data into a pre-trained music generation model to output a current music clip matching the real-time driving behavior data for the current vehicle; combines the current music clip with the current basic music to achieve music playback, and adopts technical means to achieve music playback by real-time interaction with driving behavior, thereby solving the problem that the traditional in-vehicle music system and driving behavior are independent of each other, which limits the personalization and interactivity of the driving experience, enhances the personalization and interactivity of music playback, and improves the driving experience.
[0070] Embodiment 2
[0071] Figure 2 This is a schematic diagram of the structure of a vehicle music player provided by the third embodiment of the present invention. Figure 2 As shown, the device includes: a driving behavior data collection module 210, a music clip output module 220 and a music playing module 230. Among them:
[0072] The driving behavior data collection module 210 is used to collect the real-time driving behavior data of the current vehicle during the current driving process;
[0073] A music clip output module 220, configured to input the real-time driving behavior data into a pre-trained music generation model, and output a current music clip matching the real-time driving behavior data for the current vehicle;
[0074] The music playing module 230 is used to combine the current music clip with the current basic music to achieve music playing.
[0075] The technical solution of the embodiment of the present invention collects real-time driving behavior data of the current vehicle during the current driving process; inputs the real-time driving behavior data into a pre-trained music generation model to output a current music clip matching the real-time driving behavior data for the current vehicle; combines the current music clip with the current basic music to achieve music playback, and adopts technical means to achieve music playback by real-time interaction with driving behavior, thereby solving the problem that the traditional in-vehicle music system and driving behavior are independent of each other, which limits the personalization and interactivity of the driving experience, enhances the personalization and interactivity of music playback, and improves the driving experience.
[0076] Optionally, the vehicle music playback device further includes a current basic music determination module, which is used to, before collecting real-time driving behavior data of the current vehicle during the current driving process:
[0077] When the current vehicle starts to travel, the current basic music is determined for the current vehicle.
[0078] Optionally, the current basic music determination module can be specifically used for:
[0079] In response to a first user instruction, determining the current basic music from a basic music library, each basic music in the basic music library being pre-generated by the pre-trained music generation model; or
[0080] In response to a second user instruction, the current basic music is generated in real time for the current vehicle through the pre-trained music generation model.
[0081] Optionally, the pre-trained music generation model includes a basic music generation sub-model and a music clip generation sub-model.
[0082] Optionally, the basic music generation sub-model is obtained by training basic music sample data for at least one round, and the basic music sample data includes music clips of different styles and emotions;
[0083] The music clip generation sub-model is pre-trained in the following way:
[0084] Acquire driving behavior sample data, music clip sample data, driving behavior verification data, and music clip verification data;
[0085] Training the initial music clip generation sub-model according to the driving behavior sample data and the music clip sample data to optimize the parameters of the initial music clip generation sub-model to obtain an optimized music clip generation sub-model;
[0086] The performance of the optimized music clip generation sub-model is evaluated according to the driving behavior verification data and the music clip verification data, and the optimized music clip generation sub-model is fine-tuned according to the evaluation result to obtain the music clip generation sub-model.
[0087] Optionally, the vehicle music playback device further includes an optimized music clip generation sub-model acquisition module, which is used to:
[0088] Extracting a first feature of the driving behavior sample data and a second feature of the music segment sample data using an initial music segment generation sub-model;
[0089] Training the initial music clip generation sub-model according to the first feature and the second feature to map the first feature to the second feature and generate a music clip matching the first feature;
[0090] According to the music clip matching the first feature, the parameters of the initial music clip generation sub-model are optimized by a back-propagation algorithm to obtain an optimized music clip generation sub-model.
[0091] Optionally, the vehicle music playback device further includes a music clip generation sub-model improvement module, which is used to:
[0092] Obtain user feedback on generating a sub-model for the music clip;
[0093] The music clip generation sub-model is iteratively improved according to the user feedback.
[0094] The vehicle music playing device provided in the embodiment of the present invention can execute the vehicle music playing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0095] Embodiment 3
[0096] Figure 3 A schematic diagram of an electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers or various forms of mobile devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0097] like Figure 3 As shown, the electronic device 300 includes at least one processor 301, and a memory connected to the at least one processor 301, such as a read-only memory (ROM) 302, a random access memory (RAM) 303, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 301 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 302 or the computer program loaded from the storage unit 308 to the random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The processor 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0098] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0099] The processor 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 301 executes the various methods and processes described above, such as a method for playing music in a vehicle.
[0100] In some embodiments, the method for playing music in a vehicle may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the processor 301, one or more steps of the method for playing music in a vehicle described above may be performed. Alternatively, in other embodiments, the processor 301 may be configured to execute the method for playing music in a vehicle by any other appropriate means (e.g., by means of firmware).
[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for playing vehicle music, characterized in that: include: Collect real-time driving behavior data of the current vehicle during the current driving process; Inputting the real-time driving behavior data into a pre-trained music generation model, and outputting a current music clip matching the real-time driving behavior data for the current vehicle; The current music clip is combined with the current basic music to achieve music playing.
2. The method according to claim 1, characterized in that Before collecting the real-time driving behavior data of the current vehicle during the current driving process, it also includes: When the current vehicle starts to travel, the current basic music is determined for the current vehicle.
3. The method according to claim 2, characterized in that Determining the current basic music for the current vehicle includes: In response to a first user instruction, determining the current basic music from a basic music library, each basic music in the basic music library being pre-generated by the pre-trained music generation model; or In response to a second user instruction, the current basic music is generated in real time for the current vehicle through the pre-trained music generation model.
4. The method according to claim 1, characterized in that The pre-trained music generation model includes a basic music generation sub-model and a music clip generation sub-model.
5. The method according to claim 4, characterized in that The basic music generation sub-model is obtained by training basic music sample data for at least one round, wherein the basic music sample data includes music clips of different styles and emotions; The music clip generation sub-model is pre-trained in the following way: Acquire driving behavior sample data, music clip sample data, driving behavior verification data, and music clip verification data; Training the initial music clip generation sub-model according to the driving behavior sample data and the music clip sample data to optimize the parameters of the initial music clip generation sub-model to obtain an optimized music clip generation sub-model; The performance of the optimized music clip generation sub-model is evaluated according to the driving behavior verification data and the music clip verification data, and the optimized music clip generation sub-model is fine-tuned according to the evaluation result to obtain the music clip generation sub-model.
6. The method according to claim 5, characterized in that The initial music clip generation sub-model is trained according to the driving behavior sample data and the music clip sample data to optimize the parameters of the initial music clip generation sub-model to obtain an optimized music clip generation sub-model, including: Extracting a first feature of the driving behavior sample data and a second feature of the music segment sample data using an initial music segment generation sub-model; The initial music clip generation sub-model is trained according to the first feature and the second feature to map the first feature to the second feature and generate a music clip matching the first feature; According to the music clip matching the first feature, the parameters of the initial music clip generation sub-model are optimized by a back-propagation algorithm to obtain an optimized music clip generation sub-model.
7. The method according to claim 5, characterized in that Also includes: Obtain user feedback on generating a sub-model for the music clip; The music clip generation sub-model is iteratively improved according to the user feedback.
8. A vehicle music playing device, characterized in that: include: A driving behavior data collection module is used to collect real-time driving behavior data of the current vehicle during the current driving process; A music clip output module, used for inputting the real-time driving behavior data into a pre-trained music generation model, and outputting a current music clip matching the real-time driving behavior data for the current vehicle; The music playing module is used to combine the current music clip with the current basic music to achieve music playing.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the vehicle music playing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle music playing method according to any one of claims 1 to 7 when executed.