Vehicle prompt sound playing control method, storage medium and electronic device

By adjusting vehicle speed, acceleration, and the frequency components of the warning sound to generate a target gain warning tone, and by adding harmonic components in combination with noise frequency and energy analysis, the problem of vehicle warning sounds being drowned out by noise has been solved, improving the driver's responsiveness and enhancing driving safety.

CN115019836BActive Publication Date: 2025-11-11DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210473855.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-11-11
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

Existing vehicle warning sounds are easily drowned out by external noise, causing drivers to be unable to respond in time, which poses a safety hazard.

Method used

The output gain is determined by adjusting the vehicle speed, vehicle acceleration value, and frequency components of the target prompt tone. Combined with the frequency components and energy of ambient noise, a target prompt tone with increased gain is generated to ensure that it is distinguished from ambient noise. Harmonic components are added to increase richness and make it easier to identify in noise.

Benefits of technology

It effectively improves the driver's ability to recognize vehicle warning sounds in noisy environments, reduces the risk of warning sounds being masked by noise, and enhances driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115019836B_ABST
    Figure CN115019836B_ABST
Patent Text Reader

Abstract

This application discloses a vehicle alert tone playback control method, storage medium, and electronic device. In response to a target alert tone playback command, the method acquires vehicle speed, vehicle acceleration value, frequency components of the target alert tone, and ambient noise. It adjusts the output gain of the target alert tone based on the vehicle speed, vehicle acceleration value, and frequency components of the target alert tone to generate a gained target alert tone. It determines the prominence difference between the gained target alert tone and the ambient noise; if the prominence difference is greater than a preset prominence threshold, it outputs the gained target alert tone. Since higher vehicle speed and acceleration values ​​generate greater ambient noise, this application adjusts the output gain based on the vehicle speed, vehicle acceleration value, and frequency components of the target alert tone to generate a gained target alert tone. The gained target alert tone is output when the prominence difference between the gained target alert tone and the ambient noise meets a preset condition, thus distinguishing the gained target alert tone from the ambient noise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive technology, and in particular to a method for controlling vehicle alert sound playback, a storage medium, and an electronic device. Background Technology

[0002] To improve driving safety, some vehicles monitor road conditions and vehicle status in real time. When special road conditions occur or the vehicle is in a particular situation, voice prompts are issued to remind the driver to pay attention to the current road conditions, vehicle status, or perform specific actions, thereby ensuring vehicle safety. However, current vehicle prompts are played at set volume and frequency. Due to ambient noise during driving, external noise may drown out the vehicle prompts, causing the driver to miss them and fail to take timely action, posing a certain safety hazard. Summary of the Invention

[0003] The purpose of this application is to overcome the shortcomings of existing vehicle alert sounds with fixed volume and frequency that are easily drowned out by external noise, and to provide a vehicle alert sound playback control method, storage medium and electronic device that can adjust the volume and frequency of the vehicle alert sound in combination with external noise to ensure that the driver can hear the vehicle alert sound.

[0004] The technical solution of this application provides a method for controlling vehicle alert sound playback, including...

[0005] In response to the target prompt tone playback command, acquire vehicle speed, vehicle acceleration value, frequency components of the target prompt tone, and ambient noise;

[0006] The output gain of the target prompt tone is determined based on the vehicle speed, the vehicle acceleration value, and the frequency components of the target prompt tone, and a gain target prompt tone is generated.

[0007] Determine the prominence difference between the target gain prompt tone and the ambient noise. If the prominence difference is greater than a preset prominence threshold, then output the target gain prompt tone.

[0008] Further, the step of adjusting the output gain of the target prompt tone based on the vehicle speed, the vehicle acceleration value, and the frequency components of the target prompt tone to generate a gain target prompt tone specifically includes:

[0009] The base gain is determined based on the vehicle speed and the vehicle acceleration value;

[0010] The gain enhancement value is determined based on the frequency components of the target prompt tone;

[0011] The output gain of the target prompt tone is adjusted according to the sum of the base gain and the gain bonus, thereby generating the target prompt tone.

[0012] Furthermore, determining the prominence difference between the target gain prompt tone and the ambient noise specifically includes...

[0013] Determine the sound pressure level of the gain target prompt tone based on the aforementioned gain target prompt tone;

[0014] Determine the frequency band of the target gain prompt tone;

[0015] Determine the ambient noise energy in the frequency band of the gain target prompt tone;

[0016] The ambient noise sound pressure level is determined based on the ambient noise energy.

[0017] The salience difference is obtained by subtracting the ambient noise sound pressure level from the gain target cue sound pressure level.

[0018] Furthermore, it also includes

