In-vehicle music tuning method, device, medium and product

By dynamically adjusting the audio track control parameters based on vehicle driving parameters, the problem of the in-vehicle music system being unable to be adjusted in real time during driving is solved, thus improving the driving experience.

WO2026113345A1PCT designated stage Publication Date: 2026-06-04TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
Filing Date
2025-06-19
Publication Date
2026-06-04

AI Technical Summary

Technical Problem

Existing in-vehicle music systems cannot adjust the music according to real-time conditions while driving, resulting in a reduced driving experience.

Method used

By acquiring the vehicle's driving parameters, determining the track control parameters for each audio track, and dynamically adjusting the music's audio data, the tuned target music is generated.

Benefits of technology

It enhances the interactivity between music and the driving process, making the music more in line with the driver's driving behavior and improving the driving experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025101951_04062026_PF_FP_ABST
    Figure CN2025101951_04062026_PF_FP_ABST
Patent Text Reader

Abstract

An in-vehicle music tuning method, a device, a medium and a product, which relate to the technical field of music playing. The method comprises: during the playing of target music on a playing device of a vehicle, acquiring driving parameters of the vehicle; on the basis of the driving parameters of the vehicle, determining track control parameters corresponding to each audio track; on the basis of the track control parameters, adjusting audio data of each audio track of the target music, so as to obtain adjusted audio data corresponding to each audio track; and on the basis of the adjusted audio data corresponding to each audio track, generating tuned target music, and playing the tuned target music. In the present application, track control parameters of each audio track are determined on the basis of driving parameters of a vehicle, so as to control each audio track of music, such that the music can be dynamically adjusted on the basis of the driving process of the vehicle, thereby enhancing the interaction between the music and the driving process, and improving the driving experience of drivers.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device, medium, and product for tuning in-vehicle music.

[0001] This application claims priority to Chinese Patent Application No. 202411728251.1, filed on November 28, 2024, entitled "A Tuning Method, Device, Medium and Product for In-Vehicle Music", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of music playback technology, and in particular to a method, device, medium and product for tuning in-vehicle music. Background Technology

[0003] With the increasing popularity of streaming music platforms, music has become an indispensable part of daily life. In particular, playing music in cars brings enjoyment to many drivers during long drives.

[0004] Many in-car music systems allow users to preset playlists, meaning drivers can set the music they want to listen to before setting off. Drivers and passengers can then control playback, pause, song switching, and volume adjustment via physical buttons, touchscreens, or voice commands. However, this approach typically focuses only on music playback and neglects the interaction between the music and the driving process. In other words, the music cannot be adjusted in real-time while driving, potentially diminishing the driver's experience.

[0005] In summary, in the process of realizing this application, the inventors discovered that the related technology at least lacks the problem of adjusting the music according to the driving process. Summary of the Invention

[0006] In view of this, the purpose of this application is to provide a method, device, medium, and product for tuning in-vehicle music, which can determine the track control parameters of each audio track according to the vehicle's driving parameters to control each audio track of the music, so that the music can be dynamically adjusted according to the vehicle's driving process, enhancing the interactivity between music and driving, and improving the driver's driving experience. The specific solution is as follows:

[0007] Firstly, this application provides a method for tuning in-vehicle music, including:

[0008] While the target music is playing on the vehicle's playback device, the vehicle's driving parameters are acquired;

[0009] The track control parameters corresponding to each audio track are determined based on the vehicle's driving parameters.

[0010] Based on the track control parameters, the audio data of each audio track of the target music is adjusted to obtain the adjusted audio data corresponding to each audio track;

[0011] Based on the adjusted audio data corresponding to each of the audio tracks, a tuned target music is generated, and the tuned target music is played.

[0012] In one embodiment, determining the track control parameters corresponding to each audio track based on the vehicle's driving parameters includes:

[0013] The current speed change state of the vehicle is determined based on the vehicle's driving parameters;

[0014] The track control parameters of each audio track corresponding to the current speed change state are determined by using a preset mapping relationship.

[0015] In one embodiment, adjusting the audio data of each audio track of the target music based on the track control parameters includes:

[0016] Determine the parameter values ​​of the track control parameters;

[0017] The audio data of each audio track of the target music is adjusted based on the parameter values ​​of the track control parameters.

