Sound wave synthesis method and device, storage medium, vehicle and electronic equipment

The sound wave synthesis method is used to simulate the engine sound, which solves the problem of insufficient motor sound of new energy vehicles, improves the driving experience and safety, and avoids fatigue driving and dangerous driving.

CN118571256APending Publication Date: 2024-08-30XIAOMI EV TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310215496.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The motor sound frequency component of new energy vehicles is single and the sound energy is weak, making it difficult for the driver to judge the driving status of the vehicle through the motor sound assistance, and prone to fatigue driving and dangerous driving.

Method used

Through the sound wave synthesis method, based on the actual speed of the rotating structure and the pre-stored signal sampling rate and historical frequency parameters, the target virtual speed is determined, the time domain amplitude signal is synthesized, the engine sound is simulated, and the engine sound is played back in real time in the car cockpit or outside the car to enhance driving. improve the driver's driving experience and improve safety.

Benefits of technology

It achieves real-time synthesis of engine sound like a fuel vehicle engine, avoiding fatigue driving and dangerous driving situations caused by the single frequency component and weak energy of the motor sound, and improving the driver's driving experience and vehicle safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118571256A
    Figure CN118571256A
Patent Text Reader

Abstract

The invention relates to a sound synthesis method and device, a storage medium, a vehicle and electronic equipment, and the method comprises the steps: obtaining a target virtual rotating speed for synthesizing a sound signal according to the actual rotating speed of a rotating structure at the current moment; according to the target virtual rotating speed, a pre-stored signal sampling rate and historical frequency parameters, target frequency parameters corresponding to all orders at the current moment are determined, all the orders are obtained according to orders included in pre-stored order signal features, and the order signal features represent the relation among the orders, the rotating speed and the amplitude; determining a target amplitude parameter corresponding to each order at the current moment according to the target virtual rotating speed and the order signal characteristics; synthesizing a time domain amplitude signal corresponding to each order according to the target frequency parameter and the target amplitude parameter corresponding to each order; and superposing the time domain amplitude signals corresponding to each order to obtain a sound wave signal corresponding to the rotation structure at the current moment. According to the invention, the sound signal of the rotating structure can be synthesized in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular to a sound wave synthesis method, device, storage medium, vehicle and electronic equipment. Background Art

[0002] With the rapid development of new energy vehicles, more and more consumers choose to buy new energy vehicles instead of traditional fuel vehicles. New energy vehicles use electric motors instead of traditional engines, but the sound of the motors of new energy vehicles has a single frequency component and weaker sound energy compared to the roar of traditional engines. On the one hand, the sound of the motor with a single frequency component will cause auditory fatigue and discomfort to the driver and passengers if it echoes in the ears for a long time; on the other hand, the motor's own sound energy is small, and the sound does not change significantly with acceleration and deceleration. A series of characteristics make it unable to effectively reflect the current driving condition of the vehicle. It is difficult for the driver to judge the current driving condition of the vehicle with the assistance of the motor sound, which is prone to fatigue driving, dangerous driving, etc. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a sound wave synthesis method, device, storage medium, vehicle and electronic equipment.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a sound wave synthesis method, comprising:

[0005] According to the actual rotation speed of the rotating structure at the current moment, a target virtual rotation speed for synthesizing the sound wave signal is obtained;

[0006] According to the target virtual rotational speed, and the pre-stored signal sampling rate and historical frequency parameters, the target frequency parameters corresponding to each order at the current moment are determined, wherein the historical frequency parameters include the target frequency parameters corresponding to each order at the previous moment of the current moment, the each order is obtained according to the order included in the pre-stored order signal characteristics, the order represents the relationship between the rotational speed and the frequency, the order signal characteristics are obtained according to the amplitudes corresponding to different frequencies in the pre-collected sample signals, the sample signals represent the sound signals or vibration signals generated by the rotating structure samples at different rotational speeds, and the order signal characteristics represent the relationship among the order, the rotational speed and the amplitude;

[0007] Determine the target amplitude parameters corresponding to each order at the current moment according to the target virtual rotation speed and the order signal characteristics;

[0008] synthesizing the time domain amplitude signals corresponding to the respective orders according to the target frequency parameters and the target amplitude parameters corresponding to the respective orders;

[0009] The time domain amplitude signals corresponding to the various orders are superimposed to obtain the acoustic wave signal corresponding to the rotating structure at the current moment.

[0010] Optionally, obtaining a target virtual rotation speed for synthesizing the sound wave signal according to an actual rotation speed of the rotating structure at a current moment includes:

[0011] The actual speed is adjusted to a preset speed range to obtain a first adjusted speed, wherein the left end point of the preset speed range is the sum of the minimum speed included in the order signal characteristic and a preset positive bias value, and the right end point is the sum of the maximum speed included in the order signal characteristic and a preset negative bias value;

[0012] Generating a random value between the negative bias value and the positive bias value;

[0013] The target virtual rotation speed for synthesizing the sound signal is obtained according to the sum of the first adjusted rotation speed and the random value.

[0014] Optionally, obtaining the target virtual speed for synthesizing the sound signal according to the sum of the first adjusted speed and the random value includes:

[0015] Obtaining a second adjusted speed according to the sum of the first adjusted speed and the random value;

[0016] A logarithmic calculation is performed according to the second adjusted rotation speed to obtain the target virtual rotation speed for synthesizing the sound wave signal.

[0017] Optionally, performing logarithmic calculation according to the second adjusted rotation speed to obtain the target virtual rotation speed for synthesizing the sound signal includes:

[0018] Determining coefficient parameters and offset parameters according to the minimum rotation speed and the maximum rotation speed included in the order signal characteristics;

[0019] The difference between the second adjusted speed and a preset offset constant is calculated, and the difference is logarithmically calculated, the logarithmic calculation result is multiplied by the coefficient parameter, and then the multiplication result is subtracted from the offset parameter to obtain the target virtual speed for synthesizing the sound signal.

[0020] Optionally, the coefficient parameter and the offset parameter are determined by the following formula:

[0021]

[0022] σ=log 10 (r min -λ)·ρ-r min

[0023] Among them, ρ is the coefficient parameter, σ is the offset coefficient, r min is the minimum speed contained in the order signal characteristics, r max is the maximum rotation speed contained in the order signal characteristic, and λ is the preset offset constant.

[0024] Optionally, determining the target frequency parameters corresponding to each order at the current moment according to the target virtual rotation speed, and the pre-stored signal sampling rate and historical frequency parameters includes:

[0025] For each of the orders, determining a reference frequency parameter according to the order and the target virtual speed, and determining a target frequency parameter corresponding to the order at a previous moment according to the pre-stored historical frequency parameter;

[0026] Obtaining a frequency parameter to be modulated according to the sum of the reference frequency parameter and the target frequency parameter corresponding to the order at the previous moment;

[0027] A modulo operation is performed according to the frequency parameter to be modulo-measured and the pre-stored signal sampling rate to obtain a target frequency parameter corresponding to the order at the current moment.