[0019] If the prominence difference is less than or equal to a preset prominence threshold, then frequency component analysis is performed on the environmental noise to determine the energy frequency level of the environmental noise;

[0020] Harmonic components are added to the target gain prompt tone based on the energy frequency level of the ambient noise until the richness of the target gain prompt tone is greater than or equal to a preset richness, and then the target gain prompt tone with added harmonics is output.

[0021] Furthermore, the step of performing frequency component analysis on the environmental noise to determine the energy frequency level of the environmental noise specifically includes...

[0022] The environmental noise is divided into a set number of frequency bands according to a preset division standard, and the energy value of each frequency band is calculated.

[0023] Determine the sound pressure level of each frequency band based on the energy value of each frequency band;

[0024] Obtain the energy of the frequency band with the highest sound pressure level and the energy of the frequency band with the lowest sound pressure level, and calculate the energy difference of the highest frequency band;

[0025] If the energy difference in the frequency band is less than or equal to a preset energy threshold, then the energy frequency level of the ambient noise is determined to be intermediate frequency; otherwise...

[0026] Calculate the energy difference between the energy of each frequency band and the energy of the frequency band with the lowest sound pressure level, determine the frequency bands whose energy difference is greater than a preset energy threshold, and count the number of frequency bands in the high-frequency, mid-frequency, and low-frequency bands respectively;

[0027] If the number of frequency bands in the high-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be high-frequency.

[0028] If the number of frequency bands in the mid-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be mid-frequency;

[0029] If the number of frequency bands in the low-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be low-frequency.

[0030] Further, the step of adding harmonic components to the target gain prompt tone based on the energy frequency level of the ambient noise until the richness of the target gain prompt tone is greater than or equal to a preset richness, and then outputting the target gain prompt tone with added harmonics, specifically includes:

[0031] If the energy frequency level of the ambient noise is high, then

[0032] Add a low octave harmonic component to the current gain target tone. If the richness of the current gain target tone is greater than or equal to the preset richness, output the current gain target tone; otherwise, output the tone.

[0033] Continue adding low-pure fourth and low-pure fifth harmonic components to the current gain target tone. If the richness of the current gain target tone is greater than or equal to the preset richness, output the current gain target tone; otherwise, output the current gain target tone.

[0034] Continue adding low major third, low minor third, low major sixth, and low minor sixth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone.

[0035] Return to the step of adding a low octave harmonic component to the current gain target prompt tone.

[0036] Further, the step of adding harmonic components to the gain target prompt tone based on the energy frequency level of the ambient noise until the richness of the current gain target prompt tone is greater than or equal to a preset richness, and then outputting the gain target prompt tone with added harmonics, specifically includes:

[0037] If the energy frequency level of the ambient noise is mid-frequency, then

[0038] Add high-octave and low-octave harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone with added harmonics; otherwise, output the prompt tone.

[0039] Continue adding high-purity fourths, high-purity fifths, low-purity fourths, and low-purity fifths harmonic components to the current gain target tone. If the richness of the current gain target tone is greater than or equal to the preset richness, output the current gain target tone after adding harmonics; otherwise...

[0040] Continue adding harmonic components of a high major third, high minor third, high major sixth, high minor sixth, and low major third, low minor third, low major sixth, and low minor sixth to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone.

[0041] Return to the step of adding high and low octave harmonic components to the current gain target cue tone.

[0042] Further, the step of adding harmonic components to the target gain prompt tone based on the energy frequency level of the ambient noise until the richness of the target gain prompt tone is greater than or equal to a preset richness, and then outputting the target gain prompt tone with added harmonics, specifically includes:

[0043] If the energy frequency level of the environmental noise is low, then

[0044] Add a higher octave harmonic component to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone.

[0045] Continue adding high-purity fourth and fifth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise...

[0046] Continue adding high major third, high minor third, high major sixth, and high minor sixth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone.

[0047] Return to the step of adding a higher octave harmonic component to the current gain target prompt tone.

[0048] The technical solution of this application also provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform the vehicle alert sound playback control method described above.

[0049] The technical solution of this application also provides an electronic device, including at least one processor; and,

[0050] A memory communicatively connected to the at least one processor; wherein,

[0051] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the vehicle alert tone playback control method as described above.

[0052] The above technical solution has the following beneficial effects:

[0053] Generally speaking, the greater the vehicle speed and acceleration, the greater the environmental noise generated. This application adjusts the output gain according to the vehicle speed, vehicle acceleration, and the frequency components of the target prompt tone to generate a gain target prompt tone. When the prominence difference between the gain target prompt tone and the environmental noise meets the preset conditions, the gain target prompt tone is output to distinguish it from the environmental noise, so that the driver can identify the gain target prompt tone in the environmental noise. Attached Figure Description