[0018] In one embodiment, when the current speed change state of the vehicle is a change in the magnitude of acceleration, the track control parameters corresponding to each audio track are the cutoff frequency parameters of the low-pass filter of each audio track.

[0019] Accordingly, determining the parameter values ​​of the track control parameters includes:

[0020] Determine the first rate of change of pedal pressure over time;

[0021] Based on the first rate of change and the preset rate of change coefficient, the second rate of change of the cutoff frequency of the low-pass filter of each audio track with time is determined.

[0022] The parameter value of the cutoff frequency parameter of the low-pass filter is dynamically adjusted based on the second rate of change.

[0023] In one embodiment, when the current speed change state of the vehicle is a change in speed direction, the track control parameters corresponding to each audio track are the sound image parameters of each audio track.

[0024] Accordingly, determining the parameter values ​​of the track control parameters includes:

[0025] Determine the current steering angle of the vehicle;

[0026] Based on the current turning angle and the preset scaling factor, the parameter values ​​of the audio image parameters corresponding to each audio track are dynamically adjusted.

[0027] In one embodiment, when the current speed change state of the vehicle is a change in speed magnitude, the track control parameter corresponding to each audio track is the volume parameter corresponding to each audio track.

[0028] Accordingly, determining the parameter values ​​of the track control parameters includes:

[0029] From the audio tracks described, determine the first target audio track that meets the preset frequency conditions;

[0030] The volume parameter value of the first target audio track is dynamically adjusted based on the current speed of the vehicle.

[0031] In one embodiment, the preset frequency condition is that the audio frequency corresponding to the audio track is greater than a preset frequency threshold.

[0032] In one embodiment, dynamically adjusting the volume parameter value of the first target audio track based on the current speed of the vehicle includes:

[0033] Based on the current speed of the vehicle, the volume parameter value of the first target audio track is dynamically adjusted linearly or non-linearly.

[0034] The current speed of the vehicle is positively or negatively correlated with the value of the volume parameter.

[0035] In one embodiment, the process of determining the parameter values ​​of the track control parameters further includes:

[0036] Determine a second target audio track from among the audio tracks that does not meet the preset frequency conditions;

[0037] Configure the volume parameter value of the second target audio track to a preset volume value.

[0038] In one embodiment, before acquiring the driving parameters of the vehicle, the method further includes:

[0039] When the second target audio track is not present in the target music, the beat positions in the target music are detected, and the target audio is added to each beat position to add an audio track that does not meet the preset frequency condition to the target music; the audio frequency of the target audio is not greater than the preset frequency threshold.

[0040] In one embodiment, before acquiring the driving parameters of the vehicle, the method further includes:

[0041] When the proportion of blank audio tracks in the target music is greater than a preset proportion, a new audio track is generated based on the non-blank audio tracks in the target music, and the new audio track is added to the target music.

[0042] In one embodiment, playing the tuned target music includes:

[0043] The tuned target music is segmented according to its composition, and the segmented audio data are spliced ​​together based on the musical structure to play the spliced ​​target music.

[0044] Secondly, this application provides an electronic device, comprising:

[0045] Memory, used to store computer programs;

[0046] A processor for executing the computer program to implement the aforementioned in-vehicle music tuning method.

[0047] Thirdly, this application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned method for tuning in-vehicle music.

[0048] Fourthly, this application provides a computer program product, including a computer program / instructions, which, when executed by a processor, implements the aforementioned method for tuning in-vehicle music.

[0049] In this application, during the playback of target music on a vehicle's playback device, the vehicle's driving parameters are acquired; based on the vehicle's driving parameters, track control parameters corresponding to each audio track are determined; based on the track control parameters, the audio data of each audio track of the target music is adjusted to obtain adjusted audio data corresponding to each audio track; based on the adjusted audio data corresponding to each audio track, a tuned target music is generated, and the tuned target music is played. Therefore, this application, during the playback of target music on an in-vehicle playback device, needs to determine the track control parameters of each audio track based on the vehicle's driving parameters to control each audio track of the target music. This allows the target music to be dynamically adjusted according to the vehicle's driving process, not only enhancing the interactivity between music and the driving process but also making the music more compatible with the driver's driving behavior, thus improving the driver's driving experience. Attached Figure Description

[0050] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0051] Figure 1 is a diagram of the tuning system architecture for in-vehicle music disclosed in this application;