[0028] Optionally, the superimposing the time domain amplitude signals corresponding to the various orders to obtain the acoustic wave signal corresponding to the rotating structure at the current moment includes:

[0029] Obtaining a power gain parameter of the rotating structure at the current moment;

[0030] The time domain amplitude signals corresponding to the various orders are superimposed according to the power gain parameter to obtain the acoustic wave signal corresponding to the rotating structure at the current moment.

[0031] Optionally, the order signal feature is generated in the following manner:

[0032] The sample signals generated by the rotating structure samples at different rotation speeds are obtained and the sample signals are divided into frames to obtain multi-frame time domain signals:

[0033] Perform Fourier transform on each frame of time domain signal to obtain the frequency domain signal corresponding to each frame of time domain signal;

[0034] Calculating the auto-power spectrum of each frame of the frequency domain signal, wherein the auto-power spectrum includes the frequencies contained in the frame of the frequency domain signal and the original amplitude corresponding to each frequency;

[0035] Generate a target spectrum diagram according to the autopower spectrum of each frame of the frequency domain signal and the corresponding rotation speed, wherein the target spectrum diagram includes original amplitudes corresponding to different frequencies at different rotation speeds;

[0036] According to the target frequency spectrum, extracting the original amplitudes corresponding to different orders at different speeds;

[0037] The order signal characteristics are obtained according to the original amplitudes corresponding to the different orders at different rotation speeds.

[0038] Optionally, in the multiple frames of time domain signals, signals between two adjacent frames of time domain signals partially overlap.

[0039] Optionally, obtaining the order signal characteristics according to the original amplitudes corresponding to the different orders at different rotation speeds includes:

[0040] For the original amplitude corresponding to any order extracted at any rotation speed, obtaining at least one neighbor original amplitude immediately adjacent to the original amplitude in the target spectrum graph;

[0041] Obtaining a target amplitude corresponding to the order at the rotation speed according to the original amplitude and the at least one neighbor original amplitude;

[0042] The order signal characteristics are obtained according to target amplitudes corresponding to different orders at different rotation speeds.

[0043] According to a second aspect of an embodiment of the present disclosure, there is provided a sound wave synthesis device, comprising:

[0044] A rotation speed determination module, used to obtain a target virtual rotation speed for synthesizing the sound wave signal according to the actual rotation speed of the rotating structure at the current moment;

[0045] A frequency parameter determination module, used to determine the target frequency parameters corresponding to each order at the current moment according to the target virtual rotation speed, and the pre-stored signal sampling rate and historical frequency parameters, wherein the historical frequency parameters include the target frequency parameters corresponding to each order at the previous moment of the current moment, the each order is obtained according to the order included in the pre-stored order signal characteristics, the order represents the relationship between the rotation speed and the frequency, the order signal characteristics are obtained according to the amplitudes corresponding to different frequencies in the pre-collected sample signal, the sample signal represents the sound signal or vibration signal generated by the rotating structure sample at different rotation speeds, and the order signal characteristics represent the relationship among the order, the rotation speed and the amplitude;

[0046] An amplitude parameter determination module, used to determine the target amplitude parameters corresponding to each order at the current moment according to the target virtual rotation speed and the order signal characteristics;

[0047] An amplitude signal synthesis module, used for synthesizing the time domain amplitude signals corresponding to the respective orders according to the target frequency parameters and the target amplitude parameters corresponding to the respective orders;

[0048] The acoustic signal synthesis module is used to superimpose the time domain amplitude signals corresponding to the various orders to obtain the acoustic signal corresponding to the rotating structure at the current moment.

[0049] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the sound wave synthesis method provided by the first aspect of the present disclosure is implemented.

[0050] According to a fourth aspect of an embodiment of the present disclosure, a vehicle is provided, comprising:

[0051] a first processor;

[0052] a first memory for storing first processor executable instructions;

[0053] Among them, the first processor is configured to execute instructions stored in the first memory to implement the sound wave synthesis method provided by the first aspect of the present disclosure.

[0054] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0055] A second processor;

[0056] a second memory for storing second processor executable instructions;

[0057] The second processor is configured to execute instructions stored in the second memory to implement the sound wave synthesis method provided in the first aspect of the present disclosure.

[0058] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0059] This technical solution can synthesize sound signals in real time to obtain engine sounds like those of a fuel vehicle engine, avoiding fatigue driving, dangerous driving, etc. caused by the single frequency component and weak energy of the motor sound of new energy vehicles.

[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0062] Figure 1 A schematic diagram of a target spectrum diagram in an exemplary embodiment is shown;

[0063] Figure 2A schematic diagram of a target spectrum diagram in an exemplary embodiment is shown;

[0064] Figure 3 A flow chart showing a method for synthesizing sound waves in an exemplary embodiment is shown;

[0065] Figure 4 A flowchart showing an implementation method of step S306 in an exemplary embodiment;

[0066] Figure 5 A flow chart showing a method for synthesizing sound waves in an exemplary embodiment is shown;

[0067] Figure 6 A flowchart showing an implementation method of step S501 in an exemplary embodiment;

[0068] Figure 7 A block diagram of a sound wave synthesis device in an exemplary embodiment is shown;

[0069] Figure 8 A block diagram of a vehicle in an exemplary embodiment is shown;

[0070] Fig. 9 A block diagram of an electronic device in an exemplary embodiment is shown. DETAILED DESCRIPTION

[0071] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0072] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.

[0073] As mentioned in the background technology, the motor sound of new energy vehicles has a single frequency component and weak energy. It is difficult for drivers to use the motor sound to assist in judging the current driving condition of the vehicle, which can easily lead to fatigue driving, dangerous driving, etc. Traditional fuel vehicles have engine roars with richer frequency components and greater sound energy, which can effectively avoid the above problems. Based on this technical background, it is proposed to solve the above problems faced by new energy vehicles through sound wave synthesis, that is, to simulate the engine sound in real time based on the sound wave synthesis algorithm, and play it back in real time in the car cabin to create a roar like a traditional engine.

[0074] Sound synthesis is also called Engine Sound Enhancement (ESE), Active Sound Generate (ASG), or Active Sound Design (ASD). In addition to being deployed inside the car cabin, car sounds can also be deployed on external speakers to achieve external sounds, which are used to display the personalized sound effects of the vehicle; they can also be used as external warning sounds to remind pedestrians that there are vehicles passing by when driving at low speeds (less than 30km / h) to prevent the driving sound of new energy vehicles from being too quiet to attract the attention of pedestrians. This warning sound deployed outside the car is also called the Acoustic Vehicle Alerting System (AVAS), commonly known as the low-speed driving warning sound.

[0075] In order to improve the safety of new energy vehicles, the present disclosure provides a sound wave synthesis method. It is worth noting that the application scenarios of the sound wave synthesis method provided by the present disclosure include but are not limited to:

