Method and apparatus for generating audio data of vehicles and motors
By obtaining vehicle operating conditions information and motor audio data, determining and splicing the synthesized motor audio data, the problem of sharp sound when particle synthesis method simulates the sound of electric vehicles is solved, achieving a smooth transition of sound and a more realistic driving experience.
Patent Information
- Application Number
- CN202210335418.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-03-31
AI Technical Summary
The prior art When simulating the sound of an electric vehicle through particle synthesis method, sharp sounds are prone to occur, resulting in discomfort of the driver and reducing the driving experience.
By obtaining the current vehicle operating condition information and motor audio data, the first synthetic motor audio data of the current sampling period is determined, and the target excessive motor audio data is determined according to the frequency band difference from the second synthetic motor audio data of the previous sampling period is spliced to generate the target motor audio data to ensure a smooth transition between the sound segments.
It effectively avoids the phenomenon of intermittent sound and sharp sound, improves the driving experience, and ensures the diversity and authenticity of sound signal collection.
Smart Images

Figure CN114758662B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sound synthesis, and in particular to a method and device for generating vehicle and motor audio data. Background Art
[0002] At present, the NVH (Noise, Vibration, Harshness) control methods of electric vehicles have also faced many challenges and opportunities. For electric vehicles, there is a lack of the masking effect of the engine, the sound is strong inside and weak outside, the road noise and wind noise are obvious, there is no sense of power, and it is difficult for the driver to get a comfortable driving experience.
[0003] Usually, audio samples of sound sources (e.g., motors) in a vehicle are obtained through sound sensors, and the sound of an electric vehicle is simulated using a particle synthesis method. However, the sound simulated using the existing particle synthesis method is prone to sharp sounds, which can cause discomfort to the driver and reduce the driving experience. Summary of the invention
[0004] In view of the shortcomings of the existing methods, the present application provides a method and device for generating vehicle and motor audio data, so as to solve the technical problem in the prior art that the electric vehicle sound simulated by the particle synthesis method is prone to sharp sound.
[0005] In the first aspect, an embodiment of the present application provides a method for generating motor audio data, the method comprising: obtaining current vehicle operating condition information and current motor audio data corresponding to a current sampling period; determining first synthesized motor audio data corresponding to the current sampling period based on the current vehicle operating condition information and the current motor audio data; if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, determining target transition motor audio data based on the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data; and splicing the transition motor audio data between the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
[0006] As an optional implementation, the method also includes: if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band, then the first synthesized motor audio data and the second synthesized motor audio data are spliced to generate target motor audio data.
[0007] As an optional implementation, if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, then the target transition motor audio data is determined according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data, including: inputting the current vehicle operating condition information into a pre-constructed target difference model and outputting a difference threshold; if the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, then determining that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band; and obtaining the target transition audio data corresponding to the absolute value of the target difference from the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data.
[0008] As an optional implementation, determining the first synthesized motor audio data corresponding to the current sampling period based on the current vehicle operating condition information and the current motor audio data includes: inputting the current vehicle operating condition information into a short-time Fourier model and outputting a current window function width; transforming the current motor audio data according to the current window function width to obtain transformed motor audio data; filtering and splicing the transformed motor audio data to obtain the first synthesized motor audio data corresponding to the current sampling period.
[0009] As an optional implementation, the method further includes: inputting the current vehicle operating condition information into a pre-constructed time interval model, outputting a target sampling interval, and using the target sampling interval as a sampling interval between a current sampling period and a next sampling period.
[0010] In the second aspect, an embodiment of the present application provides a device for generating motor audio data, the device comprising: an acquisition module, used to acquire current vehicle operating condition information and current motor audio data corresponding to a current sampling period; a first determination module, used to determine the first synthesized motor audio data corresponding to the current sampling period based on the current vehicle operating condition information and the current motor audio data; a second determination module, used to determine the target transition motor audio data based on the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band; a first generation module, used to splice the transition motor audio data between the first synthesized motor audio data and the second synthesized motor audio data to generate the target motor audio data.
[0011] As an optional implementation, the device also includes: a second generating module; if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band, the second generating module is used to splice the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
[0012] As an optional implementation, the second determination module is specifically used to: input the current vehicle operating condition information into a pre-built target difference model and output a difference threshold; if the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, then obtain the target transition audio data corresponding to the absolute value of the target difference from the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data.
[0013] As an optional implementation, the first determination module is specifically used to: input the current vehicle operating condition information into a short-time Fourier model and output the current window function width; transform the current motor audio data according to the current window function width to obtain the transformed motor audio data; filter and splice the transformed motor audio data to obtain the first synthesized motor audio data corresponding to the current sampling period.
[0014] In a third aspect, an embodiment of the present application provides a vehicle, comprising the device for generating motor audio data as described in the second aspect of the embodiment of the present application.
[0015] The present application provides a method and device for generating vehicle and motor audio data. The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0016] Through the current vehicle operating condition information and the current motor audio data, the first synthesized motor audio data corresponding to the current sampling period is determined, which ensures the diversity of sound signal acquisition and makes the sound data analysis more comprehensive and realistic. After that, by determining that the continuously generated first synthesized motor audio data and the second synthesized motor audio data are not in the same channel, the target transition motor audio data is determined according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data, and is spliced between the first synthesized motor audio data and the second synthesized motor audio data to generate the target motor audio data, which is used to ensure a smooth transition between continuous sound segment data and effectively avoid the occurrence of intermittent and sharp sounds.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A schematic diagram of a flow chart of a method for generating motor audio data provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of a process for determining first synthesized motor audio data corresponding to a current sampling period according to current vehicle operating condition information and current motor audio data in a method for generating motor audio data provided in an embodiment of the present application;
[0021] Figure 3 A flow chart of determining target transition motor audio data according to current vehicle operating condition information, the first synthesized motor audio data, and the second synthesized motor audio data if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band in a method for generating motor audio data provided in an embodiment of the present application;
[0022] Figure 4 A schematic flow chart of a method for generating motor audio data provided by another embodiment of the present application;
[0023] Figure 5 A flowchart of a method for generating motor audio data provided in yet another embodiment of the present application;
[0024] Figure 6 A schematic diagram of the structural framework of a device for generating motor audio data provided in an embodiment of the present application.
[0025] Reference numerals and corresponding descriptions:
[0026] 401: Get module;
[0027] 402: first determination module;
[0028] 403: second determination module;
[0029] 404: First generation module. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0031] First, the nouns involved in this application are introduced and explained:
[0032] CAN is the abbreviation of Controller Area Network, which means controller area network. It is an internationally standardized serial communication protocol. It is a serial communication network that effectively supports distributed control or real-time control and is mainly used in the vehicle industry.
[0033] OLA is the abbreviation of Overlap and Add, which means overlapping and adding. The OLA algorithm is an audio speed change algorithm.
[0034] The inventor of this application has conducted research and found that the current method for simulating the sound of electric vehicles mainly includes the particle synthesis method, the basic principle of which is to reorder the sound unit samples according to the motor speed to simulate the engine sound, and realize the synthesis signal of high-quality sound unit samples that changes with the time domain. The simulated engine sound has a high degree of restoration. However, the traditional particle synthesis algorithm does not take into account the distortion of current and voltage and the fluctuation of motor torque and speed, resulting in the overlap of the simulated sound with the original motor sound when driving at low speed, which is prone to sharp sound and discontinuity, reducing the driving experience.
[0035] The method and device for generating vehicle and motor audio data provided in this application are intended to solve the above technical problems in the prior art.
[0036] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments.
[0037] The present application embodiment provides a method for generating motor audio data, such as Figure 1 As shown, it mainly includes steps S101-S104:
[0038] Step S101: obtaining current vehicle operating condition information and current motor audio data corresponding to the current sampling period.
[0039] Step S102: determining first synthesized motor audio data corresponding to the current sampling period according to the current vehicle operating condition information and the current motor audio data.
[0040] Step S103: If the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, determine the target transition motor audio data based on the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data.
[0041] Step S104: splicing the transition motor audio data between the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
[0042] An embodiment of the present application provides a method for generating motor audio data. First synthesized motor audio data corresponding to a current sampling period is determined through current vehicle operating condition information and current motor audio data, thereby ensuring the diversity of sound signal acquisition and making the sound data analysis more comprehensive and realistic. Afterwards, by determining that the continuously generated first synthesized motor audio data and the second synthesized motor audio data are not in the same channel, target transition motor audio data is determined according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data, and is spliced between the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data, which is used to ensure a smooth transition between continuous sound segment data and effectively avoid the occurrence of sound discontinuity and sharp sounds.
[0043] In some possible embodiments, according to the determined current acquisition cycle, the current vehicle operating condition information and current motor audio data corresponding to the current sampling cycle are obtained through the CAN (Controller Area Network) bus and sensors installed on the vehicle to realize multi-source metadata acquisition and reduce noise, thereby improving the comfort of subsequent synthesized sound.
[0044] Optionally, the current vehicle operating condition information includes at least one of motor speed, vehicle speed, steering wheel angle, throttle and brake signal.
[0045] As an optional implementation, in the aforementioned step S102, the first synthesized motor audio data corresponding to the current sampling period is determined according to the current vehicle operating condition information and the current motor audio data, such as Figure 2 As shown, it mainly includes steps S201-S203:
[0046] Step S201: input the current vehicle operating condition information into the short-time Fourier model, and output the current window function width.
[0047] The current window function width output by the short-time Fourier model corresponds to the current vehicle operating condition information input, so that the window function width changes with the change of the vehicle operating condition information. The short-time Fourier model can be trained according to known methods, so it is not repeated in the embodiments of this application.
[0048] Step S202: transform the current motor audio data according to the current window function width to obtain the transformed motor audio data.
[0049] Through the variable window function width that adapts to the vehicle operating condition information, localized data of time and frequency can be obtained, making the obtained vehicle information more accurate to meet the localized analysis of time and frequency. Under the condition of non-steady vehicle driving, it can avoid the untimely jump feeling in the simulated sound.
[0050] Step S203: filtering and splicing the transformed motor audio data to obtain first synthesized motor audio data corresponding to the current sampling period.
[0051] In some possible embodiments, the transformed motor audio data is filtered to obtain a low-frequency harmonic signal and a high-frequency narrow-band synthetic signal, the high-frequency narrow-band synthetic signal is decomposed into a corresponding envelope signal and a carrier signal using a Hilbert transform method, all low-frequency harmonic signals are spliced to obtain a total low-frequency harmonic signal, all envelope signals are spliced to obtain a total envelope signal, and all carrier signals are spliced to obtain a total carrier signal, and the first synthetic motor audio data is obtained according to the total low-frequency harmonic signal + (total envelope signal × total carrier signal).
[0052] As an optional implementation, in the aforementioned step S103, if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, then the target transition motor audio data is determined according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data, such as Figure 3 As shown, steps S301-S303 are included:
[0053] Step S301: input the current vehicle operating condition information into a pre-built target difference model, and output a difference threshold.
[0054] The target difference model can be trained by a large amount of vehicle operating condition information and known methods such as iterative methods, so it is not described in detail in the embodiments of the present application. Optionally, the difference threshold is binary data.
[0055] Step S302: If the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, determine that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band.
[0056] In some possible embodiments, the first synthesized motor audio data and the second synthesized motor audio data are converted into binary data, and then a difference operation is performed to obtain the absolute value of the target difference, and the absolute value of the target difference is compared with the difference threshold to determine whether the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band. When the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, it is determined that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band; on the contrary, when the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is not greater than the difference threshold, it is determined that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band.
[0057] Step S303: Obtain target transition audio data corresponding to the absolute value of the target difference from the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data.
[0058] The absolute value of the target difference corresponds to the target transition motor audio data, that is, the relationship between the vehicle information and the sound characteristics. The absolute value of the target difference corresponds to the target transition motor audio data can be obtained from actual experience and a large number of experiments.
[0059] As an optional implementation, the method for generating motor audio data is as follows: Figure 4 As shown, the method further includes step 105:
[0060] Step S105: If the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band, the first synthesized motor audio data and the second synthesized motor audio data are concatenated to generate target motor audio data.
[0061] If the first synthesized motor audio data and the second synthesized motor audio data are in the same frequency band, it indicates that the first synthesized motor audio data and the second synthesized motor audio data have strong coherence and can be directly spliced to generate the target motor audio data.
[0062] As an optional implementation, the method for generating motor audio data is as follows: Figure 5 The method further comprises step 106:
[0063] Step 106: Input the current vehicle operating condition information into the pre-built time interval model, output the target sampling interval, and use the target sampling interval as the sampling interval between the current sampling period and the next sampling period.
[0064] The sampling interval between the current sampling cycle and the next sampling cycle is determined according to the current vehicle operating condition information to adjust the granularity of obtaining the vehicle operating condition information and the motor audio data. This can achieve differentiation of the vehicle operating condition information and the motor audio data under different vehicle operating conditions. For example, the granularity of the motor audio data when the vehicle is driving smoothly is slightly coarser than that when the vehicle is accelerating; the granularity of the motor audio data when the vehicle is accelerating sharply is finer than that when the vehicle is driving smoothly. By matching the granularity of the motor audio data with the current vehicle operating condition information, the stability of generating the target motor audio data and the accuracy of the sound reconstruction results can be improved, further ensuring the differentiation of the target motor audio data and the original motor sound, and effectively avoiding the overlap of the simulated sound with the original motor sound.
[0065] In a specific embodiment of vehicle sound simulation, when the vehicle is started, current vehicle operating condition information, current motor audio data, current engine audio data and current blower audio data are obtained through the CAN bus, sensors installed on the vehicle and preset sampling time.
[0066] The current vehicle operating condition information is input into the short-time Fourier model to output the current window function width, the current motor audio data is transformed according to the current window function width to obtain the transformed motor audio data, the transformed motor audio data is filtered to obtain a low-frequency harmonic signal and a high-frequency narrow-band synthetic signal, the high-frequency narrow-band synthetic signal is decomposed into a corresponding envelope signal and a carrier signal by using a Hilbert transform method, all the low-frequency harmonic signals are spliced to obtain a total low-frequency harmonic signal, all the envelope signals are spliced to obtain a total envelope signal, and all the carrier signals are spliced to obtain a total carrier signal, and the second synthetic motor audio data is obtained according to the total low-frequency harmonic signal+(total envelope signal×total carrier signal).
[0067] The current engine audio data and the current blower audio data are filtered to obtain filtered engine audio data and blower audio data.
[0068] The second synthesized motor audio data and the filtered engine audio data and blower audio data are subjected to audio speed change and modulation through the OLA (Overlap and Add) algorithm to achieve integration with the noise inside the vehicle, obtain a sound digital signal that balances the noise and reflects the real-time driving status, and improve the comfort of sound synthesis. Finally, the sound digital signal is output after passing through an audio converter.
[0069] In addition, the current vehicle operating condition information is input into the time interval model, the target sampling interval is output, and the target sampling interval is used as the sampling interval between the current sampling period and the next sampling period. The current vehicle operating condition information, the current motor audio data, the current engine audio data and the current blower audio data are reacquired, and the above steps are repeated to obtain the first synthesized motor audio data, the next target sampling interval and the sound digital signal to be output.
[0070] The first synthesized motor audio data is used to determine whether they are in the same frequency band as the second synthesized motor audio data. If it is determined that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, then according to the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data, the target transition audio data corresponding to the absolute value of the target difference is obtained from the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data, and the target transition audio data is spliced between the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data, which is used to perform audio speed change and modulation with the engine audio data and the blower audio data corresponding to the current sampling period to obtain the sound digital signal to be output; on the contrary, if it is determined that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, the first synthesized motor audio data and the second synthesized motor audio data are directly spliced to generate target motor audio data, which is used to perform audio speed change and modulation with the engine audio data and the blower audio data corresponding to the current sampling period to obtain the sound digital signal to be output.
[0071] After the next target sampling interval is determined, the above steps are repeated, so they are not repeated here. Until the vehicle is turned off, the acquisition of the current vehicle operating condition information, the current motor audio data, the current engine audio data and the blower audio data is stopped, and the vehicle sound simulation is ended.
[0072] It should be understood that although Figures 1 to 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 1 to 5At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0073] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
[0074] Based on the same inventive concept, an embodiment of the present application provides a device for generating motor audio data, which mainly includes: an acquisition module 401, used to acquire current vehicle operating condition information and current motor audio data corresponding to the current sampling period; a first determination module 402, used to determine the first synthesized motor audio data corresponding to the current sampling period according to the current vehicle operating condition information and the current motor audio data; a second determination module 403, used to determine the target transition motor audio data according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band; a first generation module 404, used to splice the transition motor audio data between the first synthesized motor audio data and the second synthesized motor audio data to generate the target motor audio data.
[0075] An embodiment of the present application provides a device for generating motor audio data. The device determines the first synthesized motor audio data corresponding to the current sampling period through the current vehicle operating condition information and the current motor audio data, thereby ensuring the diversity of sound signal acquisition and making the sound data analysis more comprehensive and realistic. After that, by determining that the continuously generated first synthesized motor audio data and the second synthesized motor audio data are not in the same channel, the target transition motor audio data is determined according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data, and is spliced between the first synthesized motor audio data and the second synthesized motor audio data to generate the target motor audio data, which is used to ensure a smooth transition between continuous sound segment data and effectively avoid the phenomenon of intermittent sound and sharp sound.
[0076] As an optional implementation, the device for generating motor audio data also includes: a second generating module; if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band, the second generating module is used to splice the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
[0077] As an optional implementation, the second determination module 403 is specifically used to: input the current vehicle operating condition information into a pre-built target difference model and output a difference threshold; if the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, then obtain the target transition audio data corresponding to the absolute value of the target difference from the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data.
[0078] As an optional implementation, the first determination module 402 is specifically used to: input the current vehicle operating condition information into the short-time Fourier model and output the current window function width; transform the current motor audio data according to the current window function width to obtain the transformed motor audio data; filter and splice the transformed motor audio data to obtain the first synthesized motor audio data corresponding to the current sampling period.
[0079] As an optional implementation, the motor audio data generating device also includes: an output module, which is used to input the current vehicle operating condition information into a pre-built time interval model, output the target sampling interval, and use the target sampling interval as the sampling interval between the current sampling period and the next sampling period.
[0080] The specific definition of the device for generating motor audio data can be found in the definition of the method for generating motor audio data in the above text, which will not be repeated here. Each module in the above-mentioned device for generating motor audio data can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0081] Based on the same inventive concept, an embodiment of the present application provides a vehicle, including the device for generating motor audio data described in the foregoing embodiment of the present application.
[0082] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0083] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0084] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0085] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating motor audio data, characterized in that: The method comprises: Obtain the current vehicle operating condition information and current motor audio data corresponding to the current sampling period; Determining first synthesized motor audio data corresponding to the current sampling period according to the current vehicle operating condition information and the current motor audio data; If the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, determining the target transition motor audio data according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data; The transition motor audio data is spliced between the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
2. The method for generating motor audio data according to claim 1, characterized in that: The method further comprises: If the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band, the first synthesized motor audio data and the second synthesized motor audio data are spliced to generate target motor audio data.
3. The method for generating motor audio data according to claim 1, characterized in that: If the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band, determining the target transition motor audio data according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data, including: Inputting the current vehicle operating condition information into a pre-built target difference model and outputting a difference threshold; If the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, it is determined that the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band; From the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data, the target transition audio data corresponding to the absolute value of the target difference is obtained.
4. The method for generating motor audio data according to claim 1, characterized in that: The step of determining the first synthesized motor audio data corresponding to the current sampling period according to the current vehicle operating condition information and the current motor audio data includes: Inputting the current vehicle operating condition information into a short-time Fourier model, and outputting the current window function width; Performing transformation processing on the current motor audio data according to the current window function width to obtain transformed motor audio data; The transformed motor audio data is filtered and spliced to obtain first synthesized motor audio data corresponding to the current sampling period.
5. The method for generating motor audio data according to any one of claims 1 to 4, characterized in that: The method further comprises: The current vehicle operating condition information is input into a pre-built time interval model, a target sampling interval is output, and the target sampling interval is used as a sampling interval between a current sampling period and a next sampling period.
6. A device for generating motor audio data, characterized in that: The device comprises: An acquisition module is used to obtain the current vehicle operating condition information and current motor audio data corresponding to the current sampling period; A first determination module, configured to determine first synthesized motor audio data corresponding to the current sampling period according to the current vehicle operating condition information and the current motor audio data; A second determination module is used to determine the target transition motor audio data according to the current vehicle operating condition information, the first synthesized motor audio data and the second synthesized motor audio data if the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are not in the same frequency band; The first generating module is used to splice the transition motor audio data between the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
7. The device for generating motor audio data according to claim 6, characterized in that: The device further comprises: a second generating module; If the first synthesized motor audio data corresponding to the current sampling period and the second synthesized motor audio data corresponding to the previous sampling period are in the same frequency band, the second generating module is used to splice the first synthesized motor audio data and the second synthesized motor audio data to generate target motor audio data.
8. The device for generating motor audio data according to claim 6, characterized in that: The second determining module is specifically used to: Inputting the current vehicle operating condition information into a pre-built target difference model and outputting a difference threshold; If the absolute value of the target difference between the first synthesized motor audio data and the second synthesized motor audio data is greater than the difference threshold, the target transition audio data corresponding to the absolute value of the target difference is obtained from the pre-stored correspondence between the absolute value of the target difference and the target transition motor audio data.
9. The device for generating motor audio data according to claim 6, characterized in that: The first determining module is specifically configured to: Inputting the current vehicle operating condition information into a short-time Fourier model, and outputting the current window function width; Performing transformation processing on the current motor audio data according to the current window function width to obtain transformed motor audio data; The transformed motor audio data is filtered and spliced to obtain first synthesized motor audio data corresponding to the current sampling period.
10. A vehicle, characterized in that: include: The device for generating motor audio data according to any one of claims 6 to 9.
Citation Information
Patent Citations
Vehicle sound synthesis method, device and equipment and readable storage medium
CN118865937A