[0052] Figure 2 is a flowchart of a tuning method for in-vehicle music disclosed in this application;

[0053] Figure 3 is a schematic diagram of an audio track control disclosed in this application;

[0054] Figure 4 is a schematic diagram of an audio data splicing method disclosed in this application;

[0055] Figure 5 is a schematic diagram of a bass drum audio addition method disclosed in this application;

[0056] Figure 6 is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0058] For in-car music playback, drivers and passengers typically control playback and pause, song switching, and volume adjustment via physical buttons, touchscreens, or voice commands. However, this method only focuses on music playback and ignores the interaction between the music and the driving process. Therefore, this application provides a method for tuning in-car music that determines the track control parameters of each audio track based on the vehicle's driving parameters. This allows for dynamic adjustment of the music according to the driving process, enhancing the interactivity between the music and the driving experience and improving the driver's driving experience.

[0059] The system framework used in the in-vehicle music tuning method of this application can be specifically referred to in Figure 1, which may include the vehicle's playback device 01 and the back-end server 02.

[0060] In this application, the backend server 02 is used to execute the steps of the in-vehicle music tuning method, including: during the playback of target music on the vehicle's playback device 01, acquiring the vehicle's driving parameters, and determining the track control parameters corresponding to each audio track based on the vehicle's driving parameters; then adjusting the audio data of each audio track of the target music based on the track control parameters to obtain the adjusted audio data corresponding to each audio track; generating the tuned target music based on the adjusted audio data corresponding to each audio track, and controlling the vehicle's playback device 01 to play the tuned target music.

[0061] Referring to Figure 2, this application discloses a method for tuning in-vehicle music, including:

[0062] Step S11: While the target music is playing on the vehicle's playback device, obtain the vehicle's driving parameters.

[0063] The in-vehicle music tuning method disclosed in this application is applied to a backend server. Specifically, during the playback of target music on the vehicle's playback device, the backend server acquires the vehicle's driving parameters in real time; these driving parameters include, but are not limited to, the vehicle's speed, acceleration, steering angle, and parameters corresponding to other vehicle components, such as windshield wipers, headlights, taillights, and turn signals.

[0064] It should be noted that vehicle driving parameters can reflect the driver's driving behavior, the vehicle's driving process, and the surrounding driving environment. Furthermore, vehicle driving parameters can be obtained through vehicle sensors or from the vehicle's dashboard.

[0065] It should also be noted that the target music can be music selected by the driver, music included in the default music playlist, or music played randomly. In this embodiment of the application, by integrating a cloud-based music library into the in-vehicle music tuning system, a richer and wider range of music choices can be provided to the driver.

[0066] Step S12: Determine the track control parameters corresponding to each audio track based on the vehicle's driving parameters.

[0067] In this embodiment of the application, after obtaining the driving parameters of the vehicle, the track control parameters corresponding to each audio track can be determined based on the driving parameters of the vehicle; wherein, each audio track is an audio track obtained by splitting the target music into tracks using sound source separation technology, and one audio track can correspond to one or more track control parameters.

[0068] Specifically, the current speed change state of the vehicle is determined based on the vehicle's driving parameters, and the track control parameters of each audio track corresponding to the current speed change state are determined using a preset mapping relationship. The preset mapping relationship is a mapping relationship pre-constructed based on the speed change state and the corresponding track control parameters of each audio track; that is, each speed change state corresponds to one or more audio track track control parameters.

[0069] When determining the current speed change state of a vehicle based on its driving parameters, if the driving parameter is the vehicle's acceleration, the current speed change state is a change in the magnitude of acceleration; if the driving parameter is the vehicle's speed, the current speed change state is a change in the magnitude of speed; and if the driving parameter is the vehicle's steering angle, the current speed change state is a change in the direction of speed.

[0070] Furthermore, the audio tracks in this embodiment can be categorized according to the type of instrument: bass, drum1 / kick, drum2 / Percussions, acoustic guitar, electric guitar, electric piano, piano, string, etc. In addition to the instruments mentioned above, the audio tracks may also include vocals, pad sounds, lead sounds, or other sounds.

[0071] Track control parameters include volume gain, low-pass filter cutoff, pan, and other parameters, such as reverb and other effects. The low-pass filter allows low-frequency signals below the cutoff frequency to pass through, while blocking or attenuating high-frequency signals above or equal to the cutoff frequency.

