Tone tuning method and device for vehicle-mounted music, medium and product

By obtaining vehicle driving parameters and dynamically adjusting audio track control parameters, the problem that the existing on-board music system cannot adjust music according to the real-time driving process is solved, and the interaction between music and driving process and driving experience is improved.

CN119536683APending Publication Date: 2025-02-28TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 0 Cites 7 Cited by

Patent Information

Application Number
CN202411728251.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing on-board music system cannot adjust the music according to the real-time driving process, resulting in a reduced driving experience.

Method used

By obtaining the driving parameters of the vehicle, determining the track control parameters of each audio track, and dynamically adjusting the audio data of the music to generate the tuned target music.

Benefits of technology

It enhances the interaction between music and the driving process, makes the music more in line with the driver's driving behavior, and improves the driver's driving experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536683A_ABST
    Figure CN119536683A_ABST
Patent Text Reader

Abstract

The invention discloses a tuning method and device for vehicle-mounted music, a medium and a product, and relates to the technical field of music playing, and the method comprises the steps: obtaining the driving parameters of a vehicle in a process that a playing device of the vehicle plays target music; determining a track control parameter corresponding to each audio track based on the driving parameter of the vehicle; adjusting audio data of each audio track of the target music based on the track control parameters to obtain adjusted audio data corresponding to each audio track; and generating tuned target music based on the adjusted audio data corresponding to each audio track, and playing the tuned target music. The track control parameters of the audio tracks are determined according to the driving parameters of the vehicle so as to control the audio tracks of the music, so that the music can be dynamically adjusted according to the driving process of the vehicle, the interactivity between the music and the driving process is enhanced, and the driving experience of a driver is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of music playing, and in particular to a tuning method, device, medium and product for in-vehicle music. Background Art

[0002] With the increasing popularity of streaming music platforms, music has become an indispensable part of daily life. In particular, the playback of in-car music has brought pleasure to many drivers during long driving processes.

[0003] Many in-car music systems allow users to preset playlists, that is, drivers can set the music they want to listen to before setting off, and drivers and passengers can control the play and pause of music, song switching, and volume adjustment through physical buttons, touch screens, or voice commands in the car. However, this method usually only focuses on the playback of the music itself, ignoring the interaction between music and the driving process, that is, the music cannot be adjusted according to real-time conditions during driving, which may reduce the driver's driving experience.

[0004] In summary, in the process of implementing the present application, the inventors discovered that the prior art at least lacks the problem of adjusting the music according to the driving process. Summary of the invention

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

[0006] In a first aspect, the present application provides a method for tuning in-vehicle music, comprising:

[0007] Acquiring driving parameters of the vehicle while the playback device of the vehicle plays the target music;

[0008] Determining track control parameters corresponding to each audio track based on the driving parameters of the vehicle;

[0009] Adjusting the audio data of each audio track of the target music based on the track control parameter to obtain adjusted audio data corresponding to each audio track;

[0010] Generate tuned target music based on the adjusted audio data corresponding to each of the audio tracks, and play the tuned target music.

[0011] Optionally, determining the track control parameters corresponding to each audio track based on the driving parameters of the vehicle includes:

[0012] determining a current speed change state of the vehicle based on a driving parameter of the vehicle;

[0013] Determine the track control parameters of each audio track corresponding to the current speed change state by using a preset mapping relationship;

[0014] Correspondingly, adjusting the audio data of each audio track of the target music based on the track control parameter includes:

[0015] Determining a parameter value of the track control parameter;

[0016] The audio data of each of the audio tracks of the target music is adjusted based on the parameter value of the track control parameter.

[0017] Optionally, when the current speed change state of the vehicle is a change in acceleration, the track control parameter corresponding to each audio track is a cutoff frequency parameter of a low-pass filter of each audio track;

[0018] Accordingly, the step of determining the parameter value of the track control parameter includes:

[0019] determining a first rate of change of pedal pressure over time;

[0020] Determine a second change rate of the cutoff frequency of the low-pass filter of each audio track over time based on the first change rate and a preset rate change coefficient;

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

[0022] Optionally, when the current speed change state of the vehicle is a speed direction change, the track control parameters corresponding to each audio track are the sound and image parameters of each audio track;

[0023] Accordingly, the step of determining the parameter value of the track control parameter includes:

