Sound wave simulation method and device of electric vehicle, electronic equipment and storage medium
By acquiring dynamic driving signals from electric vehicles, determining the backfire sound effect trigger conditions, and simulating the sound, the problem of reduced driving experience caused by the lack of sound in new energy vehicles has been solved, achieving a more realistic driving experience.
Patent Information
- Application Number
- CN202511203388.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-27
- Publication Date
- 2025-12-09
AI Technical Summary
The lack of noise and vibration from the motors in new energy vehicles reduces the user's driving experience.
By acquiring the vehicle's dynamic driving signals, including vehicle speed, throttle opening, and virtual gear ratio signals, the virtual speed of the vehicle in each virtual gear is determined, and based on these signals, it is determined whether the backfire sound effect triggering conditions are met, thereby simulating the dynamic sound of an electric vehicle.
It enhances the user's driving experience by giving the electric vehicle a sound similar to that of a gasoline car, thus increasing the realism and experience of driving.
Smart Images

Figure CN121084285A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle development technology, and in particular to a method, apparatus, electronic device, and storage medium for simulating the sound of an electric vehicle. Background Technology
[0002] Currently, with social development and technological progress, more and more users are starting to use new energy vehicles as a means of transportation. Due to the powerful instantaneous power output characteristics of new energy vehicles, they are sought after by many vehicle users who pursue the ultimate driving experience.
[0003] However, the motors in new energy vehicles do not produce noise or vibration during operation, resulting in a silent driving experience, which undoubtedly reduces the user's driving experience. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, and storage medium for simulating the sound of an electric vehicle. The embodiments provided by this application solve the technical problem of reducing the user's driving experience in the prior art, and improve the user's driving experience.
[0005] In a first aspect, this application provides a method for simulating the sound of an electric vehicle, the method comprising:
[0006] Acquire dynamic driving signals of the vehicle, including vehicle speed signal, throttle opening signal and virtual gear ratio signal;
[0007] Based on the vehicle speed signal and the virtual gear ratio signal, the virtual speed of the vehicle in each virtual gear is determined;
[0008] Based on the changing characteristics of each of the virtual speeds, the throttle opening signals, and the virtual gear of the vehicle, it is determined whether the vehicle meets the backfire sound effect triggering conditions.
[0009] When the vehicle meets the backfire sound effect triggering condition, the dynamic simulated sound of the vehicle is determined based on the virtual rotation speed and the recorded preset backfire sound effect.
[0010] In one feasible implementation, the backfire sound effect triggering condition includes a fixed gear release backfire triggering condition. The step of determining whether the vehicle meets the backfire sound effect triggering condition based on the changes in each of the virtual speeds, the throttle opening signals, and the vehicle's virtual gear position includes:
[0011] When the decrease in the throttle opening within a first preset time window is greater than or equal to a first amplitude threshold, and the virtual speed is greater than or equal to a first speed threshold, it is determined that the vehicle meets the fixed gear release backfire trigger condition.
[0012] When the decrease in throttle opening within a first preset time window is less than the first amplitude threshold, or the virtual speed is less than the first speed threshold, it is determined that the vehicle does not meet the backfire trigger condition for releasing the throttle in a fixed gear.
[0013] In one feasible implementation, the backfire sound effect triggering condition includes a deceleration downshift backfire triggering condition. The step of determining whether the vehicle meets the backfire sound effect triggering condition based on the changes in each of the virtual speeds, the throttle opening signal, and the vehicle's virtual gear position includes:
[0014] When the duration for which the throttle opening is continuously less than or equal to the second amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the first speed threshold, and the change in the virtual gear of the vehicle is identified as a downshift operation, it is determined that the vehicle meets the deceleration downshift backfire trigger condition.
[0015] If the throttle opening is continuously less than the second amplitude threshold, or the duration of the throttle opening being continuously greater than or equal to the second amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the first speed threshold, or the change in the vehicle's virtual gear is not identified as a downshift operation, it is determined that the vehicle does not meet the deceleration downshift backfire trigger condition.
[0016] In one feasible implementation, the backfire sound effect triggering condition includes an acceleration upshift backfire triggering condition. The step of determining whether the vehicle meets the backfire sound effect triggering condition based on the changes in each of the virtual engine speeds, the throttle opening signal, and the vehicle's virtual gear position includes:
[0017] When the duration for which the throttle opening is continuously greater than or equal to the third amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the second speed threshold, and the change in the virtual gear of the vehicle is identified as an upshift operation, it is determined that the vehicle meets the acceleration upshift backfire trigger condition.
[0018] If the throttle opening is continuously less than the third amplitude threshold, or the duration of the throttle opening being continuously greater than or equal to the third amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the second speed threshold, or the change in the vehicle's virtual gear is not identified as an upshift operation, it is determined that the vehicle does not meet the acceleration upshift backfire trigger condition.
[0019] In one feasible implementation, when the vehicle meets the backfire sound effect triggering condition, determining the dynamic simulated sound of the vehicle based on the virtual rotational speed and the recorded preset backfire sound effect includes:
[0020] When the vehicle meets the triggering condition of the backfire sound effect, the recorded preset backfire sound effect is decomposed into audio particles based on the preset audio decomposition rules to determine at least one short audio segment.
[0021] Based on the preset attenuation gradient rule corresponding to the virtual rotation speed, at least one of the short-time audio segments is dynamically reassembled and spliced to determine the simulated sound effect parameters.
[0022] Based on the simulated sound effect parameters, the dynamic simulated sound wave of the vehicle is determined.
[0023] In one feasible implementation, after determining that the vehicle meets the acceleration upshift backfire trigger condition when the duration for which the throttle opening is continuously greater than or equal to a third amplitude threshold exceeds a second preset time window, and the virtual speed is greater than or equal to a second speed threshold, and the change in the vehicle's virtual gear is identified as an upshift operation, the method further includes:
[0024] Based on the torque change of the motor in the vehicle, the corresponding torque interruption feature point of the vehicle is determined;
[0025] Based on the torque interruption feature point, the delay parameters for the delayed triggering of dynamic simulated sound waves are determined.
[0026] In one feasible implementation, the method further includes:
[0027] When the current speed of the vehicle is greater than or equal to a first speed threshold, the dynamic simulated sound wave area of the vehicle is determined to be set as the external speaker area and the internal speaker area.
[0028] When the current speed of the vehicle is less than a second speed threshold, the dynamic simulated sound area of the vehicle is determined to be set as the in-vehicle speaker area, wherein the first speed threshold is greater than the second speed threshold.
[0029] In a second aspect, this application provides a sound simulation device for an electric vehicle, the sound simulation device comprising:
[0030] The acquisition module is used to acquire the vehicle's dynamic driving signals, which include vehicle speed signals, throttle opening signals, and virtual gear ratio signals.
[0031] The first determining module is used to determine the virtual speed of the vehicle in each virtual gear based on the vehicle speed signal and the virtual gear ratio signal;
[0032] The second determining module is used to determine whether the vehicle meets the backfire sound effect triggering conditions based on the changing characteristics of each of the virtual speeds, the throttle opening signals, and the virtual gear of the vehicle.
[0033] The third determining module is used to determine the dynamic simulated sound of the vehicle based on the virtual rotation speed and the recorded preset backfire sound when the vehicle meets the backfire sound effect triggering condition.
[0034] In a third aspect of this application, an electronic device is provided, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus, and the machine-readable instructions are executed by the processor to perform steps such as the above-described method for simulating the sound of an electric vehicle.
[0035] In a fourth aspect of this application, an embodiment of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the electric vehicle sound simulation method described above.
[0036] Compared with the prior art, the electric vehicle sound simulation method, device, electronic device, and storage medium provided in this application obtain the vehicle's dynamic driving signal and determine the vehicle's virtual speed at each virtual gear based on the vehicle speed signal, virtual gear ratio signal, and virtual gear signal. Then, based on the changes in each virtual speed, throttle opening signal, and the vehicle's virtual gear, it determines whether the vehicle meets the backfire sound effect triggering condition. When the vehicle meets the backfire sound effect triggering condition, it determines the vehicle's dynamic simulated sound based on the virtual speed and the recorded preset backfire sound effect. This application improves the user's driving experience. Attached Figure Description
[0037] Figure 1 A flowchart illustrating a method for simulating the sound of an electric vehicle according to an embodiment of this application is shown.
[0038] Figure 2 This paper shows a structural block diagram of a sound simulation device for an electric vehicle provided in an embodiment of this application;
[0039] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.
[0040] Figure 2 and Figure 3 The correspondence between the figure labels and figure titles in the accompanying drawings is as follows:
[0041] 200 Sound simulation device for electric vehicles; 210 Acquisition module; 220 First determination module; 230 Second determination module; 240 Third determination module; 300 Electronic device; 310 Processor; 320 Memory; 330 Bus. Detailed Implementation
[0042] To better understand the technical solutions provided in the embodiments of this specification, the technical solutions of the embodiments of this specification will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of this specification and the specific features in the embodiments are detailed descriptions of the technical solutions of the embodiments of this specification, rather than limitations on the technical solutions of this specification. In the absence of conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.
[0043] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The term "two or more" includes two or more cases.
[0044] First, the applicable application scenarios of this application will be introduced. The embodiments provided in this application are applicable to the field of vehicle development technology.
[0045] Currently, the motors of new energy vehicles do not produce noise or vibration during operation, resulting in a noiseless driving experience, which undoubtedly reduces the user's driving experience.
[0046] Based on this, the embodiments of this application provide a method, device, electronic device and storage medium for simulating the sound of an electric vehicle. The embodiments provided by this application solve the technical problem of reducing the user's driving experience in the prior art, and improve the user's driving experience.
[0047] Figure 1 A flowchart illustrating a method for simulating the sound of an electric vehicle according to an embodiment of this application is shown. Figure 1As shown, the method for simulating the sound of an electric vehicle includes the following steps:
[0048] S101. Acquire the vehicle's dynamic driving signals, which include vehicle speed signal, throttle opening signal, and virtual gear ratio signal.
[0049] In this step, in the embodiments provided in this application, when it is necessary to simulate the sound of the vehicle, it is first necessary to obtain the dynamic driving signals of the vehicle in the current driving state, such as vehicle speed signal, throttle opening signal and virtual gear ratio signal.
[0050] It is understood that the embodiments provided in this application can simulate a multi-speed transmission (such as an 8AT) similar to a fuel vehicle by using the speed and torque of an electric vehicle to obtain the virtual speed change of the engine in each virtual gear (i.e., upshifting and downshifting).
[0051] It should be noted that in the embodiments provided in this application, the acquisition of dynamic driving signals is carried out through high-frequency signal transmission via CAN bus, wherein the sampling frequency is greater than or equal to 100Hz.
[0052] In the above-mentioned embodiments, the vehicle speed signal, throttle opening signal, and virtual gear ratio signal in the embodiments provided by this application can be collected in a customized manner using different types of devices and components. The vehicle speed signal in the embodiments provided by this application can be collected by wheel speed sensors. The wheel speed sensors obtain the vehicle speed signal by parsing the voltage signal, and the unit is expressed in km / h.
[0053] In the embodiments provided in this application, the throttle opening signal can be acquired using an accelerator pedal sensor. The accelerator pedal sensor obtains the throttle opening signal by analyzing the voltage signal, and the unit is expressed as % (percentage).
[0054] Here, in the embodiments provided in this application, the specific gear directions of the virtual gears are as follows: D is set to forward gear; R is set to reverse gear; P is set to parking gear; and N is set to neutral gear.
[0055] S102. Based on the vehicle speed signal and the virtual gear ratio signal, determine the virtual speed of the vehicle in each virtual gear.
[0056] In this step, after determining the vehicle's dynamic driving signal, the embodiments provided in this application need to determine the vehicle's virtual speed in each virtual gear based on the aforementioned vehicle speed signal and virtual gear ratio signal. The specific formulas for the virtual speed in different virtual gears in the embodiments provided in this application are as follows:
[0057]
[0058] Where v represents vehicle speed; ig Used to characterize the virtual gear ratio signal; i o The term "r" is used to characterize the final drive ratio; "r" is used to characterize the tire radius of the vehicle.
[0059] It is understood that, in the embodiments provided in this application, when the speed is set to 60km / h, the virtual speed in virtual gear 1 is 8000rpm; and the virtual speed in virtual gear 2 is about 4000rpm.
[0060] It should be noted that the upshifting and downshifting operations in the embodiments provided in this application need to be simulated by using the steering wheel paddle shifters or buttons to simulate the transmission upshifting or downshifting within the corresponding vehicle speed range. For example, in the 30-50kph range, it can be from virtual gear 1→2 or virtual gear 2→1.
[0061] S103. Based on the changes in various virtual speeds, throttle opening signals, and the vehicle's virtual gear, determine whether the vehicle meets the conditions for triggering the backfire sound effect.
[0062] In this step, the embodiments provided in this application, after determining the virtual speed of different virtual gears, will determine whether the vehicle meets the backfire sound effect triggering conditions based on the virtual speed, the throttle opening size represented by different throttle opening signals, and the gear operation changes of the vehicle under different virtual gears.
[0063] It is understood that the backfire sound effect triggering conditions in the embodiments provided in this application can be set to different backfire triggering conditions according to different application scenarios.
[0064] For example, when determining that the backfire sound effect triggering condition includes the backfire triggering condition of releasing the accelerator in a fixed gear, the determination of whether the vehicle meets the backfire sound effect triggering condition is based on the changing characteristics of various virtual speeds, throttle opening signals, and the vehicle's virtual gear position, including:
[0065] When the decrease in throttle opening within the first preset time window is greater than or equal to the first amplitude threshold, and the virtual speed is greater than or equal to the first speed threshold, it is determined that the vehicle meets the backfire trigger condition for releasing the throttle in a fixed gear; when the decrease in throttle opening within the first preset time window is less than the first amplitude threshold, or the virtual speed is less than the first speed threshold, it is determined that the vehicle does not meet the backfire trigger condition for releasing the throttle in a fixed gear.
[0066] It is understood that, in the embodiments provided in this application, after determining that the backfire sound switch is set, and when determining that the throttle opening decreases by more than or equal to a first amplitude threshold (e.g., 40%) within a first preset time window, and when determining that the virtual speed is greater than or equal to a first speed threshold (e.g., 3500 rpm), the vehicle is determined to meet the backfire trigger condition for releasing the throttle in a fixed gear. In other words, if the throttle opening also decreases by more than 40% within 0.1 seconds (e.g., from 70% to 20%), the vehicle is determined to meet the backfire trigger condition for releasing the throttle in a fixed gear, and the vehicle is determined to be "rapidly releasing the throttle".
[0067] It should be noted that the embodiments provided in this application distinguish whether the vehicle is in parking gear P, neutral gear N, or forward gear D or reverse gear R by using the throttle change threshold, so as to avoid the vehicle being too easy to trigger when releasing the throttle when the vehicle is stationary, when a large change is required when parking (such as -70%).
[0068] In the embodiments provided in this application, the first preset time window can be customized according to different application scenarios. The first preset time window set in this application can be 100ms.
[0069] In the above-mentioned embodiments, after all the above conditions are met, and after a certain preset time (such as 300ms), the deceleration backfire sound effect is enabled and the duration is T = 300ms + (virtual speed / 1000) × 50ms, in order to match the speed decay curve.
[0070] For example, the backfire sound effect triggering conditions include deceleration and downshifting backfire triggering conditions. Based on the changing characteristics of various virtual speeds, throttle opening signals, and the vehicle's virtual gear position, it is determined whether the vehicle meets the backfire sound effect triggering conditions, including:
[0071] If the duration for which the throttle opening is continuously less than or equal to the second amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the first speed threshold, and the change in the vehicle's virtual gear is identified as a downshift operation, then the vehicle is determined to meet the deceleration downshift backfire trigger condition. If the duration for which the throttle opening is continuously less than the second amplitude threshold, or the duration for which the throttle opening is continuously greater than or equal to the second amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the first speed threshold, or the change in the vehicle's virtual gear is not identified as a downshift operation, then the vehicle is determined not to meet the deceleration downshift backfire trigger condition.
[0072] It is understood that, after the backfire sound switch is set, and after the throttle opening decreases less than or equal to the second amplitude threshold (e.g., 10%) within the second preset time window (e.g., 0.3S), and the virtual speed is greater than or equal to the first speed threshold (e.g., 3500rpm), the vehicle is determined to meet the backfire trigger condition of releasing the throttle in a fixed gear, and the vehicle's gear shifting operation is identified as "releasing the throttle or pressing the brake to decelerate and downshift".
[0073] The type of downshifting operation in the embodiments provided in this application can be customized and used according to different application scenarios. The downshifting operation in the embodiments provided in this application can be specifically manual or automatic downshifting. The second preset time window in the embodiments provided in this application can be customized according to different application scenarios. The second preset time window set in this application can be 0.3ms.
[0074] In the above-mentioned embodiments, after all the above conditions are met, and after a certain preset time (such as 300ms), the deceleration backfire sound effect is enabled and the duration is T = 300ms + (virtual speed / 1000) × 50ms, in order to match the speed decay curve.
[0075] For example, the backfire sound effect triggering conditions include acceleration upshift backfire triggering conditions. Based on the changing characteristics of various virtual speeds, throttle opening signals, and the vehicle's virtual gear position, it is determined whether the vehicle meets the backfire sound effect triggering conditions, including:
[0076] If the throttle opening is continuously greater than or equal to the third amplitude threshold for a duration exceeding the second preset time window, and the virtual speed is greater than or equal to the second speed threshold, and the change in the vehicle's virtual gear is identified as an upshift operation, the vehicle is determined to meet the acceleration upshift backfire trigger condition. If the throttle opening is continuously less than the third amplitude threshold, or the throttle opening is continuously greater than or equal to the third amplitude threshold for a duration not exceeding the second preset time window, or the virtual speed is less than the second speed threshold, or the change in the vehicle's virtual gear is not identified as an upshift operation, the vehicle is determined not to meet the acceleration upshift backfire trigger condition.
[0077] It is understood that, after determining that the backfire sound switch is set, and after determining that the throttle opening is greater than or equal to the third amplitude threshold (e.g., 20%) for a duration exceeding the second preset time window (e.g., 0.3S), and when determining that the virtual speed is greater than or equal to the second speed threshold (e.g., 2500rpm), the vehicle is determined to meet the backfire trigger condition of releasing the throttle in a fixed gear, and the vehicle's gear shifting operation is identified as "acceleration upshift".
[0078] It should be noted that, in the embodiments provided in this application, after all the above conditions are met, and after the torque drops into the pit or after a certain second preset time (such as 100ms), the acceleration backfire sound effect will be enabled and will last for a duration of T = 400ms - (virtual speed / 150) × 100ms, in order to match the speed change curve.
[0079] For example, when the duration for which the throttle opening is continuously greater than or equal to a third amplitude threshold exceeds a second preset time window, and the virtual speed is greater than or equal to a second speed threshold, and the change in the vehicle's virtual gear is identified as an upshift operation, after determining that the vehicle meets the acceleration upshift backfire trigger condition, the method further includes:
[0080] Based on the torque changes of the motor in the vehicle, the corresponding torque interruption feature point of the vehicle is determined; based on the torque interruption feature point, the delay parameters of the delayed trigger dynamic simulated sound wave are determined.
[0081] It is understood that, in the embodiments provided in this application, when the motor torque of the vehicle drops from the current torque and then recovers to the target gear torque, the torque interruption characteristic point can be determined by simulating the gearbox shifting interruption and torque recovery process, and based on the torque interruption characteristic point, the delay parameters for delay-triggered dynamic simulated sound wave can be determined.
[0082] S104. When the vehicle meets the backfire sound effect triggering conditions, determine the vehicle's dynamic simulated sound based on the virtual speed and the recorded preset backfire sound effect.
[0083] In this step, the embodiment provided in this application, when the vehicle meets the backfire sound effect triggering conditions and receives the deceleration backfire sound effect enable setting, will start playing the vehicle's dynamic simulated sound on the in-vehicle and / or external audio equipment based on the virtual speed and the recorded preset backfire sound effect to simulate the state of excess fuel not being completely burned when decelerating. Specifically, the simulated sound effect is the sound effect of secondary ignition in the high-temperature exhaust pipe, which is mostly a long-lasting, continuous, irregular and bright sound.
[0084] For example, when the vehicle meets the backfire sound effect triggering conditions, the dynamic simulated sound of the vehicle is determined based on the virtual speed and the recorded preset backfire sound effect, including:
[0085] When the vehicle meets the trigger conditions for the backfire sound effect, the recorded preset backfire sound effect is decomposed into audio particles based on preset audio decomposition rules to determine at least one short audio segment; based on preset attenuation gradient rules corresponding to virtual speed, at least one short audio segment is dynamically reassembled and spliced to determine the simulated sound effect parameters; based on the simulated sound effect parameters, the dynamic simulated sound of the vehicle is determined.
[0086] It should be noted that, in the embodiments provided in this application, when the vehicle meets the backfire sound effect triggering conditions, in the synthesis of simulated deceleration backfire sound effect, the recorded preset backfire sound effect will be decomposed into short-time audio particles (20-50ms) based on preset audio decomposition rules, such as particle synthesis method, and rearranged and spliced according to preset attenuation gradient rules, such as deceleration gradient, to generate simulated sound effect parameters, and then start playing "bang bang" backfire sound to simulate the state of excess fuel not being completely burned when decelerating. Specifically, the simulated sound effect is the sound effect of secondary ignition in the high-temperature exhaust pipe, which is mostly a relatively long, continuous, irregular and bright sound.
[0087] It is understood that the embodiments provided in this application, in the synthesis of simulated deceleration and tempering sound effects, will follow a preset attenuation gradient rule. For example, the formula for rearranging and splicing the deceleration gradient can be specifically as follows:
[0088] Z(n) = ∑[particle pool L(i)] × (g_z × virtual rotation speed + c);
[0089] Where g_z is used to characterize the velocity-related gain; c is used to characterize the fixed gain.
[0090] In the above-described embodiments, the exhaust resonance of a vehicle can also be simulated by superimposing fundamental frequency harmonics proportional to the motor speed (such as 250Hz fundamental frequency + 500Hz and 750Hz harmonics) through harmonic enhancement.
[0091] In the embodiment provided in this application, when the sound effect module receives the accelerated backfire sound effect enable setting, it starts playing a "pop pop pop" backfire sound to simulate a short, continuous, regular, and low-pitched popping sound effect. Specifically, the audio of the pre-recorded backfire sound effect of a fuel vehicle is decomposed into short particles of 20-50ms. Then, the particles are rapidly stacked (e.g., 5 particles are played continuously) at the moment of upshifting to simulate the "pop pop pop" sequence. The fundamental frequency of the particles is adjusted in real time according to the virtual speed: for example, at a speed of 4000rpm, the fundamental frequency = 350Hz; at a speed of 6000rpm, the fundamental frequency = 450Hz. The proportion of high-frequency energy >1kHz is suppressed (e.g., reduced to <30%) to avoid electronic noise. Then, 5kHz narrowband noise (e.g., bandwidth ±200Hz) is added to simulate the resonance sound of metal fragments, but the intensity is controlled to be below 20% of the low frequency.
[0092] The specific method for setting the dynamic simulated sound of a vehicle according to the embodiments provided in this application is as follows:
[0093] There are two states for the dynamic simulation of the backfire sound switch: one is that the switch is on, and the other is that the switch is off.
[0094] There are multiple settings for the dynamic simulation of backfire sound: such as in-vehicle, outside-vehicle, in-vehicle, and driver's headrest audio.
[0095] For the volume settings of the dynamically simulated tempering sound, the volume increases from left to right.
[0096] For example, the method also includes:
[0097] When the vehicle's current speed is greater than or equal to a first speed threshold, the vehicle's dynamic simulated sound area is set as both the external speaker area and the internal speaker area; when the vehicle's current speed is less than a second speed threshold, the vehicle's dynamic simulated sound area is set as the internal speaker area, wherein the first speed threshold is greater than the second speed threshold.
[0098] It should be noted that the embodiments provided in this application only allow the external speaker area and the internal speaker area to be turned on when the current vehicle speed is greater than or equal to a first vehicle speed threshold of 30 km / h; when the current vehicle speed is less than a second vehicle speed threshold of 20 km / h, the vehicle's dynamic simulated sound area is set as the internal speaker area.
[0099] It is understood that when the sound wave area in the embodiments provided in this application is set to both inside and outside the vehicle, the audio equipment inside and outside the vehicle will play simultaneously; if it is only inside the vehicle, only the audio equipment inside the vehicle will play; if the driver's headrest audio equipment is provided, then only the backfire sound wave will be played in the driver's area.
[0100] In the embodiments provided in this application, the first vehicle speed threshold and the second vehicle speed threshold can be customized and used according to different application scenarios and usage conditions.
[0101] Since playing loud music may affect long-distance driving, the embodiments provided in this application allow users to adjust the volume proportionally through the sound volume setting, and under normal sound effects, match and calibrate to the best effect.
[0102] Here, the embodiments provided in this application also support the setting of a threshold limit for the duration of a single sound wave activation. If the actual activation duration of the sound wave exceeds the threshold limit, the vehicle's central control screen can automatically recommend the "suggest turning off" option to the user. The user can operate the central control screen and click to turn off the sound wave function.
[0103] For example, the embodiments provided in this application also update the sound source features of the audio particle library in response to a third-party sound effect particle library imported by the user.
[0104] Compared with the prior art, the electric vehicle sound simulation method provided in this application obtains the vehicle's dynamic driving signals and determines the vehicle's virtual speed at each virtual gear based on the vehicle speed signal, virtual gear ratio signal, and virtual gear signal. Then, based on each virtual speed, throttle opening signal, and the vehicle's virtual gear change characteristics, it determines whether the vehicle meets the backfire sound effect triggering conditions. When the vehicle meets the backfire sound effect triggering conditions, it determines the vehicle's dynamic simulated sound based on the virtual speed and the recorded preset backfire sound effect. This application improves the user's driving experience.
[0105] This application can determine the virtual speed of the vehicle in each virtual gear based on the vehicle speed and virtual gear ratio, and integrates the independent triggering methods of three types of backfire sound waves: releasing the accelerator, decelerating and downshifting, and accelerating and upshifting. It realizes dynamic sound wave simulation under multiple working conditions, avoiding the limitation of traditional solutions that only support single working condition simulation. This application introduces "shift torque pit detection" (upshift backfire) and downshift operation recognition to achieve synchronization between sound effects and physical sensation. This application applies a speed decay curve to solve the problem of rigid sound effects caused by fixed delay. This application achieves millisecond-level response based on high-frequency signal sampling of the CAN bus, combined with conditions such as throttle opening and virtual speed threshold, avoiding the action disconnect caused by insufficient sampling rate in traditional solutions.
[0106] This application can bind the vehicle speed threshold to trigger external sound effects, avoiding noise interference caused by the forced output of sound effects. This application can restore the characteristics of the downshifting and rev-matching sound of a fuel vehicle to the greatest extent.
[0107] Figure 2 A structural block diagram of a sound simulation device for an electric vehicle provided in an embodiment of this application is shown. Figure 2 As shown, the sound simulation device 200 for electric vehicles includes:
[0108] The acquisition module 210 is used to acquire the vehicle's dynamic driving signals, which include vehicle speed signal, throttle opening signal and virtual gear ratio signal.
[0109] The first determining module 220 is used to determine the virtual speed of the vehicle in each virtual gear based on the vehicle speed signal and the virtual gear ratio signal.
[0110] The second determining module 230 is used to determine whether the vehicle meets the backfire sound effect triggering conditions based on the changing characteristics of each virtual speed, throttle opening signal and the vehicle's virtual gear.
[0111] The third determining module 240 is used to determine the dynamic simulated sound of the vehicle based on the virtual rotation speed and the recorded preset backfire sound when the vehicle meets the backfire sound effect triggering conditions.
[0112] For example, the backfire sound effect triggering condition includes a fixed gear release throttle backfire triggering condition, and the second determining module 230 is specifically used for:
[0113] When the decrease in throttle opening within the first preset time window is greater than or equal to the first amplitude threshold, and the virtual speed is greater than or equal to the first speed threshold, it is determined that the vehicle meets the backfire trigger condition for releasing the throttle in a fixed gear.
[0114] When the decrease in throttle opening within a first preset time window is less than a first amplitude threshold, or the virtual speed is less than a first speed threshold, it is determined that the vehicle does not meet the backfire trigger condition for releasing the throttle in a fixed gear.
[0115] For example, the backfire sound effect triggering condition includes a deceleration downshift backfire triggering condition, and the second determining module 230 is specifically used for:
[0116] When the duration of the throttle opening being less than or equal to the second amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the first speed threshold, and the change in the vehicle's virtual gear is identified as a downshift operation, it is determined that the vehicle meets the deceleration downshift backfire trigger condition.
[0117] If the throttle opening is continuously less than the second amplitude threshold, or the duration of the throttle opening being continuously greater than or equal to the second amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the first speed threshold, or the change in the vehicle's virtual gear is not recognized as a downshift operation, it is determined that the vehicle does not meet the deceleration downshift backfire trigger condition.
[0118] For example, the backfire sound effect triggering condition includes an acceleration upshift backfire triggering condition, and the second determining module 230 is specifically used for:
[0119] When the duration for which the throttle opening is continuously greater than or equal to the third amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the second speed threshold, and the change in the vehicle's virtual gear is identified as an upshift operation, it is determined that the vehicle meets the acceleration upshift backfire trigger condition.
[0120] If the throttle opening is continuously less than the third amplitude threshold, or the duration of the throttle opening being continuously greater than or equal to the third amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the second speed threshold, or the change in the vehicle's virtual gear is not recognized as an upshift operation, it is determined that the vehicle does not meet the acceleration upshift backfire trigger condition.
[0121] For example, the third determining module 240 is specifically used for:
[0122] When the vehicle meets the trigger conditions for the backfire sound effect, the recorded preset backfire sound effect is decomposed into audio particles based on the preset audio decomposition rules to determine at least one short audio segment.
[0123] Based on the preset attenuation gradient rule corresponding to the virtual rotation speed, at least one short audio segment is dynamically reassembled and spliced to determine the simulated sound effect parameters.
[0124] Based on the simulated sound effect parameters, the dynamic simulated sound waves of the vehicle are determined.
[0125] For example, based on the torque changes of the motor in the vehicle, the corresponding torque interruption feature point of the vehicle can be determined.
[0126] Based on the torque interruption feature point, the delay parameters for the delayed triggering of dynamic simulated sound waves are determined.
[0127] For example, when the vehicle's current speed is greater than or equal to a first speed threshold, the dynamic simulated sound wave area of the vehicle is determined to be set as an external speaker area and an internal speaker area.
[0128] When the vehicle's current speed is less than the second speed threshold, the dynamic simulated sound area of the vehicle is set as the in-vehicle speaker area, wherein the first speed threshold is greater than the second speed threshold.
[0129] Compared with the prior art, the electric vehicle sound simulation device 200 provided in this application obtains the vehicle's dynamic driving signal and determines the vehicle's virtual speed at each virtual gear based on the vehicle speed signal, virtual gear ratio signal, and virtual gear signal. Then, based on the changes in each virtual speed, throttle opening signal, and the vehicle's virtual gear, it determines whether the vehicle meets the backfire sound effect triggering condition. When the vehicle meets the backfire sound effect triggering condition, it determines the vehicle's dynamic simulated sound based on the virtual speed and the recorded preset backfire sound effect. This application improves the user's driving experience.
[0130] This application can determine the virtual speed of the vehicle in each virtual gear based on the vehicle speed and virtual gear ratio, and integrates the independent triggering methods of three types of backfire sound waves: releasing the accelerator, decelerating and downshifting, and accelerating and upshifting, to realize dynamic sound wave simulation under multiple working conditions, avoiding the limitation of traditional solutions that only support single working condition simulation. This application introduces "shift torque pit detection" (upshift backfire) and downshift operation recognition to achieve synchronization between sound effects and physical sensation. This application applies a speed decay curve to solve the problem of rigid sound effects caused by fixed delay. This application achieves millisecond-level response based on high-frequency signal sampling of the CAN bus, combined with conditions such as throttle opening and virtual speed threshold, avoiding the action disconnect caused by insufficient sampling rate in traditional solutions.
[0131] This application can bind the vehicle speed threshold to trigger external sound effects, avoiding noise interference caused by the forced output of sound effects. This application can restore the characteristics of the downshifting and rev-matching sound of a fuel vehicle to the greatest extent.
[0132] Please see Figure 3 , Figure 3 This application provides a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3 As shown, the electronic device 300 includes a processor 310, a memory 320, and a bus 330.
[0133] Memory 320 stores machine-readable instructions executable by processor 310. When electronic device 300 is running, processor 310 and memory 320 communicate via bus 330. When the machine-readable instructions are executed by processor 310, they can perform the operations described above. Figure 1 The steps of the electric vehicle sound simulation method in the method embodiment shown are described in detail in the method embodiment, and will not be repeated here.
[0134] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described actions. Figure 1 The steps of the electric vehicle sound simulation method in the method embodiment shown are described in detail in the method embodiment, and will not be repeated here.
[0135] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0136] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0137] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-readable program code.
[0138] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0139] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0140] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0141] This application also provides a computer program product, which includes computer software instructions that, when executed on a processing device, cause the processing device to execute a process for simulating the sound of an electric vehicle.
[0142] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0143] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0144] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between devices or units, and may be electrical, mechanical, or other forms.
[0145] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0146] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0147] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0148] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
[0149] Although preferred embodiments have been described in this specification, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this specification.
[0150] Obviously, those skilled in the art can make various modifications and variations to this specification without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims and their equivalents, this specification is also intended to include such modifications and variations.
Claims
1. A method for simulating the sound of an electric vehicle, characterized in that, The method for simulating the sound of electric vehicles includes: Acquire dynamic driving signals of the vehicle, including vehicle speed signal, throttle opening signal and virtual gear ratio signal; Based on the vehicle speed signal and the virtual gear ratio signal, the virtual speed of the vehicle in each virtual gear is determined; Based on the changing characteristics of each of the virtual speeds, the throttle opening signals, and the virtual gear of the vehicle, it is determined whether the vehicle meets the backfire sound effect triggering conditions. When the vehicle meets the backfire sound effect triggering condition, the dynamic simulated sound of the vehicle is determined based on the virtual rotation speed and the recorded preset backfire sound effect.
2. The method for simulating the sound of an electric vehicle according to claim 1, characterized in that, The backfire sound effect triggering conditions include a fixed gear release backfire triggering condition. The determination of whether the vehicle meets the backfire sound effect triggering conditions based on the virtual speeds, throttle opening signals, and the changes in the vehicle's virtual gears includes: When the decrease in the throttle opening within a first preset time window is greater than or equal to a first amplitude threshold, and the virtual speed is greater than or equal to a first speed threshold, it is determined that the vehicle meets the fixed gear release backfire trigger condition. When the decrease in throttle opening within a first preset time window is less than the first amplitude threshold, or the virtual speed is less than the first speed threshold, it is determined that the vehicle does not meet the backfire trigger condition for releasing the throttle in a fixed gear.
3. The method for simulating the sound of an electric vehicle according to claim 1, characterized in that, The backfire sound effect triggering conditions include deceleration and downshifting backfire triggering conditions. The determination of whether the vehicle meets the backfire sound effect triggering conditions based on the changes in each of the virtual speeds, the throttle opening signals, and the vehicle's virtual gear position includes: When the duration for which the throttle opening is continuously less than or equal to the second amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the first speed threshold, and the change in the virtual gear of the vehicle is identified as a downshift operation, it is determined that the vehicle meets the deceleration downshift backfire trigger condition. If the throttle opening is continuously less than the second amplitude threshold, or the duration of the throttle opening being continuously greater than or equal to the second amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the first speed threshold, or the change in the vehicle's virtual gear is not identified as a downshift operation, it is determined that the vehicle does not meet the deceleration downshift backfire trigger condition.
4. The method for simulating the sound of an electric vehicle according to claim 1, characterized in that, The backfire sound effect triggering conditions include acceleration upshift backfire triggering conditions. The determination of whether the vehicle meets the backfire sound effect triggering conditions based on the changes in each of the virtual speeds, the throttle opening signals, and the vehicle's virtual gear positions includes: When the duration for which the throttle opening is continuously greater than or equal to the third amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the second speed threshold, and the change in the virtual gear of the vehicle is identified as an upshift operation, it is determined that the vehicle meets the acceleration upshift backfire trigger condition. If the throttle opening is continuously less than the third amplitude threshold, or the duration of the throttle opening being continuously greater than or equal to the third amplitude threshold does not exceed the second preset time window, or the virtual speed is less than the second speed threshold, or the change in the vehicle's virtual gear is not identified as an upshift operation, it is determined that the vehicle does not meet the acceleration upshift backfire trigger condition.
5. The method for simulating the sound of an electric vehicle according to claim 1, characterized in that, When the vehicle meets the backfire sound effect triggering condition, the dynamic simulated sound of the vehicle is determined based on the virtual rotation speed and the recorded preset backfire sound effect, including: When the vehicle meets the triggering condition of the backfire sound effect, the recorded preset backfire sound effect is decomposed into audio particles based on the preset audio decomposition rules to determine at least one short audio segment. Based on the preset attenuation gradient rule corresponding to the virtual rotation speed, at least one of the short-time audio segments is dynamically reassembled and spliced to determine the simulated sound effect parameters. Based on the simulated sound effect parameters, the dynamic simulated sound wave of the vehicle is determined.
6. The method for simulating the sound of an electric vehicle according to claim 4, characterized in that, After determining that the vehicle meets the acceleration upshift backfire trigger condition when the duration for which the throttle opening is continuously greater than or equal to the third amplitude threshold exceeds the second preset time window, and the virtual speed is greater than or equal to the second speed threshold, and the change in the vehicle's virtual gear is identified as an upshift operation, the method further includes: Based on the torque change of the motor in the vehicle, the corresponding torque interruption feature point of the vehicle is determined; Based on the torque interruption feature point, the delay parameters for the delayed triggering of dynamic simulated sound waves are determined.
7. The method for simulating the sound of an electric vehicle according to claim 1, characterized in that, The method further includes: When the current speed of the vehicle is greater than or equal to a first speed threshold, the dynamic simulated sound wave area of the vehicle is determined to be set as the external speaker area and the internal speaker area. When the current speed of the vehicle is less than a second speed threshold, the dynamic simulated sound area of the vehicle is determined to be set as the in-vehicle speaker area, wherein the first speed threshold is greater than the second speed threshold.
8. A sound simulation device for electric vehicles, characterized in that, The sound simulation device for the electric vehicle includes: The acquisition module is used to acquire the vehicle's dynamic driving signals, which include vehicle speed signals, throttle opening signals, and virtual gear ratio signals. The first determining module is used to determine the virtual speed of the vehicle in each virtual gear based on the vehicle speed signal and the virtual gear ratio signal; The second determining module is used to determine whether the vehicle meets the backfire sound effect triggering conditions based on the changing characteristics of each of the virtual speeds, the throttle opening signals, and the virtual gear of the vehicle. The third determining module is used to determine the dynamic simulated sound of the vehicle based on the virtual rotation speed and the recorded preset backfire sound when the vehicle meets the backfire sound effect triggering condition.
9. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus, and the machine-readable instructions are executed by the processor to perform the steps of the sound simulation method for an electric vehicle as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the sound simulation method for an electric vehicle as described in any one of claims 1-7.