[0072] In practical applications, the volume level of an audio track can be controlled by adjusting its volume parameters; the listening experience of an audio track can be controlled by adjusting the cutoff frequency parameter of its low-pass filter; and the volume ratio of the left and right channels of an audio track can be controlled by adjusting its image parameters.

[0073] Step S13: Adjust the audio data of each audio track of the target music based on the track control parameters to obtain the adjusted audio data corresponding to each audio track.

[0074] In this embodiment of the application, after determining the track control parameters corresponding to each audio track, the audio data of the corresponding audio track of the target music can be adjusted based on the track control parameters corresponding to each audio track to obtain the adjusted audio data corresponding to each audio track.

[0075] Specifically, after determining the track control parameters corresponding to each audio track, it is necessary to first determine the parameter values ​​of the track control parameters, and then adjust the audio data of each audio track of the target music based on the parameter values ​​of the track control parameters to obtain the adjusted audio data corresponding to each audio track.

[0076] According to one embodiment, when the vehicle's current speed change is a change in acceleration magnitude, the track control parameter corresponding to each audio track is the cutoff frequency parameter of the low-pass filter for each audio track. Determining the value of the track control parameter requires first determining the first rate of change of pedal pressure over time. Then, based on the first rate of change and a preset rate of change coefficient, a second rate of change of the cutoff frequency of the low-pass filter for each audio track over time is determined. The parameter value of the cutoff frequency parameter of the low-pass filter is then dynamically adjusted based on the second rate of change.

[0077] It should be noted that the pedals mentioned in this embodiment include the accelerator pedal and the brake pedal. When the pedal pressure changes rapidly, it indicates that the driver is pressing the accelerator or brake hard. This will cause a rapid change in the magnitude of vehicle acceleration, that is, a rapid change in the vehicle's driving state. Therefore, by setting the track control parameters corresponding to each audio track to the cutoff frequency parameters of the low-pass filter of each audio track, and dynamically adjusting the cutoff frequency of the low-pass filter of the audio track by the pedal pressure, the transient state of the audio track can be controlled.

[0078] Taking the brake pedal as an example, when braking hard, the pedal pressure changes rapidly over time. Correspondingly, the cutoff frequency of the low-pass filter also changes rapidly over time. For example, the cutoff frequency of the low-pass filter may experience a rapid decrease followed by a rebound, thus providing the driver with a momentary audible sensation of a sudden pull. When the cutoff frequency of the low-pass filter changes linearly with time, its formula can be expressed as:

[0079] in, The cutoff frequency f of the low-pass filter is represented by c (t) represents the rate of change of time t, and, This represents the minimum cutoff frequency of the low-pass filter. This indicates the maximum value of the cutoff frequency of the low-pass filter; This represents the rate of change of pedal pressure p(t) with time t, and p(t) ranges from 0 to 1, where 0 indicates that the pedal is not pressed and 1 indicates that the pedal is fully pressed; k1 represents the preset descent rate coefficient; k2 represents the preset ascent rate coefficient.

[0080] According to another embodiment, when the vehicle's current speed change state is a change in speed direction, the track control parameters corresponding to each audio track are the sound image parameters of each audio track. In this case, determining the parameter values ​​of the track control parameters requires first determining the vehicle's current steering angle, and then dynamically adjusting the parameter values ​​of the sound image parameters corresponding to each audio track based on the current steering angle and a preset proportional coefficient.

[0081] It should be noted that when the vehicle turns (left or right), the vehicle's speed and direction will change accordingly. To provide listeners with an auditory experience of turning, the track control parameters corresponding to each audio track can be set as the audio image parameters of each audio track. The parameter values ​​of the audio image parameters are dynamically adjusted by the vehicle's turning angle, thereby controlling the volume ratio of the left and right channels of the audio track. The linear change of the audio image parameters with the turning angle when the vehicle is turning is shown in the following formula: pan=k*turn;

[0082] Where pan represents the audio track's image parameter value, k represents the preset scaling factor, turn represents the turning angle, and 0 represents no turning.

