Sound synthesis method and device for vehicle, vehicle and storage medium
By determining the single-frequency harmonic signal and gain signal corresponding to the current driving state of the electric vehicle for processing, and synthesizing the target sound, it solves the problem of the electric vehicle driving experience being affected by quietness, achieves a more realistic sound simulation of the fuel engine, and improves driving efficiency. experience.
Patent Information
- Application Number
- CN202310247442.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
Since electric vehicles do not rely on fuel engines to drive, the driving process is too quiet, which affects the driving experience. The sound effects of fuel engines synthesized based on single-frequency harmonic signals in the existing technology are not realistic enough.
By determining the single-frequency harmonic signal corresponding to the current driving state of the vehicle, obtaining the corresponding gain signal, performing gain processing, and synthesizing the target sound to simulate the sound of the fuel engine and improve the driving experience.
The generated target sound is more realistic and adapted to the real driving scene of the vehicle, effectively improving the driving experience of electric vehicles.
Smart Images

Figure CN118629385A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle control technology, and in particular to a sound synthesis method, device, vehicle and storage medium for a vehicle. Background Art
[0002] With the rapid popularization of electric vehicles, more and more electric vehicles have entered the public eye. Unlike traditional fuel vehicles, electric vehicles do not rely on fuel engines to drive, which makes the vehicle too quiet during driving, thus affecting the driving experience of electric vehicles. In order to improve the driving experience of electric vehicles, speakers can be used to play simulated fuel engine sounds, so that electric vehicles have the same driving experience as fuel vehicles.
[0003] In the related technology, a single-frequency harmonic signal that is compatible with the current driving state of the vehicle is usually determined during the driving process of an electric vehicle. A single-frequency harmonic signal refers to a waveform signal composed of multiple waveforms that are integer multiples of the same fundamental frequency. The sound of the fuel engine is then synthesized based on the single-frequency harmonic signal.
[0004] In this way, the sound of the fuel engine synthesized based on the single-frequency harmonic signal may not be realistic enough, resulting in poor synthesis effect of the fuel engine sound. Summary of the invention
[0005] To overcome the problems existing in the related art, the present disclosure provides a sound synthesis method, an apparatus, a vehicle, a non-transitory computer-readable storage medium storing computer instructions, and a computer program product for a vehicle.
[0006] The first aspect of the present disclosure proposes a sound synthesis method for a vehicle, comprising: determining a single-frequency harmonic signal corresponding to a current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency; obtaining a gain signal corresponding to the single-frequency harmonic signal; performing gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized; and synthesizing a target sound according to the sound signal to be synthesized.
[0007] A sound synthesis device for a vehicle proposed in an embodiment of the second aspect of the present disclosure includes: a determination module, used to determine a single-frequency harmonic signal corresponding to a current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency; an acquisition module, used to acquire a gain signal corresponding to the single-frequency harmonic signal; a processing module, used to perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized; and a synthesis module, used to synthesize a target sound according to the sound signal to be synthesized.
[0008] The vehicle proposed in the third aspect embodiment of the present disclosure includes: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: implement the sound synthesis method for the vehicle proposed in the first aspect embodiment of the present disclosure.
[0009] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the sound synthesis method for a vehicle proposed in the first aspect embodiment of the present disclosure.
[0010] The fifth aspect embodiment of the present disclosure proposes a computer program product. When the instructions in the computer program product are executed by a processor, the sound synthesis method for a vehicle proposed in the first aspect embodiment of the present disclosure is executed.
[0011] The sound synthesis method for a vehicle provided by an embodiment of the present disclosure may include the following beneficial effects: by determining a single-frequency harmonic signal corresponding to the current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency, and obtaining a gain signal corresponding to the single-frequency harmonic signal, and then performing gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized, and synthesizing a target sound according to the sound signal to be synthesized, thereby making the synthesized target sound more realistic and more adaptable to the actual driving scene of the vehicle.
[0012] 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
[0013] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0014] Figure 1 is a flow chart of a sound synthesis method for a vehicle according to some embodiments of the present disclosure;
[0015] Figure 2A is a spectrum diagram of a gain signal proposed according to an embodiment of the present disclosure;
[0016] Figure 2B is a spectrum diagram of a single-frequency harmonic signal proposed according to an embodiment of the present disclosure;
[0017] Figure 2C is a spectrum diagram of a sound signal to be synthesized according to an embodiment of the present disclosure;
[0018] Figure 3 is a flow chart of a sound synthesis method for a vehicle according to some embodiments of the present disclosure;
[0019] Figure 4 is a flow chart of a sound synthesis method for a vehicle according to some embodiments of the present disclosure;
[0020] Figure 5 It is a schematic diagram comparing the effects of single-frequency harmonic signal gain processing proposed in an embodiment of the present disclosure;
[0021] Figure 6 is a block diagram of a sound synthesis device for a vehicle according to some embodiments of the present disclosure;
[0022] Figure 7 is a block diagram of a vehicle according to an exemplary embodiment. DETAILED DESCRIPTION
[0023] Some embodiments of the present disclosure will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but can be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for clarity and brevity, descriptions of features known in the art may be omitted.
[0024] The embodiments described in some embodiments of the present disclosure below 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.
[0025] Figure 1 is a flow chart of a sound synthesis method for a vehicle according to some embodiments of the present disclosure. Figure 1 As shown, the sound synthesis method for a vehicle is used in a terminal, comprising the following steps:
[0026] S101: Determine a single-frequency harmonic signal corresponding to a current driving state of a vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency.
[0027] Among them, in the embodiment of the present disclosure, the vehicle is configured as an electric car as an example, and the sound synthesis method for the vehicle described in the embodiment of the present disclosure is specifically explained.
[0028] Among them, the single-frequency harmonic signal refers to a waveform signal composed of multiple waveforms with integer multiples of the same fundamental frequency.
[0029] Among them, the current driving state of the vehicle can be specifically, for example, a vehicle acceleration state, a vehicle deceleration state, a vehicle start state, a vehicle stop state, etc., and there is no limitation on this.
[0030] It is understandable that although electric vehicles have the advantages of low energy consumption, green and pollution-free, etc., electric vehicles do not rely on fuel engines to drive, so no sound matching the current driving state of the vehicle will be generated in the driving scene of the electric vehicle, which will affect the driving experience of the electric vehicle. Therefore, in the embodiment of the present disclosure, the single-frequency harmonic signal corresponding to the current driving state of the vehicle is determined, and it can be determined that the single-frequency harmonic signal generated by the fuel vehicle is in the same current driving state, and then based on the single-frequency harmonic signal generated by the fuel vehicle in the same current driving state determined above, the simulated fuel engine sound of the electric vehicle in the current driving state is synthesized, and there is no limitation on this.
[0031] In the embodiment of the present disclosure, the single-frequency harmonic signal corresponding to the current driving state of the vehicle is determined by determining the amplitude and frequency of the signal according to the state information of the fuel vehicle in the same current driving state, and then synthesizing the single-frequency harmonic signal according to the amplitude and frequency determined above, as shown in the following formula:
[0032]
[0033] Among them, y t (n) is a single-frequency harmonic signal, M represents the number of harmonics, A i is the amplitude of each harmonic, f i is the harmonic frequency.
[0034] In the embodiment of the present disclosure, the single-frequency harmonic signal has a corresponding preset frequency, and the preset frequency can be adaptively configured in combination with the auditory styles preferred by different users in actual business scenarios. That is to say, the sound synthesis method for a vehicle proposed in the embodiment of the present disclosure can be used to process a single-frequency harmonic signal with a preset frequency. For example, it can be used to process a single-frequency harmonic signal with a frequency less than 400 Hz, so that the sound presented by subsequent processing can be richer and fuller, and there is no limitation on this.
[0035] S102: Acquire a gain signal corresponding to the single-frequency harmonic signal.
[0036] The gain signal is used to perform gain processing on the single-frequency harmonic signal. The gain signal may be, for example, a sinusoidal signal, a pulse signal, etc., which is not limited.
[0037] That is to say, in the embodiments of the present disclosure, any periodic random signal can be obtained as a gain signal, and then the single-frequency harmonic signal can be gain processed based on the gain signal. For details, please refer to the subsequent embodiments and will not be described in detail here.
[0038] Compared with overall gain amplification of a single-frequency harmonic signal based on a gain value, the sidelobe signal of the single-frequency harmonic signal can be expanded, thereby improving the fullness of the synthesized sound.
[0039] S103: Perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized.
[0040] After determining the single-frequency harmonic signal corresponding to the current driving state of the vehicle and obtaining the gain signal corresponding to the single-frequency harmonic signal, the embodiment of the present disclosure can perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain the sound signal to be synthesized.
[0041] For example, see Figure 2A , Figure 2B , Figure 2A is a spectrum diagram of a gain signal proposed according to an embodiment of the present disclosure, Figure 2B is a spectrum diagram of a single-frequency harmonic signal according to an embodiment of the present disclosure. The single-frequency harmonic signal is subjected to gain processing according to the gain signal to obtain a sound signal to be synthesized. The gain signal and the single-frequency harmonic signal are subjected to frequency domain convolution processing, and the convolution signal is used as the sound signal to be synthesized (see Figure 2C , Figure 2C is a spectrum diagram of a sound signal to be synthesized according to an embodiment of the present disclosure).
[0042] Optionally, in some embodiments, gain processing is performed on a single-frequency harmonic signal according to a gain signal to obtain a sound signal to be synthesized. The single-frequency harmonic signal and the gain signal may be subjected to time domain product processing, and the signal obtained by the time domain product processing is used as the sound signal to be synthesized. Thus, compared with convolution processing of the single-frequency harmonic signal and the gain signal, computing power can be saved while ensuring the generation effect of the sound signal to be synthesized.
[0043] That is to say, in the embodiments of the present disclosure, a single-frequency harmonic signal and a gain signal can be obtained, wherein the single-frequency harmonic signal and the gain signal are both time domain signals, and then, the single-frequency harmonic signal and the gain signal can be subjected to time domain product processing, and the signal obtained by the time domain product processing can be used as the sound signal to be synthesized.
[0044] S104: synthesizing a target sound according to the sound signal to be synthesized.
[0045] After processing the single-frequency harmonic signal according to the gain period to obtain the sound signal to be synthesized, the embodiment of the present disclosure can perform synthesis processing on the sound signal to be synthesized to obtain a target sound after synthesis processing. The target sound after synthesis processing can be used to simulate the sound of the fuel engine of a fuel vehicle under the same driving state, so that when the target sound is played under the current driving state of the electric vehicle, the driving experience of the electric vehicle can be effectively improved.
[0046] In some embodiments, synthesizing a target sound based on a sound signal to be synthesized may be performed by fusing multiple sound signals to be synthesized. Specifically, multiple sound signals to be synthesized may be input into a fusion filter, and the fusion filter may fuse the sound signals to be synthesized and output the target sound. There is no limitation to this.
[0047] Alternatively, the target sound may be synthesized based on the sound signal to be synthesized, or a plurality of sound signals to be synthesized may be concatenated in chronological order and the sound signal obtained by the concatenation may be used as the target sound, and there is no limitation to this.
[0048] After synthesizing the target sound according to the sound signal to be synthesized, the disclosed embodiment can play the target sound adapted to the current driving state based on the speaker of the vehicle, thereby effectively improving the driving experience of the vehicle.
[0049] In this embodiment, a single-frequency harmonic signal corresponding to the current driving state of the vehicle is determined, wherein the single-frequency harmonic signal has a corresponding preset frequency, and a gain signal corresponding to the single-frequency harmonic signal is obtained, and then the single-frequency harmonic signal is gain processed according to the gain signal to obtain a sound signal to be synthesized, and a target sound is synthesized according to the sound signal to be synthesized, so that the synthesized target sound is more realistic and can be more adapted to the actual driving scene of the vehicle.
[0050] Figure 3 The figure is a flow chart of a sound synthesis method for a vehicle according to some embodiments of the present disclosure.
[0051] like Figure 3 As shown, the sound synthesis method for a vehicle is used in a terminal, comprising the following steps:
[0052] S301: Determine a single-frequency harmonic signal corresponding to a current driving state of a vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency.
[0053] The specific description of S301 can be found in the above embodiment, which will not be repeated here.
[0054] S302: Acquire a periodic random signal, and use the periodic random signal as a gain signal.
[0055] Among them, random signals, also known as uncertain signals, refer to signals whose amplitudes are unpredictable but obey certain statistical characteristics, while periodic random periodic signals refer to signals whose amplitudes change irregularly with the period. The spectrum of periodic random signals can be shown as above. Figure 2A shown.
[0056] That is to say, in the embodiment of the present disclosure, the spectrum diagram may be obtained as described above. Figure 2A The periodic random signal shown is used as a gain signal, and then the single-frequency harmonic signal can be gain-processed based on the gain signal. For details, please refer to the subsequent embodiments, which will not be described again here.
[0057] In the disclosed embodiment, since a periodic random signal is obtained and used as a gain signal, the generation logic of the gain signal can be effectively simplified, thereby improving the generation efficiency of the sound signal to be synthesized to a certain extent.
[0058] S303: Perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized.
[0059] After obtaining the periodic random signal as the gain signal, the embodiment of the present disclosure can perform time domain product processing on the gain signal and the single-frequency harmonic signal. The processing process can be shown as follows:
[0060]
[0061] Among them, y t (n) represents a single harmonic signal, M represents the number of harmonics, A i is the amplitude of each harmonic, f i is the harmonic frequency, n is the time variable, T is the period of the periodic random signal (usually 4ms), r is the periodic random signal, and y(n:n+T-1) is the sound signal to be synthesized.
[0062] S304: synthesizing a target sound according to the sound signal to be synthesized.
[0063] The specific description of S304 can be found in the above embodiment, which will not be repeated here.
[0064] In the disclosed embodiment, by determining a single-frequency harmonic signal corresponding to the current driving state of the vehicle, and then obtaining a periodic random signal, and using the periodic random signal as a gain signal, the generation logic of the gain signal can be effectively simplified, thereby improving the generation efficiency of the sound signal to be synthesized to a certain extent, and performing gain processing on the single-frequency harmonic signal according to the gain signal to obtain the sound signal to be synthesized, and then synthesizing the target sound according to the sound signal to be synthesized, thereby making the synthesized target sound more realistic and effectively improving the sound synthesis effect.
[0065] Figure 4 The figure is a flow chart of a sound synthesis method for a vehicle according to some embodiments of the present disclosure.
[0066] like Figure 4 As shown, the sound synthesis method for a vehicle is used in a terminal, comprising the following steps:
[0067] S401: Determine a single-frequency harmonic signal corresponding to a current driving state of a vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency.
[0068] The specific description of S401 can be found in the above embodiment, which will not be repeated here.
[0069] S402: Determine initial comparison information between the frequency of the single-frequency harmonic signal and the speed of the fuel engine in the current driving state.
[0070] In the disclosed embodiment, the initial comparison information is the ratio between the frequency of the single-frequency harmonic signal and the speed of the fuel engine under the current driving state. The ratio may also be referred to as the order size corresponding to the fuel engine, and may be the initial comparison information for determining the order information corresponding to the fuel engine corresponding to the single-frequency harmonic signal under the current driving state.
[0071] S403: Determine a target gain value corresponding to the single-frequency harmonic signal according to the initial comparison information.
[0072] That is to say, in the embodiment of the present disclosure, the ratio value between the frequency of the single-frequency harmonic signal and the speed of the fuel engine in the current driving state (the corresponding order information of the fuel engine corresponding to the single-frequency harmonic signal in the current driving state) can be determined as the initial comparison information, and then, the historical gain value for gain processing of the single-frequency harmonic signal configured for the same initial comparison information can be obtained in the historical data, and the aforementioned determined historical gain value can be determined as the target gain value corresponding to the single-frequency harmonic signal.
[0073] Optionally, in some embodiments, determining a target gain value corresponding to a single-frequency harmonic signal based on initial comparison information may be by obtaining reference comparison information, wherein the reference comparison information has a corresponding reference gain value, and when a similarity value between the reference comparison information and the initial comparison information is greater than or equal to a similarity threshold, using the reference gain value as the target gain value. Since the similarity value and the similarity threshold between the reference comparison information and the initial comparison information are combined, the reference gain value corresponding to the single-frequency harmonic signal is accurately determined as the target gain value, thereby improving the accuracy of the target gain value. Furthermore, since the similarity threshold can support adaptive configuration, the applicability of the sound synthesis method for vehicles can be improved to a certain extent.
[0074] Among them, the reference comparison information can be a predetermined reference ratio value between the frequency of the single-frequency harmonic signal and the speed of the fuel engine under the current driving state. The reference comparison information can have a corresponding gain value, which can be called a reference gain value.
[0075] The similarity value between the reference comparison information and the initial comparison information may be, for example, the cosine similarity between the reference comparison information and the initial comparison information, or the Euclidean distance between the reference comparison information and the initial comparison information, without limitation.
[0076] That is to say, in the embodiments of the present disclosure, multiple reference comparison information can be obtained in advance, and the similarity value between the reference comparison information and the initial comparison information can be determined, and when the aforementioned determined similarity value is greater than or equal to a similarity threshold (wherein the similarity threshold can be adaptively configured according to the sound synthesis requirements in the actual business scenario, and there is no restriction on this), the reference gain value is used as the target gain value.
[0077] S404: Acquire a periodic signal whose amplitude value is a target gain value as a gain signal.
[0078] After determining the target gain value corresponding to the single-frequency harmonic signal according to the initial comparison information, the embodiment of the present disclosure can obtain a periodic signal with an amplitude value equal to the target gain value as the gain signal. Since the periodic signal with an amplitude value equal to the target gain value corresponding to the single-frequency harmonic signal is predetermined as the gain signal, the gain signal can change with the change of the vehicle driving state in the subsequent process of gain processing the single-frequency harmonic signal according to the gain signal, so that the sound signal to be synthesized obtained by the gain processing can be optimized with the vehicle driving state, thereby improving the generation effect of the sound signal to be synthesized.
[0079] S405: Perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized.
[0080] After obtaining a periodic signal with an amplitude value of a target gain value as a gain signal, the embodiment of the present disclosure can perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized. The processing process can be shown as follows:
[0081]
[0082] Among them, r i is a periodic signal with an amplitude value of the target gain value, the period of which is T, y(n:n+T-1) is the sound signal to be synthesized, M represents the number of single-frequency harmonic signals, A i is the amplitude of each single-frequency harmonic signal, f i is the frequency of the single-frequency harmonic signal, and n is the time variable.
[0083] It should be noted that the sound synthesis method for a vehicle proposed in the embodiment of the present disclosure has a better sound synthesis effect, see Figure 5 , Figure 5 1 is a schematic diagram comparing the effects of gain processing of a single-frequency harmonic signal proposed in an embodiment of the present disclosure, wherein (1) is a spectrum of a single-frequency harmonic signal without gain processing, (2) is a spectrum of a single-frequency harmonic signal after gain amplification based on a uniform gain value, and (3) is a spectrum of a single-frequency harmonic signal after gain amplification based on a gain signal pair proposed by a sound synthesis method for a vehicle proposed in an embodiment of the present disclosure, and Figure 5 By comparing the three spectral lines in , it can be seen that, when the sound synthesis method for a vehicle proposed in an embodiment of the present invention is adopted, after gain processing is performed on the single-frequency harmonic signal based on the gain signal, the sidelobe signal of the single-frequency harmonic signal can be expanded, so that the sound signal to be synthesized after the gain processing can be presented as a sound signal with slowly increasing and decreasing energy near the harmonic, thereby having a fuller listening experience.
[0084] S406: Synthesize the target sound according to the sound signal to be synthesized.
[0085] The specific description of S406 can be found in the above embodiment, which will not be repeated here.
[0086] In the disclosed embodiment, a single-frequency harmonic signal corresponding to the current driving state of the vehicle is determined, and initial comparison information between the frequency of the single-frequency harmonic signal and the speed of the fuel engine in the current driving state is determined, and then a target gain value corresponding to the single-frequency harmonic signal is determined based on the initial comparison information, and then a periodic signal with an amplitude value equal to the target gain value is obtained as the gain signal, and gain processing is performed on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized. Since a periodic signal with an amplitude value equal to the target gain value corresponding to the single-frequency harmonic signal is predetermined as the gain signal, the gain signal can be changed with the change of the vehicle driving state in the subsequent process of gain processing the single-frequency harmonic signal according to the gain signal, so that the sound signal to be synthesized obtained by the gain processing can be optimized with the vehicle driving state, thereby improving the generation effect of the sound signal to be synthesized, and then the target sound is synthesized based on the sound signal to be synthesized, so that the synthesized target sound is more realistic, thereby effectively improving the sound synthesis effect.
[0087] Figure 6 FIG. 1 is a block diagram of a sound synthesis device for a vehicle according to some embodiments of the present disclosure. Figure 6 The vehicle sound synthesis device 60 includes: a determination module 601 , an acquisition module 602 , a processing module 603 and a synthesis module 604 .
[0088] The determination module 601 is configured to determine a single-frequency harmonic signal corresponding to a current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency;
[0089] The acquisition module 602 is configured to acquire a gain signal corresponding to the single-frequency harmonic signal;
[0090] The processing module 603 is configured to perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain the sound signal to be synthesized.
[0091] The synthesis module 604 is configured to synthesize the target sound according to the sound signal to be synthesized.
[0092] In some embodiments of the present disclosure, the processing module 603 is further configured to execute:
[0093] The single-frequency harmonic signal and the gain signal are subjected to time domain product processing, and the signal obtained by the time domain product processing is used as the sound signal to be synthesized.
[0094] In some embodiments of the present disclosure, the acquisition module 602 is further configured to execute:
[0095] A periodic random signal is obtained and used as a gain signal.
[0096] In some embodiments of the present disclosure, the acquisition module 602 is further configured to execute:
[0097] Determine initial comparison information between the frequency of the single-frequency harmonic signal and the speed of the fuel engine in the current driving state;
[0098] Determine a target gain value corresponding to the single-frequency harmonic signal according to the initial comparison information;
[0099] A periodic signal whose amplitude value is a target gain value is obtained as a gain signal.
[0100] In some embodiments of the present disclosure, the initial comparison information is a ratio value between the frequency of the single-frequency harmonic signal and the speed of the fuel engine under the current driving state.
[0101] In some embodiments of the present disclosure, the acquisition module 602 is further configured to execute:
[0102] Acquiring reference comparison information, wherein the reference comparison information has a corresponding reference gain value;
[0103] When the similarity value between the reference comparison information and the initial comparison information is greater than or equal to the similarity threshold, the reference gain value is used as the target gain value.
[0104] Regarding the 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.
[0105] In this embodiment, a single-frequency harmonic signal corresponding to the current driving state of the vehicle is determined, wherein the single-frequency harmonic signal has a corresponding preset frequency, and a gain signal corresponding to the single-frequency harmonic signal is obtained, and then the single-frequency harmonic signal is gain processed according to the gain signal to obtain a sound signal to be synthesized, and a target sound is synthesized according to the sound signal to be synthesized, so that the synthesized target sound is more realistic and can be more adapted to the actual driving scene of the vehicle.
[0106] Figure 7 700 is a block diagram of a vehicle according to an exemplary embodiment. For example, vehicle 700 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. Vehicle 700 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.
[0107] Reference Figure 7, the vehicle 700 may include various subsystems, for example, an infotainment system 710, a perception system 720, a decision control system 730, a drive system 740, and a computing platform 750. The vehicle 700 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 700 may be interconnected by wire or wireless means.
[0108] In some embodiments, the infotainment system 710 may include a communication system, an entertainment system, and a navigation system, etc.
[0109] The perception system 720 may include several sensors for sensing information about the environment around the vehicle 700. For example, the perception system 720 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.
[0110] The decision control system 730 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.
[0111] The drive system 740 may include components that provide power movement for the vehicle 700. In one embodiment, the drive system 740 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.
[0112] Some or all functions of the vehicle 700 are controlled by a computing platform 750. The computing platform 750 may include at least one processor 751 and a memory 752, and the processor 751 may execute instructions 753 stored in the memory 752.
[0113] The processor 751 may be any conventional processor, such as a commercially available CPU. The 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.
[0114] Memory 752 can be implemented by any type of volatile or nonvolatile 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.
[0115] In addition to instructions 753 , memory 752 may also store data, such as road maps, route information, vehicle location, direction, speed, etc. The data stored in memory 752 may be used by computing platform 750 .
[0116] In the embodiment of the present disclosure, the processor 751 may execute the instruction 753 to complete all or part of the steps of the above-mentioned sound synthesis method for a vehicle.
[0117] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon. When the program instructions are executed by a processor, the steps of the sound synthesis method for a vehicle provided by the present disclosure are implemented.
[0118] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".
[0119] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise noted, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although the specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and conducive to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in the specific embodiments or claims, such terms are intended to be inclusive in a manner similar to the term "comprising".
[0120] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0121] 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 synthesis method for a vehicle, characterized in that: The method comprises: Determining a single-frequency harmonic signal corresponding to a current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency; Acquire a gain signal corresponding to the single-frequency harmonic signal; Performing gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized; and A target sound is synthesized according to the sound signal to be synthesized.
2. The method according to claim 1, characterized in that The step of performing gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized includes: The single-frequency harmonic signal and the gain signal are subjected to time domain product processing, and a signal obtained by the time domain product processing is used as the sound signal to be synthesized.
3. The method according to claim 1, characterized in that The obtaining of a gain signal corresponding to the single-frequency harmonic signal comprises: A periodic random signal is acquired, and the periodic random signal is used as the gain signal.
4. The method according to claim 1 or 3, characterized in that The step of acquiring a gain signal corresponding to the single-frequency harmonic signal further includes: Determining initial comparison information between the frequency of the single-frequency harmonic signal and the speed of the fuel engine in the current driving state; Determining a target gain value corresponding to the single-frequency harmonic signal according to the initial comparison information; A periodic signal whose amplitude value is the target gain value is obtained as the gain signal.
5. The method according to claim 4, characterized in that The initial comparison information is a ratio value between the frequency of the single-frequency harmonic signal and the rotation speed of the fuel engine in the current driving state.
6. The method according to claim 4, characterized in that The step of determining a target gain value corresponding to the single-frequency harmonic signal according to the initial comparison information includes: Acquiring reference comparison information, wherein the reference comparison information has a corresponding reference gain value; In a case where the similarity value between the reference comparison information and the initial comparison information is greater than or equal to a similarity threshold, the reference gain value is used as the target gain value.
7. A sound synthesis device for a vehicle, characterized in that: The device comprises: A determination module, configured to determine a single-frequency harmonic signal corresponding to a current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency; An acquisition module, used for acquiring a gain signal corresponding to the single-frequency harmonic signal; a processing module, configured to perform gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized; and The synthesis module is used to synthesize the target sound according to the sound signal to be synthesized.
8. The device according to claim 7, characterized in that in, The processing module is further used for: The single-frequency harmonic signal and the gain signal are subjected to time domain product processing, and a signal obtained by the time domain product processing is used as the sound signal to be synthesized.
9. A vehicle, characterized in that: include: processor; A memory for storing processor-executable instructions; wherein the processor is configured to: implement the steps of the method described in any one of claims 1-6.
10. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a vehicle terminal, enables the vehicle terminal to execute a sound synthesis method for a vehicle, the method comprising: Determining a single-frequency harmonic signal corresponding to a current driving state of the vehicle, wherein the single-frequency harmonic signal has a corresponding preset frequency; Acquire a gain signal corresponding to the single-frequency harmonic signal; Performing gain processing on the single-frequency harmonic signal according to the gain signal to obtain a sound signal to be synthesized; and A target sound is synthesized according to the sound signal to be synthesized.