[0076] (1) In-car sound: The speakers are deployed in the car cabin. According to the driver's operation and the vehicle's driving conditions, the engine sound is synthesized in real time and played through the in-car speakers. This is used to make up for the lack of engine sound after the new energy vehicle replaces the internal combustion engine with an electric motor. Of course, it can also be used to enhance the sound layering of the traditional fuel vehicle engine. The in-car sound can improve the driving experience and enhance the driving immersion, while effectively reducing fatigue driving, dangerous driving and other situations.

[0077] (2) External sound: Speakers are deployed outside the vehicle. Based on the driver's operation and vehicle driving conditions, the engine sound is synthesized in real time and played through the external speakers. It is used for new energy vehicles to simulate the engine sound of traditional fuel vehicles.

[0078] (3) Low-speed driving warning sound: Since the sound of new energy vehicles is too quiet when driving at low speeds, pedestrians often find it difficult to notice the passing of vehicles, which poses a certain safety hazard. Therefore, it is necessary to simulate the engine sound to remind passers-by that there is a vehicle passing by. It is worth noting that when designing a low-speed driving warning sound based on the sound wave synthesis method disclosed in the present invention, in addition to completing the basic design elements, it is also necessary to comply with the requirements for the sound pressure level, frequency, etc. of the synthesized sound wave signal. Since the requirements for the sound pressure level and frequency only involve the parameter details in the design and do not involve the algorithm principles, the requirements for the sound pressure level, frequency, etc. will not be explained later.

[0079] (4) Simulation environments such as games: Since the principles of synthesizing engine sounds in games such as racing cars are the same as those of synthesizing engine sounds in real vehicles, the sound synthesis method disclosed in the present invention is also applicable to simulation environments such as games.

[0080] The acoustic wave synthesis method disclosed in the present invention mainly includes three parts: sample signal acquisition, sample signal processing and acoustic wave signal synthesis. Each part is described in detail below.

[0081] The sample signal acquisition stage is used to collect sample signals, which characterize the sound signals or vibration signals generated by the rotating structure samples at different rotation speeds. The rotating structure samples refer to components that can rotate, such as motors, engines, propellers, etc. In some embodiments, the engine is used as the rotating structure sample. In the specific implementation, an audio acquisition device with an audio sampling rate of at least 48kHz and a sampling bit depth of at least 16bit can be selected to record the engine sound signal of a fuel vehicle to obtain a sample signal. Among them, the sample signal satisfies that its main energy components in the frequency domain are several harmonics with narrow frequency bands, and the auditory sense satisfies the similarity with the vehicle operation feeling.

[0082] In some embodiments, a fuel vehicle is selected, and the audio collection device is fixed at a monitoring point. The recommended monitoring points are: next to the driver's ear, at the exhaust pipe outlet, next to the engine, or any location where the engine sound can be obtained. The driver operates the vehicle to switch to a fixed gear, and the vehicle speed is uniformly accelerated from 0 (or the lowest speed that the gear can accommodate) to the maximum speed, thereby obtaining sample signals generated by the engine at different speeds. On this basis, in the sample signal processing stage, according to the speed corresponding to the lowest speed and the highest speed in the above uniform acceleration process, the Figure 1 The target spectrum is shown. Figure 1 In the target spectrum diagram shown, the horizontal axis is the speed axis, the vertical axis is the frequency axis, and the Z axis is the amplitude axis. The amplitude size is represented by brightness in the diagram. The order represents the relationship between the speed and the frequency. From the diagram, we can observe a series of bright energy bands, each of which corresponds to an order. For example, Figure 1 The white dashed line in the figure represents one order.

[0083] In other embodiments, if there is no experimental condition to implement uniform acceleration driving, sample signals of uniform driving at multiple different speeds can be collected. On this basis, in the sample signal processing stage, each sample signal can be processed separately, and the processing results of each sample signal can be spliced ​​into Figure 2 The target spectrum is shown in Figure 1. Each column of data in the target spectrum is derived from a sample signal of a vehicle traveling at a constant speed. The order characteristics can still be seen from the figure, but the continuity of the order is less Figure 1 Slightly worse, but the continuity problem can be improved in the sample signal processing stage.

[0084] Alternatively, if there is no way to collect sample signals on site, the audio of the engine sound can also be directly acquired.

[0085] Optionally, the sample signal does not necessarily need to be a real engine sound. The rotating structure sample can also be other rotating parts, such as remote-controlled helicopter propellers, toy racing car motors, and fan motors. Therefore, sample signals can be collected based on these rotating parts, and sound wave signals can also be synthesized, and special sound effects that real engines do not have can be obtained. What kind of sound source is used as the sample signal for sound wave synthesis is a sound design process that can be adjusted according to needs, and this disclosure does not impose mandatory restrictions.

[0086] In addition, during the sample signal acquisition process, some background noise that does not change with speed can also be collected and used as comfort noise in the sound wave synthesis process.

[0087] After the sample signal is collected, the sample signal processing stage is entered to process the sample signal to generate the required order signal characteristics.

[0088] Figure 3 A flow chart of a sound wave synthesis method in an exemplary embodiment is shown, which describes the steps of the sample signal processing stage, such as Figure 3 As shown, the sound wave synthesis method includes:

[0089] Step S301 , obtaining sample signals generated by rotating structure samples at different rotation speeds and dividing the sample signals into frames to obtain multiple frames of time domain signals.

[0090] In one embodiment, the sample signal is divided into frames to obtain M frames of time domain signals, each frame of the time domain signal contains N sampling points. Each frame of the time domain signal can be expressed as s(m, n), where m ∈ (0, M), n ∈ (0, N).

[0091] It should be noted that if the sample signal represents the engine sound obtained by a fuel vehicle running at a uniform acceleration, the sample signal can be directly processed; if there are multiple sample signals, and each sample signal represents the engine sound obtained by a fuel vehicle running at a uniform speed at a certain fixed speed, then each sample signal needs to be processed in steps S301 to S303 separately.

[0092] In an optional embodiment, in the process of framing the sample signal, the signals between two adjacent frames of time domain signals partially overlap, for example, the second half of the time domain signal of the previous frame and the first half of the time domain signal of the next frame are the same signal, that is, there is overlap between frames, and the overlap ratio can be 50% or 75%. This can make the correlation between frames higher, thereby improving the problem of order discontinuity in the target spectrum graph caused by multiple uniform-speed sample signals.

[0093] Step S302, performing Fourier transform on each frame of the time domain signal to obtain a frequency domain signal corresponding to each frame of the time domain signal.

[0094] Exemplarily, a Fourier transform is performed on each frame of the time domain signal s(m,n) to obtain a corresponding frequency domain signal S(m,k).

[0095] Among them, the frequency domain signal S(m, k) can be expressed as:

[0096] S(m,k)=F(s(m,n)·w(n),K)

[0097] represents Fourier transform, w(n) represents the window function, which can be adjusted according to the actual situation. The commonly used Blackman-Harris window, Hanning window or Tukey window can be selected. K represents the dimension of Fourier transform, k∈(0, K), which represents the kth frequency.