[0083] According to another embodiment, when the vehicle's current speed change state is a speed magnitude change, the track control parameter corresponding to each audio track is the volume parameter corresponding to each audio track. In this case, determining the parameter value of the track control parameter requires first identifying a first target audio track that meets a preset frequency condition from among the audio tracks, and then dynamically adjusting the volume parameter value of the first target audio track according to the vehicle's current speed. For a second target audio track that does not meet the preset frequency condition, the volume parameter value of the second target audio track can be configured to a preset volume value. The preset frequency condition is that the audio frequency corresponding to the audio track is greater than a preset frequency threshold.

[0084] It should be noted that audio tracks are generally divided into low-frequency audio tracks and mid-to-high-frequency audio tracks. Typically, low-frequency audio tracks are mainly used to provide a stable and sustained musical rhythm and will play continuously, while mid-to-high-frequency audio tracks are mainly used to provide the melody / texture of the music, which can bring about changes in the listening experience. Therefore, the volume parameters of the audio tracks can be used to reflect the differences in adjustment between low-frequency and mid-to-high-frequency audio tracks.

[0085] For the first target audio track that meets the preset frequency conditions, since the audio frequency of the first target audio track is greater than the preset frequency threshold, that is, the first target audio track belongs to the mid-to-high frequency audio track, the volume parameter value of the first target audio track can be dynamically adjusted according to the current speed of the vehicle.

[0086] For example, the volume parameter value of the first target audio track can be dynamically adjusted linearly or nonlinearly based on the current speed of the vehicle; wherein the current speed of the vehicle and the volume parameter value are positively or negatively correlated.

[0087] Taking the positive correlation between the vehicle's current speed and the volume parameter as an example, the higher the vehicle's current speed, the higher the volume parameter value of the audio track. That is, as the vehicle's speed increases, the volume of the audio track will gradually increase, and the magnitude and timing of this increase depend on the specific situation. In this case, the relationship between the vehicle's current speed and the volume parameter value can be expressed by the following formula:

[0088] Where gain represents the value of the volume parameter, speed represents the current speed of the vehicle, a, b, and k represent the preset control parameters of the audio track, and s represents the preset switching speed.

[0089] For the second target audio track that does not meet the preset frequency condition, since the audio frequency of the second target audio track is less than or equal to the preset frequency threshold, that is, the second target audio track belongs to the low frequency audio track, the volume parameter value of the second target audio track can be directly configured to the preset volume value.

[0090] It should be noted that the low-frequency audio tracks in this embodiment may include bass and drums (drum1 / kick), etc.; the mid-to-high frequency audio tracks may include drums (drum2 / Percussions), acoustic guitar, electric guitar, electric piano, piano, strings, vocals, etc.

[0091] In order to achieve layered entry of each audio track and hierarchical response to the vehicle driving process, a second target audio track with an audio frequency less than or equal to a preset frequency threshold can be introduced first. Then, based on the second target audio track, a first target audio track with an audio frequency greater than the preset frequency threshold can be introduced.

[0092] When both the first and second target audio tracks contain multiple audio tracks, the multiple audio tracks contained in the second target audio track can be introduced layer by layer when introducing the second target audio track; similarly, the multiple audio tracks contained in the first target audio track can also be introduced layer by layer when introducing the first target audio track.

[0093] It should be noted that for the multiple audio tracks contained in the first target audio track and the multiple audio tracks contained in the second target audio track, the order in which the audio tracks are introduced layer by layer can be preset by the in-vehicle music tuning system, or the order in which the audio tracks are introduced layer by layer can be customized by the user. There is no limitation here.