[0054] The disclosure of this application will become more readily understood with reference to the accompanying drawings. It should be understood that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. In the drawings:

[0055] Figure 1 This is a flowchart of a vehicle alert sound playback control method according to an embodiment of this application;

[0056] Figure 2 This is a flowchart of the steps for determining the ambient noise sound pressure level in one embodiment of this application;

[0057] Figure 3 This is a flowchart of the steps for determining the energy frequency level of ambient noise in one embodiment of this application;

[0058] Figure 4 This is a flowchart of the steps for adding harmonic components to a gain target prompt tone in one embodiment of this application;

[0059] Figure 5 This is a flowchart of the steps for adding harmonic components to a gain target prompt tone in one embodiment of this application;

[0060] Figure 6 This is a flowchart of the steps for adding harmonic components to a gain target prompt tone in one embodiment of this application;

[0061] Figure 7 This is a flowchart of a vehicle alert sound playback control method in a preferred embodiment of this application;

[0062] Figure 8 This is a schematic diagram of the hardware structure of an electronic device in one embodiment of this application. Detailed Implementation

[0063] The specific embodiments of this application will be further described below with reference to the accompanying drawings.

[0064] It is readily understood that, based on the technical solution of this application, various structural and implementation methods can be interchanged by those skilled in the art without altering the essential spirit of this application. Therefore, the following detailed embodiments and accompanying drawings are merely illustrative examples of the technical solution of this application and should not be considered as the entirety of this application or as limitations or restrictions on the technical solution of the application.

[0065] The directional terms such as up, down, left, right, front, back, front, back, top, and bottom mentioned or possibly used in this specification are defined relative to the structures shown in the accompanying drawings. These are relative concepts and may therefore vary depending on their location and usage. Therefore, these or other directional terms should not be interpreted as restrictive. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0066] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meanings of the above in this application according to the specific circumstances.

[0067] The vehicle alert sound playback control method in the embodiments of this application, such as Figure 1 As shown, it includes step S101: in response to the target prompt tone playback command, acquiring vehicle speed, vehicle acceleration value, frequency components of the target prompt tone, and ambient noise;

[0068] Step S102: Adjust the output gain of the target prompt tone according to the vehicle speed, the vehicle acceleration value, and the frequency components of the target prompt tone to generate a gain target prompt tone;

[0069] Step S103: Determine the prominence difference between the gain target prompt tone and the ambient noise. If the prominence difference is greater than a preset prominence threshold, then output the gain target prompt tone.

[0070] The target prompt tone playback command carries target prompt tone information or related identifiers, and the target prompt tone playback command can be issued by the vehicle computer or other vehicle-mounted control units.

[0071] When a target prompt tone playback command is received, the vehicle speed, vehicle acceleration value and ambient noise at the current moment are obtained, and the target prompt tone information in the target prompt tone playback command is identified to determine the frequency components of the target prompt tone.

[0072] The vehicle speed and acceleration values ​​are obtained from the vehicle's on-board computer, while ambient noise is collected via microphones installed inside the vehicle. The duration of ambient noise collection can be set as needed. The frequency components of the target prompt tone can be pre-stored and directly extracted, or they can be obtained by performing a frequency component analysis process on the target prompt tone. Existing frequency component analysis methods can be used for frequency component analysis, and this application does not limit this approach.

[0073] Then, the output gain of the target prompt tone is adjusted based on the vehicle speed, vehicle acceleration value, and the frequency components of the target prompt tone to generate a gained target prompt tone. Generally speaking, the higher the vehicle speed and vehicle acceleration value, the greater the ambient noise inside the vehicle. By adjusting the output gain in conjunction with the vehicle speed and vehicle acceleration value, an output gain that matches the ambient noise can be set. At the same time, by combining the frequency components of the target prompt tone, the output gain can be further set to match the characteristics of the target prompt tone to match the ambient noise, ensuring that the gained target prompt tone after adjusting the output gain can be distinguished from the ambient noise.

[0074] Finally, the prominence difference between the gain target prompt tone and the ambient noise is calculated. If the prominence difference is greater than the preset prominence threshold, it is determined that the difference between the gain target prompt tone and the ambient noise is sufficient for the driver to identify the gain target prompt tone in the ambient noise. The preset prominence threshold is preferably 3dB.

[0075] In this embodiment of the application, when outputting a target prompt tone, the output gain is adjusted by combining the vehicle speed, vehicle acceleration value, and frequency components of the target prompt tone to generate a gain target prompt tone. The prominence difference between the gain target prompt tone and the ambient noise is judged to determine whether the prompt tone output conditions are met.

[0076] In one embodiment, the step of adjusting the output gain of the target prompt tone based on the vehicle acceleration value and the frequency components of the target prompt tone to generate a gain target prompt tone specifically includes:

[0077] The base gain is determined based on the vehicle speed and the vehicle acceleration value;

[0078] The gain enhancement value is determined based on the frequency components of the target prompt tone;

[0079] The output gain of the target prompt tone is adjusted according to the sum of the base gain and the gain bonus, thereby generating the target prompt tone.

[0080] Specifically, the base gain is determined by consulting a base gain table. As an example, an acceleration base gain table and a deceleration base gain table can be preset. When the vehicle's acceleration value is positive, the vehicle is in an accelerating state, and the base gain is determined by consulting the acceleration base gain table. In the acceleration base gain table, the higher the vehicle speed and the higher the current vehicle volume, the higher the base gain. When the vehicle's acceleration value is negative, the vehicle is in a decelerating state, and the base gain is determined by consulting the deceleration base gain table. In the deceleration base gain table, the higher the vehicle speed and the higher the current vehicle volume, the higher the base gain.

[0081] The lookup methods for the acceleration base gain table and the deceleration base gain table are the same. The following explanation uses the acceleration base gain table as an example to illustrate one implementation method:

[0082] The horizontal axis is set to the vehicle speed level, which can divide the vehicle speed into several speed levels according to preset division rules. Each speed level corresponds to a speed range. By determining the speed range in which the current vehicle speed is located, the corresponding speed level is determined. The vertical axis is the vehicle's current volume level (usually set by the user), which is divided into several volume levels. The base gain is determined by the vehicle speed level on the horizontal axis and the volume level on the vertical axis.

[0083] Furthermore, to avoid fluctuations in gain caused by vehicle speed variations, the base gain in the deceleration base gain table decreases one gain level later than the base gain in the acceleration base gain table at the same speed. For example, in the acceleration base gain table, the base gain is A2 at level 1 volume and level 2 speed, and A3 at level 1 volume and level 3 speed; similarly, in the deceleration base gain table, the base gain is A2 at level 1 volume and level 1 speed, and A3 at level 1 volume and level 2 speed.

[0084] The gain enhancement value is determined by substituting the frequency components of the target prompt tone into the gain enhancement curve and outputting the corresponding gain enhancement value; the gain enhancement curve is obtained by fitting the frequency of different prompt tones with the corresponding gain enhancement value.

[0085] In this embodiment, the output gain of the target prompt tone is obtained by adding the base gain and the gain bonus. The base gain is related to the vehicle speed and vehicle acceleration, while the gain bonus is related to the frequency components of the target prompt tone. This allows for the generation of a target prompt tone that matches both the target prompt tone and the current vehicle conditions.

[0086] In one embodiment, determining the prominence difference between the gain target cue tone and the ambient noise specifically includes:

[0087] Determine the sound pressure level of the gain target prompt tone based on the aforementioned gain target prompt tone;

[0088] Determine the frequency band of the target gain prompt tone;

[0089] Determine the ambient noise energy in the frequency band of the gain target prompt tone;

[0090] The ambient noise sound pressure level is determined based on the ambient noise energy.

[0091] The salience difference is obtained by subtracting the ambient noise sound pressure level from the gain target cue sound pressure level.

[0092] In this embodiment, the prominence difference is determined based on the gain target prompt sound pressure level and the ambient noise sound pressure level to determine whether the gain target prompt sound will be masked by background noise. Since the audio sound pressure level is affected by the output gain, the sound pressure level is calculated after adjusting the output gain.

[0093] Regarding ambient noise sound pressure level, firstly, based on the frequency component F of the target prompt tone... C (Equal to the frequency components of the gain target prompt tone) Determine the frequency band of the gain target prompt tone, then calculate the ambient noise energy of the background noise in that frequency band, and finally determine the sound pressure level of the ambient noise based on the ambient noise energy.

[0094] Specifically, such as Figure 2 As shown, in step S201, the frequency component F of the gain target prompt tone is first determined. C Is it greater than 500Hz?

[0095] If F C If the frequency is greater than 500Hz, proceed to step S202: determine the frequency band as F. min ~F max F min =F C +0.2F C F max =F C -0.2F C Then proceed to step S204;

[0096] If F C If the frequency is less than or equal to 500Hz, then proceed to step S203 to determine the frequency band as F. min ~F max , where F min =F C +50, F max =F C -50; then proceed to step S204;

[0097] Step S204: Calculate the ambient noise energy in this frequency band.

[0098] Where F min ~F max The number of frequency bands between them is determined based on the actual frequency band length, and this embodiment does not limit this;

[0099] Step S205: Determine the ambient noise sound pressure level B = 20log(P) based on the ambient noise energy. b ).

[0100] In one embodiment, the vehicle alert sound playback control method further includes