[0098] Step S303 , calculating the auto power spectrum of each frame of the frequency domain signal, where the auto power spectrum includes the frequencies contained in the frame of the frequency domain signal and the original amplitude corresponding to each frequency.

[0099] Exemplarily, the autopower spectrum C(m, k) of a single-frame frequency domain signal can be calculated by the following formula:

[0100]

[0101] in, It means to find the real part of a complex number. It means to find the imaginary part of a complex number.

[0102] Step S304: Generate a target spectrum diagram according to the autopower spectrum of each frame of the frequency domain signal and the corresponding rotation speed. The target spectrum diagram includes original amplitudes corresponding to different frequencies at different rotation speeds.

[0103] In one embodiment, if the sample signal represents the engine sound obtained by a fuel vehicle with uniform acceleration, the lowest speed of the fuel vehicle with uniform acceleration may correspond to a minimum speed, and the highest speed may correspond to a maximum speed. Then, for the first frame of the frequency domain signal, the corresponding speed is the minimum speed, and for the last frame of the frequency domain signal, the corresponding speed is the maximum speed. The speed corresponding to the intermediate frame frequency domain signal is simply calculated through the uniform acceleration process.

[0104] It is easy to understand that a column of data in the target spectrum includes: the amplitudes corresponding to different frequencies at a certain rotation speed. Therefore, after obtaining the auto-power spectrum of each frame frequency domain signal, for any frame frequency domain signal, a column of data in the target spectrum can be generated based on the original amplitudes corresponding to different frequencies contained in the auto-power spectrum of the frame frequency domain signal, and the horizontal axis position of the column of data is determined based on the rotation speed of the frame frequency domain signal. Thus, according to the auto-power spectra of all frame frequency domain signals and the corresponding rotation speeds, Figure 1 The target spectrum is shown.

[0105] In one embodiment, if the sample signal represents the engine sound of a fuel vehicle traveling at a constant speed at a certain fixed speed, the fixed speed of each sample signal may correspond to a rotational speed, and the rotational speed information in the target spectrum diagram may be obtained by simply transforming the fixed speed of the sample signal.

[0106] In this embodiment, for each sample signal, the auto-power spectrum of each frame frequency domain signal corresponding to the sample signal is obtained, and then the auto-power spectra of all frame frequency domain signals corresponding to the sample signal are averaged at each frequency to obtain the average auto-power spectrum corresponding to the sample signal. After obtaining the average auto-power spectrum corresponding to each sample signal, for any sample signal, a column of data in the target spectrum diagram can be generated based on the average auto-power spectrum corresponding to the sample signal, and the horizontal axis position of the column of data is determined based on the rotation speed corresponding to the sample signal. Thus, a target spectrum diagram can be generated based on multiple sample signals. Figure 2 The target spectrum is shown.

[0107] In one embodiment, if the sample signal is not obtained by field acquisition, and the speed or vehicle speed corresponding to the sample signal is unknown, a suitable speed may be assumed according to the following formula:

[0108]

[0109] Among them, p represents the order, r represents the speed, and f p It represents the frequency corresponding to the order p at the speed r.

[0110] In other words, when the speed is unknown, we can assume that a certain order energy band is order p according to the order energy distribution, and according to the frequency f where the order energy is located p , and the rotation speed r is calculated. For the sample signals corresponding to other rotating structure samples, the rotation speed can also be determined by the above measurement or assumption method.

[0111] Step S305 , extracting original amplitudes corresponding to different orders at different rotation speeds according to the target frequency spectrum.

[0112] like Figure 1 As shown in the target spectrum diagram, a series of bright energy bands can be observed, each of which corresponds to an order. Figure 1 The white dashed line in the figure represents one order.

[0113] Among them, in getting Figure 1 or Figure 2 After obtaining the target spectrum diagram shown in the figure, the original amplitudes corresponding to different orders at different speeds are extracted according to the bright energy bands in the figure.

[0114] It can be understood that in the process of extracting the original amplitudes corresponding to different orders at different speeds, the number of orders to be extracted and the specific orders of data to be extracted can be selected based on the energy distribution of the order in the spectrum diagram and actual conditions, and the present disclosure does not limit this.

[0115] Step S306: obtaining order signal characteristics according to original amplitudes corresponding to different orders at different rotation speeds.

[0116] Among them, the order signal characteristics characterize the relationship between order, rotational speed and amplitude. For example, the order signal characteristics include target amplitudes of different orders at different rotational speeds. The target amplitude can be the original amplitude mentioned above, or the amplitude obtained after processing the original amplitude.

[0117] In some implementations, according to the extracted original amplitudes corresponding to different orders at different rotation speeds, each original amplitude is directly used as the target amplitude to obtain the order signal characteristics.

[0118] In some further implementations, Figure 4 A flowchart of an implementation method of step S306 in an exemplary embodiment is shown. Figure 4 As shown, step S306 includes:

[0119] Step S401 : for any extracted original amplitude corresponding to any order at any rotation speed, obtain at least one neighbor original amplitude immediately adjacent to the original amplitude in the target spectrum graph.

[0120] Step S402: Obtain a target amplitude corresponding to the order at the rotation speed according to the original amplitude and the at least one neighbor original amplitude.

[0121] Among them, an average calculation can be performed based on the original amplitude and the at least one neighbor original amplitude, or the median of the original amplitude and the at least one neighbor original amplitude can be selected, and the average calculation result or the median can be used as the target amplitude of the order at the speed.

[0122] Exemplarily, the averaging operation may be a root mean square averaging operation, for example, the target amplitude is obtained by the following formula:

[0123]

[0124] in, represents the target amplitude of order p at speed r, C(m0, k0) represents the original amplitude, and C(m i , k i ) represents the original amplitude of the i-th neighbor of the original amplitude, and N-1 represents the number of neighbor original amplitudes.

[0125] Of course, the averaging operation can also be performed by taking the arithmetic mean of the absolute values.

[0126] It should be noted that due to a series of reasons such as limited original data and limited resolution of the spectrum diagram, it may not be possible to traverse the amplitude data at all speeds. For the default amplitude data, an interpolation algorithm can be used to fill the gaps, for example, the quadratic interpolation method can be used.

[0127] Step S403: obtaining order signal characteristics according to target amplitudes corresponding to different orders at different rotation speeds.

[0128] The order signal characteristics are obtained through the above process, and the sample signal processing stage is completed.

[0129] It can be understood that the sample signal acquisition stage and the sample signal processing stage belong to the preliminary preparation stage of sound synthesis. In the final sound synthesis stage, the sound signal can be synthesized in real time according to the order signal characteristics generated in the early stage. For example, after the order signal characteristics are generated, the order signal characteristics can be built into the new energy vehicle. When the new energy vehicle is actually driving, the sound signal can be synthesized in real time according to the built-in order signal characteristics to simulate the engine sound. For another example, the order signal characteristics are built into the simulation environment engine. When the user drives a virtual vehicle for racing in the game, the simulation environment engine can synthesize the sound information in real time according to the built-in order signal characteristics to simulate the engine sound.