[0094] The following explanation illustrates the layered introduction of multiple audio tracks within a second target audio track, using the example of a kick drum track and a bass track within the second target audio track. As shown in Figure 3, when the vehicle is started but not yet moving (i.e., when the vehicle's speed is constant at zero), the bass track's volume is first set to a preset value, thus introducing the bass track. When the vehicle starts moving (i.e., when the vehicle's speed changes from zero to non-zero), the kick drum track's volume is set to a preset value, introducing the kick drum track on top of the bass track. When the vehicle stops but is not turned off (i.e., when the vehicle's speed changes from non-zero to zero), the kick drum track's volume is first set to zero, thus removing the kick drum track. When the vehicle is turned off, the bass track's volume is then set to zero, removing the bass track. In this way, during driving, the low-frequency audio tracks are layered and removed as the vehicle's speed changes, enhancing the musical layering and improving the driver's music and driving experience.

[0095] Step S14: Generate tuned target music based on the adjusted audio data corresponding to each audio track, and play the tuned target music.

[0096] In this embodiment of the application, after obtaining the adjusted audio data corresponding to each audio track, it is necessary to generate the tuned target music based on the adjusted audio data corresponding to each audio track, and control the vehicle's playback device to play the tuned target music.

[0097] To extend the playback time of a single song, this embodiment can segment the tuned target music according to its composition, and then splice the segmented audio data based on the song's structure to control the vehicle's playback device to play the spliced ​​target music. In this way, for songs that the driver prefers, the playback time of a single song can be extended, improving the driver's listening experience.

[0098] The song consists of an intro, verse, chorus, interlude, and end. Furthermore, based on the song's structural composition, the segmented audio data needs to be spliced ​​together, and the splicing points need to be smoothed to improve the quality and smoothness of the resulting music.

[0099] As shown in Figure 4, the tuned target music can be divided into intro, verse, chorus, interlude, and end according to the song composition. Then, based on the song structure, the parts are spliced ​​together in the order of intro, verse, chorus, interlude, verse, and chorus to obtain the spliced ​​target music.

[0100] It should be noted that since low-frequency audio tracks are mainly used to provide a stable and sustained musical rhythm, if some music lacks low-frequency audio tracks, then low-frequency audio tracks need to be added to these music tracks.

[0101] Specifically, before acquiring the vehicle's driving parameters, if there is no second target audio track in the target music with an audio frequency less than or equal to a preset frequency threshold, then the position of each beat in the target music is detected, and target audio with an audio frequency less than or equal to the preset frequency threshold is added to each beat position, thereby adding an audio track with an audio frequency less than or equal to the preset frequency threshold to the target music.

[0102] In addition to detecting beat positions, the system can also detect key positions or drum notation information in the target music. Furthermore, the target audio with an audio frequency less than or equal to a preset frequency threshold can include bass drum audio, bass guitar audio, etc., without limitation.

[0103] As shown in Figure 5, the beat position (beat pos) in the target music is detected, and an additional kick drum audio is added to each beat position (beat pos). The audio frequency of the kick drum audio is less than or equal to a preset frequency threshold.

[0104] It should also be noted that, since many audio tracks in some types of music are blank, such as classical music, the effect of adjusting the music according to the driving process may be reduced. Therefore, new audio tracks can be generated for these types of music to enrich the layers of the music and improve the driver's auditory experience.

[0105] Specifically, before obtaining the vehicle's driving parameters, if the proportion of blank audio tracks in the target music is greater than the preset proportion, a new audio track is generated based on the non-blank audio tracks in the target music, thereby adding a new audio track to the target music.

[0106] Specifically, generating a new audio track based on non-blank audio tracks in the target music can involve determining the music type and / or MIR (Music Information Retrieval) information of the target music, and using the music type and / or MIR information to generate a new audio track for the target music based on the non-blank audio tracks in the target music.

[0107] In addition, by performing music structure detection on the target music, appropriate sound effects can be introduced at certain points in the target music to enrich the listening experience.

[0108] Therefore, it can be seen that in the process of playing target music on the in-vehicle playback device, this application needs to determine the track control parameters of each audio track according to the vehicle's driving parameters in order to control each audio track of the target music. This allows the target music to be dynamically adjusted according to the vehicle's driving process, which not only enhances the interactivity between music and driving, but also makes the music more in line with the driver's driving behavior and improves the driver's driving experience.

[0109] Since the vehicle's speed changes constantly during driving, the following section will take a complete driving process as an example to describe in detail the adjustment process of the track control parameters of each audio track of the target music under different speed changes.

[0110] When the vehicle is stationary, i.e., its current speed is zero: the volume of the low-frequency bass track is set based on a preset volume value, for example, slightly higher than the preset volume value, to control the bass track to enter; the cutoff frequency and volume of the pad's low-pass filter are reduced, and the low-pass filter of the master track is turned on. The master track is the overall output of all audio tracks in the target music.

[0111] When the vehicle is traveling at low speeds (0km / h-20km / h), i.e., when the vehicle's current speed change is a change in magnitude: the volume of the low-frequency bass track is set based on a preset volume value to control the bass track to enter; simultaneously, the volume of the bass track is controlled to decrease to the preset volume value. Since only low-frequency audio tracks (bass and bass tracks) are available at this time, some enhancements can be applied to the low-frequency audio tracks, such as adding a LowShelf filter; the LowShelf filter is used to enhance or attenuate frequency components below a certain frequency point.

[0112] When the vehicle is at a medium speed (20km / h-40km / h), that is, when the vehicle's current speed changes include changes in speed and acceleration: introduce a mid-to-high frequency instrument track, such as an acoustic guitar, electric guitar, or electric piano, and make the volume of the mid-to-high frequency instrument track gradually increase with the increase of vehicle speed until the volume reaches full volume. At the same time, increase the cutoff frequency of the low-pass filter for the lead and pad tones.

[0113] When the vehicle is traveling at high speed (>40km / h), that is, when the vehicle's current speed change is a change in speed magnitude: control the volume of the human voice (vocals) to quickly rise from 0 to the preset volume value.

[0114] When a vehicle turns left, that is, when the vehicle's current speed changes, including changes in speed direction and acceleration magnitude: the cutoff frequency of the low-pass filter controlling the audio master track decreases rapidly and then recovers. The vocal image shifts to the left; if there is no vocal during the turn, other audio tracks can be used to replace the vocal.

[0115] When the vehicle is at a medium speed again (20km / h-40km / h), that is, when the vehicle's current speed change is a change in speed magnitude: the volume of the vocals and background timbre gradually decreases as the speed decreases.

[0116] When the vehicle slows down again (0km / h-20km / h), that is, when the vehicle's current speed change includes changes in speed and acceleration: the control of the high-frequency instrument track gradually fades out, that is, the cutoff frequency and volume of the low-pass filter controlling the high-frequency instrument track gradually decrease to zero.

[0117] When the vehicle comes to a stop again, that is, when the vehicle's current speed change includes changes in both speed and acceleration: the bass track volume is slightly increased, slightly exceeding the preset volume value. The cutoff frequency and volume of the low-pass filters for the melody and base notes are gradually decreased, the bass drum track volume is gradually reduced to zero, and the low-pass filter for the master audio track is turned on.

[0118] It should be noted that the speed ranges and values, as well as the track control parameters and adjustment methods listed above for vehicle driving are only illustrative examples. In actual applications, specific adjustments can be made based on actual driving needs and the driver's personal preferences.

[0119] This application also discloses an electronic device. FIG6 is a structural diagram of an electronic device 10 according to an exemplary embodiment. The content in the figure should not be considered as any limitation on the scope of use of this application.

[0120] Figure 6 is a schematic diagram of the structure of an electronic device 10 provided in an embodiment of this application. The electronic device 10 specifically includes: at least one processor 11, at least one memory 12, a power supply 13, a communication interface 14, an input / output interface 15, and a communication bus 16. The memory 12 stores a computer program, which is loaded and executed by the processor 11 to implement the relevant steps in the vehicle music tuning method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 10 in this embodiment can specifically be a computer.

[0121] In this embodiment, the power supply 13 is used to provide operating voltage for each hardware device on the electronic device 10; the communication interface 14 can create a data transmission channel between the electronic device 10 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 15 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0122] In addition, the memory 12, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 121, computer program 122, etc., and the storage method can be temporary storage or permanent storage.

[0123] The operating system 121 is used to manage and control the various hardware devices on the electronic device 10 and the computer program 122, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the in-vehicle music tuning method executed by the electronic device 10 as disclosed in any of the foregoing embodiments, the computer program 122 may also include computer programs capable of performing other specific tasks.

[0124] This application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned in-vehicle music tuning method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0125] This application also discloses a computer program product, including a computer program / instructions, wherein the computer program / instructions, when executed by a processor, implement the aforementioned in-vehicle music tuning method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0126] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0127] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0128] The above provides a detailed description of a tuning method, apparatus, electronic device, and medium for in-vehicle music provided by this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A tuning method of in-vehicle music, wherein, include: While the target music is playing on the vehicle's playback device, the vehicle's driving parameters are acquired; The track control parameters corresponding to each audio track are determined based on the vehicle's driving parameters. Based on the track control parameters, the audio data of each audio track of the target music is adjusted to obtain the adjusted audio data corresponding to each audio track; Based on the adjusted audio data corresponding to each of the audio tracks, a tuned target music is generated, and the tuned target music is played.