[0024] determining a current steering angle of the vehicle;

[0025] Based on the current steering angle and the preset proportionality coefficient, the parameter values ​​of the sound and image parameters corresponding to each audio track are dynamically adjusted.

[0026] Optionally, when the current speed change state of the vehicle is a speed change, the track control parameter corresponding to each audio track is a volume parameter corresponding to each audio track;

[0027] Accordingly, the step of determining the parameter value of the track control parameter includes:

[0028] Determine a first target audio track that meets a preset frequency condition from each of the audio tracks;

[0029] According to the current speed of the vehicle, a parameter value of the volume parameter of the first target audio track is dynamically adjusted.

[0030] Optionally, the preset frequency condition is that the audio frequency corresponding to the audio track is greater than a preset frequency threshold.

[0031] Optionally, dynamically adjusting a volume parameter value of the first target audio track according to the current speed of the vehicle includes:

[0032] Dynamically adjusting a volume parameter of the first target audio track linearly or nonlinearly according to the current speed of the vehicle;

[0033] There is a positive correlation or a negative correlation between the current speed of the vehicle and the parameter value of the volume parameter.

[0034] Optionally, the process of determining the parameter value of the track control parameter further includes:

[0035] Determine a second target audio track that does not meet a preset frequency condition from each of the audio tracks;

[0036] The parameter value of the volume parameter of the second target audio track is configured as a preset volume value.

[0037] Optionally, before obtaining the driving parameters of the vehicle, the method further includes:

[0038] If the second target audio track does not exist in the target music, each beat position in the target music is detected, and target audio is added at 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.

[0039] Optionally, before obtaining the driving parameters of the vehicle, the method further includes:

[0040] If 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 to add the new audio track to the target music.

[0041] Optionally, playing the tuned target music includes:

[0042] The tuned target music is segmented according to the composition of the song, and the audio data obtained after the segmentation are spliced ​​based on the form structure to play the spliced ​​target music.

[0043] In a second aspect, the present application provides an electronic device, including:

[0044] Memory, used to store computer programs;

[0045] A processor is used to execute the computer program to implement the aforementioned method for tuning in-vehicle music.

[0046] In a third aspect, the present 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-car music.

[0047] In a fourth aspect, the present application provides a computer program product, including a computer program / instruction, which implements the aforementioned method for tuning in-car music when executed by a processor.

[0048] In the present application, in the process of the vehicle's playback device playing the target music, the driving parameters of the vehicle are obtained; based on the vehicle's driving parameters, the 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 the adjusted audio data corresponding to each audio track; based on the adjusted audio data corresponding to each audio track, the tuned target music is generated and the tuned target music is played. It can be seen that in the process of the vehicle's playback device playing the target music, the track control parameters of each audio track need to be determined according to the vehicle's driving parameters to control each audio track of the target music, so that the target music can be dynamically adjusted according to the vehicle's driving process, which not only enhances the interactivity of the music and the driving process, but also makes the music more in line with the driver's driving behavior and improves the driver's driving experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0050] Figure 1 This is an architecture diagram of a tuning system for in-car music disclosed in this application;

[0051] Figure 2 A flow chart of a tuning method for in-car music disclosed in this application;

[0052] Figure 3 A schematic diagram of an audio track control disclosed in this application;

[0053] Figure 4 A schematic diagram of audio data splicing disclosed in this application;

[0054] Figure 5 A schematic diagram of adding a bass drum audio disclosed in the present application;

[0055] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] For the playback of in-car music, drivers and passengers usually control the playback and pause of music, song switching, and volume adjustment through physical buttons, touch screens, or voice commands in the car. However, this method only focuses on the playback of the music itself and ignores the interaction between the music and the driving process. To this end, the present application provides a tuning method for in-car music, which can determine the track control parameters of each audio track according to the driving parameters of the vehicle to control each audio track of the music, so that the music can be dynamically adjusted according to the driving process of the vehicle, thereby enhancing the interactivity between the music and the driving process and improving the driving experience of the driver.

[0058] In the tuning method of the in-car music of the present application, the system framework used can be specifically referred to in Figure 1 As shown, it may specifically include a vehicle playback device 01 and a background server 02 .

[0059] In the present application, the backend server 02 is used to execute the steps of the tuning method for in-vehicle music, including obtaining the driving parameters of the vehicle during the process of the vehicle's playback device 01 playing the target music, 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 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.