[0130] It is also understandable that in some embodiments, the order signal characteristics can also be generated in other ways, as long as the amplitude data of different orders at different speeds can be finally obtained. For example, the amplitudes of different orders at different speeds can be set according to historical experience values ​​to obtain the order signal characteristics.

[0131] Figure 5 A flow chart of a sound wave synthesis method in an exemplary embodiment is shown, which describes the steps of the sound wave signal synthesis stage, such as Figure 5 As shown, the sound wave synthesis method includes:

[0132] Step S501, obtaining a target virtual rotation speed for synthesizing a sound wave signal according to the actual rotation speed of the rotating structure at the current moment.

[0133] The rotating structure refers to a component that can rotate, such as a motor, an engine, a propeller, etc. In some embodiments, a motor is used as the rotating structure.

[0134] For a physical vehicle, the actual speed may be the actual speed of the motor of the physical vehicle at the current moment. For a simulation environment such as a game, the actual speed may also be the actual speed of the engine of the game vehicle at the current moment.

[0135] In some embodiments, the actual speed at the current moment can be directly used as the target virtual speed for synthesizing the sound wave signal. In some cases, the actual speed may not match the speed range corresponding to the sample signal. In this case, it is necessary to adjust the actual speed to the speed range corresponding to the sample signal to obtain the target virtual speed, where the speed range corresponding to the sample signal is [r min , r max ].

[0136] In some embodiments, in order to obtain a more realistic sound wave signal, after adjusting the actual speed to the speed range corresponding to the sample signal, the actual speed can be further optimized. For the process of optimizing the actual speed, see Figure 6 Flowchart shown.

[0137] Figure 6 A flowchart showing an implementation method of step S501 in an exemplary embodiment is shown. Figure 6 As shown, step S501 includes:

[0138] Step S601, adjust the actual speed at the current moment to within the preset speed range to obtain a first adjusted speed, the left endpoint of the preset speed range is the sum of the minimum speed contained in the order signal characteristics and the preset positive bias value, and the right endpoint is the sum of the maximum speed contained in the order signal characteristics and the preset negative bias value.

[0139] For example, assuming that the actual speed The corresponding speed range is First, the actual speed is calculated by the following formula Perform preliminary adjustment and obtain the preliminary adjustment speed r′:

[0140]

[0141] At this time, the speed range of the initial adjustment speed r' is [r min , r max ].

[0142] In order to prevent the speed from exceeding the limit after adding random jitter in the subsequent steps, the initial adjustment speed r′ is further adjusted to obtain the first adjustment speed First adjust the speed The speed range is [r min +Δ,r max -Δ], where +Δ is a preset positive bias value, -Δ is a preset negative bias value, and Δ>0.

[0143] Step S602, generating a random value between a negative bias value and a positive bias value.

[0144] Step S603: Obtain a target virtual rotation speed for synthesizing the sound signal according to the sum of the first adjusted rotation speed and the random value.

[0145] It is understandable that a constant speed will generate a constant sound signal, and a constant sound signal may cause auditory discomfort in scenarios such as constant speed driving. Therefore, a random value is generated between the preset negative bias value and the positive bias value, and then the target virtual speed is obtained based on the first adjusted speed and the random value. This is equivalent to adding random jitter to the speed, so that even with the same actual speed, the synthesized sound signal will have random differences.

[0146] In some implementations, the sum of the first adjusted rotational speed and the random value may be directly used as the target virtual rotational speed.

[0147] In some implementations, the second adjusted speed is first obtained based on the sum of the first adjusted speed and the random value. The speed range is [r min +Δ,r max -Δ], we can know the second adjustment speed The speed range is [r min , r max ]. Then, a logarithmic calculation is performed according to the second adjusted speed to obtain the target virtual speed.

[0148] It is understandable that the logarithmic change in the speed is more in line with the pleasure of hearing. The sound changes faster in the low speed range and slower in the high speed range, which is more in line with the characteristics of car acceleration.

[0149] Exemplarily, the coefficient parameter and the offset parameter can be determined according to the minimum speed and the maximum speed contained in the order signal characteristics, and then the difference between the second adjusted speed and the preset offset constant is calculated, and the difference is logarithmically calculated. The logarithmic calculation result is multiplied by the coefficient parameter, and then the multiplication result is subtracted from the offset parameter to obtain the target virtual speed for synthesizing the sound signal.

[0150] For example, the target virtual speed can be calculated by the following formula

[0151]

[0152] σ=log 10 (r min -λ)·ρ-r min

[0153]

[0154] Among them, ρ is the coefficient parameter, σ is the offset coefficient, r minis the minimum speed contained in the order signal characteristics, r max is the maximum rotation speed contained in the order signal characteristics, and λ is a preset offset constant used to control the logarithmic curvature.

[0155] It is understandable that in practical applications, random jitter may not be added, that is, a logarithmic calculation is directly performed according to the actual rotation speed at the current moment to obtain the target virtual rotation speed.

[0156] Step S502, according to the target virtual speed, and the pre-stored signal sampling rate and historical frequency parameters, determine the target frequency parameters corresponding to each order at the current moment, wherein each order is obtained according to the order included in the pre-stored order signal characteristics, and the order signal characteristics characterize the relationship between the order, speed and amplitude.

[0157] Among them, the historical frequency parameters include the target frequency parameters corresponding to each order at the previous moment of the current moment. The each order is obtained according to the order included in the pre-stored order signal characteristics. The order characterizes the relationship between the rotational speed and the frequency. The order signal characteristics are obtained according to the amplitudes corresponding to different frequencies in the pre-collected sample signals, such as those obtained according to the aforementioned sample signal collection stage and sample signal processing stage. The order signal characteristics characterize the relationship among the order, rotational speed and amplitude.

[0158] In some embodiments, for each of the orders, a reference frequency parameter is first determined based on the order and the target virtual speed, and a target frequency parameter corresponding to the order at the previous moment is determined based on the pre-stored historical frequency parameter. Then, a frequency parameter to be modulo is obtained based on the sum of the reference frequency parameter and the target frequency parameter corresponding to the order at the previous moment. Then, a modulo operation is performed based on the frequency parameter to be modulo and the pre-stored signal sampling rate to obtain the target frequency parameter corresponding to the order at the current moment.

[0159] Exemplarily, the target frequency parameter corresponding to each order at the current moment can be determined by the following formula:

[0160]

[0161] mod(…,…) is a modulo operation, which means finding the remainder after dividing the first parameter by the second parameter. θ represents the target frequency parameter corresponding to the order p at the current moment, θ0 represents the target frequency parameter corresponding to the order p at the previous moment, and fs represents the pre-stored signal sampling rate. According to the above formula, the target frequency parameter corresponding to the order p at each moment is recursively obtained by the target frequency parameter corresponding to the order p at the previous moment. The target frequency parameter θ0 corresponding to the initial moment can be set to any value, for example, fs / 4.