[0101] If the prominence difference is less than or equal to a preset prominence threshold, then frequency component analysis is performed on the environmental noise to determine the energy frequency level of the environmental noise;

[0102] Harmonic components are added to the gain target prompt tone according to the energy frequency level of the ambient noise until the richness of the gain target prompt tone is greater than or equal to the preset richness, and then the gain target prompt tone with added harmonics is output.

[0103] In this embodiment, when the difference in prominence between the target gain prompt tone and the ambient noise is less than or equal to a preset prominence threshold, frequency component analysis is performed on the ambient noise to determine its energy frequency level, including high, mid, and low frequencies. Then, different harmonic components are added to the target gain prompt tone based on the ambient noise's energy frequency level to increase its richness and make it easier to distinguish from the ambient noise. A preset richness is set as the richness criterion for the target gain prompt tone, preferably between 5% and 10%. When the richness of the target gain prompt tone is greater than or equal to the preset richness, it is considered that the target gain prompt tone is significantly different from the ambient noise and is not easily masked by it. In this case, the target gain prompt tone with added harmonic components is output.

[0104] In one embodiment, such as Figure 3 As shown, the step of performing frequency component analysis on the environmental noise to determine the energy frequency level of the environmental noise specifically includes:

[0105] Step S301: Divide the ambient noise into a set number of frequency bands according to a preset division standard, and calculate the energy value of each frequency band;

[0106] Step S302: Determine the sound pressure level of each frequency band based on the energy values ​​of each frequency band;

[0107] Step S303: Obtain the energy of the frequency band with the highest sound pressure level and the energy of the frequency band with the lowest sound pressure level, and calculate the energy difference of the highest frequency band;

[0108] Step S304: If the frequency band energy difference is less than or equal to a preset energy threshold, then the energy frequency level of the ambient noise is determined to be intermediate frequency; otherwise...

[0109] Step S305: Calculate the energy difference between the energy of each frequency band and the energy of the frequency band with the lowest sound pressure level, determine the frequency bands whose energy difference is greater than a preset energy threshold, and count the number of frequency bands in the high-frequency, mid-frequency, and low-frequency bands respectively;

[0110] Step S306: If the number of frequency bands in the high-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be high frequency;

[0111] Step S307: If the number of frequency bands in the mid-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be mid-frequency;

[0112] Step S308: If the number of frequency bands in the low-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be low frequency.

[0113] Specifically, in step S301, the quantity is set to 26, and the preset division standard is to divide the 20Hz~20kHz frequency range into 26 frequency bands. The energy value of each frequency band is calculated using the following formula.

[0114] Where 1≤i≤26.

[0115] Next, in step S302, the energy values ​​of each frequency band are converted to dB (decibels) and weighted to obtain the sound pressure level of each frequency band.

[0116] SPLPb i =L(A)Fbc*20log(Pb) i ), where A is the standard weighted curve used for audio measurement in the prior art - A-weighted (A-Weighted), 1≤i≤26.

[0117] Step S303 calculates the maximum frequency band energy difference max(SPLPb) i )-min(SPLPb i ), where max(SPLPb i ) represents the energy of the frequency band with the highest sound pressure level, min(SPLPb) i () represents the frequency band energy with the lowest sound pressure level.

[0118] In step S304, the preset energy threshold is set to 5dB. When the maximum frequency band energy difference is less than or equal to 5dB, it is considered that the energy of each frequency band in the environmental noise is balanced, and the energy frequency level of the environmental noise is determined to be intermediate frequency. Otherwise, step S305 is executed.

[0119] In step S305, the energy of each frequency band is subtracted from the energy of the frequency band with the lowest sound pressure level, min(SPLPb).i The energy difference of each frequency band is obtained, and the frequency bands with an energy difference greater than 5dB are extracted. The number of frequency bands in the high frequency band (3125Hz~20kHz), mid frequency band (915Hz~3125Hz) and low frequency band (20Hz~915Hz) are counted respectively.

[0120] If the number of frequency bands in the high-frequency band (3125Hz~20kHz) is the largest, then the energy frequency level of the environmental noise is determined to be high frequency; if the number of frequency bands in the mid-frequency band (915Hz~3125Hz) is the largest, then the energy frequency level of the environmental noise is determined to be mid frequency; if the number of frequency bands in the low-frequency band (20Hz~915Hz) is the largest, then the energy frequency level of the environmental noise is determined to be low frequency.

[0121] In one embodiment, such as Figure 4 As shown, the step of adding harmonic components to the gain target prompt tone according to the energy frequency level of the ambient noise until the richness of the gain target prompt tone is greater than or equal to a preset richness, and then outputting the gain target prompt tone with added harmonics, specifically includes, if the energy frequency level of the ambient noise is high-frequency, then executing...