[0060] See also Figure 2 As shown, an embodiment of the present invention discloses a method for tuning in-vehicle music, comprising:

[0061] Step S11: Acquire driving parameters of the vehicle while the vehicle's playback device is playing the target music.

[0062] The tuning method of in-vehicle music disclosed in the embodiment of the present invention is applied to a background server. Specifically, when the vehicle's playback device plays the target music, the background server will obtain the vehicle's driving parameters in real time; wherein the vehicle's driving parameters include but are not limited to the vehicle's speed, acceleration, steering angle, and parameters corresponding to other vehicle components, and other vehicle components may include wipers, headlights, taillights, turn signals, etc.

[0063] It should be noted that the driving parameters of the vehicle can reflect the driving behavior of the driver, the driving process of the vehicle and the surrounding driving environment. In addition, the driving parameters of the vehicle can be collected by the vehicle sensor or obtained from the vehicle dashboard.

[0064] 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 the embodiment of the present invention, by integrating a cloud music library into the tuning system of the in-car music, the driver can be provided with a richer and wider range of music choices.

[0065] Step S12: determining track control parameters corresponding to each audio track based on the driving parameters of the vehicle.

[0066] In an embodiment of the present invention, after obtaining the driving parameters of the vehicle, the track control parameters corresponding to each audio track can be determined according to 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.

[0067] Specifically, the current speed change state of the vehicle is determined based on the driving parameters of the vehicle, 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 the track control parameters of one or more audio tracks.

[0068] Regarding determining the current speed change state of the vehicle based on the vehicle's driving parameters, when the vehicle's driving parameter is the vehicle's acceleration, the vehicle's current speed change state is a change in the magnitude of the acceleration; when the vehicle's driving parameter is the vehicle's speed, the vehicle's current speed change state is a change in the magnitude of the speed; when the vehicle's driving parameter is the vehicle's steering angle, the vehicle's current speed change state is a change in the direction of the speed.

[0069] Furthermore, the audio tracks in this embodiment can be divided into the following types according to the types of musical instruments: bass, drums (drum1 / kick), drums (drum2 / percussions), acoustic guitar, electric guitar, electric piano, piano, string, etc. In addition to the above-mentioned musical instruments, the audio tracks can also include vocals, pads, lead, or other.

[0070] Track control parameters include volume parameters (gain), low-pass filter cutoff frequency parameters (cutoff), pan parameters (pan), and other parameters, such as reverb (mixing) and other effect parameters. Among them, the low-pass filter allows low-frequency signals with audio frequencies lower than the cutoff frequency to pass, and blocks or weakens high-frequency signals with audio frequencies higher than or equal to the cutoff frequency.

[0071] In actual applications, by controlling the volume parameters of an audio track, you can control the volume of the audio track; by controlling the cutoff frequency parameters of the low-pass filter of an audio track, you can control the listening experience of the audio track; by controlling the pan parameters of an audio track, you can control the volume ratio of the left and right channels of the audio track.

[0072] Step S13: adjusting the audio data of each audio track of the target music based on the track control parameter to obtain adjusted audio data corresponding to each audio track.

[0073] In an embodiment of the present invention, 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 adjusted audio data corresponding to each audio track.

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

[0075] According to one of the embodiments, when the current speed change state of the vehicle is a change in acceleration, the track control parameter corresponding to each audio track is a cutoff frequency parameter of a low-pass filter of each audio track. At this time, for determining the parameter value of the track control parameter, it is necessary to first determine a first change rate of the pedal pressure over time, and then determine a second change rate of the cutoff frequency of the low-pass filter of each audio track over time based on the first change rate and a preset rate change coefficient, so as to dynamically adjust the parameter value of the cutoff frequency parameter of the low-pass filter based on the second change rate.

[0076] It should be noted that the pedals mentioned in this embodiment include an accelerator pedal and a brake pedal. When the pedal pressure changes rapidly, it means that the driver has stepped on the accelerator or the brake suddenly, which will bring about a rapid change in the acceleration of the vehicle, that is, a rapid change in the driving state of the vehicle. 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 through the pedal pressure, the transient state of the audio track can be controlled.