[0162] Step S503: determining target amplitude parameters corresponding to each order at the current moment according to the target virtual rotation speed and the order signal characteristics.

[0163] Among them, since the order signal characteristics represent the relationship between order, speed and amplitude, including the amplitudes of different orders at different speeds, the target amplitude parameters corresponding to each order at the current moment can be determined according to the target virtual speed and the order signal characteristics.

[0164] It should be understood that the execution order of step S502 and step S503 is not limited, and the two can be executed simultaneously or successively in a certain order.

[0165] Step S504: synthesize the time domain amplitude signals corresponding to each order according to the target frequency parameters and target amplitude parameters corresponding to each order.

[0166] After obtaining the target frequency parameters and target amplitude parameters corresponding to each order, the time domain amplitude signal of the corresponding order can be synthesized based on the known frequency and amplitude. Among them, the cosine or sine function can be selected to synthesize the time domain amplitude signal.

[0167] Exemplarily, assuming that a cosine function is selected to synthesize a time domain amplitude signal, for any order, according to the target frequency parameter and the target amplitude parameter corresponding to the order, the time domain amplitude signal corresponding to the order can be synthesized:

[0168]

[0169] Y t,p represents the time domain amplitude signal corresponding to order p at the current moment t, Indicates that the target virtual speed The target amplitude parameter corresponding to the determined order p, fs represents the pre-stored signal sampling rate, and θ represents the target virtual speed. The target frequency parameter corresponding to the determined order p.

[0170] Step S505, superimposing the time domain amplitude signals corresponding to each order to obtain the acoustic wave signal corresponding to the rotating structure at the current moment.

[0171] In some embodiments, the time domain amplitude signals corresponding to each order are directly superimposed to obtain the acoustic wave signal corresponding to the rotating structure at the current moment.

[0172] In some embodiments, in order to optimize the hearing of the sound wave signal, the sound wave synthesis method disclosed in the present invention further includes: obtaining the power gain parameter of the rotating structure at the current moment, and superimposing the time domain amplitude signals corresponding to the various orders according to the power gain parameter to obtain the sound wave signal corresponding to the rotating structure at the current moment. For example, the time domain amplitude signals corresponding to the various orders are first superimposed, and then the superimposed signals are amplified according to the power gain parameter to obtain the sound wave signal, or the time domain amplitude signals corresponding to each order are first amplified according to the power gain parameter, and then the amplified signals corresponding to the various orders are superimposed to obtain the sound wave signal.

[0173] It can be understood that the power gain parameter can be used to make the signal strength of the sound signal change with the speed of acceleration and deceleration, thereby enhancing the sense of following the sound as the vehicle's driving conditions change.

[0174] In a specific embodiment, the sound wave signal sig(t) at the current moment can be expressed as:

[0175]

[0176] Among them, α t Represents the power gain parameter.

[0177] The power gain parameter may be a normalized gain value based on the vehicle torque, and its value range is between 0 and 1.

[0178] In some embodiments, in order to optimize the hearing experience of the sound signal, background noise or background music that does not change with speed may be added to the sound signal as comfortable background sound.

[0179] In a specific embodiment, the sound wave signal sig(t) at the current moment can be expressed as:

[0180]

[0181] Wherein, bg(t) represents background noise or background music.

[0182] In summary, the sound synthesis method provided by the present invention provides a complete process from the sample signal acquisition stage, to the sample signal processing stage, to the sound signal synthesis stage. It can synthesize the sound signal in real time to obtain the engine sound like a fuel vehicle engine, avoiding fatigue driving, dangerous driving and the like caused by the single frequency component of the motor sound and the weak energy of the motor sound of new energy vehicles.

[0183] In addition, in the sample signal processing stage, when the collected sample signals are multiple sample signals traveling at a uniform speed, the orders in the spliced ​​target spectrum diagram can be made more continuous and smoother through the overlapping processing between frames.

[0184] In addition, during the sound wave synthesis stage, by optimizing the actual speed, the synthesized sound wave signal can be made richer in hearing, and the sound changes faster at low speeds and slower at high speeds, which is in line with the characteristics of car acceleration. Moreover, the power gain parameter can be used to make the signal strength of the sound wave signal change with the speed of acceleration and deceleration, enhancing the sense of sound wave following the changes in the vehicle's driving conditions.

[0185] Figure 7 FIG. 1 is a block diagram of a sound wave synthesis device in an exemplary embodiment. Figure 7 , the sound wave synthesis device 700 comprises:

[0186] The rotation speed determination module 701 is used to obtain a target virtual rotation speed for synthesizing the sound wave signal according to the actual rotation speed of the rotating structure at the current moment;

[0187] The frequency parameter determination module 702 is used to determine the target frequency parameters corresponding to each order at the current moment according to the target virtual rotation speed, and the pre-stored signal sampling rate and historical frequency parameters, wherein the historical frequency parameters include the target frequency parameters corresponding to each order at the previous moment of the current moment, and each order is obtained according to the order included in the pre-stored order signal characteristics, and the order represents the relationship between the rotation speed and the frequency, and the order signal characteristics are obtained according to the amplitudes corresponding to different frequencies in the pre-collected sample signals, and the sample signals represent the sound signals or vibration signals generated by the rotating structure samples at different rotation speeds, and the order signal characteristics represent the relationship among the order, the rotation speed and the amplitude;

[0188] An amplitude parameter determination module 703 is used to determine the target amplitude parameters corresponding to each order at the current moment according to the target virtual speed and the order signal characteristics;

[0189] An amplitude signal synthesis module 704 is used to synthesize the time domain amplitude signals corresponding to the respective orders according to the target frequency parameters and the target amplitude parameters corresponding to the respective orders;

[0190] The acoustic signal synthesis module 705 is used to superimpose the time domain amplitude signals corresponding to the various orders to obtain the acoustic signal corresponding to the rotating structure at the current moment.

[0191] Optionally, the rotation speed determination module 701 includes:

[0192] A first adjustment submodule, used for adjusting the actual speed to within a preset speed range to obtain a first adjusted speed, wherein the left end point of the preset speed range is the sum of the minimum speed included in the order signal characteristic and a preset positive bias value, and the right end point is the sum of the maximum speed included in the order signal characteristic and a preset negative bias value;

[0193] A random jitter submodule, used for generating a random value between the negative bias value and the positive bias value;

[0194] The speed determination submodule is used to obtain the target virtual speed for synthesizing the sound signal according to the sum of the first adjusted speed and the random value.

[0195] Optionally, the speed determination submodule includes:

[0196] a second adjustment submodule, configured to obtain a second adjusted speed according to the sum of the first adjusted speed and the random value;

[0197] The logarithmic calculation submodule is used to perform logarithmic calculation according to the second adjusted speed to obtain the target virtual speed for synthesizing the sound signal.