[0122] Step S401: Add a low octave harmonic component to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, proceed to step S404; otherwise, proceed to step S405.

[0123] Step S402: Continue adding low-pure fourth and low-pure fifth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then proceed to step S404; otherwise, proceed to step S405.

[0124] Step S403: Continue to add low major third, low minor third, low major sixth, and low minor sixth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then execute step S404; otherwise, return to step S401.

[0125] Step S404: Output the current gain target prompt tone.

[0126] This application embodiment enriches the frequency components of the gain target cue audio by increasing harmonic components, thus making it less susceptible to being masked by environmental noise. The method of increasing harmonic components adopts the idea of ​​inverse noise masking, and broadband is more difficult to mask than single frequency.

[0127] In this embodiment, since the energy frequency level of the ambient noise is high, low-frequency harmonics are added. First, an octave of perfectly consonant intervals is added. If the richness still does not reach the preset richness, then perfectly consonant interval harmonics are added. If the richness still does not reach the preset richness, then incompletely consonant interval harmonics are added. This makes the gain target prompt tone after adding harmonics less likely to be masked by ambient noise.

[0128] In one embodiment, such as Figure 5 As shown, the step of adding harmonic components to the gain target prompt tone according to the energy frequency level of the ambient noise until the richness of the gain target prompt tone is greater than or equal to a preset richness, and then outputting the gain target prompt tone with added harmonics, specifically includes, if the energy frequency level of the ambient noise is intermediate frequency, then executing...

[0129] Step S501: Add high-octave and low-octave harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then proceed to step S504; otherwise, proceed to...

[0130] Step S502: Continue adding high-purity fourth, high-purity fifth, low-purity fourth, and low-purity fifth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then proceed to step S504; otherwise, proceed to step S505.

[0131] Step S503: Continue to add harmonic components of major third, minor third, major sixth, major sixth and minor sixth and major third, minor third, major sixth and minor sixth to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then execute step S504; otherwise, return to step S501.

[0132] Step S504: Output the current gain target prompt tone.

[0133] This application embodiment enriches the gain target cue audio frequency components by adding harmonic components, making it less susceptible to being masked by environmental noise. The method of adding harmonic components adopts the idea of ​​inverse noise masking, and broadband is more difficult to mask than single frequency.

[0134] In this embodiment, the energy frequency level of the ambient noise is mid-frequency. Therefore, high and low frequency harmonics other than the center frequency of the gain target prompt tone are added. First, an octave of perfect consonance is added. If the richness still does not reach the preset richness, then perfect consonance harmonics are added. If the richness still does not reach the preset richness, then imperfect consonance harmonics are added. This makes the gain target prompt tone after adding harmonics less likely to be masked by ambient noise.

[0135] In one embodiment, such as Figure 6As shown, the step of adding harmonic components to the gain target prompt tone according to the energy frequency level of the ambient noise until the richness of the gain target prompt tone is greater than or equal to a preset richness, and then outputting the gain target prompt tone with added harmonics, specifically includes, if the energy frequency level of the ambient noise is low frequency, then executing...

[0136] Step S601: Add a higher octave harmonic component to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then proceed to step S604; otherwise, proceed to step S605.

[0137] Step S602: Continue adding high-purity fourth and fifth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then proceed to step S604; otherwise, proceed to step S605.

[0138] Step S603: Continue to add high major third, high minor third, high major sixth, and high minor sixth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, then execute step S604; otherwise, return to step S601 until the richness of the current gain target prompt tone is greater than or equal to the preset richness.

[0139] Step S604: Output the current gain target prompt tone.

[0140] This application embodiment enriches the gain target cue audio frequency components by adding harmonic components, making it less susceptible to being masked by environmental noise. The method of adding harmonic components adopts the idea of ​​inverse noise masking, and broadband is more difficult to mask than single frequency.

[0141] In this embodiment, the energy frequency level of the ambient noise is low, so high-frequency harmonics are added. First, an octave of completely consonant intervals is added. If the richness still does not reach the preset richness, then completely consonant interval harmonics are added. If the richness still does not reach the preset richness, then incompletely consonant interval harmonics are added. This makes the gain target prompt tone after adding harmonics less likely to be masked by ambient noise.

[0142] Figure 7 This application illustrates a preferred embodiment of a vehicle alert sound playback control method, including...

[0143] Step S701: In response to the target prompt tone playback command, acquire vehicle speed, vehicle acceleration value, frequency components of the target prompt tone, and ambient noise;

[0144] Step S702: Determine the base gain based on the vehicle speed and the vehicle acceleration value;

[0145] Step S703: Determine the gain bonus value based on the frequency components of the target prompt tone;