[0077] Take the brake pedal as an example. When the brake is pressed hard, the pedal pressure will change rapidly over time. Correspondingly, the cutoff frequency of the low-pass filter will also change rapidly over time. For example, the cutoff frequency of the low-pass filter can experience a rapid drop and then rise again, thus providing the driver with an instantaneous suction auditory experience. When the cutoff frequency of the low-pass filter changes linearly over time, the formula can be expressed as:

[0078] ;

[0079] in, Indicates the cutoff frequency of the low-pass filter Over time The rate of change, and , Represents the minimum cutoff frequency of the low-pass filter, Indicates the maximum value of the cutoff frequency of the low-pass filter; Indicates the pedal pressure Over time The rate of change of The range is between 0 and 1, where 0 means the pedal is not depressed and 1 means the pedal is fully depressed; Indicates the preset descent rate coefficient; Indicates the preset ascent rate coefficient.

[0080] According to another embodiment, when the current speed change state of the vehicle is a speed direction change, the track control parameters corresponding to each audio track are the sound and image parameters of each audio track. At this time, for determining the parameter value of the track control parameter, it is necessary to first determine the current steering angle of the vehicle, and dynamically adjust the parameter value of the sound and image parameter corresponding to each audio track based on the current steering angle and the preset proportional coefficient.

[0081] It should be noted that when the vehicle turns (left or right), the speed and direction of the vehicle will change accordingly. In order to give the audience an auditory experience of turning, the track control parameters corresponding to each audio track can be set as the sound and image parameters of each audio track. The parameter values ​​of the sound and image parameters of the audio track can be dynamically adjusted according to the steering angle of the vehicle, thereby realizing the control of the volume ratio of the left and right channels of the audio track. The linear change of the sound and image parameters with the steering angle when the vehicle is turning is shown in the following formula:

[0082] ;

[0083] in, The parameter value representing the pan parameter of the audio track. Indicates the preset scale factor, Indicates the steering angle, 0 means no steering.

[0084] According to another embodiment, when the current speed change state of the vehicle is a speed change, the track control parameter corresponding to each audio track is the volume parameter corresponding to each audio track. At this time, for determining the parameter value of the track control parameter, it is necessary to first determine the first target audio track that meets the preset frequency condition from each audio track, and dynamically adjust the parameter value of the volume parameter of the first target audio track according to the current speed of the vehicle. For the second target audio track that does not meet the preset frequency condition in each audio track, the parameter value of the volume parameter of the second target audio track can be configured as a preset volume value. Among them, the preset frequency condition is that the audio frequency corresponding to the audio track is greater than the preset frequency threshold.

[0085] It should be noted that audio tracks are usually divided into low-frequency audio tracks and mid-high frequency audio tracks. Usually, low-frequency audio tracks are mainly used to provide a stable and lasting sense of musical rhythm and will play continuously, while mid-high frequency audio tracks are mainly used to provide the melody / texture of the music, which can bring changes in the listening experience; therefore, the volume parameters of the audio tracks can be used to reflect the differential adjustments to low-frequency audio tracks and mid-high frequency audio tracks.

[0086] For the first target audio track that meets the preset frequency condition among the audio tracks, 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 medium and high frequency audio track, the parameter value of the volume parameter of the first target audio track can be dynamically adjusted according to the current speed of the vehicle.

[0087] Exemplarily, the parameter value of the volume parameter of the first target audio track can be linearly or nonlinearly dynamically adjusted according to the current speed of the vehicle; wherein the current speed of the vehicle and the parameter value of the volume parameter are positively correlated or negatively correlated.

[0088] Taking the positive correlation between the current speed of the vehicle and the value of the volume parameter as an example, the greater the current speed of the vehicle, the greater the value of the volume parameter of the audio track, that is, as the vehicle speed increases, the volume of the audio track will gradually increase, and the amplitude and time point of the increase depend on the specific situation. In this case, the relationship between the current speed of the vehicle and the value of the volume parameter can be expressed by the following formula:

[0089] ;

[0090] in, Indicates the parameter value of the volume parameter, Indicates the current speed of the vehicle. , , Represents the preset control parameters of an audio track. Indicates the preset switching speed.

[0091] For the second target audio track that does not meet the preset frequency condition in each audio track, 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 parameter value of the volume parameter of the second target audio track can be directly configured as the preset volume value.

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

