Sound source generation method, storage medium, electronic equipment and vehicle
By customizing the sound signal and removing the frequency components of the signal to be superimposed, a personalized vehicle low-speed prompt sound is generated, which solves the safety problems and sound source singularity caused by the silence of electric vehicles, and improves safety and diversity.
Patent Information
- Application Number
- CN202411218717.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-06
AI Technical Summary
Due to the lack of internal combustion engines, electric vehicles are very quiet when driving, which is difficult to attract the attention of pedestrians, increasing the probability of traffic safety accidents. The existing sound source generation scheme generates a single sound source, which leads to users feeling monotonous or dissatisfied with the auditory feedback of the vehicle's low-speed prompt sound. .
Provide a sound source generation method, which processes sound signals through user-defined operations, removes the frequency components of the signals to be superimposed, generates personalized vehicle low-speed prompt sounds, and eliminates signal interference by using adaptive notch filters and frequency domain energy spectrum analysis. Ensure that the sound source complies with regulations and auditory needs.
It realizes safety and flexibility in sound source generation when the vehicle is driving at low speeds, improves user experience and the diversity of sound sources, and ensures that the sound source can not only effectively remind pedestrians but also meets regulatory requirements.
Smart Images

Figure CN119091832A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile engineering technology, and more specifically, to a sound source generation method, a storage medium, an electronic device and a vehicle. Background Art
[0002] With the rapid development of new energy vehicles, the market share of electric vehicles has been increasing year by year. However, since electric vehicles do not have internal combustion engines, they are very quiet during driving and are difficult to attract the attention of pedestrians, increasing the probability of causing traffic accidents.
[0003] At present, a sound source is usually generated and used as a warning sound when the vehicle is in a low speed state to attract the attention of pedestrians. However, the sound sources generated by the existing sound source generation schemes are relatively single, which makes users feel monotonous or dissatisfied with the auditory feedback of the vehicle's low speed warning sound. Summary of the invention
[0004] The embodiments of the present application provide a sound source generation method, a storage medium, an electronic device and a vehicle. The sound source generation method of the present application can meet the needs of users for personalized production.
[0005] In a first aspect, this embodiment provides a method for generating a sound source, including:
[0006] In response to a first operation instruction of the user, the first sound signal is processed to obtain a sound source of a vehicle low speed warning sound;
[0007] The first sound signal is obtained by a user performing a first customized operation.
[0008] Optionally, the processing of the first sound signal to obtain a sound source of the vehicle low speed warning sound includes:
[0009] Removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal;
[0010] A sound source of a vehicle low-speed warning sound is generated according to the target sound signal and the signal to be superimposed.
[0011] Optionally, the frequency of the signal to be superimposed is determined based on a frequency band corresponding to an energy groove in a frequency domain energy spectrum of the first sound signal.
[0012] Optionally, determining the frequency of the signal to be superimposed based on a frequency band corresponding to an energy groove in a frequency domain energy spectrum of the first sound signal includes:
[0013] Detecting whether there is sound signal energy in a frequency band adjacent to the frequency band corresponding to the energy groove;
[0014] In the case where the sound signal energy exists, sub-frequencies falling within the frequency band corresponding to the energy groove are screened out from the set frequency information of the signal to be superimposed;
[0015] The frequency of the signal to be superimposed is determined according to the sub-frequency.
[0016] Optionally, the set frequency information of the signal to be superimposed is an octave frequency.
[0017] Optionally, determining the frequency of the signal to be superimposed according to the sub-frequency includes:
[0018] Using the sub-frequency as the initial frequency of the signal to be superimposed corresponding to the initial speed of the vehicle;
[0019] The frequency of the signal to be superimposed corresponding to the speed at the current moment is determined according to the initial frequency, the rate of change of frequency with speed, and the speed at the current moment.
[0020] Optionally, before determining the frequency of the signal to be superimposed based on the frequency band corresponding to the energy groove in the frequency domain energy spectrum, the method further includes:
[0021] Performing a short-time Fourier transform on the first sound signal to obtain a time-frequency energy spectrum of the first sound signal;
[0022] A frequency domain energy spectrum of the first sound signal is obtained according to the time-frequency energy spectrum.
[0023] Optionally, removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal includes:
[0024] Determine the amplitude and phase of the first sound signal at the frequency of the signal to be superimposed;
[0025] generating the signal component according to the frequency, amplitude and phase of the signal to be superimposed;
[0026] The signal component is removed from the first sound signal to obtain a target sound signal.
[0027] Optionally, removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal includes:
[0028] Convert the first sound signal from the time domain to the frequency domain to obtain a first frequency domain signal corresponding to the frequency domain;
[0029] Removing the signal component from the first frequency domain signal to obtain a second frequency domain signal;
[0030] The second frequency domain signal is converted from the frequency domain to the time domain to obtain a target sound signal.
[0031] Optionally, removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal includes:
[0032] An adaptive notch filter is used to cancel the signal component of the first sound signal at the frequency of the signal to be superimposed, so as to obtain a target sound signal.
[0033] Optionally, generating a sound source of a vehicle low speed warning sound according to the target sound signal and the signal to be superimposed includes:
[0034] Obtaining an amplitude threshold of a target sound signal;
[0035] When the amplitude of the target sound signal exceeds the amplitude threshold, adjusting the amplitude of the target sound signal to obtain an adjusted target sound signal;
[0036] A sound source of a vehicle low-speed warning sound is generated according to the adjusted target sound signal and the signal to be superimposed.
[0037] Optionally, the amplitude threshold of the target sound signal is determined based on a sound pressure level threshold of the signal to be superimposed and / or a sound pressure level threshold of a vehicle speaker.
[0038] Optionally, the signal to be superimposed is a first signal to be superimposed corresponding to the current speed of the vehicle, and generating a sound source of a low-speed warning sound of the vehicle according to the target sound signal and the signal to be superimposed includes:
[0039] A sound source of a vehicle low-speed warning sound is generated according to the first signal to be superimposed and the sound signal segment at the current moment in the target sound signal.
[0040] Optionally, generating a sound source of a vehicle low speed warning sound according to the first signal to be superimposed and the sound signal segment at the current moment in the target sound signal includes:
[0041] Acquiring an amplitude of the first signal to be superimposed, where the amplitude of the first signal to be superimposed is determined based on a mapping relationship between the amplitude of the signal to be superimposed and the vehicle speed;
[0042] The first signal to be superimposed is generated according to the frequency of the first signal to be superimposed and the amplitude of the first signal to be superimposed.
[0043] Optionally, the mapping relationship between the amplitude and the vehicle speed is a mapping relationship between the speed and the amplitude within a set speed range determined based on set sound pressure levels corresponding to the first speed and the second speed of the vehicle.
[0044] Optionally, generating a sound source of a vehicle low speed warning sound according to the first signal to be superimposed and the sound signal segment at the current moment in the target sound signal includes:
[0045] Obtaining a second signal to be superimposed corresponding to the speed of the vehicle at a previous moment;
[0046] Performing amplitude splicing and phase splicing on the first signal to be superimposed and the second signal to be superimposed to obtain a target signal to be superimposed;
[0047] A vehicle low speed warning sound source is generated according to the target signal to be superimposed and the sound signal segment.
[0048] Optionally, before removing the signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain the target sound signal, the method further includes:
[0049] Acquiring a sound source format of a first sound signal;
[0050] When the sound source format is multi-channel, the sound source format of the first sound signal is converted into a single channel.
[0051] Optionally, the first sound signal is obtained by a user performing a first customized operation, including:
[0052] In response to a second operation instruction of the user, acquiring a second sound signal;
[0053] In response to a first customized operation performed by a user on the second sound signal, the second sound signal is processed to obtain the first sound signal.
[0054] Optionally, in response to a second operation instruction of the user, acquiring a second sound signal includes:
[0055] In response to a user recording a sound signal through a vehicle recording device, acquiring a second sound signal; or,
[0056] In response to a user selecting a sound signal from an external storage medium, acquiring a second sound signal; or,
[0057] In response to a user's operation of downloading a sound signal in a vehicle networking state, acquiring a second sound signal; or,
[0058] In response to the user uploading to the vehicle internal storage medium and selecting the sound signal from the vehicle internal storage medium, a second sound signal is acquired.
[0059] Optionally, the first custom operation includes at least one of the following:
[0060] selecting or editing the second sound signal;
[0061] auditioning the second sound signal or the edited third sound signal;
[0062] The volume of the second sound signal or the edited third sound signal is adjusted.
[0063] Optionally, after obtaining the sound source of the vehicle low speed warning sound, the method further includes:
[0064] In response to a third operation instruction of the user, playing the sound source so that the user can audition the sound source; and / or,
[0065] In response to a fourth operation instruction from the user, the volume of the sound source is adjusted.
[0066] In a second aspect, this embodiment provides a storage medium having a computer program stored thereon, wherein the computer program implements the method as described in any one of the first aspects when executed by a processor.
[0067] In a third aspect, this embodiment provides an electronic device, including a memory and a processor.
[0068] The memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method as described in any one of the first aspects.
[0069] In a fourth aspect, this embodiment provides a vehicle, comprising the electronic device as described in the third aspect.
[0070] The embodiment of the present application processes the sound signal obtained by the user performing the first custom operation in response to the user's operation instruction, and obtains the sound source of the vehicle's low-speed warning sound. In this way, the user can create a personalized sound source for the vehicle's low-speed warning sound according to his or her preferences, thereby enhancing the interaction between the user and the vehicle and improving the driving experience. In addition, when the vehicle is in different environmental conditions, the output sound source can be adjusted in real time by receiving the user's custom operation. The sound source generated by the method of this embodiment can not only ensure the safety of the vehicle when driving at low speed, but also improve the flexibility of sound source generation and the user-friendliness of the vehicle.
[0071] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0073] Figure 1 A schematic flowchart of a sound source generation method provided in an embodiment of the present application is shown.
[0074] Figure 2 A schematic UI interface display diagram of a low-speed warning sound function provided by an embodiment of the present application is shown.
[0075] Figure 3 A schematic UI interface display diagram of a low-speed warning sound function provided by another embodiment of the present application is shown.
[0076] Figure 4 A schematic UI interface display diagram of a low-speed warning sound function provided by another embodiment of the present application is shown.
[0077] Figure 5 A schematic flowchart of a sound source generation method provided by another embodiment of the present application is shown.
[0078] Figure 6 A schematic diagram of a frequency domain energy spectrum of a sound signal provided by an embodiment of the present application is shown.
[0079] Figure 7 A schematic flowchart of a sound source generation method provided by another embodiment of the present application is shown.
[0080] Figure 8 A schematic diagram of a velocity amplitude envelope diagram provided by an embodiment of the present application is shown.
[0081] Fig. 9 A schematic block diagram of a sound source generation system provided in an embodiment of the present application is shown.
[0082] Fig.10 A schematic block diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0083] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0084] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0085] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0086] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0087] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0088] With the rapid development of new energy vehicles, the market share of electric vehicles has been increasing year by year. However, since electric vehicles do not have internal combustion engines, they are very quiet during driving and are difficult to attract the attention of pedestrians, increasing the probability of causing traffic accidents.
[0089] At present, a sound source is usually generated and used as a warning sound when the vehicle is in a low-speed state to attract the attention of pedestrians. However, the sound sources generated by the existing sound source generation schemes are relatively simple, which makes users feel monotonous or dissatisfied with the auditory feedback of the vehicle's low-speed warning sound. For example, the sound source generated by the existing sound source generation scheme is a standardized sound source containing a small number of sound features, which cannot meet the needs of users and has a poor driving experience.
[0090] Based on this, the embodiment of the present application provides a method for generating a sound source. Figure 1 As shown, the sound source generation method may include step S110: in response to a first operation instruction of a user, processing a first sound signal to obtain a sound source of a vehicle low-speed warning sound; wherein, the first sound signal is obtained by a first customized operation performed by the user.
[0091] In this embodiment, the first operation instruction may include an operation instruction for the user to enter the low-speed prompt sound function and select the original sound signal, may also include an operation instruction for the user to perform a customized operation on the original sound signal, and may also include an operation instruction for triggering the processing of the first sound signal.
[0092] As an example, Figures 2 to 4 As shown, the configuration function of the low-speed warning sound can be displayed on the vehicle's central control screen. The configuration function may include at least any one of the following: a selection function of the original sound signal, a direct use function, an editing function, a trial listening function, a volume adjustment function, and an editing completion confirmation use function. In this example, the operation instruction for selecting the original sound signal may be an operation instruction generated when the user uses the selection function of the original sound signal. The operation instruction for the user to perform a customized operation on the original sound signal may be an operation instruction generated when the user uses the editing function, the trial listening function, and the volume adjustment function. The operation instruction for triggering the processing of the first sound signal may be an operation instruction generated when the user uses the editing completion confirmation use function or the direct use function.
[0093] In this example, the selection function of the original sound signal may include a selection function of a non-preset original sound signal and a selection function of a preset original sound signal. The preset original sound signal is at least one original sound signal pre-configured by the system. The preset original sound signal may be a sound signal produced by the automobile main engine factory and built into the automobile low-speed warning sound system in accordance with the brand characteristics. For example, the preset original sound signal may be a natural sound signal, such as bird calls, wind, rain, noise, etc.
[0094] The selection function of the original sound signal may include displaying at least one original sound signal pre-configured by the system. Optionally, the selection function of the preset original sound signal may include displaying the file name of at least one original sound signal pre-configured by the system. For example, Figure 2 As shown, the standard tone, brand tone 1 and brand tone 2 are displayed.
[0095] The non-preset original sound signal may be a sound signal selected by the user through screen interaction or cockpit buttons in the car. The non-preset original sound signal may be an artificial sound signal, such as music, instrument sound, etc. The non-preset original sound signal may be a monophonic sound signal or a multi-channel sound signal.
[0096] The selection function of the non-preset original sound signal may include at least any one of the following: displaying a custom button, displaying an external storage button, displaying an internal storage button, displaying a recording button (not shown in the figure), displaying an online download button (not shown in the figure), and displaying the original sound signal in the external storage or internal storage path. Optionally, displaying the file name of the original sound signal in the external storage or internal storage path. For example, Figure 3 As shown, "sound signal 1.mp3", "sound signal 2.wav", "sound signal 3.dts" and so on are displayed.
[0097] In this example, the first operation instruction may include an operation instruction to operate the configured function of the low speed warning sound button after the user clicks (touches or presses a button) on the vehicle central control screen. For example, the first operation instruction may include clicking the following buttons on the vehicle central control screen in sequence: low speed warning sound button, user-defined button, external storage button, original sound signal button, edit button, audition button, and edit completion confirmation button.
[0098] As another example, the configuration function of the low speed warning sound can also be displayed on the mobile terminal communicating with the vehicle. In this example, the first operation instruction can include an operation instruction to operate the configuration function after the user clicks the low speed warning sound button on the mobile terminal.
[0099] The embodiment of the present application processes the first sound signal obtained by the user performing a first custom operation in response to the user's first operation instruction, thereby obtaining the sound source of the vehicle's low-speed warning sound. In this way, the user can create a personalized sound source for the vehicle's low-speed warning sound according to his or her preferences, thereby enhancing the interaction between the user and the vehicle and improving the driving experience. In addition, when the vehicle is in different environmental conditions, the output sound source can be adjusted in real time by receiving the user's custom operation. The sound source generated by the method of this embodiment can not only ensure the safety of the vehicle when driving at low speed, but also improve the flexibility of sound source generation and the user-friendliness of the vehicle.
[0100] The sound source format of the first sound signal may be multi-channel, such as dual-channel stereo format, 5.1 surround sound, 7.1 surround sound, 7.1.4 immersive sound, etc. Based on this, after obtaining the first sound signal, the first sound signal can be processed to obtain the sound source of the vehicle low speed warning sound.
[0101] In this embodiment, the step of processing the first sound signal may include: acquiring a sound source format of the first sound signal; and converting the sound source format of the first sound signal into a single channel when the sound source format of the first sound signal is multi-channel.
[0102] In this embodiment, the step of processing the first sound signal to obtain the sound source of the vehicle low-speed warning sound may include: processing the single-channel first sound signal to obtain the sound source of the vehicle low-speed warning sound.
[0103] As an example, a multi-channel sound signal may be downmixed to convert the multi-channel first sound signal into a single channel. The downmixing process may also generally include a decoding operation, such as decoding a 7.1.4 immersive sound source to obtain a single-channel first sound signal.
[0104] The embodiment of the present application can use downmixing technology to convert the multi-channel first sound signal into a single channel. Through the above processing, the user-defined sound signal can be better processed and the sound information can be retained, and the sound source of the vehicle low-speed warning sound played by the speaker end will be closer to the original sound signal.
[0105] In some embodiments, the step of detecting and converting the sound source format of the sound signal may also be performed before obtaining the first sound signal, which is not described in detail here.
[0106] In the embodiment of the present application, in response to a first operation instruction of a user, a first sound signal is obtained. The first sound signal is obtained by the user performing a first customized operation. In response to the first operation instruction of the user, the step of obtaining the first sound signal may include step S111: obtaining the first sound signal based on the first customized operation performed by the user. Step S111 may include steps S112 to S113.
[0107] Step S112: acquiring a second sound signal in response to a second operation instruction from the user.
[0108] Step S113 , in response to the first customized operation performed by the user on the second sound signal, the second sound signal is processed to obtain a first sound signal.
[0109] In this embodiment, the second sound signal may be an original sound signal. The second operation instruction may include a selection instruction for the original sound signal in the first operation instruction. After the user issues the second operation instruction through the vehicle central control screen or the mobile terminal, the original sound signal indicated in the second operation instruction is used as the second sound signal. In this embodiment, the second sound signal may be displayed on the vehicle central control screen or the mobile terminal so that the user can perform a customized operation on the second sound signal.
[0110] As an example, the second operation instruction may include: clicking the following buttons on the vehicle's central control screen in sequence: low-speed warning sound button, user-defined button, internal storage button, and original sound signal button. As another example, the second operation instruction may include: clicking the following buttons on the vehicle's central control screen in sequence: low-speed warning sound button, user-defined button, recording button, and recording completion button. In this example, after the user completes recording the original sound signal, the recorded second sound signal may be displayed on the vehicle's central control screen or mobile terminal so that the user can perform customized operations on the second sound signal.
[0111] The embodiment of the present application allows the user to obtain the second sound signal through different operations, so that a variety of ways to obtain the second sound signal can be provided to the user according to actual needs. The second sound signal can be obtained by the method of the embodiment of the present application, which can further improve the diversity and flexibility of the sound source generation and the user-friendliness of the vehicle.
[0112] In some embodiments, step S112 may include: in response to the user's operation of recording a sound signal through a vehicle recording device, obtaining a second sound signal. The vehicle recording device is, for example, a microphone in the vehicle. By the user selecting to record the sound signal in real time, it can be ensured that the obtained second sound signal is a personalized sound signal, thereby obtaining a personalized sound source, further improving the driving experience.
[0113] Alternatively, in response to the user's second operation instruction, the step of obtaining the second sound signal may also include: in response to the user's operation of selecting a sound signal from an external storage medium, obtaining the second sound signal. The external storage medium is, for example, a USB flash drive or a hard disk. The user inserts the external storage medium into a port such as a USB port or a Type C port connected to the vehicle system, and selects a second sound signal from at least one sound signal displayed in the external storage medium. The user's operation of selecting a sound signal may include the user clicking an external storage button and selecting a second sound signal that the user likes from at least one sound signal displayed. Acquiring sound signals through an external storage medium can increase the diversity of sound signals.
[0114] Alternatively, in response to the user's second operation instruction, the step of obtaining the second sound signal may also include: in response to the user's operation of downloading the sound signal in the vehicle networking state, obtaining the second sound signal. Through the vehicle networking function, the user can download or upload the sound signal from the network cloud Internet, which increases the interactivity with the vehicle system.
[0115] Alternatively, in response to a second operation instruction from the user, the step of acquiring a second sound signal may further include: acquiring a second sound signal in response to an operation in which the user uploads the sound signal to an internal storage medium of the vehicle and selects the sound signal from the vehicle's memory storage medium. Internal storage media include Flash, ROM, RAM, HDD, and SSD. The sound signal uploaded by the user to the internal storage medium of the vehicle may be transmitted to the internal storage medium of the vehicle after a mobile terminal (such as a mobile phone or tablet) is connected to the vehicle for communication. The communication method between the mobile terminal and the vehicle may include wireless communication or communication methods such as Bluetooth. By acquiring the second sound signal through the sound signal stored in the internal storage medium, the user does not need to carry additional equipment, and at the same time can avoid data security risks that may be caused by external storage media.
[0116] In addition, the embodiment of the present application obtains the second sound signal by utilizing at least one of the recording function, storage function, and communication function of the vehicle, which does not require much modification on the vehicle side, thereby improving the feasibility of the method of the embodiment. At the same time, the vehicle system can support sound signals in multiple formats, thereby improving compatibility with other devices.
[0117] In some embodiments, the first custom operation in step S113 may include at least any one of the following: selecting or editing the second sound signal; auditioning the second sound signal or the edited third sound signal; and adjusting the volume of the second sound signal or the edited third sound signal.
[0118] Step S113 may include: in response to an operation instruction of a user selecting the second sound signal, using the second sound signal as the first sound signal. Alternatively, in response to an operation instruction of a user editing the second sound signal, editing the second sound signal. Alternatively, step S113 may also include: in response to an operation instruction of a user auditioning the second sound signal, playing the second sound signal. Alternatively, step S113 may also include: in response to an operation instruction of a user auditioning the third sound signal edited from the second sound signal, playing the third sound signal. Alternatively, step S113 may also include: in response to an operation instruction of a user adjusting the volume of the second sound signal, adjusting the volume of the second sound signal. Alternatively, step S113 may also include: in response to an operation instruction of a user adjusting the volume of the third sound signal edited from the second sound signal, adjusting the volume of the third sound signal.
[0119] The second sound can be edited through sound processing software. The editing of the second sound signal can include at least any of the following: clipping, splicing, fading in and out, equalization, noise reduction, and adding sound effects. Fading in and out means making a smooth transition between the beginning and the end of the second sound signal to avoid abruptness. Equalization means adjusting the frequency response of the second sound signal to improve the clarity and balance of the sound. Noise reduction means using noise reduction tools to reduce background noise and interference. Adding sound effects, such as adding natural sound effects such as rain and wind, or other sound effects such as footsteps and mechanical sounds.
[0120] The embodiment of the present application can produce a unique and personalized first sound signal by editing the second sound signal.
[0121] The embodiment of the present application provides an audition function, which can obtain feedback in real time to determine whether the second sound signal meets the expected effect. In addition, if the second sound signal does not meet expectations, the second sound signal can be edited, and the third sound signal obtained after editing can also be determined by the audition function to determine whether it meets the expected effect, thereby ensuring that the first sound signal that meets the expected effect is finally output.
[0122] The embodiment of the present application provides a function of adjusting the volume of the second sound signal, so that the user can adjust the volume of the sound signal in different environments. In this way, when the external environment is noisy, the user can turn up the volume. When the external environment is relatively quiet, the user can turn down the volume, thereby improving the flexibility of the sound source system in different environments.
[0123] The sound source format processing of the embodiment of the present application can perform sound source format processing on the second sound signal after acquiring the second sound signal. The second sound signal after the sound source format processing can be displayed on the sound signal editing interface.
[0124] As an example, Figure 3 As shown, the second sound signal after the sound source format processing can be displayed in a waveform block diagram. The block diagram shows a time domain waveform, which shows the total duration of the sound signal. The sound signal can be edited by turning the arrows of the interception start point and the interception end point. When the arrows of the interception start point and the interception end point are turned, the time where the current arrow is located can be displayed next to the arrow. The user can select the sound signal corresponding to the time between the arrows of the interception start point and the interception end point, and play the edited sound signal by clicking the audition button. If the user is satisfied after the audition, he can click the edit completion confirmation button, and the system will automatically save the edited and intercepted sound signal segment as the first sound signal.
[0125] In some embodiments, after obtaining the sound source of the vehicle low speed warning sound in step S110, the method of the embodiment of the present application may further include step S120 and / or step S130.
[0126] Step S120, in response to the user's third operation instruction, playing the sound source of the vehicle low speed warning sound for the user to audition the sound source.
[0127] Step S130, in response to a fourth operation instruction of the user, adjusting the volume of the sound source of the vehicle low speed warning sound.
[0128] In this embodiment, the third operation instruction may include an instruction sent by the user clicking a trial listening button on the vehicle's central control screen or mobile terminal in response to the sound source of the generated vehicle low-speed warning sound.
[0129] The fourth operation instruction may include an instruction sent by the user to adjust the volume value on the vehicle central control screen or mobile terminal for the sound source of the generated vehicle low speed warning sound. As an example, Figure 4 As shown, the user can configure the volume in the provided setting options by clicking on the volume setting. The user can configure the default volume by clicking on the default button, or configure the volume to change with speed by clicking on the volume speed button, or adjust the default volume by clicking on the volume adjustment button.
[0130] After obtaining the sound source of the vehicle low-speed warning sound, the embodiment of the present application can still audition the sound source and / or adjust the volume. The user can adjust the sound source again according to actual needs, further improving the flexibility of the sound source system.
[0131] In addition to auditory and personalized needs, the sound source of the vehicle's low-speed warning sound must first comply with regulations. The current sound source generation method usually generates the sound source of the vehicle's low-speed warning sound by superimposing a signal on a sound signal, and outputs the sound source through the speaker of the AVAS (Acoustic Vehicle Alert System) to alert pedestrians. However, due to the mutual interference between the sound signal and the superimposed signal, it is difficult to strike a balance between regulations and auditory perception for the generated sound source of the vehicle's low-speed warning sound. Therefore, it is first necessary to eliminate the interference between the sound signal and the superimposed signal. However, the current solution to eliminate interference will bring other problems.
[0132] For example, the sound signal and the 1 / 3 octave signal are synthesized to generate the sound source of the vehicle's low-speed warning sound. However, due to the mutual interference between the sound signal and the 1 / 3 octave signal, it is difficult to adjust the A-weighted sound pressure level parameters of the 1 / 3 octave signal in regulatory certification. When the A-weighted sound pressure level of the 1 / 3 octave signal is adjusted too large, the low-speed pedestrian warning sound will be irritating and affect the hearing of people in the car. When the A-weighted sound pressure level of the 1 / 3 octave signal is adjusted too small, it may make it difficult for the low-speed pedestrian warning sound to pass regulations.
[0133] In addition, for any sound signal, the interference with the 1 / 3 octave signal is different. In order to ensure that the sound source of the vehicle low-speed warning sound meets the regulations at the minimum sound pressure level and can effectively warn pedestrians, the A-weighted sound pressure level parameters need to be recalibrated, resulting in a lot of human resource losses and reduced efficiency.
[0134] Based on this, the embodiment of the present application introduces the idea of removing the signal component corresponding to the frequency of the signal to be superimposed in the first sound signal to eliminate the interference between the sound signal and the signal to be superimposed. Figure 5 As shown, the step of processing the first sound signal in step S110 to obtain the sound source of the vehicle low speed warning sound may include steps S210 to S220.
[0135] Step S210: removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal.
[0136] Step S220: generating a sound source of a vehicle low speed warning sound according to the target sound signal and the signal to be superimposed.
[0137] In this embodiment, the sound source format of the first sound signal is a single-channel format. Before step S210, the sound source format of the first sound signal may be acquired first, and when the sound source format is multi-channel, the sound source format of the first sound signal is converted to a single-channel format.
[0138] In this embodiment, for a preset sound signal, the frequency of the signal to be superimposed can be pre-stored in the system. For a non-preset sound signal, the frequency of the signal to be superimposed can be determined in real time.
[0139] In this embodiment, the signal component may include at least any one of the following: an amplitude component and a phase component in the time domain, and an amplitude component and a phase component in the frequency domain. Removing the signal component corresponding to the frequency of the signal to be superimposed from the first sound signal may be removing the amplitude component and the phase component of the first sound signal corresponding to the frequency of the signal to be superimposed from the first sound signal in the time domain, or may be removing the amplitude component and the phase component of the first sound signal corresponding to the frequency of the signal to be superimposed from the first sound signal in the frequency domain.
[0140] After the target sound signal is obtained, step S220 may synthesize the target sound signal and the signal to be superimposed to generate a sound source of the vehicle low-speed warning sound.
[0141] From the first sound signal, the signal component of the first sound signal corresponding to the frequency of the signal to be superimposed is removed to obtain the target sound signal. In this way, the interference between the target sound signal and the signal to be superimposed can be eliminated without causing new problems. The sound source of the vehicle low-speed warning sound is generated by the target sound signal and the signal to be superimposed that do not interfere with each other, so that the sound source of the generated vehicle low-speed warning sound can comply with regulations and meet the user's hearing needs.
[0142] In the embodiment of the present application, the step of processing the first sound signal to obtain the sound source of the vehicle low speed warning sound may not depend on the user's first operation instruction and may be performed independently to obtain the sound source of the vehicle low speed warning sound.
[0143] In order to reduce the impact of the cancellation operation on the first sound signal, the applicant conducted research on the sound signal and found that there are many energy grooves in the frequency domain energy spectrum of the sound signal, and the sound signal at the frequency band corresponding to these energy grooves is weak. If the signal component at the frequency band corresponding to the energy groove of the sound signal is cancelled, the impact on the sound signal itself is very small.
[0144] Therefore, in the embodiment of the present application, the frequency of the signal to be superimposed may be determined based on the frequency band corresponding to the energy groove in the frequency domain energy spectrum of the first sound signal.
[0145] The energy notch in the frequency domain energy spectrum of the first sound signal refers to a frequency range (i.e., frequency band) in which the energy in the frequency domain energy spectrum of the first sound signal is significantly lower than the energy of the surrounding frequencies. The frequency band corresponding to the energy notch is a frequency band whose energy is lower than a set threshold.
[0146] As an example, Figure 6The frequency domain energy spectrum of a sound signal is shown. As can be seen from the figure, there are multiple energy grooves (such as 1, 2, 3, 4, etc.) in the frequency domain energy spectrum of the sound signal. The frequency range of the frequency band corresponding to energy groove 1 is approximately between 0Hz and 270Hz. The frequency range of the frequency band corresponding to energy groove 2 is approximately between 400Hz and 500Hz. The frequency range of the frequency band corresponding to energy groove 3 is approximately between 550Hz and 650Hz. The frequency range of the frequency band corresponding to energy groove 4 is approximately between 750Hz and 850Hz.
[0147] In this embodiment, the first sound signal may be subjected to a short-time Fourier transform to obtain a time-frequency energy spectrum of the first sound signal. A frequency domain energy spectrum of the first sound signal may be obtained based on the time-frequency energy spectrum of the first sound signal. The frequency of the signal to be superimposed may be obtained by analyzing the frequency domain energy spectrum.
[0148] Based on this, Figure 7 As shown, the sound source generation method provided in the embodiment of the present application may further include step S200 to step S201.
[0149] Step S200: Detect whether there is a medium energy groove in the frequency domain energy spectrum of the first sound signal.
[0150] Step S201 : when there is an energy notch in the frequency domain energy spectrum of the first sound signal, determine the frequency of the signal to be superimposed based on the frequency band corresponding to the energy notch in the frequency domain energy spectrum of the first sound signal.
[0151] The embodiment of the present application determines the frequency of the signal to be superimposed based on the frequency band corresponding to the energy groove in the frequency domain energy spectrum of the first sound signal, and then removes the signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain the target sound signal. In this way, the difference between the target sound signal and the first sound signal is minimized. The sound source of the vehicle low speed warning sound generated based on the target sound signal can better restore the sound characteristics of the first sound signal.
[0152] In this embodiment, the amplitude and phase of the signal to be superimposed can be preset, and the signal to be superimposed can be generated by combining the frequency of the signal to be superimposed determined based on the frequency band corresponding to the energy groove. Then, the target sound signal and the signal to be superimposed generated at this time are synthesized to generate the sound source of the vehicle low speed warning sound.
[0153] In some embodiments, step S201 may include steps S202 to S204.
[0154] Step S202 , detecting whether there is sound signal energy in a frequency band adjacent to a frequency band corresponding to an energy groove in a frequency domain energy spectrum of the first sound signal.
[0155] In this embodiment, the adjacent frequency bands of the frequency band corresponding to the energy groove may include both a set frequency range lower than the lowest frequency of the frequency band corresponding to the energy groove and a set frequency range higher than the highest frequency of the frequency band corresponding to the energy groove, or may only include a set frequency range higher than the highest frequency of the frequency band corresponding to the energy groove, or may only include a set frequency range lower than the lowest frequency of the frequency band corresponding to the energy groove.
[0156] As an example, Figure 6 As shown, the frequency bands adjacent to the frequency band corresponding to the energy groove may be between 300 Hz and 400 Hz and between 500 Hz and 550 Hz. In this example, it is detected whether there is sound signal energy between 300 Hz and 400 Hz and between 500 Hz and 550 Hz.
[0157] Step S203: When the sound signal energy exists, sub-frequencies falling within the frequency band corresponding to the energy groove are screened out from the set frequency information of the signal to be superimposed.
[0158] Step S204: determining the frequency of the signal to be superimposed according to the sub-frequency.
[0159] In this embodiment, in step S203, a sub-frequency falling within the frequency band corresponding to the energy groove can be screened out from the set frequency information of the signal to be superimposed. Step S204 can include: using the sub-frequency as the frequency of the signal to be superimposed.
[0160] The set frequency information of the signal to be superimposed is the frequency information that complies with the vehicle low-speed warning sound regulations. The set frequency information of the signal to be superimposed can be an octave frequency. The octave frequency can be, for example, a plurality of 1 / 3 octave frequency points divided according to the national standard. As an example, the national standard GB / T 37153-2018 divides 16 1 / 3 octave frequency points. In this example, the energy groove (such as Figure 6 The medium energy grooves 2, 3, and 4) correspond to a sub-frequency in the frequency band, and the sub-frequency is used as the frequency of the signal to be superimposed, and the signal to be superimposed corresponding to the sub-frequency is generated.
[0161] The embodiment of the present application selects a sub-frequency that meets the regulations from the set frequency information of the signal to be superimposed as the frequency of the signal to be superimposed, and then generates a signal to be superimposed according to the frequency, and based on the signal to be superimposed and the sound signal, a sound source of a vehicle low-speed warning sound that complies with the regulations can be generated.
[0162] Preferably, the adjacent frequency bands of the frequency band corresponding to the energy groove do not include a set frequency range lower than the frequency band corresponding to the energy groove. This is because when there is no sound signal energy in the set frequency range lower than the frequency band corresponding to the energy groove, after the energy groove is superimposed with a signal, the sound signal cannot mask it. According to human psychology, the user hears the signal to be superimposed in addition to the first sound signal, and the user's body perception is poor.
[0163] That is to say, when there is no sound signal energy in the set frequency range below the frequency band corresponding to the energy groove, and there is sound signal energy only in the set frequency range above the frequency band corresponding to the energy groove, the frequencies in the frequency band corresponding to the energy groove are discarded and not used as the frequencies of the signals to be superimposed.
[0164] As an example, Figure 6 As shown, for any one of the energy grooves 2, 3, and 4, there is sound signal energy in the set frequency range below the lowest frequency of the frequency band corresponding to the energy groove and in the set frequency range above the highest frequency of the frequency band corresponding to the energy groove. The sound pressure level of the sound signal can form a certain masking effect on the signal to be superimposed, and can be used as the frequency of the signal to be superimposed. However, there is no sound energy in the set frequency range below the lowest frequency of the frequency band corresponding to the energy groove 1. According to human psychology, the sound signal in the set frequency range cannot produce a masking effect on the signal to be superimposed, and cannot be used as the frequency of the signal to be superimposed.
[0165] In the embodiment of the present application, when there is no sound signal energy within the set frequency range lower than the lowest frequency of the frequency band corresponding to the energy groove, the frequency of the frequency band corresponding to the energy groove is discarded, thereby preventing the user from hearing a signal to be superimposed in addition to the first sound signal in the sound source. In this way, the user's body sense can be improved.
[0166] After determining the frequency of the signal to be superimposed, in some embodiments, step S210 may be performed in the time domain. In this embodiment, step S210 may include steps S211 to S213.
[0167] Step S211, determining the amplitude and phase of the first sound signal at the frequency of the signal to be superimposed.
[0168] As an example, taking the frequency of the signal to be superimposed as a 1 / 3 octave frequency point as an example, step S211 can be implemented in the following manner.
[0169] First, construct a basis vector that can estimate the frequency of the signal to be superimposed Where j represents the imaginary unit, f s is the sampling frequency, f is the 1 / 3 octave signal frequency, and n is the signal sampling point.
[0170] Then, the amplitude and phase of the first sound signal at the frequency of the signal to be superimposed are obtained using the following formula:
[0171]
[0172]
[0173] in, and Respectively The real and imaginary parts of s[n] are, s[n] is the first sound signal to be processed at the current moment, and w[n] is the window function for windowing the first sound signal currently being processed. Specific window functions may include, for example, a rectangular window, a Hanning window, a Hamming window, a Kaiser window, a flat-top window, a Blackman window, and the like.
[0174]
[0175] Among them, || represents modulus, and arctan() is the inverse tangent function. f and φ f Respectively represent the amplitude and phase of the first sound signal at the frequency of the signal to be superimposed.
[0176] In this embodiment, spectrum leakage can be reduced by performing windowing processing on the first sound signal.
[0177] Step S212: Generate a signal component according to the frequency of the signal to be superimposed, and the amplitude and phase of the first sound signal at the frequency of the signal to be superimposed.
[0178] In this embodiment, the frequency of the signal to be superimposed is used as the frequency of the signal component, and the amplitude and phase of the signal component are combined to generate a single-frequency signal component.
[0179] As an example, the signal component x f [n] can be expressed by the following formula.
[0180]
[0181] Step S213: remove the signal component from the first sound signal to obtain a target sound signal.
[0182] In the embodiment of the present application, the signal component cancellation is performed in the time domain, the first sound signal can be processed in real time, and the spectrum aliasing problem caused by Fourier transform can be avoided. In addition, the signal component cancellation is performed in the time domain, and there is no need to perform frequency domain conversion and inverse transformation, and the amount of calculation is small.
[0183] In some embodiments, step S210 may also be performed in the frequency domain. In this embodiment, step S210 may include steps S214 to S216.
[0184] Step S214: convert the first sound signal from the time domain to the frequency domain to obtain a first frequency domain signal corresponding to the frequency domain.
[0185] Step S215: remove the signal component from the first frequency domain signal to obtain a second frequency domain signal.
[0186] Step S216: convert the second frequency domain signal from the frequency domain to the time domain to obtain a target sound signal.
[0187] As an example, first, the first sound signal is windowed and then fast Fourier transformed to obtain the first frequency domain signal corresponding to the frequency domain. Then, the frequency of the first sound signal close to the frequency of the signal to be superimposed is determined in the frequency domain, and then the signal component of the first sound signal corresponding to the frequency of the first sound signal is determined, and the signal component is removed. Finally, a target sound signal that approximately cancels the signal component in the time domain is obtained through a fast inverse Fourier transform. In this example, the frequency of the signal to be superimposed can be used as the center frequency, and a frequency that differs from the center frequency by a set threshold can be queried from the sampling frequency of the first sound signal, and the queried frequency can be used as a frequency close to the frequency of the signal to be superimposed.
[0188] In the embodiment of the present application, the signal components corresponding to the frequencies of the signals to be superimposed are directly offset in the frequency domain, which is more intuitive and more accurate.
[0189] In some embodiments, step S210 may be directly implemented using filtering principles. In this embodiment, step S210 may include step S217: using an adaptive notch filter to cancel the signal component of the first sound signal at the frequency of the signal to be superimposed to obtain a target sound signal.
[0190] As an example, firstly, a reference signal of the signal component of the first sound signal corresponding to the frequency of the signal to be superimposed is designed, and then an adaptive filter is used to construct a notch filter to cancel out the signal component of the first sound signal corresponding to the frequency of the signal to be superimposed, so as to obtain a target sound signal that cancels out the signal component of the first sound signal corresponding to the frequency of the signal to be superimposed in the time domain.
[0191] In this embodiment, an adaptive notch filter can be used in the time domain or frequency domain to cancel the signal component of the first sound signal at the frequency of the signal to be superimposed to obtain the target sound signal. Applying an adaptive notch filter in the frequency domain is usually more stable than in the time domain, and can avoid the ringing effect and excessive oscillation that may occur in the time domain filter.
[0192] In the embodiment of the present application, the signal component cancellation is achieved by utilizing an adaptive notch filter. Thus, when the signal component changes, the adaptive notch filter can adaptively cancel out the changed signal component, thereby further improving the flexibility of the sound source generation method.
[0193] In some embodiments, the sound source of the vehicle low speed warning sound can produce a gradually louder sound as the speed increases, and a gradually smaller sound as the speed decreases. In this way, the sound will not suddenly become louder, which can better warn pedestrians.
[0194] In this embodiment, when the vehicle is in a state where the warning sound needs to be turned on as required by the law, the vehicle low-speed warning sound system obtains the vehicle's driving speed and gear status information to assist in providing the signal to be superimposed required at that moment. The speed and gear status information can be obtained from the vehicle host and transmitted to the vehicle low-speed warning sound system in real time; the gear includes forward driving and reverse driving. The regulatory requirements for reverse gear are simpler than those for forward gear, and the corresponding sound source generation method can be included in the forward gear design. The embodiment of this application is introduced using the forward gear as an example.
[0195] Optionally, the signal to be superimposed may vary with the change of vehicle speed. The signal to be superimposed is a first signal to be superimposed corresponding to the current speed of the vehicle. The frequency and / or amplitude of the signal to be superimposed may vary with the change of vehicle speed. In this embodiment, step S220 may include step S310: generating a sound source of a vehicle low speed warning sound according to the first signal to be superimposed and the target sound signal.
[0196] Optionally, the target sound signal may vary with the change of the vehicle speed. The target sound signal is a sound signal segment at the current moment. The amplitude of the target sound signal may vary with the change of the vehicle speed. In this embodiment, step S220 may include step S320: generating a sound source of the vehicle low speed warning sound according to the sound signal segment at the current moment in the signal to be superimposed and the target sound signal.
[0197] Optionally, both the signal to be superimposed and the target sound signal may vary with the vehicle speed. In this embodiment, step S220 may include step S330: generating a sound source of the vehicle low speed warning sound according to the sound signal segment at the current moment in the first signal to be superimposed and the target sound signal.
[0198] In this embodiment, the sound signal segment can be a sound signal of the current frame, or a sound signal of the current frame formed by combining the sound signal before the current frame. The sound signal segment is a segment of the original sound signal.
[0199] In this embodiment, the signal component corresponding to the frequency of the first signal to be superimposed can be removed from the sound signal segment at the current moment. Similarly, the amplitude threshold of the sound signal segment at the current moment can be determined based on the sound pressure level threshold in the first signal to be superimposed and the sound pressure level threshold of the vehicle speaker, and the sound signal segment at the current moment can be controlled based on the amplitude threshold. This will not be described in detail here.
[0200] In some embodiments, the frequency of the first signal to be superimposed varies with the speed of the vehicle. After obtaining the sub-frequency in step S203, step S204 may include steps S205 to S206.
[0201] Step S205: Using the sub-frequency as the initial frequency of the signal to be superimposed corresponding to the initial speed of the vehicle.
[0202] Take the frequency information of the signal to be superimposed as an octave frequency as an example. The octave frequency can be, for example, a plurality of 1 / 3 octave frequency points divided according to the national standard. As an example, the 16 1 / 3 octave frequency points divided according to the national standard are selected from the 16 1 / 3 octave frequency points and fall into the energy groove (such as Figure 6 The medium energy grooves 2, 3, 4) correspond to a sub-frequency in the frequency band, and the sub-frequency is used as the initial frequency of the signal to be superimposed.
[0203] Step S206, determining the frequency of the signal to be superimposed corresponding to the speed at the current moment according to the initial frequency, the rate of change of the frequency with the speed, and the speed at the current moment.
[0204] As an example, the frequency of the signal to be superimposed corresponding to the speed at the current moment can be expressed by the following formula:
[0205] f t =f0+Δf*t,
[0206] Among them, f t is the frequency of the signal to be superimposed corresponding to the current speed, f0 is the initial frequency of the signal to be superimposed corresponding to the initial speed of the vehicle (the starting speed in this example), Δf is the rate of change of frequency with speed, and t is the current time.
[0207] In this example, the vehicle speed can be any value, and is not limited to an integer value. This method can reduce the use of internal storage space of the vehicle low speed warning sound system to a certain extent, and can provide more flexible user-defined applications.
[0208] As another example, it can be achieved by reading stored data. The low-speed warning sound system pre-stores different initial frequencies, the rates of change of different frequencies with speed, and the frequencies of the signals to be superimposed at different speeds. During the driving of the vehicle, it is only necessary to read the frequency of the signal to be superimposed corresponding to the current speed when the current speed of the vehicle reaches the stored speed or the current speed of the vehicle reaches the stored speed after rounding. At the same time, in the computing device, according to the amplitude corresponding to the preset current speed, the signal to be superimposed that meets the regulatory sound pressure level is output. Among them, the vehicle speed generally refers to an integer speed value, so that the signal data is stored in a certain memory space. This method can reduce the consumption of computing resources by the vehicle low-speed warning sound system to a certain extent.
[0209] The frequency of the signal to be superimposed in the embodiment of the present application changes with the speed of the vehicle, which can better warn pedestrians and further improve the user experience. Whether by reading stored data or by real-time calculation and generation, since the speed of the vehicle changes during driving, the signal to be superimposed at this moment is a short-term single-frequency signal, generally several milliseconds in length, which can greatly guarantee the short-term stability characteristics of the signal.
[0210] In some embodiments, the amplitude of the first signal to be superimposed changes with the speed of the vehicle. In order to ensure that the generated first signal to be superimposed complies with regulations, the amplitude of the first signal to be superimposed needs to be controlled. The sound source generation method in this embodiment may also include step S230: determining the amplitude of the first signal to be superimposed based on the mapping relationship between the speed and amplitude of the signal to be superimposed.
[0211] In this embodiment, the mapping relationship between speed and amplitude is a mapping relationship between speed and amplitude within a set speed range determined based on the set sound pressure levels corresponding to the first speed and the second speed of the vehicle. The first speed and the second speed are sound pressure level calibration points, which can be set according to actual needs. According to regulations, the operating speed range of the vehicle low-speed warning sound system should at least include greater than 0km / h and less than or equal to 20km / h. In this embodiment, the vehicle low-speed warning sound system is set to work in a speed range of 0km / h-30km / h. Each sound pressure level calibration point can calibrate an amplitude value.
[0212] As an example, the first speed may be 10 km / h, and the second speed may be 20 km / h. The mapping relationship between the speed and amplitude of the signal to be superimposed may be determined by the sound pressure level calibration values of the speeds of 10 km / h and 20 km / h. By designing a speed-amplitude envelope that reflects the mapping relationship between the speed and amplitude of the signal to be superimposed, the volume of the low-speed warning sound of the car can be made to gradually increase and decrease with the increase of the speed during the driving of the car.
[0213] As an example, if the amplitude values corresponding to the sound pressure level calibration values of 10km / h and 20km / h are a=0.565 and b=1 respectively, the velocity amplitude envelope obtained is as follows: Figure 8 shown.
[0214] Optionally, the speed-amplitude envelope can be a linear function mode. The speed v is used as the horizontal coordinate and the signal amplitude A is used as the vertical coordinate. When the driving speed is less than or equal to 10km / h, the amplitude is 0 when the speed is 0km / h, and the amplitude is a when the speed is 10km / h. A linear function line is constructed by the amplitude when the speed is 0km / h and the amplitude when the speed is 10km / h, which can represent the signal amplitude at any speed from 0km / h to 10km / h. When the driving speed is greater than 10km / h and less than or equal to 20km / h, a linear function line is constructed with the calibrated amplitudes a and b at the two speed points of 10km / h and 20km / h, which can represent the signal amplitude at any speed from 10km / h to 20km / h. When the driving speed is greater than 20km / h and less than or equal to 30km / h, the signal amplitude at 30km / h is 0. Combined with the calibrated amplitude at the 20km / h speed point, a linear function line is constructed, which can represent the signal amplitude at any speed from 20km / h to 30km / h. The speed-amplitude envelope in this embodiment is as follows:
[0215]
[0216] Optionally, the speed-amplitude envelope can be a quadratic function mode, with speed v as the horizontal coordinate and signal amplitude A as the vertical coordinate. When the driving speed is less than or equal to 10km / h, the amplitude is 0 when the speed is 0km / h, and the amplitude is a when the speed is 10km / h. A quadratic function curve with an opening upward and a vertex horizontal coordinate equal to 0km / h is constructed, which can represent the signal amplitude at any speed from 0km / h to 10km / h. When the driving speed is greater than 10km / h and less than or equal to 20km / h, a quadratic function curve with an opening upward and a vertex horizontal coordinate less than or equal to 10km / h is constructed with the calibrated amplitudes a and b of the two speed points of 10km / h and 20km / h, which can represent the signal amplitude at any speed from 10km / h to 20km / h. When the driving speed is greater than 20km / h and less than or equal to 30km / h, the signal amplitude at 30km / h is 0. Combined with the calibrated amplitude at the 20km / h speed point, a quadratic function curve with an upward opening and a vertex abscissa equal to 30km / h is constructed, which can represent the signal amplitude of any speed from 20km / h to 30km / h. The speed-amplitude envelope in this embodiment is as follows:
[0217]
[0218] Optionally, the speed-amplitude envelope can be a linear function mode of the sound pressure level, with the speed v as the horizontal coordinate and the signal sound pressure level P as the vertical coordinate. When the driving speed is less than or equal to 10km / h, the sound pressure level calibration value at a speed of 10km / h is used as the coordinate point, and a linear function straight line with a positive slope is constructed, which can represent the signal sound pressure level value at any speed from 0km / h to 10km / h. When the driving speed is greater than 10km / h and less than or equal to 20km / h, a linear function straight line is constructed with the calibrated sound pressure level values at the two speed points of 10km / h and 20km / h, which can represent the signal sound pressure level value at any speed from 10km / h to 20km / h. When the driving speed is greater than 20km / h and less than or equal to 30km / h, the sound pressure level calibration value at a speed of 20km / h is used as the coordinate point, and a linear function straight line with a negative slope is constructed, which can represent the signal sound pressure level value at any speed from 20km / h to 30km / h. In this embodiment, since the sound pressure level and the signal amplitude can be converted to each other, that is, P=20*log10(A), the above-mentioned sound pressure level ordinate can be converted into the signal amplitude, and the velocity-amplitude envelope can be represented by the approximate amplitude, and the formula is as follows:
[0219]
[0220] Wherein, k1 is the slope of the linear function line constructed when 0≤v<10, and k2 is the slope of the linear function line constructed when 20≤v<30. The specific values of k1 and k2 can be set according to actual needs.
[0221] In some embodiments, when the vehicle speed is 30km / h, the calibrated value of the sound pressure level may be equal to that when the vehicle speed is 0km / h. At this time, the specific value of k2 may be determined based on the calibrated value of the sound pressure level at a vehicle speed of 20km / h and the calibrated value of the sound pressure level at 30km / h.
[0222] In the above embodiment, three speed-amplitude envelopes are selectable, and can be flexibly selected according to different auditory requirements in practice. Preferably, the speed-amplitude envelope can be a quadratic function mode, because it can meet the requirements that the low-speed warning sound of the car gradually increases and decreases with the increase of speed, and can also keep the energy loss at the lowest level among the three modes, which is Figure 8 It can be seen from the envelope diagram that the area enclosed by its envelope and the speed axis is the smallest.
[0223] For the speed-amplitude envelope of the quadratic function mode and the sound pressure level linear function mode, when the vehicle is stationary, the amplitude may not be designed to be a non-zero value, so that the vehicle can still make a sound when it is stationary, but it should ensure that the volume of the vehicle's low-speed warning sound gradually increases with the increase of speed when the speed is lower than 10km / h.
[0224] The sound pressure level of the signal to be superimposed needs to meet regulatory requirements at different speeds. The sound pressure level combinations of different signals to be superimposed that give the user the best hearing experience can be pre-calibrated, and the calibration parameters can be fixed and stored.
[0225] In the embodiment of the present application, the amplitude of the first signal to be superimposed varies with the vehicle speed, which can meet the auditory sense requirements. In addition, by controlling the amplitude of the first signal to be superimposed, a first signal to be superimposed that complies with regulations can be generated.
[0226] The first signal to be superimposed in the embodiment of the present application may be generated according to the frequency of the first signal to be superimposed that varies with the vehicle speed and / or the amplitude of the first signal to be superimposed that varies with the vehicle speed.
[0227] In some embodiments, the amplitude of the sound signal varies with the speed of the vehicle. In order to ensure that the output is consistent with the human ear and outputs a vehicle low-speed warning sound source that is not distorted and does not damage the speaker, it is necessary to control the amplitude of the superimposed signal. Step S220 may include steps S221 to S222.
[0228] Step S221, obtaining an amplitude threshold of the target sound signal.
[0229] In this embodiment, the amplitude threshold of the target sound signal is determined based on the sound pressure level threshold in the signal to be superimposed and / or the sound pressure level threshold of the vehicle speaker.
[0230] The sound pressure level and amplitude have a logarithmic mathematical relationship, and the two can be converted to each other. Therefore, based on the sound pressure level threshold in the signal to be superimposed and / or the sound pressure level threshold of the vehicle speaker, the sound pressure level threshold of the target sound signal can be determined, thereby determining the amplitude threshold of the target sound signal.
[0231] In this embodiment, the parameters such as the sensitivity, rated power, and frequency response curve of the loudspeaker may be analyzed to determine the maximum sound pressure level that can be outputted.
[0232] In this embodiment, the sound pressure levels of all sound signals can be managed uniformly in advance in the vehicle system. For example, the amplitude of the sound signal can be regulated and unified in a normalized manner. The sound pressure level of the sound signal does not exceed the amplitude threshold mentioned above.
[0233] Optionally, the sound pressure level of the sound signal can be consistent with the speed amplitude envelope of the signal to be superimposed, so that the output volume of the vehicle low speed warning sound source has a sense of gradually increasing and decreasing with the speed change. The sound pressure level of the sound signal does not exceed the amplitude threshold corresponding to the amplitude envelope of the signal to be superimposed.
[0234] Optionally, a volume adjustment setting option is provided in the vehicle low-speed warning sound system, and the user can adjust the sound pressure level of the sound signal individually, but the maximum sound pressure level adjusted by the volume should not exceed the threshold value mentioned above to avoid the user adjusting the sound pressure level of the sound signal too high, causing the AVAS sound source to be distorted at the speaker output end and damaging the speaker.
[0235] Step S223: When the amplitude of the target sound signal exceeds the amplitude threshold, the amplitude of the target sound signal is adjusted to obtain an adjusted target sound signal.
[0236] As an example, when the amplitude of the target sound signal exceeds the amplitude threshold, the current amplitude of the target sound signal is adjusted to the amplitude threshold or below the amplitude threshold.
[0237] Step S223, generating a sound source of the vehicle low speed warning sound according to the adjusted target sound signal and the signal to be superimposed.
[0238] In this embodiment, the adjusted target sound signal and the signal to be superimposed are synthesized to generate a sound source of the vehicle low-speed warning sound.
[0239] In this embodiment, there is no need to use a compressor, a limiter or the like before the output end of the speaker. If a compressor, a limiter or the like is used, the sound source of the output low-speed prompt sound will be difficult to comply with regulations.
[0240] In this embodiment, the amplitude of the sound signal is controlled within a certain range, thereby ensuring that the output is consistent with the hearing sense of human ears and outputs the sound source without distortion or damage to the speaker.
[0241] In the embodiment where the signal to be superimposed changes with the speed of the vehicle, since the speed of the vehicle changes during driving, the frequency and amplitude of the signal to be superimposed at each moment are also different. Therefore, it is necessary to perform amplitude splicing and phase splicing on the signals to be superimposed at different moments to make the phases and amplitudes continuous.
[0242] In some embodiments, step S330 may also include steps S331 to S334.
[0243] Step S331 , obtaining a second sound signal segment and a second signal to be superimposed corresponding to the speed of the vehicle at a previous moment.
[0244] Step S332: obtaining a first sound source according to the first signal to be superimposed and the first sound signal segment at the current moment in the target sound signal.
[0245] Step S333: obtaining a second sound source according to the second signal to be superimposed and the second sound signal segment.
[0246] Step S334, the first sound source and the second sound source are amplitude spliced and phase spliced to generate a sound source of the vehicle low speed warning sound.
[0247] In some embodiments, step S331 and step S332 may be combined into a step of obtaining a first sound source of a vehicle low-speed warning sound corresponding to the vehicle's speed at a previous moment.
[0248] Considering that the sound signal at the previous moment and the current moment are continuous, in some embodiments, preferably, step S330 may include steps S336 to S338.
[0249] Step S336, obtaining a second signal to be superimposed corresponding to the speed of the vehicle at the previous moment.
[0250] Step S337, performing amplitude splicing and phase splicing on the first signal to be superimposed and the second signal to be superimposed to obtain a target signal to be superimposed.
[0251] Step S338: generating a sound source of a vehicle low speed warning sound according to the target signal to be superimposed and the sound signal segment.
[0252] The first signal to be superimposed is a signal generated by the frequency and / or amplitude of the signal to be superimposed corresponding to the speed at the current moment. The second signal to be superimposed is a signal generated by the frequency and / or amplitude of the signal to be superimposed corresponding to the speed at the previous moment. After the second signal to be superimposed is generated at the previous moment, the second signal to be superimposed can be stored for subsequent direct reading.
[0253] In this embodiment, a phase smoothing algorithm can be used to extract the phase of the last sampling point of the second signal to be superimposed at the previous moment, and start reading or generating the first signal to be superimposed when the phase of the last sampling point of the first signal to be superimposed is equal to that of the second signal to be superimposed at the current moment, so that the phases of the two signals are continuous when they are spliced. The first signal to be superimposed at the current moment can be expressed by the following formula:
[0254]
[0255] Where n is the signal sampling point, n = 0, 1, 2, ..., N-1, N is the total number of sampling points of the current sound signal being processed, x2[n] is the first signal to be superimposed at the current moment, A is the signal amplitude, f2 is the frequency of the first signal to be superimposed at the current moment, φ 1,end is the phase of the last sampling point at the previous moment.
[0256] In this embodiment, for the splicing of signals to be superimposed with different amplitudes at two moments, a vector weighted amplitude smoothing algorithm can be used to avoid sudden amplitude changes. 1i is the extension of the second signal to be superimposed at the previous moment, x 2iis the start of the first signal to be superimposed at the current moment, λ i is the smoothing coefficient, i=1,2,...,M, M is the number of sampling points of the smoothing segment, then the smoothing segment is y i =λ i x 1i +(1-λ i )x 2i , where the smoothing coefficient can be taken as λ i =i / M.
[0257] The embodiment of the present application can ensure the phase continuity and amplitude continuity of the signal to be superimposed by splicing the amplitude and phase of the signal to be superimposed at different times, and avoid the generation of impulsive and sudden inharmonious sounds when playing sounds. In addition, only splicing the amplitude and phase of the signal to be superimposed at different times can also reduce the amount of calculation and improve the calculation efficiency.
[0258] The present application also provides a sound source generation system. Fig. 9 As shown, the system may include a vehicle system device 1100, a storage device 1200, a display device 1300, a control device 1400, a processing device 1500, a power amplification device 1600, a speaker device 1700 and a transmission device.
[0259] The vehicle system device 1100 includes Android system, Linux system, Windows system, Hongmeng system, etc., and can provide users with an interactive platform. For example, if the user needs to select the setting of the low-speed warning sound system, select a custom sound signal, edit and clip the custom sound signal, control the volume setting of the sound signal, create a personalized sound signal, and make a sound signal, it can connect to the Internet and provide Internet cloud download services. In addition, it can also provide decoding of multi-channel sound signal files and process downmixing algorithms.
[0260] The storage device 1200, such as RAM, ROM, PROM, SSD, HDD, etc., is used to store sound signals and basic parameters of calibration, setting parameters, etc. The vehicle system 1100 can store or read data and information therein, for example, the external storage U disk, hard disk, etc. store sound signal data, and the internal storage such as Flash, ROM, RAM, HDD, SSD, etc. stores sound signal data downloaded by users from the Internet cloud, data created, recorded, and produced by users in the vehicle, etc. In addition, control commands can also be stored to store calibration parameter information of the signal to be superimposed, frequency information, and the generated signals to be superimposed at various speeds for the processing device.
[0261] The display device 1300 includes a screen, which is convenient for providing a user with an intuitive interactive operation interface, so that the user can intuitively control and select the required functions and operations.
[0262] The control device 1400 includes an MCU and a SOC, and is used to transmit data and control commands to and from the vehicle system. For example, the MCU receives execution commands from the vehicle system, and receives control commands and data sent to the processing device.
[0263] The processing device 1500 includes a DSP (Digital Signal Processor), a CPU, an FPGA (Field Programmable Gate Array), a GPU, etc., which are used for reading or algorithm processing to generate the necessary signals in real time. The processing device provides sufficient computing power for the implementation of the proposed algorithm and method. For example, the analysis of the sound signal involved above, the mutual matching algorithm between the sound signal and the signal to be superimposed, the real-time generation algorithm of the signal to be superimposed, the cancellation algorithm of the sound signal for the frequency point of the signal to be superimposed, the sound pressure level control algorithm of the sound signal, the mixing of the sound signal and the signal to be superimposed, etc.
[0264] The power amplifier 1600 includes a class AB power amplifier and a class D power amplifier, which are used to provide sufficient power amplification signals, perform A / D conversion on the signals from the DSP, convert them into analog signals, and then output them to the speakers for sound through power amplification.
[0265] The speaker device 1700 is used to play the sound of the AVAS sound source, which can meet the use requirements of the vehicle low-speed warning sound, and can diffuse the signal output from the power amplifier device in the form of physical sound waves, and finally complete the sound of the vehicle low-speed warning sound system.
[0266] Transmission devices such as SPI (Serial Peripheral Interface), I2S (Inter-IC Sound), A2B (Automotive Audio Bus), etc. are used to transmit the basic parameters, sound signals, control commands, etc. required by the AVAS sound source real-time generation method.
[0267] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the above method embodiments is implemented.
[0268] The present application also provides an electronic device, such as Fig.10 As shown, the electronic device 2000 includes a memory 2100 and a processor 2200, the memory 2100 is used to store computer instructions, and the processor 2200 is used to call the computer instructions from the memory 2100 to execute any method as described in any one of the above method embodiments.
[0269] An embodiment of the present application also provides a vehicle, comprising the electronic device 2000 as described above.
[0270] Each embodiment in this application is described in a progressive 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 device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0271] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0272] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0273] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0274] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0275] The computer program instructions for performing the operation of the present application can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of a computer-readable program instruction to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.
[0276] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0277] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0278] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0279] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0280] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present application is defined by the appended claims.
Claims
1. A sound source generation method, characterized in that: include: In response to a first operation instruction of the user, the first sound signal is processed to obtain a sound source of a vehicle low speed warning sound; The first sound signal is obtained by a user performing a first customized operation.
2. The method according to claim 1, characterized in that The processing of the first sound signal to obtain the sound source of the vehicle low speed warning sound includes: Removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal; A sound source of a vehicle low-speed warning sound is generated according to the target sound signal and the signal to be superimposed.
3. The method according to claim 2, characterized in that The frequency of the signal to be superimposed is determined based on a frequency band corresponding to an energy groove in a frequency domain energy spectrum of the first sound signal.
4. The method according to claim 3, characterized in that Determining the frequency of the signal to be superimposed based on a frequency band corresponding to an energy groove in a frequency domain energy spectrum of the first sound signal includes: Detecting whether there is sound signal energy in a frequency band adjacent to the frequency band corresponding to the energy groove; In the case where the sound signal energy exists, sub-frequencies falling within the frequency band corresponding to the energy groove are screened out from the set frequency information of the signal to be superimposed; The frequency of the signal to be superimposed is determined according to the sub-frequency.
5. The method according to claim 4, characterized in that The set frequency information of the signal to be superimposed is an octave frequency.
6. The method according to claim 4, characterized in that The step of determining the frequency of the signal to be superimposed according to the sub-frequency comprises: Using the sub-frequency as the initial frequency of the signal to be superimposed corresponding to the initial speed of the vehicle; The frequency of the signal to be superimposed corresponding to the speed at the current moment is determined according to the initial frequency, the rate of change of frequency with speed, and the speed at the current moment.
7. The method according to claim 3, characterized in that Before determining the frequency of the signal to be superimposed based on the frequency band corresponding to the energy groove in the frequency domain energy spectrum, the method further includes: Performing a short-time Fourier transform on the first sound signal to obtain a time-frequency energy spectrum of the first sound signal; A frequency domain energy spectrum of the first sound signal is obtained according to the time-frequency energy spectrum.
8. The method according to claim 2, characterized in that: The removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal includes: Determine the amplitude and phase of the first sound signal at the frequency of the signal to be superimposed; generating the signal component according to the frequency, amplitude and phase of the signal to be superimposed; The signal component is removed from the first sound signal to obtain a target sound signal.
9. The method according to claim 2, characterized in that: The removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal includes: Convert the first sound signal from the time domain to the frequency domain to obtain a first frequency domain signal corresponding to the frequency domain; Removing the signal component from the first frequency domain signal to obtain a second frequency domain signal; The second frequency domain signal is converted from the frequency domain to the time domain to obtain a target sound signal.
10. The method according to claim 2, characterized in that The removing a signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain a target sound signal includes: An adaptive notch filter is used to cancel the signal component of the first sound signal at the frequency of the signal to be superimposed, so as to obtain a target sound signal.
11. The method according to claim 2, characterized in that The step of generating a sound source of a vehicle low speed warning sound according to the target sound signal and the signal to be superimposed includes: Obtaining an amplitude threshold of a target sound signal; When the amplitude of the target sound signal exceeds the amplitude threshold, adjusting the amplitude of the target sound signal to obtain an adjusted target sound signal; A sound source of a vehicle low-speed warning sound is generated according to the adjusted target sound signal and the signal to be superimposed.
12. The method according to claim 11, characterized in that The amplitude threshold of the target sound signal is determined based on a sound pressure level threshold of the to-be-superimposed signal and / or a sound pressure level threshold of a vehicle speaker.
13. The method according to claim 2, characterized in that The signal to be superimposed is a first signal to be superimposed corresponding to the current speed of the vehicle, and generating a sound source of a low-speed warning sound of the vehicle according to the target sound signal and the signal to be superimposed includes: A sound source of a vehicle low-speed warning sound is generated according to the first signal to be superimposed and the sound signal segment at the current moment in the target sound signal.
14. The method according to claim 13, characterized in that The step of generating a sound source of a vehicle low speed warning sound according to the first signal to be superimposed and the sound signal segment at the current moment in the target sound signal includes: Acquiring an amplitude of the first signal to be superimposed, where the amplitude of the first signal to be superimposed is determined based on a mapping relationship between the amplitude of the signal to be superimposed and the vehicle speed; The first signal to be superimposed is generated according to the frequency of the first signal to be superimposed and the amplitude of the first signal to be superimposed.
15. The method according to claim 14, characterized in that The mapping relationship between the amplitude and the vehicle speed is a mapping relationship between the speed and the amplitude within a set speed range determined based on the set sound pressure levels corresponding to the first speed and the second speed of the vehicle.
16. The method according to claim 13, characterized in that The step of generating a sound source of a vehicle low speed warning sound according to the first signal to be superimposed and the sound signal segment at the current moment in the target sound signal includes: Obtaining a second signal to be superimposed corresponding to the speed of the vehicle at a previous moment; Performing amplitude splicing and phase splicing on the first signal to be superimposed and the second signal to be superimposed to obtain a target signal to be superimposed; A vehicle low speed warning sound source is generated according to the target signal to be superimposed and the sound signal segment.
17. The method according to claim 2, characterized in that Before removing the signal component corresponding to the frequency of the signal to be superimposed from the first sound signal to obtain the target sound signal, the method further includes: Acquiring a sound source format of a first sound signal; When the sound source format is multi-channel, the sound source format of the first sound signal is converted into a single channel.
18. The method according to claim 1, characterized in that The first sound signal is obtained by the user performing a first customized operation, including: In response to a second operation instruction of the user, acquiring a second sound signal; In response to a first customized operation performed by a user on the second sound signal, the second sound signal is processed to obtain the first sound signal.
19. The method according to claim 18, characterized in that The step of acquiring a second sound signal in response to a second operation instruction of the user includes: In response to a user recording a sound signal through a vehicle recording device, acquiring a second sound signal; or, In response to a user selecting a sound signal from an external storage medium, acquiring a second sound signal; or, In response to a user's operation of downloading a sound signal in a vehicle networking state, acquiring a second sound signal; or, In response to the user uploading to the vehicle internal storage medium and selecting the sound signal from the vehicle internal storage medium, a second sound signal is acquired.
20. The method according to claim 18, characterized in that The first custom operation includes at least one of the following: Selecting or editing the second sound signal; auditioning the second sound signal or the edited third sound signal; The volume of the second sound signal or the edited third sound signal is adjusted.
21. The method according to claim 1, characterized in that After obtaining the sound source of the vehicle low speed warning sound, the method further includes: In response to a third operation instruction of the user, playing the sound source so that the user can audition the sound source; and / or, In response to a fourth operation instruction from the user, the volume of the sound source is adjusted.
22. A storage medium, characterized in that: A computer program is stored thereon, which implements the method according to any one of claims 1 to 21 when executed by a processor.
23. An electronic device, characterized in that: including memory and processor, The memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method according to any one of claims 1 to 21.
24. A vehicle, characterized in that: Comprising the electronic device as claimed in claim 23.
Citation Information
Cited By
Audio source generation method, storage medium, electronic device, and vehicle
WO2026045636A1