[0146] Step S704: Adjust the output gain of the target prompt tone according to the sum of the base gain and the gain bonus, and generate the gain target prompt tone;

[0147] Step S705: Determine the sound pressure level of the gain target prompt tone based on the gain target prompt tone;

[0148] Step S706: Determine the frequency band of the gain target prompt tone;

[0149] Step S707: Determine the ambient noise energy of the background noise in the frequency band of the gain target prompt tone;

[0150] Step S708: Determine the ambient noise sound pressure level based on the ambient noise energy, see details below. Figure 2 The flowchart shown;

[0151] Step S709: Subtract the ambient noise sound pressure level from the gain target prompt sound pressure level to obtain the prominence difference;

[0152] Step S710: If the difference in prominence is greater than the preset prominence threshold, then proceed to step S711; otherwise, proceed to step S712.

[0153] Step S711: Output the gain target prompt tone;

[0154] Step S712: Perform frequency component analysis on the ambient noise to determine the energy frequency level of the ambient noise. See details below. Figure 3 The flowchart shown;

[0155] Step S713: Add harmonic components to the gain target prompt tone according to the energy frequency level of the ambient noise until the richness of the gain target prompt tone is greater than or equal to the preset richness, and output the gain target prompt tone after adding harmonics. See details. Figure 4-6 The flowchart shown.

[0156] The technical solution of this application also provides a storage medium that stores computer instructions. When the computer executes the computer instructions, it is used to execute the vehicle prompt sound playback control method in any of the foregoing embodiments.

[0157] Figure 8 An electronic device according to this application is shown, comprising:

[0158] At least one processor 801; and,

[0159] A memory 802 is communicatively connected to the at least one processor 801; wherein,

[0160] The memory 802 stores instructions that can be executed by the at least one processor 801, which, when executed by the at least one processor 801, enables the at least one processor 801 to perform all steps of the vehicle alert sound playback control method in any of the foregoing method embodiments.

[0161] The electronic device is preferably an in-vehicle electronic control unit (ECU), and more specifically a microcontroller unit (MCU) within the in-vehicle electronic control unit.

[0162] Figure 8 Taking the 801 processor as an example:

[0163] The electronic device may also include an input device 803 and an output device 804.

[0164] The processor 801, memory 802, input device 803 and output device 804 can be connected by a bus or other means. The figure shows an example of connection by bus.

[0165] The memory 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the vehicle alert sound playback control method in the embodiments of this application, for example, Figures 1-7 The method flow is shown. The processor 801 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in the memory 802, thereby realizing the vehicle prompt sound playback control method in the above embodiment.

[0166] The memory 802 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the vehicle alert tone playback control method, etc. Furthermore, the memory 802 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 802 may optionally include memory remotely located relative to the processor 801, and these remote memories may be connected via a network to the apparatus performing the vehicle alert tone playback control method. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0167] The input device 803 can receive user clicks and generate signal inputs related to user settings and function control of the vehicle prompt tone playback control method. The output device 804 may include a display device such as a display screen.

[0168] When one or more modules are stored in the memory 802, and are run by one or more processors 801, the vehicle alert sound playback control method in any of the above method embodiments is executed.

[0169] The above description is merely the principle and preferred embodiment of this application. It should be noted that for those skilled in the art, implementation methods obtained by appropriately combining the technical solutions disclosed in different embodiments are also included within the technical scope of this invention. Based on the principle of this application, several other modifications can also be made, which should also be considered within the protection scope of this application.

Claims

1. A method for controlling the playback of vehicle alert sounds, characterized in that, include In response to the target prompt tone playback command, acquire vehicle speed, vehicle acceleration value, frequency components of the target prompt tone, and ambient noise; Adjust the output gain of the target prompt tone according to the vehicle speed, the vehicle acceleration value, and the frequency components of the target prompt tone to generate a boosted target prompt tone; Determine the prominence difference between the target gain prompt tone and the ambient noise; if the prominence difference is greater than a preset prominence threshold, then output the target gain prompt tone. If the prominence difference is less than or equal to a preset prominence threshold, then frequency component analysis is performed on the environmental noise to determine the energy frequency level of the environmental noise; Harmonic components are added to the gain target prompt tone according to the energy frequency level of the ambient noise until the richness of the gain target prompt tone is greater than or equal to the preset richness, and then the gain target prompt tone with added harmonics is output.

2. The vehicle alert tone playback control method according to claim 1, characterized in that, The step of adjusting the output gain of the target prompt tone based on the vehicle speed, the vehicle acceleration value, and the frequency components of the target prompt tone to generate a gain target prompt tone specifically includes: The base gain is determined based on the vehicle speed and the vehicle acceleration value; The gain enhancement value is determined based on the frequency components of the target prompt tone; The output gain of the target prompt tone is adjusted according to the sum of the base gain and the gain bonus, thereby generating the target prompt tone.