[0093] In order to achieve the layered entry of various audio tracks and a hierarchical response to the vehicle driving process during vehicle driving, a second target audio track whose audio frequency is less than or equal to a preset frequency threshold can be introduced first, and then, based on the second target audio track, a first target audio track whose audio frequency is greater than the preset frequency threshold can be introduced.

[0094] In the case where both the first target audio track and the second target audio track contain multiple audio tracks, when introducing the second target audio track, the multiple audio tracks contained in the second target audio track may be further introduced layer by layer; correspondingly, when introducing the first target audio track, the multiple audio tracks contained in the first target audio track may be further introduced layer by layer.

[0095] It should be noted that, for the multiple audio tracks included in the first target audio track and the multiple audio tracks included in the second target audio track, the order in which the audio tracks are introduced layer by layer can be pre-set by the car music tuning system, or can be customized by the user, and there is no limitation here.

[0096] Here, for introducing multiple audio tracks included in the second target audio track layer by layer, an example is given in which the second target audio track includes a bass drum track and a bass track. Figure 3 As shown, when the vehicle starts but does not start, that is, when the speed of the vehicle is always zero, the volume of the bass track is first set to a preset volume value, thereby introducing the bass track. When the vehicle starts, that is, when the speed of the vehicle changes from zero to non-zero, the volume of the bass drum track is further set to a preset volume value, thereby introducing the bass drum track on the basis of the bass track. When the vehicle stops but does not shut down, that is, when the speed of the vehicle changes from non-zero to zero, the volume of the bass drum track is first set to zero, so that the bass drum track exits first. When the vehicle is shut down, the volume of the bass track is set to zero again, so that the bass track exits. In this way, during the driving process of the vehicle, as the speed of the vehicle changes, the low-frequency audio track is introduced and exited layer by layer, thereby improving the layering of the music and enhancing the driver's music experience and driving experience.

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

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

[0099] In order to extend the playback of a single song, the present embodiment can segment the tuned target music according to the composition of the song, and splice the audio data obtained after segmentation based on the form structure to control the vehicle's playback device to play the spliced ​​target music. In this way, for songs that the driver likes, the playback of a single song can be extended through the above method, thereby improving the driver's listening experience.

[0100] The composition of a song includes the song's intro, verse, chorus, interlude, and end, etc. Moreover, the splicing of the audio data obtained after segmentation based on the form structure requires smoothing of the splicing portion, thereby improving the quality and smoothness of the spliced ​​music.

[0101] like Figure 4 As shown in the figure, the tuned target music can be divided into intro, verse, chorus, interlude and end according to the composition of the song, and then spliced ​​in the order of intro, verse, chorus, interlude, verse and chorus based on the form structure to obtain the spliced ​​target music.

[0102] It should be noted that since low-frequency audio tracks are mainly used to provide a stable and lasting sense of musical rhythm, if some music lacks low-frequency audio tracks, it is necessary to add low-frequency audio tracks to these music.

[0103] Specifically, before obtaining the driving parameters of the vehicle, if there is no second target audio track with an audio frequency less than or equal to a preset frequency threshold in the target music, each beat position in the target music is detected, and target audio with an audio frequency less than or equal to the preset frequency threshold is added at 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.

[0104] In addition to detecting the beat positions (beat pos) in the target music, the key positions (key pos) or drum score information in the target music can also be detected. Furthermore, the target audio whose audio frequency is less than or equal to the preset frequency threshold can be bass drum audio, bass audio, etc., which is not limited here.

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

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

[0107] Specifically, before obtaining the driving parameters of the vehicle, if 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 track in the target music, thereby adding a new audio track to the target music.

[0108] Among them, for generating a new audio track based on the non-blank audio track in the target music, specifically, the music type and / or MIR (Music Information Retrieval) information of the target music can be determined, and the music type and / or MIR information can be used to generate a new audio track for the target music based on the non-blank audio track in the target music.

[0109] In addition, by performing music structure detection on the target music, suitable sound effects can be introduced at certain positions in the target music to enrich the listening experience of the music.

[0110] It can be seen from this that in the process of playing the target music by the in-vehicle playback device, the present application needs to determine the track control parameters of each audio track according to the driving parameters of the vehicle to control the audio tracks of the target music, so that the target music can be dynamically adjusted according to the driving process of the vehicle, which not only enhances the interactivity of the music and the driving process, but also makes the music more in line with the driver's driving behavior and improves the driver's driving experience.