2. The tuning method of the in-vehicle music according to claim 1, wherein The determination of track control parameters corresponding to each audio track based on the vehicle's driving parameters includes: The current speed change state of the vehicle is determined based on the vehicle's driving parameters; The track control parameters of each audio track corresponding to the current speed change state are determined by using a preset mapping relationship.

3. The method for tuning in-vehicle music according to claim 2, wherein, The adjustment of the audio data of each audio track of the target music based on the track control parameters includes: Determine the parameter values ​​of the track control parameters; The audio data of each audio track of the target music is adjusted based on the parameter values ​​of the track control parameters.

4. The method of tuning the in-vehicle music according to claim 3, wherein, When the current speed change state of the vehicle is a change in the magnitude of acceleration, the track control parameters corresponding to each audio track are the cutoff frequency parameters of the low-pass filter of each audio track. Accordingly, determining the parameter values ​​of the track control parameters includes: Determine the first rate of change of pedal pressure over time; Based on the first rate of change and the preset rate of change coefficient, the second rate of change of the cutoff frequency of the low-pass filter of each audio track with time is determined. The parameter value of the cutoff frequency parameter of the low-pass filter is dynamically adjusted based on the second rate of change.

5. The method of tuning the in-vehicle music according to claim 3, wherein, When the current speed change state of the vehicle is a change in speed direction, the track control parameters corresponding to each audio track are the sound image parameters of each audio track. Accordingly, determining the parameter values ​​of the track control parameters includes: Determine the current steering angle of the vehicle; Based on the current turning angle and the preset scaling factor, the parameter values ​​of the audio image parameters corresponding to each audio track are dynamically adjusted.

