Music playing method, electronic equipment and storage medium
By obtaining vehicle driving information in real time and generating matching music clips, the boredom and fatigue caused by long-distance driving is solved, providing a unique driving experience and higher driving safety.
Patent Information
- Application Number
- CN202410986243.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2025-02-18
AI Technical Summary
The boredom and fatigue caused by long-distance driving will reduce the driving experience and safety, and the existing music playback methods can easily lead to aesthetic fatigue.
By obtaining driving information when the vehicle is driving, determining the music parameters corresponding to the driving information, generating and playing matching music clips, combining music technology and automotive technology to enrich the music diversity during driving.
Provides a unique driving experience, increases driving fun, reduces fatigue, and improves driving safety.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle technology, and in particular, relates to a music playing method, an electronic device, and a computer-readable storage medium. Background Art
[0002] At present, users will inevitably feel bored when driving, especially during long-distance driving. Due to long-term driving, users feel bored and even tired. When users feel bored and tired, they often lose concentration, which may lead to traffic accidents. Summary of the invention
[0003] In view of this, the present application provides a music playing method, an electronic device and a computer-readable storage medium, which can provide users with a unique driving experience and increase the fun of users driving a vehicle.
[0004] In a first aspect, the present application provides a music playing method, the music playing method comprising: Acquiring driving information of a vehicle while it is traveling, wherein the driving information can change based on a user's driving behavior of the vehicle; Determining a first music parameter corresponding to the driving information; generating a music clip matching the first music parameter; Play the music clip.
[0005] Through this solution, corresponding music can be generated according to the user's driving behavior of the vehicle, combining music technology with automobile technology, enriching the diversity of music played during driving, providing users with a unique driving experience, and effectively increasing the fun of users driving the vehicle, making the driving process more enjoyable.
[0006] Optionally, the driving information includes at least one of the acceleration, turning angle and speed of the vehicle.
[0007] Optionally, the first music parameter includes at least one of music speed, melody and pitch; and determining the first music parameter corresponding to the driving information includes: determining a music tempo corresponding to the acceleration; and / or, determining a melody corresponding to the turning angle; And / or, determining a pitch corresponding to the vehicle speed.
[0008] Optionally, the music playing method further includes: Obtaining preset second music parameters; The step of generating a music segment matching the first music parameter comprises: The music segment matching the first music parameter and the second music parameter is generated.
[0009] Optionally, the second music parameter includes at least one of timbre and sound effect.
[0010] Optionally, the music playing method further includes: Select a target music from the user's music library; Parsing the target music to obtain music parameter enumeration values of the target music; Establishing a mapping relationship between driving information enumeration values and music parameter enumeration values; The determining of the first music parameter corresponding to the driving information includes: According to the mapping relationship, a first music parameter corresponding to the driving information is determined.
[0011] Optionally, the music playing method further includes: splicing the multiple music clips generated during the driving of the vehicle into a music file; The music file is stored.
[0012] Optionally, the driving information is acquired in real time during the driving of the vehicle, and the corresponding music clip is generated in real time each time the driving information is acquired, and each time the music clip is generated, the music clip is played in real time through the speaker of the vehicle.
[0013] In a second aspect, the present application provides an electronic device, including a memory and a processor, wherein the memory is coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the music playing method provided in the first aspect above.
[0014] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the music playing method provided in the first aspect above.
[0015] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the music playing method provided in the first aspect above.
[0016] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 It is a flowchart of the music playing method provided in an embodiment of the present application.
[0019] Figure 2 It is a structural schematic diagram of a music playing device provided in an embodiment of the present application.
[0020] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0022] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0027] Boredom and fatigue caused by long-term driving are important factors affecting driving safety. When users are driving a vehicle, especially long-distance driving, they are easily bored and tired due to long-term concentration and repetitive actions. This boredom and fatigue not only reduce the user's driving experience, but more importantly, they often cause users to lose concentration, slow to react, and even have hallucinations or illusions, greatly increasing the risk of traffic accidents.
[0028] In order to alleviate this problem, increasing the entertainment and interactivity during driving is an effective method. Equipping the car with a music player and playing favorite music or audio books can refresh the mind and make the driving process more pleasant. However, playing repetitive music often causes aesthetic fatigue of the driver, which in turn affects the driving experience and safety. Listening to the same music for a long time, even if it is a favorite track, may become boring due to repeated playback, and even cause irritability. Based on this, the present application provides a music playback method, system, electronic device and storage medium. Through this solution, corresponding music can be generated according to the user's driving behavior of the vehicle, combining music technology with automobile technology, enriching the diversity of music played during driving, providing users with a unique driving experience, which can effectively increase the fun of users driving vehicles and make the driving process more pleasant.
[0029] Figure 1 A flowchart of a music playing method provided by an embodiment of the present application is shown, which is described in detail as follows: Step 101, obtaining driving information of a vehicle while it is traveling, wherein the driving information can change based on a user's driving behavior of the vehicle.
[0030] Step 102, determining a first music parameter corresponding to the driving information.
[0031] Step 103: Generate a music clip matching the first music parameter.
[0032] Step 104: play the music clip.
[0033] In the embodiment of the present application, the driving information is closely related to the user's driving behavior and can reflect the user's driving status and vehicle condition in real time. The driving information will change with the user's driving behavior. For example, when the user accelerates or decelerates, the speed of the vehicle will change accordingly, thereby changing the speed data in the driving information. The user's driving behavior on the vehicle includes the following: Control the steering wheel: The driver needs to coordinate his left and right hands according to road conditions and driving requirements, and adjust the steering wheel in time to keep the vehicle stable.
[0034] Turn on the turn signal: When changing lanes, turning or overtaking, you need to turn on the turn signal in advance to indicate your driving intention to other road users.
[0035] Acceleration and deceleration: Control the acceleration and deceleration of the vehicle by pressing the accelerator and brake pedals. When accelerating, increase the accelerator smoothly to avoid sudden acceleration; when decelerating, brake properly according to the actual situation to avoid sudden braking.
[0036] Gear shifting: For manual transmission vehicles, the driver needs to perform gear shifting operations at the appropriate time according to the vehicle speed and engine speed. When shifting gears, the driver should step on the clutch pedal, shift the gear into the target gear, and then release the clutch pedal and the accelerator pedal.
[0037] Among them, the driving information can be collected by the sensors of the vehicle, for example, using sensors on the vehicle (such as accelerometers, steering sensors, speed sensors, etc.) to monitor driving behavior in real time, such as vehicle speed, acceleration, turning angle, etc. These data can be obtained through the vehicle's controller area network (CAN) bus or on-board computer. Music parameters are parameters that shape the basic form and style characteristics of music. According to the driving information of the vehicle when it is driving, the first music parameter corresponding to the driving information can be determined, wherein the mapping relationship between the driving information and the music parameter can be preset, and the first music parameter corresponding to the driving information can be determined according to the mapping relationship, and then a music clip matching the first music parameter can be generated. For example, with the help of software or tools that can process audio, a new music project can be created in the selected software or tool, and the music parameters (such as speed and pitch parameters) can be set to the above-mentioned first music parameters, so that a simple music clip can be generated according to specific music parameters. The generated music clip can be played through the vehicle's speakers, thereby providing users with a unique driving experience, which can effectively increase the fun of users driving the vehicle and make the driving process more enjoyable. Moreover, according to the changes in the user's driving behavior, the music clip generated each time may also change, which can enrich the diversity of music played during driving.
[0038] In some embodiments, the driving information includes at least one of the acceleration, turning angle and speed of the vehicle. When the user needs to increase the acceleration of the vehicle, it can be achieved by stepping on the accelerator deeply. On the contrary, when the user needs to reduce the acceleration or decelerate, the accelerator pedal can be released to reduce the fuel supply of the engine, the output power decreases, and thus the acceleration of the vehicle is reduced. The user controls the turning angle of the vehicle by turning the steering wheel. Turning the steering wheel to the left will make the vehicle turn left, and turning the steering wheel to the right will make the vehicle turn right. The size of the turning angle depends on the amplitude and speed of the steering wheel rotation. The vehicle can be accelerated by stepping on the accelerator; while the vehicle can be decelerated by stepping on the brake. Therefore, when the user operates the accelerator, brake pedal, and steering wheel during driving, it may cause changes in the driving information, so that different music clips are generated according to different driving information.
[0039] In some embodiments, the first music parameter includes at least one of music speed, melody and pitch; the determining of the first music parameter corresponding to the driving information includes: determining the music speed corresponding to the acceleration; and / or determining the melody corresponding to the turning angle; and / or determining the pitch corresponding to the vehicle speed.
[0040] Among them, music speed refers to the speed of music, that is, the density of beats in a unit of time (such as per minute). Melody is the primary element of music, usually referring to an organized and rhythmic sequence of several musical sounds formed through artistic conception. Pitch refers to the various sounds of different pitches, that is, the height of the sound, which is one of the basic characteristics of sound.
[0041] Acceleration can reflect the acceleration and deceleration behavior of the user driving the vehicle. When accelerating, the user usually wants to hear fast-beat music rather than slow-beat (soothing) music. Therefore, when the acceleration is a positive value (acceleration), the music speed can be determined to be faster, and when the acceleration is a negative value (deceleration), the music speed can be determined to be slower.
[0042] When a user is driving a vehicle, the turning angle usually does not change suddenly, for example, changing from a left turn to a right turn within 1 second. Therefore, the corresponding melody is determined according to the turning angle so that the melody does not change too much and does not cause the music clip to be abrupt.
[0043] By generating pitch according to vehicle speed, music is no longer a static background, but a dynamic element closely linked to driving behavior. This experience can bring freshness and fun to the driver, making the driving process more colorful.
[0044] In some embodiments, the music playing method further includes: acquiring a preset second music parameter; and generating a music clip matching the first music parameter includes: generating the music clip matching the first music parameter and the second music parameter.
[0045] The first music parameter can be determined according to the driving information, and the other music parameters except the first music parameter, i.e., the second music parameter, can be obtained from the pre-set data. Specifically, multiple values of the second music parameter can be pre-stored, and before generating the music clip, one of the multiple values of the stored second music parameter can be selected for generating the music clip. Then, the music clip can be generated according to the first music parameter and the second music parameter at the same time.
[0046] In some embodiments, the second music parameter includes at least one of timbre and sound effect. For example, the timbre includes drum sound and piano sound, and obtaining the preset second music parameter can specifically be selecting one of the drum sound and piano sound as the timbre of the generated music clip. Among them, the sound effect can be a digital sound effect: referred to as EQ mode, that is, different sound playback effects of MP3, which are processed by a digital sound effect processor to make the sound sound with different spatial characteristics, such as hall, opera house, cinema and other effects.
[0047] In some embodiments, the music playing method also includes: selecting a target music from the user's music library; parsing the target music to obtain a music parameter enumeration value of the target music; establishing a mapping relationship between the driving information enumeration value and the music parameter enumeration value; determining the first music parameter corresponding to the driving information includes: determining the first music parameter corresponding to the driving information according to the mapping relationship.
[0048] Specifically, with the authorization of the user's music library, the third-party software can select any piece of music from the user's music library as the target music. The music library can be an online music library, such as the music library in the music player software, or a local music library, such as a music library stored in a local folder, which contains multiple music files. Using professional software tools, according to the basic principles of music, the target music can be parsed to obtain the enumeration values of the music parameters of the target music. These parameters may include but are not limited to pitch, timbre, rhythm, speed, intensity, and harmony. The enumeration value of the music parameter refers to the specific numerical value or category of each parameter in the music in the form of enumeration. For example, the enumeration value of the pitch may represent the frequency of a specific sound in Hertz (Hz), or in some software, the position on the scale in semitones or whole tones.
[0049] The enumeration values of the driving information can be preset and stored. For example, several vehicle speed values can be selected from the vehicle speed range of 0km / h-180km / h as vehicle speed enumeration values, and a mapping relationship between the vehicle speed enumeration values and the pitch enumeration values can be established.
[0050] When the driving information of the vehicle is obtained, the first music parameter corresponding to the driving information can be determined according to the mapping relationship between the driving information enumeration value and the music parameter enumeration value. For example, the pitch corresponding to the obtained vehicle speed can be determined according to the mapping relationship between the vehicle speed enumeration value and the pitch enumeration value, and a music clip matching the pitch can be generated.
[0051] Since the music in the user's music library is all existing songs, the structure and harmony of the songs regenerated using the music parameters of existing songs are usually carefully designed and polished, so they are more likely to appear harmonious and smooth in structure. Moreover, the regenerated songs often retain the style characteristics of the original songs, which makes them more unified and coherent in style. The user's favorite music can be retained in the user's music library, so the music clips that retain the style characteristics of the original songs are more likely to be liked by users.
[0052] In some embodiments, the music playing method further includes: splicing the multiple music clips generated during the driving of the vehicle into a music file; The music file is stored.
[0053] In an embodiment of the present application, the vehicle driving process includes the entire process of the user starting the vehicle to arrive at the destination from the departure point. During this process, the music playing method in each embodiment of the present application may be executed multiple times to generate multiple music clips. If the user is satisfied with the music clips generated in this trip, he can choose to use these music clips to generate a complete music. Specifically, the multiple music clips generated in the entire trip can be spliced in a predetermined order to obtain a music file, and then the music file can be stored. The user can later choose to play the music file to relive the music of this trip. Among them, the predetermined order can be the chronological order of the generation time of multiple music clips.
[0054] In some embodiments, the driving information is acquired in real time during the driving of the vehicle, and the corresponding music clip is generated in real time each time the driving information is acquired, and each time the music clip is generated, the music clip is played in real time through the speaker of the vehicle.
[0055] Specifically, during the driving process of the vehicle, the driving information can be collected at a preset frequency, for example, the driving information is obtained every 10 seconds, and each time the driving information is obtained, a music clip is generated, and the length of the music clip can be equal to 10 seconds. Each time the music clip is generated, the music clip is immediately played through the speaker of the vehicle. The next time new driving information is obtained and a new music clip is generated according to the new driving information, the new music clip is immediately played. In this way, the continuity of music playback can be guaranteed, giving users a better user experience.
[0056] As can be seen from the above, in the present application scheme, the present scheme can generate corresponding music according to the user's driving behavior of the vehicle, combining music technology with automobile technology, enriching the diversity of music played during driving, providing users with a unique driving experience, and effectively increasing the fun of users driving the vehicle, making the driving process more enjoyable.
[0057] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0058] Figure 2 This is a schematic diagram of the structure of a music playing device provided by an embodiment of the present application. Figure 2 As shown, the music playing device 2 of this embodiment includes: The acquisition unit 21 is used to acquire driving information of the vehicle when the vehicle is traveling, and the driving information can change based on the user's driving behavior of the vehicle.
[0059] The determination unit 22 is used to determine a first music parameter corresponding to the driving information.
[0060] The generating unit 23 is configured to generate a music segment matching the first music parameter.
[0061] The playing unit 24 is used to play the music clip.
[0062] Optionally, the driving information includes at least one of the acceleration, turning angle and speed of the vehicle.
[0063] Optionally, the first music parameter includes at least one of music speed, melody and pitch; the determining unit 22 is specifically used for: determining a music tempo corresponding to the acceleration; and / or, determining a melody corresponding to the turning angle; And / or, determining a pitch corresponding to the vehicle speed.
[0064] Optionally, the music playing device 2 further includes: A parameter acquisition unit, used to acquire a preset second music parameter; The generating unit 23 is specifically used for: The music segment matching the first music parameter and the second music parameter is generated.
[0065] Optionally, the second music parameter includes at least one of timbre and sound effect.
[0066] Optionally, the music playing device 2 further includes: A selection unit, used to select a target music from the user's music library; A parsing unit, used for parsing the target music to obtain a music parameter enumeration value of the target music; An establishing unit, used to establish a mapping relationship between the driving information enumeration value and the music parameter enumeration value; The determining unit 22 is specifically configured to: According to the mapping relationship, a first music parameter corresponding to the driving information is determined.
[0067] Optionally, the music playing device 2 further includes: A splicing unit, used for splicing the multiple music clips generated during the driving of the vehicle into a music file; The storage unit is used to store the music file.
[0068] Optionally, the driving information is acquired in real time during the driving of the vehicle, and the corresponding music clip is generated in real time each time the driving information is acquired, and each time the music clip is generated, the music clip is played in real time through the speaker of the vehicle.
[0069] As can be seen from the above, in the present application scheme, the present scheme can generate corresponding music according to the user's driving behavior of the vehicle, combining music technology with automobile technology, enriching the diversity of music played during driving, providing users with a unique driving experience, and effectively increasing the fun of users driving the vehicle, making the driving process more enjoyable.
[0070] Figure 3 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3 As shown, the electronic device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown), a memory 31, and a computer program 32 stored in the memory 31 and executable on at least one processor 30, wherein when the processor 30 executes the computer program 32, the electronic device executes the steps of the music playing method.
[0071] The electronic device 3 may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of the electronic device 3 and does not constitute a limitation on the electronic device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0072] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0073] In some embodiments, the memory 31 may be an internal storage unit of the electronic device 3, such as a hard disk or memory of the electronic device 3. In other embodiments, the memory 31 may also be an external storage device of the electronic device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 3. Further, the memory 31 may include both an internal storage unit and an external storage device of the electronic device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0074] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0075] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0076] An embodiment of the present application also provides a vehicle, including a processor, wherein the processor is used to call and run a computer program from a memory, so that the vehicle equipped with the processor executes the steps in the above-mentioned various method embodiments.
[0077] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0078] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0079] An embodiment of the present application provides a chip system, including a processor, which is used to call and run a computer program from a memory, so that an electronic device equipped with the chip system executes the steps in the above-mentioned method embodiments.
[0080] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium can at least include: any entity or device that can carry the computer program code to an electronic device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0081] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0082] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0083] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, 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.
[0084] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0085] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A music playing method, characterized in that: The music playing method comprises: Acquiring driving information of a vehicle while it is traveling, wherein the driving information can change based on a user's driving behavior of the vehicle; Determining a first music parameter corresponding to the driving information; generating a music clip matching the first music parameter; Play the music clip.
2. The music playing method according to claim 1, wherein: The driving information includes at least one of the acceleration, turning angle and vehicle speed of the vehicle.
3. The music playing method according to claim 2, characterized in that: The first music parameter includes at least one of music speed, melody and pitch; the determining the first music parameter corresponding to the driving information includes: determining a music tempo corresponding to the acceleration; and / or, determining a melody corresponding to the turning angle; And / or, determining a pitch corresponding to the vehicle speed.
4. The music playing method according to any one of claims 1 to 3, characterized in that: The music playing method further comprises: Obtaining preset second music parameters; The step of generating a music segment matching the first music parameter comprises: The music segment matching the first music parameter and the second music parameter is generated.
5. The music playing method according to claim 4, characterized in that: The second music parameter includes at least one of timbre and sound effect.
6. The music playing method according to any one of claims 1 to 3, characterized in that: The music playing method further comprises: Select a target music from the user's music library; Parsing the target music to obtain music parameter enumeration values of the target music; Establishing a mapping relationship between driving information enumeration values and music parameter enumeration values; The determining of the first music parameter corresponding to the driving information includes: According to the mapping relationship, a first music parameter corresponding to the driving information is determined.
7. The music playing method according to any one of claims 1 to 3, characterized in that: The music playing method further comprises: splicing the multiple music clips generated during the driving of the vehicle into a music file; The music file is stored.
8. The music playing method according to any one of claims 1 to 3, characterized in that: The driving information is acquired in real time during the driving of the vehicle, and the corresponding music clip is generated in real time each time the driving information is acquired, and the music clip is played in real time through the speaker of the vehicle each time the music clip is generated.
9. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the music playing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the music playing method according to any one of claims 1 to 8.
Citation Information
Cited By
Audio visualization method, vehicle, storage medium and computer program product
CN119806469A
Audio visualization method, vehicle, storage medium and computer program product
CN119806470A
Audio visualization method, vehicle, storage medium and computer program product
CN120560603A
Audio visualization method, vehicle, storage medium, and computer program product
WO2026188929A1