[0111] Since the speed change state of the vehicle will continue to change during the vehicle driving process, the following will take a complete vehicle driving process as an example to describe in detail the process of adjusting the track control parameters of each audio track of the target music under different speed change states.

[0112] When the vehicle is stationary, that is, when the current speed of the vehicle is always zero: the volume of the low-frequency bass track is set based on the preset volume value, for example, the volume is set slightly larger than the preset volume value to control the entry of the bass track; and the cutoff frequency and volume of the low-pass filter of the pad sound (pad) are reduced, and the low-pass filter of the audio master track is controlled to be turned on. The audio master track is the overall output of each audio track of the target music.

[0113] When the vehicle is at a low speed (0km / h-20km / h), that is, when the current speed change state of the vehicle is a speed change: the volume of the low-frequency bass drum track is set based on the preset volume value to control the bass drum track to enter; at the same time, the volume of the bass track is controlled to drop to the preset volume value. Since there are only low-frequency audio tracks (bass drum track and bass track) at this time, some enhancements can be made to the low-frequency audio tracks, such as adding a LowShelf filter; among them, the LowShelf filter (shelf filter) is used to enhance or attenuate the frequency components below a certain frequency point.

[0114] When the vehicle is at medium speed (20km / h-40km / h), that is, when the current speed change state of the vehicle includes changes in speed and acceleration: introduce mid-high frequency instrument tracks, such as acoustic guitar, electric guitar, electric piano, etc., and make the volume of mid-high frequency instrument tracks gradually increase with the increase of vehicle speed until the volume is full, and at the same time increase the cutoff frequency of the low-pass filter of the main melody timbre (lead) and the base timbre (pad).

[0115] When the vehicle is at high speed (>40km / h), that is, when the current speed change state of the vehicle is a speed change: the volume of vocals is controlled to rise quickly from 0 to the preset volume value.

[0116] When the vehicle turns left, that is, when the current speed change state of the vehicle includes the change 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 sound image of the vocals shifts to the left; if there is no vocal when turning, other audio tracks can also be used to replace the vocals.

[0117] When the vehicle is at medium speed again (20km / h-40km / h), that is, the current speed change state of the vehicle is when the speed changes: the volume of the vocals and the background tone is controlled to gradually decrease as the speed decreases.

[0118] When the vehicle slows down again (0km / h-20km / h), that is, the current speed change state of the vehicle includes changes in speed and acceleration: the mid- and high-frequency instrument tracks are controlled to gradually fade out, that is, the cutoff frequency and volume of the low-pass filter of the mid- and high-frequency instrument tracks are controlled to gradually drop to zero.

[0119] When the vehicle is stationary again, that is, when the current speed change state of the vehicle includes speed change and acceleration change: the volume of the bass track is controlled to rise slightly, slightly greater than the preset volume value. The cutoff frequency and volume of the low-pass filter of the main melody and pad sound are gradually reduced, and the volume of the kick drum track is gradually reduced to zero, and the low-pass filter of the audio master track is controlled to be turned on.

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

[0121] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 10 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0122] Figure 6 The present invention provides a schematic diagram of the structure of an electronic device 10 provided in an embodiment of the present application. The electronic device 10 may specifically include: 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 is used to store a computer program, which is loaded and executed by the processor 11 to implement the relevant steps in the tuning method of the in-vehicle music disclosed in any of the aforementioned embodiments. In addition, the electronic device 10 in this embodiment may specifically be an electronic computer.

[0123] In this embodiment, the power supply 13 is used to provide working 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 the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 15 is used to obtain 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.

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

[0125] The operating system 121 is used to manage and control the hardware devices and computer programs 122 on the electronic device 10, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the tuning method of the in-vehicle music executed by the electronic device 10 disclosed in any of the aforementioned embodiments, the computer program 122 can further include computer programs that can be used to complete other specific tasks.

[0126] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed method for tuning in-vehicle music. The specific steps of the method may refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be described in detail here.

[0127] Furthermore, the present application also discloses a computer program product, including a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the aforementioned disclosed method for tuning in-vehicle music. The specific steps of the method may refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be described in detail here.