6. The method of tuning the in-vehicle music according to claim 3, wherein, When the vehicle's current speed changes, the track control parameters corresponding to each audio track are the volume parameters corresponding to each audio track. Accordingly, determining the parameter values ​​of the track control parameters includes: From the audio tracks described, determine the first target audio track that meets the preset frequency conditions; The volume parameter value of the first target audio track is dynamically adjusted based on the current speed of the vehicle.

7. The method for tuning in-vehicle music according to claim 6, wherein, The preset frequency condition is that the audio frequency corresponding to the audio track is greater than a preset frequency threshold.

8. The method for tuning in-vehicle music according to claim 6, wherein, The step of dynamically adjusting the volume parameter value of the first target audio track based on the current speed of the vehicle includes: Based on the current speed of the vehicle, the volume parameter value of the first target audio track is dynamically adjusted linearly or non-linearly. The current speed of the vehicle is positively or negatively correlated with the value of the volume parameter.

9. The method for tuning in-vehicle music according to claim 6, wherein, The process of determining the parameter values ​​of the track control parameters also includes: Determine a second target audio track from among the audio tracks that does not meet the preset frequency conditions; Configure the volume parameter value of the second target audio track to a preset volume value.

10. The method for tuning in-vehicle music according to claim 9, wherein, Before acquiring the driving parameters of the vehicle, the process also includes: When the second target audio track is not present in the target music, the beat positions in the target music are detected, and the target audio is added to each beat position to add an audio track that does not meet the preset frequency condition to the target music; the audio frequency of the target audio is not greater than the preset frequency threshold.

11. The method for tuning in-vehicle music according to any one of claims 1 to 10, wherein, Before acquiring the driving parameters of the vehicle, the process also includes: When the proportion of blank audio tracks in the target music is greater than a preset proportion, a new audio track is generated based on the non-blank audio tracks in the target music, and the new audio track is added to the target music.

12. The method for tuning in-vehicle music according to any one of claims 1 to 10, wherein, Playing the tuned target music includes: The tuned target music is segmented according to its composition, and the segmented audio data are spliced ​​together based on the musical structure to play the spliced ​​target music.

13. An electronic device, wherein, include: Memory, used to store computer programs; A processor for executing the computer program to implement the tuning method for in-vehicle music as described in any one of claims 1 to 12.

14. A computer-readable storage medium, wherein, Used to store a computer program, which, when executed by a processor, implements the tuning method for in-vehicle music as described in any one of claims 1 to 12.

15. A computer program product comprising a computer program / instructions, wherein, When the computer program / instruction is executed by the processor, it implements the tuning method for in-vehicle music as described in any one of claims 1 to 12.