[0198] Optionally, the logarithmic calculation submodule is used to determine the coefficient parameter and the offset parameter according to the minimum speed and the maximum speed contained in the order signal characteristics; calculate the difference between the second adjusted speed and the preset offset constant, and perform logarithmic calculation on the difference, multiply the logarithmic calculation result by the coefficient parameter, and then subtract the multiplication result from the offset parameter to obtain the target virtual speed for synthesizing the sound signal.

[0199] Optionally, the coefficient parameter and the offset parameter are determined by the following formula:

[0200]

[0201] σ=log 10 (r min -λ)·ρ-r min

[0202] Among them, ρ is the coefficient parameter, σ is the offset coefficient, r min is the minimum speed contained in the order signal characteristics, r max is the maximum rotation speed contained in the order signal characteristic, and λ is the preset offset constant.

[0203] Optionally, the frequency parameter determination module 702 includes:

[0204] A first frequency determination submodule, for determining, for each of the orders, a reference frequency parameter according to the order and the target virtual speed, and determining a target frequency parameter corresponding to the order at a previous moment according to the pre-stored historical frequency parameter;

[0205] A second frequency determination submodule, used to obtain a frequency parameter to be modulo-measured according to the sum of the reference frequency parameter and the target frequency parameter corresponding to the order at the previous moment;

[0206] The third frequency determination submodule is used to perform a modulo operation according to the frequency parameter to be modulo-calculated and the pre-stored signal sampling rate to obtain a target frequency parameter corresponding to the order at the current moment.

[0207] Optionally, the acoustic signal synthesis module 705 is used to obtain a power gain parameter of the rotating structure at the current moment; and superimpose the time domain amplitude signals corresponding to the various orders according to the power gain parameter to obtain the acoustic signal corresponding to the rotating structure at the current moment.

[0208] Optionally, the sound wave synthesis device 700 further includes:

[0209] The sample signal framing module is used to obtain the sample signals generated by the rotating structure sample at different rotation speeds and to frame the sample signals to obtain multiple frames of time domain signals:

[0210] A Fourier transform module is used to perform Fourier transform on each frame of the time domain signal to obtain a frequency domain signal corresponding to each frame of the time domain signal;

[0211] A power spectrum calculation module, used to calculate the auto-power spectrum of each frame of the frequency domain signal, wherein the auto-power spectrum includes the frequencies contained in the frame of the frequency domain signal and the original amplitude corresponding to each frequency;

[0212] A spectrum generating module, used to generate a target spectrum according to the auto-power spectrum of each frame of the frequency domain signal and the corresponding rotation speed, wherein the target spectrum includes original amplitudes corresponding to different frequencies at different rotation speeds;

[0213] An order feature extraction module, used to extract original amplitudes corresponding to different orders at different rotation speeds according to the target frequency spectrum;

[0214] The order feature acquisition module is used to obtain the order signal feature according to the original amplitudes corresponding to the different orders at different rotation speeds.

[0215] It is worth noting that the sample signal framing module, Fourier transform module, power spectrum calculation module, spectrum diagram generation module, order feature extraction module and order feature acquisition module may not be in the same running carrier as other modules included in the sound wave synthesis device 700.

[0216] Optionally, in the multiple frames of time domain signals, signals between two adjacent frames of time domain signals partially overlap.

[0217] Optionally, the order feature acquisition module includes:

[0218] A neighbor amplitude acquisition submodule, for acquiring at least one neighbor original amplitude immediately adjacent to the original amplitude in the target spectrum graph, for the original amplitude corresponding to any extracted order at any rotation speed;

[0219] A target amplitude obtaining submodule, configured to obtain a target amplitude corresponding to the order at the rotation speed according to the original amplitude and the at least one neighbor original amplitude;

[0220] The order feature acquisition submodule is used to obtain the order signal feature according to the target amplitudes corresponding to different orders at different rotation speeds.

[0221] Regarding the sound wave synthesis device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0222] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the sound wave synthesis method provided by the present disclosure are implemented.

[0223] Figure 8 800 is a block diagram of a vehicle according to an exemplary embodiment. For example, the vehicle 800 may be a hybrid vehicle, an electric vehicle, or a fuel vehicle. The vehicle 800 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0224] Reference Figure 8 , the vehicle 800 may include various subsystems, for example, an infotainment system 810, a perception system 820, a decision control system 830, a drive system 840, and a computing platform 850. The vehicle 800 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 800 may be interconnected by wire or wireless means.

[0225] In some embodiments, the infotainment system 810 may include a communication system, an entertainment system, and a navigation system, etc.

[0226] The perception system 820 may include several sensors for sensing information about the environment around the vehicle 800. For example, the perception system 820 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.

[0227] The decision control system 830 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0228] The drive system 840 may include components that provide powered motion for the vehicle 800. In one embodiment, the drive system 840 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0229] Some or all functions of the vehicle 800 are controlled by a computing platform 850. The computing platform 850 may include at least one first processor 851 and a first memory 852, and the first processor 851 may execute instructions 853 stored in the first memory 852.

[0230] The first processor 851 may be any conventional processor, such as a commercially available CPU. The first processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0231] The first memory 852 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0232] In addition to the instructions 853 , the first memory 852 may also store data, such as road maps, route information, and data such as the location, direction, and speed of the vehicle. The data stored in the first memory 852 may be used by the computing platform 850 .

[0233] In the embodiment of the present disclosure, the first processor 851 may execute instruction 853 to complete all or part of the steps of the above-mentioned sound wave synthesis method.

[0234] Fig. 9 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 900 can be provided as an operating carrier of a simulation environment engine. Fig. 9 The electronic device 900 includes a processing component 922, which further includes one or more second processors, and a memory resource represented by a second memory 932, and the second memory 932 is used to store instructions that can be executed by the processing component 922, such as an application. The application stored in the second memory 932 may include one or more modules, each module corresponding to a set of instructions. In addition, the second processor in the processing component 922 is configured to execute the instructions to perform the above-mentioned sound wave synthesis method.

[0235] The electronic device 900 may further include a power supply component 926, a wired or wireless network interface 950, and an input / output interface 958, wherein the power supply component 926 is configured to perform power management of the electronic device 900, and the wired or wireless network interface 950 is configured to connect the electronic device 900 to a network. The electronic device 900 may operate an operating system stored in the second memory 932.

[0236] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned sound wave synthesis method when executed by the programmable device.

[0237] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0238] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A sound wave synthesis method, It is characterized in that include: According to the actual rotation speed of the rotating structure at the current moment, a target virtual rotation speed for synthesizing the sound wave signal is obtained; According to the target virtual rotational speed, and the pre-stored signal sampling rate and historical frequency parameters, the target frequency parameters corresponding to each order at the current moment are determined, wherein the historical frequency parameters include the target frequency parameters corresponding to each order at the previous moment of the current moment, the each order is obtained according to the order included in the pre-stored order signal characteristics, the order represents the relationship between the rotational speed and the frequency, the order signal characteristics are obtained according to the amplitudes corresponding to different frequencies in the pre-collected sample signals, the sample signals represent the sound signals or vibration signals generated by the rotating structure samples at different rotational speeds, and the order signal characteristics represent the relationship among the order, the rotational speed and the amplitude; Determine the target amplitude parameters corresponding to each order at the current moment according to the target virtual rotation speed and the order signal characteristics; synthesizing the time domain amplitude signals corresponding to the respective orders according to the target frequency parameters and the target amplitude parameters corresponding to the respective orders; The time domain amplitude signals corresponding to the various orders are superimposed to obtain the acoustic wave signal corresponding to the rotating structure at the current moment.