[0128] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0129] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0130] The above is a detailed introduction to a tuning method, device, electronic device and medium for in-vehicle music provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for tuning car music, characterized in that: include: Acquiring driving parameters of the vehicle while the playback device of the vehicle plays the target music; Determining track control parameters corresponding to each audio track based on the driving parameters of the vehicle; Adjusting the audio data of each audio track of the target music based on the track control parameter to obtain adjusted audio data corresponding to each audio track; Generate tuned target music based on the adjusted audio data corresponding to each of the audio tracks, and play the tuned target music.

2. The method for tuning in-vehicle music according to claim 1, characterized in that: The determining, based on the driving parameters of the vehicle, track control parameters corresponding to each audio track includes: determining a current speed change state of the vehicle based on a driving parameter of the vehicle; Determine the track control parameters of each audio track corresponding to the current speed change state by using a preset mapping relationship; Correspondingly, adjusting the audio data of each audio track of the target music based on the track control parameter includes: Determining a parameter value of the track control parameter; The audio data of each of the audio tracks of the target music is adjusted based on the parameter value of the track control parameter.

3. The method for tuning in-vehicle music according to claim 2, characterized in that: When the current speed change state of the vehicle is a change in acceleration, the track control parameter corresponding to each audio track is a cutoff frequency parameter of a low-pass filter of each audio track; Accordingly, the step of determining the parameter value of the track control parameter includes: determining a first rate of change of pedal pressure over time; Determine a second change rate of the cutoff frequency of the low-pass filter of each audio track over time based on the first change rate and a preset rate change coefficient; The parameter value of the cutoff frequency parameter of the low-pass filter is dynamically adjusted based on the second change rate.

4. The method for tuning in-vehicle music according to claim 2, characterized in that: When the current speed change state of the vehicle is a speed direction change, the track control parameters corresponding to each audio track are the sound and image parameters of each audio track; Accordingly, the step of determining the parameter value of the track control parameter includes: determining a current steering angle of the vehicle; Based on the current steering angle and the preset proportionality coefficient, the parameter values ​​of the sound and image parameters corresponding to each audio track are dynamically adjusted.

5. The method for tuning in-vehicle music according to claim 2, characterized in that: When the current speed change state of the vehicle is a speed change, the track control parameter corresponding to each audio track is a volume parameter corresponding to each audio track; Accordingly, the step of determining the parameter value of the track control parameter includes: Determine a first target audio track that meets a preset frequency condition from each of the audio tracks; According to the current speed of the vehicle, a parameter value of the volume parameter of the first target audio track is dynamically adjusted.

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

7. The method for tuning in-vehicle music according to claim 5, characterized in that: The dynamically adjusting the parameter value of the volume parameter of the first target audio track according to the current speed of the vehicle includes: Dynamically adjusting a volume parameter of the first target audio track linearly or nonlinearly according to the current speed of the vehicle; There is a positive correlation or a negative correlation between the current speed of the vehicle and the parameter value of the volume parameter.

8. The method for tuning in-vehicle music according to claim 5, characterized in that: The process of determining the parameter value of the track control parameter also includes: Determine a second target audio track that does not meet a preset frequency condition from each of the audio tracks; The parameter value of the volume parameter of the second target audio track is configured as a preset volume value.

9. The method for tuning in-vehicle music according to claim 8, characterized in that: Before obtaining the driving parameters of the vehicle, the method further includes: If the second target audio track does not exist in the target music, each beat position in the target music is detected, and target audio is added at 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.

10. The method for tuning in-vehicle music according to any one of claims 1 to 9, characterized in that: Before obtaining the driving parameters of the vehicle, the method further includes: If 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 to add the new audio track to the target music.

11. The method for tuning in-vehicle music according to any one of claims 1 to 9, characterized in that: The playing of the tuned target music comprises: The tuned target music is segmented according to the composition of the song, and the audio data obtained after the segmentation are spliced ​​based on the form structure to play the spliced ​​target music.

12. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the in-vehicle music tuning method as described in any one of claims 1 to 11.

13. A computer-readable storage medium, characterized in that: 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 11.

14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the tuning method for in-vehicle music described in any one of claims 1 to 11 is implemented.

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

    CN119806469B

  • Audio visualization method, vehicle, storage medium and computer program product

    CN119806470A

  • Audio visualization method, vehicle, storage medium and computer program product

    CN119806470B

  • Audio visualization method, vehicle, storage medium and computer program product

    CN120560603A