Vehicle sound synthesis method, synthesis device, controller, and vehicle
By using real-time amplitude gain and sound synthesis algorithms based on vehicle driving conditions, full-condition electronic analog sound is generated, solving the problem of driver boredom under quiet vehicle conditions and achieving accurate sound feedback and an improved driving experience.
Patent Information
- Application Number
- CN202510006512.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2026-07-03
AI Technical Summary
As vehicle quietness improves, the lack of powerful engine sound feedback leads to a boring driving experience for drivers and reduces the user's interactive experience. Existing simulated sound effects are too monotonous to enhance the driving experience.
The real-time amplitude gain is determined based on the vehicle's driving conditions, and a simulated sound is generated by combining a preset sound synthesis algorithm to achieve accurate acoustic feedback of the electronic simulated sound under all driving conditions. The real-time amplitude gain is calculated and the electronic simulated sound is synthesized by acquiring the accelerator pedal opening, motor torque and driving speed.
It achieves adaptive audio synthesis based on vehicle driving conditions, enhancing the interactive experience during driving, providing accurate sound feedback under all conditions, and improving driving enjoyment.
Smart Images

Figure CN122340410A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of sound synthesis technology, and in particular to a vehicle sound synthesis method, a vehicle controller, a vehicle sound synthesis device, and a vehicle. Background Technology
[0002] As vehicles become increasingly intelligent, users' demands for smart cockpits are gradually increasing. Among these demands, "hearing," as one of the five senses, directly impacts the user's driving experience. Simultaneously, with vehicles becoming quieter and the interiors less so, the lack of the powerful engine sound feedback of the past can easily lead to driver boredom, diminishing driving interest and reducing the overall user experience.
[0003] To address the aforementioned technical issues, related technologies employ electronically simulated sounds emitted through in-vehicle speakers to mimic the engine roar of traditional sports cars, enhancing the acoustic feedback for a sense of power and improving driving pleasure. However, the simulated sound effects generated by this solution are limited and do not significantly contribute to improving the driving experience. Summary of the Invention
[0004] This application aims to at least partially address one of the technical problems in the related art. To this end, the first objective of this application is to propose a vehicle sound synthesis method that determines the real-time amplitude gain based on the vehicle's current driving conditions, and generates analog sounds corresponding to those conditions using a preset sound synthesis algorithm. This method enables adaptive adjustment of audio synthesis parameters based on the vehicle's driving conditions, ultimately synthesizing electronic analog sounds that match all driving conditions, achieving more accurate sound feedback during driving, and enhancing the user's interactive experience while driving.
[0005] The second objective of this application is to propose a vehicle controller.
[0006] The third objective of this application is to propose a vehicle sound synthesis device.
[0007] The fourth objective of this application is to propose a vehicle.
[0008] To achieve the above objectives, the first aspect of this application proposes a vehicle sound synthesis method, which includes: acquiring the accelerator pedal opening, motor torque, and driving speed of the vehicle; determining the current driving condition of the vehicle based on the driving speed; determining gain calculation parameters based on the current driving condition; determining real-time amplitude gain based on the accelerator pedal opening, motor torque, driving speed, and gain calculation parameters; and synthesizing the vehicle's electronic analog sound based on the real-time amplitude gain and a preset sound synthesis algorithm.
[0009] According to the vehicle sound synthesis method of this application embodiment, firstly, the accelerator pedal opening, motor torque, and driving speed of the vehicle are acquired; the current driving condition of the vehicle is determined based on the driving speed; gain calculation parameters are determined based on the current driving condition; real-time amplitude gain is determined based on the accelerator pedal opening, motor torque, driving speed, and gain calculation parameters; and electronic analog sound of the vehicle is synthesized based on the real-time amplitude gain and a preset sound synthesis algorithm. Therefore, this method determines the real-time amplitude gain based on the current driving condition of the vehicle and generates analog sound corresponding to the driving condition by combining it with a preset sound synthesis algorithm. This enables adaptive adjustment of audio synthesis parameters based on the vehicle's driving condition, ultimately synthesizing electronic analog sound that matches all driving conditions, achieving more accurate sound feedback during driving and enhancing the user's interactive experience.
[0010] In addition, the vehicle sound synthesis method according to the above embodiments of this application may also have the following additional technical features:
[0011] According to one embodiment of this application, determining gain calculation parameters based on the current driving conditions includes: determining gain calculation parameters based on the current driving conditions and a preset relationship, wherein the preset relationship is used to characterize the mapping relationship between the current driving conditions and the gain calculation parameters.
[0012] According to one embodiment of this application, the gain calculation parameters include a first gain coefficient, a second gain coefficient, a third gain coefficient, a fourth gain coefficient, and a preset constant. The real-time amplitude gain is determined based on the accelerator pedal opening, motor torque, driving speed, and the gain calculation parameters, including: determining a first amplitude gain based on the accelerator pedal opening, a preset maximum pedal opening, and the first gain coefficient; determining a second amplitude gain based on the driving speed, a preset maximum vehicle speed, and the second gain coefficient; determining a third amplitude gain based on the motor torque, a preset maximum torque, and the third gain coefficient; determining a fourth amplitude gain based on the first amplitude gain, the second amplitude gain, the third amplitude gain, and the fourth gain coefficient; and determining the real-time amplitude gain based on the fourth amplitude gain and the preset constant.
[0013] According to one embodiment of this application, the vehicle sound synthesis method further includes: determining a first amplitude gain by multiplying the ratio between the accelerator pedal opening and a preset maximum pedal opening with a first gain coefficient; determining a second amplitude gain by multiplying the ratio between the driving speed and a preset maximum vehicle speed with a second gain coefficient; determining a third amplitude gain by multiplying the ratio between the motor torque and a preset maximum torque with a third gain coefficient; determining a fourth amplitude gain by multiplying the sum of the first, second, and third amplitude gains with a fourth gain coefficient; and determining a real-time amplitude gain by summing the fourth amplitude gain with a preset constant.
[0014] According to one embodiment of this application, the vehicle sound synthesis method further includes: obtaining the rotational speed of the vehicle's drive motor; determining a target frequency based on the rotational speed of the drive motor; and synthesizing the vehicle's electronic analog sound based on the target frequency, real-time amplitude gain, and a preset sound synthesis algorithm.
[0015] According to one embodiment of this application, determining a target frequency based on the drive motor speed includes: determining a virtual fitting speed coefficient based on the drive motor speed; determining a virtual engine speed based on the drive motor speed and the virtual fitting speed coefficient; and determining the target frequency based on the virtual engine speed.
[0016] According to one embodiment of this application, when the preset sound synthesis algorithm is an order synthesis sound generation algorithm, the target frequency includes multiple order frequencies, and the method further includes: determining multiple order frequencies based on the virtual engine speed and the preset order.
[0017] To achieve the above objectives, a second aspect of this application provides a vehicle controller, including a memory, a processor, and a vehicle sound synthesis program stored in the memory and executable on the processor. When the processor executes the vehicle sound synthesis program, it implements the above-described vehicle sound synthesis method.
[0018] According to the vehicle controller of the present application embodiment, when the processor executes the vehicle sound synthesis program, it implements the above-mentioned vehicle sound synthesis method. Based on the above-mentioned vehicle sound synthesis method, it can adaptively adjust the audio synthesis parameters based on the vehicle driving conditions, and finally synthesize electronic analog sound that matches all driving conditions, so as to achieve more accurate sound feedback during the driving process and enhance the user's interactive experience during the driving process.
[0019] To achieve the above objectives, a third aspect of this application provides a vehicle sound synthesis device, comprising: an acquisition module for acquiring the accelerator pedal opening, motor torque, and driving speed of a vehicle; a first determination module for determining the current driving condition of the vehicle based on the driving speed; a second determination module for determining gain calculation parameters based on the current driving condition; a gain generation module for determining a real-time amplitude gain based on the accelerator pedal opening, motor torque, vehicle driving speed, and gain calculation parameters; and a sound synthesis module for synthesizing an electronic analog sound of the vehicle based on the real-time amplitude gain and a preset sound synthesis algorithm.
[0020] According to the vehicle sound synthesis device of this application embodiment, an acquisition module acquires the accelerator pedal opening, motor torque, and driving speed of the vehicle; a first determining module determines the current driving condition of the vehicle based on the driving speed; a second determining module determines gain calculation parameters based on the current driving condition; a gain generation module determines a real-time amplitude gain based on the accelerator pedal opening, motor torque, vehicle speed, and gain calculation parameters; and a sound synthesis module synthesizes the vehicle's electronic analog sound based on the real-time amplitude gain and a preset sound synthesis algorithm. Therefore, this device determines the real-time amplitude gain based on the vehicle's current driving condition and combines it with a preset sound synthesis algorithm to generate analog sounds corresponding to the driving condition. This enables adaptive adjustment of audio synthesis parameters based on the vehicle's driving condition, ultimately synthesizing electronic analog sounds that match all driving conditions, achieving more accurate sound feedback during driving and enhancing the user's interactive experience.
[0021] To achieve the above objectives, a fourth aspect of this application provides a vehicle including the vehicle controller or the vehicle sound synthesis device described above.
[0022] According to the embodiments of this application, the vehicle can generate electronically simulated sounds that match all operating conditions based on the vehicle controller or the vehicle sound synthesis device, thereby achieving more accurate sound feedback during the driving process and enhancing the user's interactive experience during driving.
[0023] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating the vehicle sound synthesis method according to an embodiment of this application;
[0025] Figure 2 This is a flowchart illustrating a vehicle sound synthesis method according to a specific embodiment of this application;
[0026] Figure 3 This is a block diagram of a vehicle controller according to an embodiment of this application;
[0027] Figure 4 This is a connection diagram of a vehicle sound synthesis device according to an embodiment of this application;
[0028] Figure 5 This is a block diagram of a vehicle according to an embodiment of this application;
[0029] Figure 6 This is a block diagram of a vehicle according to another embodiment of this application. Detailed Implementation
[0030] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0031] The vehicle sound synthesis method, vehicle controller, vehicle sound synthesis device, and vehicle proposed in this application are described below with reference to the accompanying drawings.
[0032] Figure 1 This is a flowchart illustrating a vehicle sound synthesis method according to an embodiment of this application.
[0033] like Figure 1 As shown, the vehicle sound synthesis method of this application embodiment may include:
[0034] S1, obtains the vehicle's accelerator pedal opening, motor torque, and driving speed;
[0035] S2 determines the vehicle's current driving conditions based on its speed;
[0036] S3, determine the gain calculation parameters based on the current driving conditions;
[0037] S4 determines the real-time amplitude gain based on the accelerator pedal opening, motor torque, driving speed, and gain calculation parameters.
[0038] S5 synthesizes the vehicle's electronic analog sound based on real-time amplitude gain and a preset sound synthesis algorithm.
[0039] Specifically, the accelerator pedal opening, motor torque, and driving speed of the vehicle are obtained by communicating with the vehicle's domain controller. The driving conditions of the vehicle are determined based on the driving speed. For example, when the driving speed is zero, the vehicle is determined to be in idling condition; when the driving speed is not zero and the change in vehicle speed is zero within a preset time, the vehicle is determined to be in constant speed driving condition; when the driving speed is not zero and the change in vehicle speed is positive within a preset time, the vehicle is determined to be in acceleration condition; and when the driving speed is not zero and the change in vehicle speed is negative within a preset time, the vehicle is determined to be in deceleration coasting condition.
[0040] The gain calculation parameters are determined based on the current driving conditions. These parameters can be corresponding calculation ratio coefficients, adjustment constants, etc. For example, the gain calculation parameters corresponding to the driving conditions can be obtained through the control system, or they can be obtained by looking up a preset table. The relationship between the driving conditions and the gain calculation parameters can be preset according to actual conditions. To further improve the simulated sound effect, the gain calculation parameters can also be dynamically adjusted based on different simulated sound sources, different vehicle dynamics, and other parameters to achieve the optimal simulated sound.
[0041] Then, the real-time amplitude gain is calculated based on the accelerator pedal opening, motor torque, driving speed, and gain calculation parameters. This allows for the control of amplitude gain variations in the analog sound synthesis algorithm under different operating conditions. The real-time amplitude gain is the amplitude gain and torque required by the preset sound synthesis algorithm, and their specific values are not limited.
[0042] The real-time amplitude gain is fed into a preset sound synthesis algorithm to generate the vehicle's electronic analog sound. The electronic analog sound signal generated by the preset sound synthesis algorithm is processed by a digital audio processor (DSP, Digital Signal Processing), and the electrical signal is input to the power amplifier system in real time. The power amplifier system drives the vehicle's speakers to produce sound in real time. The preset synthesis algorithm can be an order synthesis sound generation algorithm, a frequency shifting and pitch-shifting synthesis algorithm, or a particle sound synthesis algorithm, etc.
[0043] This embodiment synthesizes electronic analog sounds based on gain calculation parameters that match the current driving conditions, and finally synthesizes electronic analog sounds that match all driving conditions. It can realize adaptive synthesis of electronic analog sounds for all driving conditions, and intelligently synthesize electronic analog sounds that match various driving conditions, including acceleration sound, idling sound effects and other full-condition analog sounds, to enhance driving fun and interactive experience.
[0044] In one embodiment of this application, determining the gain calculation parameters based on the current driving conditions includes: determining the gain calculation parameters based on the current driving conditions and a preset relationship, wherein the preset relationship is used to characterize the mapping relationship between the current driving conditions and the gain calculation parameters.
[0045] Specifically, taking a preset table as an example, a preset table is created in advance based on actual needs to connect driving conditions with gain calculation parameters. In practical applications, the gain calculation parameters are obtained by looking up the table based on the vehicle's current driving conditions. Alternatively, the preset relationship can also be a preset calculation formula, etc., without any specific limitations.
[0046] In one embodiment of this application, the gain calculation parameters include a first gain coefficient, a second gain coefficient, a third gain coefficient, a fourth gain coefficient, and a preset constant. The real-time amplitude gain is determined based on the accelerator pedal opening, motor torque, driving speed, and the gain calculation parameters, including: determining a first amplitude gain based on the accelerator pedal opening, a preset maximum pedal opening, and the first gain coefficient; determining a second amplitude gain based on the driving speed, a preset maximum vehicle speed, and the second gain coefficient; determining a third amplitude gain based on the motor torque, a preset maximum torque, and the third gain coefficient; determining a fourth amplitude gain based on the first amplitude gain, the second amplitude gain, the third amplitude gain, and the fourth gain coefficient; and determining the real-time amplitude gain based on the fourth amplitude gain and the preset constant.
[0047] Specifically, the first gain coefficient characterizes the influence of accelerator pedal opening on the real-time amplitude gain under the current driving conditions. The second gain coefficient characterizes the influence of driving speed on the real-time amplitude gain under the current driving conditions. The third gain coefficient characterizes the influence of motor torque on the real-time amplitude gain under the current driving conditions. The fourth gain coefficient and a preset constant characterize the adjustment of the real-time amplitude gain under the current driving conditions.
[0048] First, the first amplitude gain corresponding to the accelerator pedal opening, the second amplitude gain corresponding to the driving speed, and the third amplitude gain corresponding to the motor torque are calculated based on the first, second, and third gain coefficients, respectively. Then, the calculated first, second, and third amplitude gains are adjusted and synthesized according to the fourth gain coefficient to obtain the fourth amplitude gain. The fourth amplitude gain is then adjusted according to a preset constant to obtain the real-time amplitude gain. Subsequently, a preset sound synthesis algorithm is used to generate simulated sounds corresponding to the driving conditions. Finally, an electronic simulated sound matching all driving conditions is synthesized to achieve more accurate sound feedback during the driving process and enhance the interactive experience.
[0049] In one embodiment of this application, the vehicle sound synthesis method further includes: determining a first amplitude gain by multiplying the ratio between the accelerator pedal opening and a preset maximum pedal opening with a first gain coefficient; determining a second amplitude gain by multiplying the ratio between the driving speed and a preset maximum vehicle speed with a second gain coefficient; determining a third amplitude gain by multiplying the ratio between the motor torque and a preset maximum torque with a third gain coefficient; determining a fourth amplitude gain by multiplying the sum of the first, second, and third amplitude gains with a fourth gain coefficient; and determining a real-time amplitude gain by summing the fourth amplitude gain with a preset constant.
[0050] Specifically, the real-time amplitude gain is calculated using the following formula:
[0051] Gain=(a1*(P / PMax )+a2*(S / S Max )+a3*(T / T Max ))*a4+C
[0052] Where Gain represents the real-time amplitude gain, a1 represents the first amplitude gain, and P represents the accelerator pedal opening. Max a2 represents the preset maximum pedal opening, a2 represents the second amplitude gain, and S represents the driving speed. Max This indicates the preset maximum vehicle speed, a3 indicates the third amplitude gain, and T indicates the motor torque. Max a4 represents the preset maximum torque, a4 represents the fourth amplitude gain, and C represents the preset constant.
[0053] Assuming that under acceleration conditions, the first gain coefficient is 0.8, the second gain coefficient is 0.4, the third gain coefficient is 0.5, the fourth gain coefficient is 0.7, and the preset constant is 0.3, then the formula for calculating the real-time amplitude gain under acceleration conditions is:
[0054] Gain = (0.1 * (P / P)) Max )+0.4*(S / S Max )+0.5*(T / T Max ))*0.7+0.3 (1)
[0055] Assuming that under deceleration coasting conditions, the first gain coefficient is 0.8, the second gain coefficient is 0, the third gain coefficient is 0.2, the fourth gain coefficient is 0.9, and the preset constant is 0.1, then the formula for calculating the real-time amplitude gain under deceleration coasting conditions is:
[0056] Gain = (0.8 * (P / P)) Max )+0.2*(T / T Max ))*0.9+0.1 (2)
[0057] Assuming that under constant speed driving conditions, the first gain coefficient is 0.3, the second gain coefficient is 0.5, the third gain coefficient is 0.2, the fourth gain coefficient is 0.8, and the preset constant is 0.2, then the formula for calculating the real-time amplitude gain under constant speed driving conditions is:
[0058] Gain = (0.3 * (P / P)) Max )+0.5*(S / S Max )+0.2*(T / T Max ))*0.8+0.2 (3)
[0059] Assuming that under idling conditions, the first gain coefficient is 0.8, the second gain coefficient is 0, the third gain coefficient is 0.2, the fourth gain coefficient is 0.9, and the preset constant is 0.1, then the formula for calculating the real-time amplitude gain under idling conditions is:
[0060] Gain = (0.8 * (P / P)) Max )+0.2*(T / T Max ))*0.9+0.1 (4)
[0061] Thus, a real-time amplitude gain matching the current driving conditions can be obtained, and then combined with a preset sound synthesis algorithm to synthesize an electronic analog sound matching the current driving conditions.
[0062] In one embodiment of this application, the vehicle sound synthesis method further includes: obtaining the rotational speed of the vehicle's drive motor; determining a target frequency based on the rotational speed of the drive motor; and synthesizing the vehicle's electronic analog sound based on the target frequency, real-time amplitude gain, and a preset sound synthesis algorithm.
[0063] Specifically, for order-based sound synthesis algorithms and frequency-shifting modulation synthesis algorithms, the sound synthesis algorithm requires not only amplitude gain parameters but also frequency. To further improve the simulated sound effect, this embodiment adjusts and determines the target frequency based on the drive motor speed, thereby synthesizing the vehicle's electronic simulated sound according to the target frequency, real-time amplitude gain, and a preset sound synthesis algorithm. Furthermore, the drive motor speed refers to the drive motor speed for electric vehicles and the engine speed for gasoline vehicles; the specific speed application can be determined according to the actual situation.
[0064] In one embodiment of this application, determining the target frequency based on the drive motor speed includes: determining a virtual fitting speed coefficient based on the drive motor speed; determining a virtual engine speed based on the drive motor speed and the virtual fitting speed coefficient; and determining the target frequency based on the virtual engine speed.
[0065] Specifically, a preset relationship between the drive motor speed and the virtual fitting speed coefficient can be established in advance. Different virtual speed coefficients can be set according to different speed ranges to achieve non-linear frequency changes and improve the richness of the sound. For example, when the drive motor speed is <5000r / min, the virtual fitting speed coefficient is set to 2, and when the drive motor speed is ≥5000r / min, the virtual fitting speed coefficient is set to 1. This can achieve rapid frequency changes in the first stage and gradual frequency changes in the second stage.
[0066] The target frequency is then calculated using the following formula:
[0067]
[0068] Where f represents the target frequency, RPM represents the drive motor speed, and k represents the virtual fitting speed coefficient.
[0069] This embodiment changes the frequency of the sound in real time according to the vehicle's driving status. Using the principle of mechanical sound similar to that of a traditional sports car, the virtual engine speed is converted into the frequency of the synthesized sound. The target frequency obtained by this conversion will increase as the speed increases. In addition, the calculated target frequency can be used as the base frequency of the synthesized sound, and more harmonic frequencies can be further derived and synthesized on this basis, making the sound fuller and richer.
[0070] In one embodiment of this application, when the preset sound synthesis algorithm is an order synthesis sound generation algorithm, the target frequency includes multiple order frequencies, and the method further includes: determining multiple order frequencies based on the virtual engine speed and the preset order.
[0071] Specifically, the formula for calculating the order frequency in the order synthesis sound generation algorithm is as follows:
[0072]
[0073] Among them, f i Let f1 represent the order frequency, RPM represent the drive motor speed, k represent the virtual fitting speed coefficient, and i represent the order, such as i = 1, 2…20, representing the 1st, 2nd…20th orders respectively. Then f1 represents the 1st order frequency, f2 represents the 2nd order frequency, and f… 20 This represents the 20th order frequency.
[0074] The order can be set according to the actual situation. For example, in the embodiment simulating the acceleration sound of a V6 engine, i corresponds to orders 1.5, 3, 4.5, 6, and 9. The order frequency f corresponding to each order is calculated by formula (6). 1.5 f3, f 4.5 f6, f9. The real-time amplitude gain is determined using the aforementioned real-time amplitude gain calculation method. Then, the order frequency and real-time amplitude gain are substituted into the following order synthesis sound generation algorithm formula to calculate the electronic analog sound signal:
[0075] X i (t)=Gain(t)*A i (t)*sin(2pi*f i *t)(7)
[0076]
[0077] Among them, X iX(t) represents the i-th order analog sound signal; X(t) represents the superposition of analog sounds of different frequencies, i.e., the final synthesized analog sound; t represents time; A i (t) represents the initial amplitude of the corresponding order; Gain(t) represents the real-time amplitude gain.
[0078] In this embodiment, based on the principle of order synthesis, the required analog sound signal is generated by fitting a sine wave. The sound signal is a time-domain waveform signal that varies with time. The key input parameters for this algorithm are frequency and amplitude. The frequency is obtained by converting virtual rotational speed, and the amplitude is based on the amplitude gain. When the vehicle's driving conditions change at different times, the algorithm adaptively adjusts the amplitude gain parameter and frequency value to generate the analog sound corresponding to the driving conditions.
[0079] As a specific embodiment of this application, taking the preset sound synthesis algorithm as an order-based sound synthesis algorithm as an example, such as... Figure 2 As shown, the vehicle sound synthesis method may include the following steps:
[0080] S101: Obtain the vehicle's accelerator pedal opening, motor torque, drive motor speed, and driving speed. Execute steps S102 and S106 respectively to calculate the target frequency and real-time amplitude gain.
[0081] S102, determine whether the drive motor speed is less than 5000 r / min. If yes, proceed to step S103; otherwise, proceed to step S104.
[0082] S103, Determine the virtual fitting speed coefficient as 2. Execute step S105.
[0083] S104. Determine the virtual fitting speed coefficient as 1.
[0084] S105, Calculate the target frequency Perform step S115.
[0085] S106, Determine if the driving speed is 0. If yes, determine that the vehicle is in idling condition and proceed to step S107; otherwise, proceed to step S108.
[0086] S107, determine the first gain coefficient as 0.8, the second gain coefficient as 0, the third gain coefficient as 0.2, the fourth gain coefficient as 0.9, and the preset constant as 0.1. Corresponding formula (4). Execute step S114.
[0087] S108 determines the amount of vehicle speed change within a preset time period based on the driving speed.
[0088] S109, determine whether the change in vehicle speed is within a preset range. If yes, determine that the vehicle is in a constant speed driving condition and proceed to step S110; otherwise, proceed to step S111. The preset range can be set according to the actual situation, for example, the preset range is 0-5km / h.
[0089] S110, determine the first gain coefficient as 0.3, the second gain coefficient as 0.5, the third gain coefficient as 0.2, the fourth gain coefficient as 0.8, and the preset constant as 0.2. Corresponding formula (3). Execute step S114.
[0090] S111, determine whether the change in vehicle speed exceeds the preset range. If yes, determine that the vehicle is in an acceleration state and proceed to step S112; if no, determine that the vehicle is in a deceleration coasting state and proceed to step S113.
[0091] Among them, the acceleration condition can be further refined based on the opening of the accelerator pedal to further refine the gain calculation parameters, so as to realize the simulation sound of the vehicle's speakers emitting a powerful and precise volume level of acceleration sound under the acceleration condition.
[0092] S112, determine the first gain coefficient as 0.8, the second gain coefficient as 0.4, the third gain coefficient as 0.5, the fourth gain coefficient as 0.7, and the preset constant as 0.3. Corresponding formula (1). Execute step S114.
[0093] S113, determine the first gain coefficient as 0.8, the second gain coefficient as 0, the third gain coefficient as 0.2, the fourth gain coefficient as 0.9, and the preset constant as 0.1. That is, the corresponding formula (2).
[0094] S114, Calculate real-time amplitude gain
[0095] Gain=(a1*(P / P Max )+a2*(S / S Max )+a3*(T / T Max ))*a4+C.
[0096] S115, Calculates electronic analog sound:
[0097] X i (t)=Gain(t)*A i (t)*sin(2pi*f i *t)
[0098]
[0099] The calculated electronic analog sound signal is processed by a digital audio processor and input into the power amplifier system in real time. The power amplifier system drives the vehicle speakers to produce sound. Finally, during the actual vehicle debugging and evaluation phase, the sound algorithm parameters, including order ratio and amplitude gain coefficient, can be adjusted in real time based on the subjective evaluation effect of the actual vehicle. This results in accurate driving sound feedback from the electronic analog sound under all driving conditions, enabling adaptive adjustment of audio synthesis parameters for various vehicle driving conditions. Ultimately, it synthesizes electronic analog sounds that match all driving conditions, achieving more accurate sound feedback during the driving process and enhancing the interactive experience. For example, it can simulate a powerful and precise acceleration sound with a rapid frequency rise in the first half and a variable frequency rise in the second half during vehicle acceleration, and then emit a relatively decreasing volume sound effect during constant speed conditions.
[0100] This embodiment synthesizes simulated sounds at the corresponding moment based on real-time changing vehicle driving information data, and then emits the sound through a speaker in real time to provide the driver with real-time sound feedback and enhance the driving experience.
[0101] In summary, the vehicle sound synthesis method according to the embodiments of this application first obtains the vehicle's accelerator pedal opening, motor torque, and driving speed. Based on the driving speed, the current driving condition of the vehicle is determined. Gain calculation parameters are determined based on the current driving condition. Real-time amplitude gain is determined based on the accelerator pedal opening, motor torque, driving speed, and gain calculation parameters. Electronic analog sounds of the vehicle are synthesized based on the real-time amplitude gain and a preset sound synthesis algorithm. Therefore, this method determines the real-time amplitude gain based on the vehicle's current driving condition and combines it with a preset sound synthesis algorithm to generate analog sounds corresponding to the driving condition. This enables adaptive adjustment of audio synthesis parameters based on the vehicle's driving condition, ultimately synthesizing electronic analog sounds that match all driving conditions. This achieves more accurate sound feedback during driving and enhances the user's interactive experience while driving.
[0102] Corresponding to the above embodiments, this application also proposes a vehicle controller.
[0103] like Figure 3 As shown, the vehicle controller 100 of this application embodiment includes a memory 110, a processor 120, and a vehicle sound synthesis program stored in the memory 110 and executable on the processor 120. When the processor 120 executes the vehicle sound synthesis program, it implements the above-described vehicle sound synthesis method.
[0104] According to the vehicle controller of the present application embodiment, when the processor executes the vehicle sound synthesis program, it implements the above-mentioned vehicle sound synthesis method. Based on the above-mentioned vehicle sound synthesis method, it can realize adaptive adjustment of audio synthesis parameters based on the vehicle driving conditions, and finally synthesize electronic analog sound that matches the full driving conditions, so as to realize more accurate sound feedback during the driving process and enhance the user's interactive experience during the driving process.
[0105] Corresponding to the above embodiments, this application also proposes a vehicle sound synthesis device.
[0106] like Figure 4 As shown, the vehicle sound synthesis device of this application embodiment may include: an acquisition module 10, a first determination module 20, a second determination module 30, a gain generation module 40, and a sound synthesis module 50.
[0107] The system includes: an acquisition module 10 for acquiring the vehicle's accelerator pedal opening, motor torque, and driving speed; a first determination module 20 for determining the vehicle's current driving condition based on the driving speed; a second determination module 30 for determining gain calculation parameters based on the current driving condition; a gain generation module 40 for determining real-time amplitude gain based on the accelerator pedal opening, motor torque, vehicle speed, and gain calculation parameters; and a sound synthesis module 50 for synthesizing the vehicle's electronic analog sound based on the real-time amplitude gain and a preset sound synthesis algorithm.
[0108] According to one embodiment of this application, the second determining module 30 determines the gain calculation parameters based on the current driving conditions, specifically for: determining the gain calculation parameters based on the current driving conditions and a preset relationship, wherein the preset relationship is used to characterize the mapping relationship between the current driving conditions and the gain calculation parameters.
[0109] According to one embodiment of this application, the gain calculation parameters include a first gain coefficient, a second gain coefficient, a third gain coefficient, a fourth gain coefficient, and a preset constant. The gain generation module 40 determines the real-time amplitude gain based on the accelerator pedal opening, motor torque, driving speed, and the gain calculation parameters. Specifically, it is used to: determine a first amplitude gain based on the accelerator pedal opening, a preset maximum pedal opening, and the first gain coefficient; determine a second amplitude gain based on the driving speed, a preset maximum vehicle speed, and the second gain coefficient; determine a third amplitude gain based on the motor torque, a preset maximum torque, and the third gain coefficient; determine a fourth amplitude gain based on the first amplitude gain, the second amplitude gain, the third amplitude gain, and the fourth gain coefficient; and determine the real-time amplitude gain based on the fourth amplitude gain and the preset constant.
[0110] According to one embodiment of this application, the gain generation module 40 is specifically used to: determine a first amplitude gain by multiplying the ratio between the accelerator pedal opening and a preset maximum pedal opening with a first gain coefficient; determine a second amplitude gain by multiplying the ratio between the driving speed and a preset maximum vehicle speed with a second gain coefficient; determine a third amplitude gain by multiplying the ratio between the motor torque and a preset maximum torque with a third gain coefficient; determine a fourth amplitude gain by multiplying the sum of the first, second, and third amplitude gains with a fourth gain coefficient; and determine a real-time amplitude gain by summing the fourth amplitude gain with a preset constant.
[0111] According to one embodiment of this application, the acquisition module 10 is further configured to: acquire the speed of the vehicle's drive motor; the first determination module 20 is further configured to determine the target frequency based on the speed of the drive motor; and the sound synthesis module 50 is further configured to synthesize the vehicle's electronic analog sound based on the target frequency, real-time amplitude gain, and a preset sound synthesis algorithm.
[0112] According to one embodiment of this application, the first determining module 20 determines the target frequency based on the drive motor speed, specifically for: determining a virtual fitting speed coefficient based on the drive motor speed; determining a virtual engine speed based on the drive motor speed and the virtual fitting speed coefficient; and determining the target frequency based on the virtual engine speed.
[0113] According to one embodiment of this application, when the preset sound synthesis algorithm is an order synthesis sound generation algorithm, the target frequency includes multiple order frequencies, and the first determining module 20 is further configured to: determine multiple order frequencies based on the virtual engine speed and the preset order.
[0114] It should be noted that for details not disclosed in the vehicle sound synthesis apparatus of this application embodiment, please refer to the details disclosed in the vehicle sound synthesis method of the above embodiments of this application, which will not be repeated here.
[0115] According to the vehicle sound synthesis device of this application embodiment, an acquisition module acquires the accelerator pedal opening, motor torque, and driving speed of the vehicle; a first determining module determines the current driving condition of the vehicle based on the driving speed; a second determining module determines gain calculation parameters based on the current driving condition; a gain generation module determines a real-time amplitude gain based on the accelerator pedal opening, motor torque, vehicle speed, and gain calculation parameters; and a sound synthesis module synthesizes the vehicle's electronic analog sound based on the real-time amplitude gain and a preset sound synthesis algorithm. Therefore, this device determines the real-time amplitude gain based on the vehicle's current driving condition and combines it with a preset sound synthesis algorithm to generate analog sounds corresponding to the driving condition. This enables adaptive adjustment of audio synthesis parameters based on the vehicle's driving condition, ultimately synthesizing electronic analog sounds that match all driving conditions, achieving more accurate sound feedback during driving and enhancing the user's interactive experience.
[0116] Corresponding to the above embodiments, this application also proposes a vehicle.
[0117] like Figure 5 As shown, the vehicle 1000 in this embodiment includes the vehicle controller 100 described above, or, as... Figure 6 As shown, the vehicle 1000 of this application embodiment is equipped with the vehicle sound synthesis device 200.
[0118] According to the embodiments of this application, the vehicle can generate electronically simulated sounds that match all operating conditions based on the vehicle controller or the vehicle sound synthesis device, thereby achieving more accurate sound feedback during the driving process and enhancing the user's interactive experience during driving.
[0119] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0120] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0121] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0122] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0123] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0124] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for synthesizing vehicle sound, characterized in that, The method includes: The accelerator pedal opening, motor torque, and driving speed of the vehicle are obtained. The current driving condition of the vehicle is determined based on the driving speed; Determine the gain calculation parameters based on the current driving conditions; The real-time amplitude gain is determined based on the accelerator pedal opening, the motor torque, the driving speed, and the gain calculation parameters. The vehicle's electronic analog sound is synthesized based on the real-time amplitude gain and a preset sound synthesis algorithm.
2. The vehicle sound synthesis method according to claim 1, characterized in that, The step of determining the gain calculation parameters based on the current driving conditions includes: The gain calculation parameters are determined based on the current driving conditions and a preset relationship, wherein the preset relationship is used to characterize the mapping relationship between the current driving conditions and the gain calculation parameters.
3. The vehicle sound synthesis method according to claim 1, characterized in that, The gain calculation parameters include a first gain coefficient, a second gain coefficient, a third gain coefficient, a fourth gain coefficient, and a preset constant. Determining the real-time amplitude gain based on the accelerator pedal opening, the motor torque, the driving speed, and the gain calculation parameters includes: The first amplitude gain is determined based on the accelerator pedal opening, the preset maximum pedal opening, and the first gain coefficient. The second amplitude gain is determined based on the driving speed, the preset maximum vehicle speed, and the second gain coefficient. The third amplitude gain is determined based on the motor torque, the preset maximum torque, and the third gain coefficient. The fourth amplitude gain is determined based on the first amplitude gain, the second amplitude gain, the third amplitude gain, and the fourth gain coefficient; The real-time amplitude gain is determined based on the fourth amplitude gain and the preset constant.
4. The vehicle sound synthesis method according to claim 3, characterized in that, The method further includes: The first amplitude gain is determined by multiplying the ratio between the accelerator pedal opening and the preset maximum pedal opening with the first gain coefficient. The second amplitude gain is determined by multiplying the ratio between the driving speed and the preset maximum vehicle speed with the second gain coefficient. The third amplitude gain is determined by multiplying the ratio between the motor torque and the preset maximum torque with the third gain coefficient. The fourth amplitude gain is determined by multiplying the sum of the first amplitude gain, the second amplitude gain, and the third amplitude gain with the fourth gain coefficient. The real-time amplitude gain is determined based on the sum of the fourth amplitude gain and the preset constant.
5. The vehicle sound synthesis method according to claim 1, characterized in that, The method further includes: Obtain the speed of the vehicle's drive motor; The target frequency is determined based on the speed of the drive motor. The vehicle's electronic analog sound is synthesized based on the target frequency, the real-time amplitude gain, and the preset sound synthesis algorithm.
6. The vehicle sound synthesis method according to claim 5, characterized in that, Determining the target frequency based on the rotational speed of the drive motor includes: The virtual fitting speed coefficient is determined based on the speed of the drive motor. The virtual engine speed is determined based on the drive motor speed and the virtual fitted speed coefficient; The target frequency is determined based on the virtual engine speed.
7. The vehicle sound synthesis method according to claim 6, characterized in that, When the preset sound synthesis algorithm is an order synthesis sound generation algorithm, the target frequency includes multiple order frequencies, and the method further includes: The multiple order frequencies are determined based on the virtual engine speed and the preset order number.
8. A vehicle controller, characterized in that, The system includes a memory, a processor, and a vehicle sound synthesis program stored in the memory and executable on the processor. When the processor executes the vehicle sound synthesis program, it implements the vehicle sound synthesis method according to any one of claims 1-7.
9. A vehicle sound synthesis device, characterized in that, The device includes: The acquisition module is used to acquire the accelerator pedal opening, motor torque, and driving speed of the vehicle. The first determining module is used to determine the current driving condition of the vehicle based on the driving speed; The second determining module is used to determine the gain calculation parameters based on the current driving conditions; The gain generation module is used to determine the real-time amplitude gain based on the accelerator pedal opening, the motor torque, the vehicle speed, and the gain calculation parameters. The sound synthesis module is used to synthesize the electronic analog sound of the vehicle based on the real-time amplitude gain and a preset sound synthesis algorithm.
10. A vehicle, characterized in that, This includes the vehicle controller according to claim 8, or the vehicle sound synthesis device according to claim 9.