2. The method according to claim 1, It is characterized in that The step of obtaining a target virtual rotation speed for synthesizing the sound wave signal according to the actual rotation speed of the rotating structure at the current moment includes: The actual speed is adjusted to a preset speed range to obtain a first adjusted speed, wherein the left end point of the preset speed range is the sum of the minimum speed included in the order signal characteristic and a preset positive bias value, and the right end point is the sum of the maximum speed included in the order signal characteristic and a preset negative bias value; Generating a random value between the negative bias value and the positive bias value; The target virtual rotation speed for synthesizing the sound signal is obtained according to the sum of the first adjusted rotation speed and the random value.

3. The method according to claim 2, It is characterized in that The step of obtaining the target virtual speed for synthesizing the sound signal according to the sum of the first adjusted speed and the random value includes: Obtaining a second adjusted speed according to the sum of the first adjusted speed and the random value; A logarithmic calculation is performed according to the second adjusted rotation speed to obtain the target virtual rotation speed for synthesizing the sound wave signal.

4. The method according to claim 3, It is characterized in that The performing logarithmic calculation according to the second adjusted speed to obtain the target virtual speed for synthesizing the sound wave signal includes: Determining coefficient parameters and offset parameters according to the minimum rotation speed and the maximum rotation speed included in the order signal characteristics; The difference between the second adjusted speed and a preset offset constant is calculated, and the difference is logarithmically calculated, the logarithmic calculation result is multiplied by the coefficient parameter, and then the multiplication result is subtracted from the offset parameter to obtain the target virtual speed for synthesizing the sound signal.

5. The method according to claim 4, It is characterized in that The coefficient parameter and the offset parameter are determined by the following formula: σ=log 10 (r min -λ)·ρ-r min Among them, ρ is the coefficient parameter, σ is the offset coefficient, r min is the minimum speed contained in the order signal characteristics, r max is the maximum rotation speed contained in the order signal characteristic, and λ is the preset offset constant.

6. The method according to claim 1, It is characterized in that Determining the target frequency parameters corresponding to each order at the current moment according to the target virtual rotation speed, and the pre-stored signal sampling rate and historical frequency parameters includes: For each of the orders, determining a reference frequency parameter according to the order and the target virtual speed, and determining a target frequency parameter corresponding to the order at a previous moment according to the pre-stored historical frequency parameter; Obtaining a frequency parameter to be modulated according to the sum of the reference frequency parameter and the target frequency parameter corresponding to the order at the previous moment; A modulo operation is performed according to the frequency parameter to be modulo-measured and the pre-stored signal sampling rate to obtain a target frequency parameter corresponding to the order at the current moment.

7. The method according to claim 1, It is characterized in that The step of superimposing the time domain amplitude signals corresponding to the various orders to obtain the acoustic wave signal corresponding to the rotating structure at the current moment includes: Obtaining a power gain parameter of the rotating structure at the current moment; The time domain amplitude signals corresponding to the various orders are superimposed according to the power gain parameter to obtain the acoustic wave signal corresponding to the rotating structure at the current moment.

8. The method according to any one of claims 1 to 7, It is characterized in that The order signal characteristics are generated in the following way: The sample signals generated by the rotating structure samples at different rotation speeds are obtained and the sample signals are divided into frames to obtain multi-frame time domain signals: Perform Fourier transform on each frame of time domain signal to obtain the frequency domain signal corresponding to each frame of time domain signal; Calculating the auto-power spectrum of each frame of the frequency domain signal, wherein the auto-power spectrum includes the frequencies contained in the frame of the frequency domain signal and the original amplitude corresponding to each frequency; Generate a target spectrum diagram according to the autopower spectrum of each frame of the frequency domain signal and the corresponding rotation speed, wherein the target spectrum diagram includes original amplitudes corresponding to different frequencies at different rotation speeds; According to the target frequency spectrum, extracting the original amplitudes corresponding to different orders at different speeds; The order signal characteristics are obtained according to the original amplitudes corresponding to the different orders at different rotation speeds.

9. The method according to claim 8, It is characterized in that In the multiple frames of time domain signals, signals between two adjacent frames of time domain signals partially overlap.

10. The method according to claim 8, It is characterized in that The obtaining of the order signal characteristics according to the original amplitudes corresponding to the different orders at different rotation speeds includes: For the original amplitude corresponding to any order extracted at any rotation speed, obtaining at least one neighbor original amplitude immediately adjacent to the original amplitude in the target spectrum graph; Obtaining a target amplitude corresponding to the order at the rotation speed according to the original amplitude and the at least one neighbor original amplitude; The order signal characteristics are obtained according to target amplitudes corresponding to different orders at different rotation speeds.

11. A sound wave synthesis device, It is characterized in that include: A rotation speed determination module, used to obtain a target virtual rotation speed for synthesizing the sound wave signal according to the actual rotation speed of the rotating structure at the current moment; A frequency parameter determination module, used to determine the target frequency parameters corresponding to each order at the current moment according to the target virtual rotation speed, and the pre-stored signal sampling rate and historical frequency parameters, wherein the historical frequency parameters include the target frequency parameters corresponding to each order at the previous moment of the current moment, the each order is obtained according to the order included in the pre-stored order signal characteristics, the order represents the relationship between the rotation speed and the frequency, the order signal characteristics are obtained according to the amplitudes corresponding to different frequencies in the pre-collected sample signal, the sample signal represents the sound signal or vibration signal generated by the rotating structure sample at different rotation speeds, and the order signal characteristics represent the relationship among the order, the rotation speed and the amplitude; An amplitude parameter determination module, used to determine the target amplitude parameters corresponding to each order at the current moment according to the target virtual rotation speed and the order signal characteristics; An amplitude signal synthesis module, used for synthesizing the time domain amplitude signals corresponding to the respective orders according to the target frequency parameters and the target amplitude parameters corresponding to the respective orders; The acoustic signal synthesis module is used to superimpose the time domain amplitude signals corresponding to the various orders to obtain the acoustic signal corresponding to the rotating structure at the current moment.

12. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the program instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.

13. A vehicle, It is characterized in that include: a first processor; a first memory for storing first processor executable instructions; The first processor is configured to execute instructions stored in the first memory to implement the method according to any one of claims 1 to 10.

14. An electronic device, It is characterized in that include: A second processor; a second memory for storing second processor executable instructions; The second processor is configured to execute instructions stored in the second memory to implement the method according to any one of claims 1 to 10.