3. The vehicle alert tone playback control method according to claim 1, characterized in that, The determination of the prominence difference between the gain target prompt tone and the ambient noise specifically includes determining the sound pressure level of the gain target prompt tone based on the gain target prompt tone; Determine the frequency band of the target gain prompt tone; Determine the ambient noise energy in the frequency band of the gain target prompt tone; The ambient noise sound pressure level is determined based on the ambient noise energy. The salience difference is obtained by subtracting the ambient noise sound pressure level from the gain target cue sound pressure level.

4. The vehicle alert tone playback control method according to claim 1, characterized in that, The step of performing frequency component analysis on the environmental noise to determine the energy frequency level of the environmental noise specifically includes... The environmental noise is divided into a set number of frequency bands according to a preset division standard, and the energy value of each frequency band is calculated. Determine the sound pressure level of each frequency band based on the energy value of each frequency band; Obtain the energy of the frequency band with the highest sound pressure level and the energy of the frequency band with the lowest sound pressure level, and calculate the energy difference of the highest frequency band; If the energy difference in the frequency band is less than or equal to a preset energy threshold, then the energy frequency level of the ambient noise is determined to be intermediate frequency; otherwise... Calculate the energy difference between the energy of each frequency band and the energy of the frequency band with the lowest sound pressure level, determine the frequency bands whose energy difference is greater than a preset energy threshold, and count the number of frequency bands in the high-frequency, mid-frequency, and low-frequency bands respectively; If the number of frequency bands in the high-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be high-frequency. If the number of frequency bands in the mid-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be mid-frequency; If the number of frequency bands in the low-frequency band is the largest, then the energy frequency level of the environmental noise is determined to be low-frequency.

5. The vehicle alert tone playback control method according to claim 4, characterized in that, The process of adding harmonic components to the target gain prompt tone based on the energy frequency level of the ambient noise until the richness of the target gain prompt tone is greater than or equal to a preset richness, and then outputting the target gain prompt tone with added harmonics, specifically includes: If the energy frequency level of the ambient noise is high, then Add a low octave harmonic component to the current gain target tone. If the richness of the current gain target tone is greater than or equal to the preset richness, output the current gain target tone; otherwise, output the tone. Continue adding low-pure fourth and low-pure fifth harmonic components to the current gain target tone. If the richness of the current gain target tone is greater than or equal to the preset richness, output the current gain target tone; otherwise, output the current gain target tone. Continue adding low major third, low minor third, low major sixth, and low minor sixth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone. Return to the step of adding a low octave harmonic component to the current gain target prompt tone.

6. The vehicle alert tone playback control method according to claim 4, characterized in that, The process of adding harmonic components to the target gain prompt tone based on the energy frequency level of the ambient noise until the richness of the target gain prompt tone is greater than or equal to a preset richness, and then outputting the target gain prompt tone with added harmonics, specifically includes: If the energy frequency level of the ambient noise is mid-frequency, then Add high-octave and low-octave harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone. Continue adding high-purity fourth, high-purity fifth, low-purity fourth, and low-purity fifth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone. Continue adding harmonic components of a high major third, high minor third, high major sixth, high minor sixth, and low major third, low minor third, low major sixth, and low minor sixth to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone after adding harmonics; otherwise, output the current gain target prompt tone. Return to the step of adding high and low octave harmonic components to the current gain target cue tone.

7. The vehicle alert tone playback control method according to claim 4, characterized in that, The process of adding harmonic components to the target gain prompt tone based on the energy frequency level of the ambient noise until the richness of the target gain prompt tone is greater than or equal to a preset richness, and then outputting the target gain prompt tone with added harmonics, specifically includes: If the energy frequency level of the environmental noise is low, then Add a higher octave harmonic component to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone. Continue adding high-purity fourth and fifth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise... Continue adding high major third, high minor third, high major sixth, and high minor sixth harmonic components to the current gain target prompt tone. If the richness of the current gain target prompt tone is greater than or equal to the preset richness, output the current gain target prompt tone; otherwise, output the current gain target prompt tone. Return to the step of adding a higher octave harmonic component to the current gain target prompt tone.

8. A storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by the computer, are used to perform the vehicle alert sound playback control method as described in any one of claims 1-7.

9. An electronic device, characterized in that, Includes at least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the vehicle alert tone playback control method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Vehicle machine volume compensation method and device, storage medium and electronic equipment

    CN111078184A

  • Audio signal processing method and device and electronic equipment

    CN114125639A

  • Sound quality adaptive adjustment method, related system and device, and storage medium

    WO2022007239A1