Prompt tone volume adjusting method and device, electronic equipment and readable storage medium
By calculating the sound pressure level of the ambient audio and prompt sound audio in the vehicle cockpit and adjusting the sound pressure level of the prompt sound audio, the problem of ambient audio masking prompt sound is solved, and the clear transmission of prompt sound during driving is achieved, improving driving safety and health.
Patent Information
- Application Number
- CN202510506516.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-08-08
AI Technical Summary
During the vehicle's driving, the ambient sounds are likely to block the prompt sound, making it difficult for the driver to hear important prompt information, increasing driving risks.
By obtaining the ambient audio and prompt audio in the vehicle cockpit, calculating its sound pressure level, and using the ambient audio sound pressure level as a correction value, adjusting the sound pressure level of the prompt audio to generate clearer prompt audio and reducing the masking effect of the ambient audio.
During driving, ensure that the driver can clearly hear the prompt sound information, improve driving safety, and avoid negative health effects due to excessive prompt sound volume.
Smart Images

Figure CN120447858A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of audio technology, and in particular to a method and device for adjusting the volume of a prompt tone, an electronic device, and a readable storage medium. Background Art
[0002] With the popularization of intelligent connected vehicles, in-vehicle smart devices are becoming more complex while providing more detailed services, and will also increase the number of interactions between people and vehicles.
[0003] In order not to occupy the driver's visual resources while driving, in-vehicle smart devices also use auditory prompts to the driver when providing services.
[0004] However, the sound pressure level of the prompt sound is set when the vehicle is stationary. The operating conditions during driving are very different from those during stationary conditions. The ambient sound can easily mask the prompt sound, affecting the driver's ability to obtain information through the prompt sound. Summary of the Invention
[0005] The embodiments of the present application provide a method, device, electronic device, and readable storage medium for adjusting the volume of a prompt sound, aiming to improve the problem that the ambient audio easily masks the prompt sound audio while the vehicle is driving.
[0006] In a first aspect, an embodiment of the present application provides a method for adjusting the volume of a prompt tone, the method comprising:
[0007] Get the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle;
[0008] Calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio; the sound pressure level is used to measure the volume of the audio, and the volume is directly proportional to the sound pressure level;
[0009] Using the sound pressure level of the ambient audio as a correction value, and correcting the sound pressure level of the prompt audio to obtain a corrected sound pressure level;
[0010] Generate a prompt tone audio for subsequent playback in the vehicle based on the corrected sound pressure level.
[0011] In an embodiment of the present application, by obtaining the ambient audio in the vehicle cockpit and the prompt sound audio played by the vehicle, a basis is provided for improving the masking of the prompt sound audio by the ambient audio, and the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio are calculated. The volume of the audio is measured by the sound pressure level. When the sound pressure level increases, the perceived volume also increases. The sound pressure level of the ambient audio is used as a correction value to correct the sound pressure level of the prompt sound audio to obtain a corrected sound pressure level. By adjusting the sound pressure level of the prompt sound audio, the masking effect of the ambient audio can be reduced, so that the prompt sound audio heard during driving is clearer, and the entire processing process does not interfere with the normal driving process. Driving operations based on clear prompt sound audio can improve the safety of the driving process.
[0012] Optionally, the audio has multiple different frequency bands, and calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt audio includes:
[0013] For each frequency band, respectively calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio;
[0014] The step of using the sound pressure level of the ambient audio as a correction value and correcting the sound pressure level of the prompt audio to obtain a corrected sound pressure level includes:
[0015] For each frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio in the same frequency band are summed to obtain a corrected sound pressure level corresponding to each of the frequency bands.
[0016] In this embodiment, the sound pressure level of each frequency band of ambient audio and the sound pressure level of the prompt tone are calculated separately for each frequency band, allowing for more accurate acquisition of the sound pressure levels of each frequency band in the ambient audio and the prompt tone. For each frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt tone within the same frequency band are summed to obtain a corrected sound pressure level corresponding to each frequency band. This allows for accurate adjustment of each frequency band, resulting in a corrected sound pressure level that better aligns with the human ear's auditory characteristics. Furthermore, calculating the sound pressure level separately for each frequency band makes the final adjusted corrected sound pressure level more closely aligned with the human ear's auditory characteristics, making it easier for the driver to perceive the information in the prompt tone through hearing, allowing them to perform driving operations based on the prompt tone audio and avoid potential dangers while driving.
[0017] Optionally, the step of adding the sound pressure level of the ambient audio and the sound pressure level of the prompt audio in the same frequency band to obtain a corrected sound pressure level corresponding to each of the frequency bands includes:
[0018] Comparing the sound pressure level of the prompt tone audio in each of the frequency bands with a preset threshold to obtain a comparison result;
[0019] When the comparison result shows that the sound pressure levels of the prompt sound audio corresponding to all the frequency bands are less than the preset threshold, the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio in the same frequency band are added to obtain the corrected sound pressure level corresponding to each of the frequency bands.
[0020] In this embodiment, when the vehicle is driving, various types of ambient audio and prompt sound audio are intertwined. If the sound pressure level of the prompt sound audio increases without limit, it is very likely to pose a potential threat to the driver's hearing and overall physiological health. When the comparison result of the sound pressure level of the prompt sound audio in the frequency band and the preset threshold is less than the preset threshold, the sound pressure level of the ambient audio in the same frequency band is added to the sound pressure level of the prompt sound audio to obtain the corrected sound pressure level corresponding to each of the frequency bands. In this way, it is ensured that the prompt sound can be clearly perceived by the driver within a reasonable sound pressure level range, and the negative impact on the driver's health due to the excessively high sound pressure level of the prompt sound can be avoided, thereby creating a safe, comfortable and healthy driving acoustic environment for the driver.
[0021] Optionally, all the frequency bands include: a first frequency band and a second frequency band, the first frequency band being a frequency band in which the sound pressure level of the prompt sound audio is greater than or equal to the preset threshold, and the second frequency band being a frequency band in which the sound pressure level of the prompt sound audio is less than the preset threshold, and the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio in the same frequency band are added to obtain a corrected sound pressure level corresponding to each of the frequency bands, including:
[0022] For the first frequency band, determining a corresponding correction value according to the vehicle speed, and adding the correction value to the sound pressure level of the prompt sound audio in the first frequency band to obtain a corrected sound pressure level corresponding to each first frequency band; the magnitude of the correction value is proportional to the vehicle speed;
[0023] For the second frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio in each second frequency band are added together to obtain a corrected sound pressure level corresponding to each second frequency band.
[0024] In this embodiment, the sound pressure level of the prompt audio corresponding to the first frequency band is already high. If the sound pressure level of the ambient audio is still used as a correction value for the first frequency band, the sound pressure level of the prompt audio in the first frequency band will be excessively high, adversely affecting the driver's health. In this case, a corresponding correction value is determined based on the vehicle speed and summed with the sound pressure level of the prompt audio in the first frequency band to obtain a corrected sound pressure level corresponding to each first frequency band. This can prevent the prompt audio from being masked by the ambient audio while also protecting the driver's hearing health. The sound pressure level of the prompt audio in the second frequency band does not exceed the preset threshold, so there is room for improvement in the sound pressure level of the corresponding prompt audio. The sound pressure level of the ambient audio in the second frequency band is used as a correction value and summed with the sound pressure level of the prompt audio to obtain a corrected sound pressure level for the prompt audio in the second frequency band. Based on this corrected sound pressure level, the driver can more easily grasp the information in the prompt audio through hearing, avoiding potential danger caused by not hearing the prompt audio clearly.
[0025] Optionally, the method further includes:
[0026] When the ambient audio in the vehicle cockpit is not acquired, a corresponding correction value is determined according to the vehicle speed value; the magnitude of the correction value is proportional to the magnitude of the vehicle speed value.
[0027] In this embodiment, when the ambient audio in the vehicle cockpit is not captured, a corresponding correction value is determined based on the vehicle's speed, where the magnitude of the correction value is proportional to the vehicle's speed. This ensures that in situations such as when the vehicle's onboard audio equipment is damaged, or when the audio equipment is functioning normally but the module calculating the ambient audio sound pressure level fails and is unable to provide a correction value based on the ambient audio sound pressure level, the sound pressure level can be corrected using the correction value determined based on the vehicle's speed. Based on the corrected sound pressure level, the driver can more easily perceive the information in the prompt sound through hearing, avoiding potential dangers caused by not hearing the prompt sound clearly.
[0028] Optionally, determining a corresponding correction value according to the vehicle speed value includes:
[0029] Obtaining a current vehicle speed value, and determining a target vehicle speed interval within a plurality of different vehicle speed intervals; each vehicle speed interval having a corresponding correction value table, the correction value table recording a correspondence between each frequency band and the correction value;
[0030] The correction value table corresponding to the target vehicle speed range is queried to obtain the correction value of each frequency band.
[0031] In this embodiment, the correction value table records the correspondence between each frequency band and the correction value. Therefore, when it is impossible to obtain the sound pressure level of each frequency band of the ambient audio in real time as a reference value, the correction value can be obtained according to the target vehicle speed range in which the vehicle speed value is located and its corresponding correction value table, so as to correct the prompt sound audio according to the correction value, thereby enhancing the adaptability of the solution to emergency conditions.
[0032] Optionally, calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio includes:
[0033] The sound pressure level of the ambient audio and the sound pressure level of the prompt audio are obtained according to the following formula:
[0034]
[0035] Where L is the sound pressure level, p0 is the lowest sound pressure value that can be heard by the human ear, and p A (ξ) is the instantaneous sound pressure value of the ambient audio or prompt audio at time ξ, τ is the time constant, t represents the current time, ξ represents the time when detection starts, e is a natural constant, and d is the integral sign.
[0036] In the embodiment of the present application, the above formula is used to obtain the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio. The processing result is closer to the subjective perception of the human ear to sounds of different frequencies. It not only takes into account the differences in the response of the human ear to sounds with different time characteristics, but also can more accurately reflect the actual sound size perceived by the human ear. In addition, the method for obtaining the sound pressure level has high processing efficiency and high accuracy of the processing results.
[0037] Optionally, generating a prompt tone audio subsequently played by the vehicle based on the corrected sound pressure level to adjust the prompt tone volume includes:
[0038] Obtaining a corresponding corrected sound pressure level for each frequency band, and obtaining the volume of the prompt tone audio in each frequency band;
[0039] The subsequently played prompt tone audio is generated according to the volume of the prompt tone audio in each of the frequency bands.
[0040] In this embodiment, the prompt sound audio for subsequent playback is generated based on the volume of the prompt sound audio in each of the frequency bands. As a result, the driver can clearly capture the information in the prompt sound at an appropriate volume, avoiding potential dangers in the driving process due to failure to hear the prompt sound clearly.
[0041] In a second aspect, an embodiment of the present application provides a device for adjusting the volume of a prompt tone, the device comprising:
[0042] The acquisition module is used to obtain the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle;
[0043] A calculation module, configured to calculate the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio; the sound pressure level is used to measure the volume of the audio, and the volume is directly proportional to the sound pressure level;
[0044] an adjustment module, configured to use the sound pressure level of the ambient audio as a correction value and correct the sound pressure level of the prompt audio to obtain a corrected sound pressure level;
[0045] The output module is used to generate a prompt tone audio subsequently played by the vehicle according to the corrected sound pressure level.
[0046] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in any one of the first aspects are implemented.
[0047] In a fourth aspect, an embodiment of the present application further discloses a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0048] In an embodiment of the present application, by obtaining the ambient audio in the vehicle cockpit and the prompt sound audio played by the vehicle, a basis is provided for improving the masking of the prompt sound audio by the ambient audio, and the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio are calculated. The volume of the audio is measured by the sound pressure level. When the sound pressure level increases, the perceived volume also increases. The sound pressure level of the ambient audio is used as a correction value to correct the sound pressure level of the prompt sound audio to obtain a corrected sound pressure level. By adjusting the sound pressure level of the prompt sound audio, the masking effect of the ambient audio on the prompt sound audio is reduced, so that the prompt sound audio heard during driving is clearer, and at the same time, there is no need to interfere with the normal driving process, thereby improving the safety of the driving process.
[0049] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0051] Figure 1 This is a flowchart of a method for adjusting the volume of a prompt tone provided in an embodiment of the present application;
[0052] Figure 2 This is a flowchart of another method for adjusting the volume of a prompt tone provided in an embodiment of the present application;
[0053] Figure 3 This is a schematic diagram of a prompt tone volume adjustment process provided in an embodiment of the present application;
[0054] Figure 4 This is a block diagram of a device for adjusting the volume of a prompt tone provided in an embodiment of the present application;
[0055] Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0057] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In the embodiments of this application, the term "multiple" refers to two or more, and other quantifiers are similar.
[0058] With the increasing popularity of intelligent connected vehicles, in-vehicle smart devices have become more sophisticated, providing drivers with more nuanced and richer services. However, this also leads to more complex human-vehicle interactions. When drivers devote more visual and cognitive resources to human-vehicle interactions, this can affect their ability to drive normally, potentially leading to safety issues. Drivers can perceive information through vision, but hearing is also a direct and important way to acquire information. Research shows that auditory reaction time is approximately 120-182 milliseconds, and auditory reactions are generally faster than visual reactions. Guidance through audible prompts is crucial for driving safety.
[0059] In some related technologies, the volume of the prompt tone can be selected through the host control panel. This operation usually occurs when the vehicle is stationary. In real-world scenarios, the process of interacting with the driver through the prompt tone usually occurs while driving. At this time, the sound pressure level of the ambient sound in the cockpit is significantly different from that in stationary conditions. During driving, the selected prompt tone may be unclear due to the masking effect of the ambient sound. However, manually adjusting the prompt tone volume while driving will inevitably distract the driver and even lead to safety incidents.
[0060] Among them, the masking effect of sound refers to the phenomenon that when one sound (masking sound) exists, it will affect the human ear's perception of another sound (masked sound), making the masked sound difficult to hear or completely inaudible. For example, in a noisy restaurant, environmental noises such as people's conversations and the collision of cutlery act as masking sounds, making it difficult for users to hear the voices of their companions. The voices of companions are masked sounds. In this embodiment, the sound of the environment is the masking sound, and the prompt sound is the masked sound. Under normal circumstances, low-frequency sounds have a stronger masking effect on high-frequency sounds, while high-frequency sounds have a relatively weaker masking effect on low-frequency sounds. The greater the sound pressure level of the masking sound, the more obvious the masking effect; the smaller the sound pressure level of the masked sound, the easier it is to be masked.
[0061] Sound pressure level is a physical quantity used to measure the intensity of sound. Its unit is decibel (dB). It is the value obtained by converting the sound pressure value according to a logarithmic relationship. Sound pressure level quantifies the physical quantity of sound pressure value on a logarithmic scale to more conveniently express the intensity of sound. For example, the sound pressure level of the weakest sound audible to the human ear is approximately 0dB, while the sound pressure level of the noise generated by a jet aircraft during takeoff can reach as high as 140dB or above.
[0062] The following is an illustrative description of the prompt tone volume adjustment method of the present application in conjunction with the accompanying drawings and specific embodiments.
[0063] like Figure 1As shown, the embodiment of the present application proposes a step flow chart of a method for adjusting the volume of a prompt tone, as shown in FIG. Figure 1 As shown, the method may include:
[0064] Step 101: Acquire the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle.
[0065] It's important to note that when a vehicle is driving, a variety of complex sounds are heard in the cockpit. For example, wind creates friction between the air and the vehicle's surface, creating airflow around the vehicle, leading to airflow and friction sounds within the cockpit. As vehicle speed increases, the perceived wind sound in the cockpit gradually grows louder and higher in frequency. For another example, when a vehicle is driving in the rain, raindrops strike the roof, windows, windshield, and other parts of the vehicle, creating the sound of rain within the cockpit. The intensity of the rain sound also depends on the vehicle's speed: faster speeds increase the relative velocity of the raindrops hitting the vehicle, and the sound becomes louder. For another example, when a vehicle accelerates, the engine or electric motor accelerates, which also produces sound. The ambient audio perceived in the cockpit varies depending on the road conditions the vehicle is driving on. For example, when the road surface is rough, the friction between the vehicle and the road surface increases, and the sound generated also increases. These sounds form ambient audio in the cockpit, which may mask the sound of the prompt audio, increasing the difficulty for the driver to obtain prompt information through the prompt audio and increasing the risk of driving.
[0066] The cockpit also has audio prompts that provide the driver with a variety of information prompts, such as the door is not closed prompt sound, reversing prompt sound, speeding prompt sound, blind spot detection prompt sound, etc.
[0067] In an embodiment of the present application, by obtaining the ambient audio and prompt tone audio in the cockpit, a correction basis is provided for adjusting the prompt tone audio. Since the prompt tone is different from the human voice, there is less distortion during correction, and the effect of adjustment based on the sound pressure level is usually more natural. When setting the prompt tone volume, if the vehicle is stationary, the adjusted prompt tone sound pressure level can be 40 decibels, while the sound in the cockpit is usually 50-65 decibels when the vehicle is driving. When driving at high speed, the sound in the cockpit may rise to about 65-80 decibels. Therefore, it is necessary to increase the prompt tone sound pressure level to reduce the masking effect of the prompt tone audio, so that the driver can hear the prompt tone audio more clearly, so as to avoid missing some prompt information due to unclear hearing of the prompt tone audio, thereby causing driving hazards.
[0068] In some embodiments, the ambient audio in the cockpit can be collected by a vehicle-mounted audio receiving device, which can be a vehicle-mounted microphone, etc. In this way, the ambient audio can be obtained without adding additional equipment, reducing the cost of obtaining the ambient audio.
[0069] Step 102: Calculate the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio.
[0070] Among them, sound pressure level is used to measure the volume of audio; the volume is directly proportional to the sound pressure level.
[0071] Sound pressure level is a physical quantity used to measure the intensity of sound and can be calculated based on the sound pressure level. Volume is a relatively subjective concept, primarily used to describe the loudness of a sound, that is, the human ear's subjective perception of sound intensity. Sound pressure level can accurately represent the volume. Higher sound pressure levels generally increase the volume; in other words, volume is directly proportional to sound pressure level.
[0072] Different sound pressure levels can be mapped to corresponding volume levels. Based on this mapping, the sound pressure level can be converted to volume, thereby achieving the purpose of changing the volume by adjusting the sound pressure level. For example, the volume can be set as a percentage, with 0% indicating silence and 100% indicating maximum volume. Therefore, a volume value of 0%-100% can be mapped to 0dB-100dB, thus establishing a relationship between sound pressure level and volume.
[0073] By accurately calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt audio, a more objective and unified standard system can be established, thereby accurately measuring the ambient audio and the prompt audio. For example, in actual driving scenarios, when the vehicle is traveling at high speed, the sound pressure level of ambient audio such as wind noise and tire noise will increase significantly. At this time, if the sound pressure level of the prompt audio such as the seat belt reminder sound and the door not closed reminder sound is too low, it is very easy for the prompt audio to be masked by the ambient audio. By calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt audio, and correcting the sound pressure level of the prompt audio by the sound pressure level of the ambient audio, a clear prompt audio can be obtained, so that the original prompt audio is not masked by the ambient audio, so that it can be clearly heard in various complex driving environments, ensuring that the driver can obtain key prompt information in a timely manner and improving driving safety.
[0074] For example, the ambient sound pressure level in the cockpit of a high-speed vehicle reaches 75 decibels, while the original sound pressure level of the door not closed prompt sound is only 40 decibels, which is easily masked. After the improvement, the sound pressure level of the prompt sound is increased to 65 decibels, significantly reducing the situation where the prompt sound is masked.
[0075] Step 103 : Using the sound pressure level of the ambient audio as a correction value, the sound pressure level of the prompt audio is corrected to obtain a corrected sound pressure level.
[0076] It should be noted that the correction value is aimed at the prompt sound audio. Since the prompt sound audio is affected by the ambient audio and is easily masked, the sound pressure level of the prompt sound audio is given a correction value, and the sound pressure level of the prompt sound audio and the correction value are added together to increase the sound pressure level of the prompt sound audio to obtain a corrected sound pressure level, thereby increasing the volume of the prompt sound and making the prompt information presented by the prompt sound easier for the driver to grasp, so that the information the driver obtains through hearing during normal driving will not be reduced, thereby improving driving safety.
[0077] The sound pressure level of the ambient audio is used as a correction value to correct the sound pressure level of the prompt audio, so that the correction value is in a dynamic process rather than a monotonous linear change. The sound in the cockpit is affected by many factors and is not simply related to vehicle speed. The sound in the cockpit is also related to weather, road conditions, and the sound of equipment in the cockpit. By using the sound pressure level of the ambient audio formed based on a combination of various factors as a correction value, the correction value for the sound pressure level of the prompt audio can be made more consistent with the actual environment of the cockpit. In other words, the corrected sound pressure level obtained based on this step is more consistent with the actual driving environment. Generating and playing the prompt audio based on the corrected sound pressure level can ensure that the effective information in the prompt audio can be effectively obtained by the user in the cockpit.
[0078] In one embodiment, the sound pressure level of the prompt tone audio is 35 decibels, and the sound pressure level of the ambient audio as a correction value is 5 decibels. According to the correction value, the sound pressure level of the prompt tone audio can be adjusted to 35+5=40 decibels; when the sound pressure level of the ambient audio is 10 decibels as a correction value, the sound pressure level of the prompt tone audio can be adjusted to 35+10=45 decibels.
[0079] Step 104 : generating a prompt tone audio to be subsequently played by the vehicle based on the corrected sound pressure level.
[0080] Based on the corrected sound pressure level, a prompt tone audio is generated for subsequent playback in the vehicle to adjust the prompt tone volume.
[0081] In an embodiment of the present application, the sound pressure level of the ambient audio is used as a correction value, and the sound pressure level of the prompt sound audio is adjusted according to the correction value to obtain a corrected sound pressure level. According to the corrected sound pressure level, an adaptively adjusted prompt sound audio can be obtained.
[0082] For example, the subsequent playback of the prompt audio can be obtained based on the mapping relationship between the sound pressure level and the volume. For example, if the correction value is 5 decibels and the sound pressure level of the prompt audio is 40 decibels, the sound pressure level of the corrected prompt audio is 45 decibels. According to the mapping relationship between the sound pressure level and the volume, when the volume value of 0%-100% is mapped to the sound pressure level of 0dB-100dB, the volume of the prompt audio increases from 40% to 45%. When the volume of 0%-100% is mapped to the sound pressure level of 10dB-85dB, the volume of the prompt audio increases from 40dB to 45dB, which is equivalent to increasing from 40% to 47%.
[0083] In summary, in the embodiment of the present application, by obtaining the ambient audio in the vehicle cockpit and the prompt sound audio played by the vehicle, a basis is provided for improving the masking of the prompt sound audio by the ambient audio, the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio are calculated, and the volume of the audio is measured by the sound pressure level. When the sound pressure level increases, the perceived volume will also increase, and the sound pressure level of the ambient audio is used as a correction value to correct the sound pressure level of the prompt sound audio to obtain a corrected sound pressure level, so that the corrected sound pressure level becomes larger than the sound pressure level of the prompt sound audio, reducing the masking effect of the ambient audio, making the prompt sound audio heard during driving clearer, and the entire processing process does not interfere with the normal driving process. Driving operations based on clear prompt sound audio can improve the safety of the driving process.
[0084] The present invention provides a method for adjusting the volume of a prompt tone. Figure 2 , including the following steps:
[0085] Step 201: Acquire the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle.
[0086] In an embodiment of the present application, the ambient audio in the vehicle cockpit and the prompt sound audio played by the vehicle can be collected through the vehicle-mounted audio receiving equipment.
[0087] This step may be specifically referred to step 101 and will not be described in detail here.
[0088] Step 202 : For each frequency band, respectively calculate the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio.
[0089] It should be noted that audio has multiple frequency bands. The frequency band of audio refers to the frequency range occupied by the audio signal. In the vehicle cockpit, the frequency band of the prompt sound audio is generally between 300Hz and 5000Hz. The frequency band of the prompt sound mostly uses the mid-frequency range. The sound in the mid-frequency range has a better propagation effect in the vehicle environment and is easily perceived by the driver. It also avoids the sharp and harsh feeling that high-frequency sounds may produce in the enclosed space of the vehicle, and the problem that low-frequency sounds are easily masked by low-frequency noise such as the engine.
[0090] In addition, the frequency band of the cockpit's ambient sound is relatively wide. Ambient audio can include multiple frequency bands, for example, it can include low-frequency range (20-200Hz), mid-frequency range (200-2000Hz) and high-frequency range (2000-20000Hz). Among them, because the energy of low-frequency sound is more widely distributed and can cover a larger frequency range, it has a stronger masking effect on other sounds. Therefore, low-frequency sound is more likely to mask high-frequency sound, while high-frequency sound has a relatively weaker masking effect on low-frequency sound.
[0091] When processing sound, the human auditory system focuses on sounds with higher energy, reducing its ability to perceive weaker sounds. Therefore, when two sounds are in the same or similar frequency bands, the stronger sound suppresses the auditory perception of the weaker sound. For example, in a cockpit environment, if the low-frequency roar of an engine is loud, the weaker low-frequency operating sounds of electronic equipment in the same frequency band may be masked, making them difficult for the driver to detect.
[0092] According to the above analysis, the sound characteristics of each frequency band are different. Therefore, in this step, the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio are calculated for each frequency band for subsequent processing, thereby improving the usability of the adjustment results of the prompt tone audio.
[0093] In some embodiments, the frequency band analysis of the ambient audio and the prompt sound audio can be performed separately using the 1 / 3 octave method. The octave is a method of dividing the frequency range of the sound into multiple frequency bands according to a certain rule, and the 1 / 3 octave is a method of controlling the upper limit frequency of each frequency band to be the lower limit frequency. times, or approximately 1.26 times. For example, for a 1 / 3 octave band with a center frequency of 1000Hz, its lower limit is approximately 891Hz and its upper limit is approximately 1122Hz. Within the mid-frequency range where the prompt sound audio resides, the mid-frequency range can be divided into multiple octaves using the 1 / 3 octave method.
[0094] For example, the audio can be divided into multiple frequency bands according to 1 / 3 octave, ranging from 178-224Hz, 224-282Hz, 282-355Hz, 355-447Hz, 447-562Hz, 562-708Hz, 708-891Hz, 891-1120Hz, 1120-1410Hz, ..., 3550-4470Hz, 4470-5620Hz. Among them, the upper limit frequency of each frequency band is the lower limit frequency. The audio may also be divided into frequency bands of other different ranges, which is not limited in this embodiment.
[0095] For each frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt audio are calculated separately, and the prompt audio can be accurately adjusted based on the calculation results. For example, the main frequency band of the ambient audio can be determined, and the sound pressure level corresponding to the main frequency band can be obtained based on the method of this step. For example, if the ambient audio is mainly concentrated in the mid-frequency area, the mid-frequency area of the prompt audio can be adjusted based on the ambient audio in the mid-frequency band. The human ear is usually more sensitive to mid-frequency sounds and relatively insensitive to low-frequency and high-frequency sounds. Calculating the sound pressure level of the mid-frequency band and adjusting the prompt audio based on the calculation results can make the adjusted prompt audio closer to the auditory characteristics of the human ear, making it easier for the driver to capture the information in the prompt audio through hearing and avoid potential dangers.
[0096] Step 203 : For each frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt audio in the same frequency band are added together to obtain a corrected sound pressure level corresponding to each frequency band.
[0097] In an embodiment of the present application, for each frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio in the same frequency band are summed to obtain the corrected sound pressure level corresponding to each frequency band. The prompt tone audio rarely involves the high frequency range and the low frequency range, and is mostly distributed in the mid-frequency range to which the human ear is more sensitive. Since the prompt tone audio is mostly distributed in the mid-frequency range to which the human ear is more sensitive, the prompt tone audio can be divided into frequency bands according to the mid-frequency range, and when summing the sound pressure levels of the ambient audio in the same frequency band, there is no need to increase the sound pressure level of the more harsh part in the high frequency range to avoid causing discomfort to the driver. In addition, there is no need to increase the sound pressure level in the low frequency range to avoid masking other frequency bands.
[0098] Specifically, the sound pressure level of the frequency band in the mid-frequency range is increased to make the sound pressure level in the mid-frequency range larger, thereby increasing the volume of the prompt sound audio in the mid-frequency range to which the human ear is more sensitive, so that the subsequently played prompt sound is easier for the driver to hear.
[0099] For example, if the sound pressure level of the ambient audio in the 178-224 Hz frequency band is 5 decibels and the sound pressure level of the prompt tone audio is 40 decibels, the sound pressure level of the ambient audio is used as the correction value and added to the sound pressure level of the prompt tone audio to obtain a corrected sound pressure value of 45 decibels for the prompt tone audio.
[0100] It should be noted that, based on the method of this embodiment, the sound pressure levels of the ambient audio and the prompt sound audio in the high frequency band and / or low frequency band can also be obtained, and based on this, the sound pressure levels of the high frequency band and / or low frequency band of the prompt sound can be adjusted.
[0101] Optionally, step 203 may specifically include:
[0102] Sub-step 2031 : Compare the sound pressure level of the prompt tone audio in each frequency band with a preset threshold to obtain a comparison result.
[0103] In sub-step 2032, when the comparison result shows that the sound pressure levels of the prompt audio corresponding to all frequency bands are less than the preset threshold, the sound pressure level of the ambient audio in the same frequency band is added to the sound pressure level of the prompt audio to obtain a corrected sound pressure level corresponding to each frequency band.
[0104] Excessive adjustments to the sound pressure level may be harmful to human ear health. When a driver is exposed to a high sound pressure level in an environment for a short period of time, such as an environment exceeding 85 decibels, tinnitus and hearing loss may occur within a short period of time. Long-term exposure to high-decibel environments can cause irreversible damage to the ears and cause noise-induced hearing loss. In an embodiment of the present application, to ensure that the driver's health is not adversely affected by abnormal changes in the sound pressure level of the prompt audio, the sound pressure level adjustment can be controlled according to a preset threshold. By setting a preset threshold to limit the corrected sound pressure level of the prompt audio, the comfort level of the corrected sound pressure level can be effectively ensured.
[0105] When the vehicle is driving, various types of ambient audio (such as engine running sound, wind noise, tire noise, etc.) and prompt audio (such as seat belt unfastened prompt sound, door open prompt sound, etc.) are intertwined. If the sound pressure level of the prompt audio increases without limit, it is very likely to pose a potential threat to the driver's hearing and overall physiological health. For example, long-term exposure to a sound environment exceeding 85 decibels will cause damage to the human hearing system. Therefore, the sound pressure level correction can be limited by setting a preset threshold. When the sound pressure level of the prompt audio is detected to be less than 80 decibels, the sound pressure level of the ambient audio and the sound pressure level of the prompt audio are added to obtain a corrected sound pressure level after comprehensive consideration. In this way, it can be ensured that the prompt sound can be clearly perceived by the driver within a reasonable sound pressure level range, and the negative impact on the driver's health caused by the excessively high sound pressure level of the prompt sound can be avoided. Based on this embodiment, a safe, comfortable and healthy driving acoustic environment can be created for the driver.
[0106] Furthermore, the sound pressure levels of the ambient audio and the prompt audio are summed by frequency band. This per-band summing method more accurately simulates the sound superposition effect in an actual auditory environment. At the same time, the sound pressure level of the prompt audio is ensured to be within a preset threshold. This enhances the sound pressure level of the prompt audio within its frequency band, improving the driver's awareness of the prompt sound while preventing the prompt audio sound pressure level from being too high, which could affect the driver's health.
[0107] For example, in the frequency band of 891-1122 Hz, the sound pressure level of the prompt tone audio is 40 decibels. In the same frequency band, the sound pressure level of the ambient audio in the frequency band of 891-1122 Hz is 10 decibels. Then the corrected sound pressure level of the prompt tone audio in the frequency band of 891-1122 Hz is 50 decibels.
[0108] For example, the sound pressure level of the prompt audio in each frequency band can be compared with the preset threshold corresponding to the frequency band. For frequency bands where the sound pressure level of the prompt audio is less than or equal to the preset threshold, the sound pressure level of the ambient audio corresponding to the frequency band and the sound pressure level of the prompt audio are summed to obtain a corrected sound pressure level corresponding to the frequency band. By comparing the sound pressure level of the prompt audio in each frequency band with the corresponding preset threshold and adjusting the sound pressure level of the prompt audio in each frequency band based on the comparison results, the sound in each frequency band of the adjusted prompt audio can be ensured to be free from the requirement of being masked by the ambient audio, and the problem of the sound pressure level being adjusted too high, causing discomfort to the user in the cockpit, can be avoided.
[0109] Optionally, all frequency bands include: a first frequency band and a second frequency band, where the first frequency band is a frequency band in which the sound pressure level of the prompt tone audio is greater than or equal to a preset threshold, and the second frequency band is a frequency band in which the sound pressure level of the prompt tone audio is less than a preset threshold. Sub-step 203 may specifically include:
[0110] In sub-step 2033 , for the first frequency band, a corresponding correction value is determined according to the vehicle speed value, and the correction value is added to the sound pressure level of the prompt tone audio in the first frequency band to obtain a corrected sound pressure level corresponding to each first frequency band.
[0111] The correction value is proportional to the vehicle speed.
[0112] Sub-step 2034 , for each second frequency band, sums the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio in each second frequency band to obtain a corrected sound pressure level corresponding to each second frequency band.
[0113] For sub-steps 2033-2034, when the sound pressure level of some frequency bands of the prompt tone audio is greater than or equal to the preset threshold, the frequency band is divided into a first frequency band, and the frequency bands of some frequency bands of the prompt tone audio whose sound pressure level is less than the preset threshold are divided into a second frequency band. The sound pressure level of the prompt tone audio corresponding to the first frequency band is already high. If the sound pressure level of the ambient audio is still used as the correction value for the first frequency band, the sound pressure level of the prompt tone audio in the first frequency band will be too high, which will adversely affect the driver's health or make the driver feel uncomfortable. For the first frequency band, the corresponding correction value is determined according to the current vehicle speed value, and the influence of ambient audio such as weather is no longer considered. In this way, a compromise correction solution can be obtained between the clarity and volume of the prompt tone audio, which can take into account the driver's hearing health needs while avoiding the ambient audio masking the prompt tone audio.
[0114] The sound pressure level of the prompt sound audio corresponding to the second frequency band does not exceed the preset threshold, so there is room for increasing the sound pressure level of the prompt sound audio. The sound pressure level of the ambient audio in the second frequency band is used as a correction value and added to the sound pressure level of the prompt sound audio to obtain the corrected sound pressure level of the prompt sound audio in the second frequency band. Based on this corrected sound pressure level, clear prompt sound information can be provided to the driver.
[0115] For example, in the frequency band 282-355Hz, the sound pressure level of the ambient audio is 10dB, and the sound pressure level of the prompt audio is 30dB. In the frequency band 256-447Hz, the sound pressure level of the ambient audio is 5dB, and the sound pressure level of the prompt audio is 80dB. At this time, the sound pressure level of the prompt audio in the frequency band 282-355Hz is less than the threshold value of 80. The frequency band 282-355Hz is the first frequency band, and the sound pressure level of the ambient audio is 10dB as the correction value, and the corrected sound pressure level of the prompt audio is 40. In the frequency band 256-447Hz, the sound pressure level of the prompt audio is equal to the threshold value of 80. The frequency band 256-447Hz is the second frequency band. When the correction value obtained based on the vehicle speed is 4dB, the corrected sound pressure level of the prompt audio is 84dB.
[0116] Step 204 : Generate a prompt tone audio for subsequent playback in the vehicle based on the corrected sound pressure level.
[0117] This step may be specifically referred to the aforementioned step 103 and will not be described in detail here.
[0118] Optionally, step 204 may specifically include:
[0119] In sub-step 2041 , a corresponding corrected sound pressure level is obtained for each frequency band, thereby obtaining the volume of the prompt tone audio in each frequency band.
[0120] Sub-step 2042: generating a prompt audio for subsequent playback according to the volume of the prompt audio in each frequency band.
[0121] For sub-steps 2041-2042, in an embodiment of the present application, the corrected sound pressure level of each frequency band in the prompt tone audio can be obtained separately, and the corrected sound pressure level can be mapped to the volume of the prompt audio in each frequency band. Based on the volume in each frequency band, the prompt tone audio played subsequently can be obtained.
[0122] For example, the sound heard by the human ear is a mixed effect of sounds in different frequency bands. After obtaining the volume of the prompt sound audio in each frequency band based on the method of this embodiment, the prompt sound can be directly output according to the volume in each frequency band. When the human ear hears the sound directly output according to the volume in each frequency band, what it feels is the mixed effect of sounds in multiple frequency bands.
[0123] For example, the prompt tone audio can be mixed according to the weight corresponding to each frequency band. Assuming that the weight of 300-500Hz is 0.3 and the volume is 30, the weight of 500-800Hz is 0.5 and the volume is 50, and the weight of 800-1200Hz is 0.2 and the volume is 20, the volume of the prompt tone audio played subsequently after superposition and mixing is 30×0.3+0.5×50+0.2×20=38.
[0124] In this embodiment, the prompt sound audio for subsequent playback is generated based on the volume of the prompt sound audio in each frequency band. This makes it easier for the driver to clearly capture the information in the prompt sound at an appropriate volume, avoiding potential dangers caused by not hearing the prompt sound clearly.
[0125] Optionally, the method further includes:
[0126] Step 205 : When the ambient audio in the vehicle cockpit is not acquired, a corresponding correction value is determined according to the vehicle speed value.
[0127] The correction value is proportional to the vehicle speed value.
[0128] In an embodiment of the present application, if the vehicle-mounted audio device is damaged and operates normally, but the module for calculating the sound pressure level of the ambient audio fails, resulting in an inability to provide a correction value based on the sound pressure level of the ambient audio, so that the vehicle-mounted audio device fails to obtain the ambient audio in the vehicle cockpit, the corresponding correction value can be determined by the vehicle speed, where the size of the correction value is proportional to the vehicle speed.
[0129] For example, for speeds between 0 and 40 kilometres per hour, the correction value is 5 decibels; for speeds between 40 and 60 kilometres per hour, the correction value is 10 decibels; for speeds between 60 and 80 kilometres per hour, the correction value is 15 decibels; for speeds between 80 and 120 kilometres per hour, the correction value is 20 decibels; and for speeds above 120 kilometres per hour, the correction value is 25 decibels. When the current speed is detected to be 50 kilometres per hour, it can be determined that the current speed falls within the 40-60 kilometres per hour range, and the correction value is 10 decibels. Thus, when capturing ambient audio in the vehicle's cockpit, the sound pressure level can still be corrected. Based on the corrected sound pressure level, the driver can more easily hear the information in the prompt sound, avoiding potential dangers caused by not hearing the prompt sound clearly.
[0130] Optionally, step 205 or sub-step 2033 may specifically include:
[0131] Sub-step 20331 , obtaining the current vehicle speed value, and determining a target vehicle speed interval in which the vehicle speed value is located among a plurality of different vehicle speed intervals.
[0132] Each vehicle speed interval has a corresponding correction value table, and the correction value table records the corresponding relationship between each frequency band and the correction value.
[0133] Sub-step 20332: query the correction value table corresponding to the target vehicle speed range to obtain the correction value of each frequency band.
[0134] With respect to sub-steps 20331 and 20332, in this embodiment of the present application, the ambient audio in the cockpit can be tested when the vehicle is traveling on a normal road at different speeds. For example, the ambient audio can be tested at speeds of 0-40 kph, 40-60 kph, 60-80 kph, 80-120 kph, and 120 kph. Based on the frequency band of the audio, the sound pressure level of the ambient audio in each frequency band at each speed range is calculated. The relationship between the frequency band and the sound pressure level corresponding to each speed range is recorded in a correction value table as a reference correction value.
[0135] Furthermore, each vehicle speed interval has a corresponding correction value table, which records the correspondence between each frequency band and the correction value. Therefore, in some cases where the sound pressure levels of each frequency band of the ambient audio cannot be obtained in real time as a reference value, the correction value can be obtained based on the target vehicle speed interval in which the vehicle speed value is located and the corresponding correction value table, so that corrections can be made according to the correction value, thereby enhancing the adaptability of the solution to emergency conditions.
[0136] For example, in the correction value table corresponding to the vehicle speed value of 0-40Kph, the correction value corresponding to the frequency band of 178-224Hz is 1 decibel, the correction value corresponding to the frequency band of 224-282HZ is 1 decibel, the correction value corresponding to the frequency band of 282-355Hz is 2 decibel, and the correction value corresponding to the frequency band of 355-447Hz is 3 decibel.
[0137] In this embodiment, the correction value corresponding to each frequency band can be accurately obtained through the correction value table corresponding to the vehicle speed range.
[0138] Optionally, the method further includes:
[0139] In sub-step 206, the sound pressure level of the ambient audio and the sound pressure level of the prompt audio are obtained according to the following formula:
[0140]
[0141] Among them, L is the sound pressure level, p0 is the lowest sound pressure value that can be heard by the human ear, and p A (ξ) is the instantaneous sound pressure value of the ambient audio or prompt audio at time ξ, τ is the time constant, t represents the current time, ξ represents the time when detection starts, e is a natural constant, and d is the integral sign.
[0142] Sound pressure level is not a continuous and stable value, but a value that changes rapidly over time. Calculating the sound pressure level one by one would consume a large number of examples and fail to reflect the user's true auditory experience, as the human ear cannot detect excessively rapid changes in sound pressure level. In the embodiments of this application, the above formula is used to accurately and quickly calculate the sound pressure level of different frequency bands.
[0143] In some embodiments, as Figure 3 As shown, the method may include the following steps:
[0144] S1, determine whether the vehicle-mounted audio device obtains ambient audio, if yes, go to step S2, otherwise go to step S3.
[0145] The ambient audio is collected by the vehicle-mounted audio receiver. When the ambient audio is successfully obtained, the sound pressure level of the ambient audio in each frequency band is calculated according to the frequency band.
[0146] When the sound pressure level of the ambient audio cannot be used as a correction value due to a failure in the radio equipment, a failure in calculating the sound pressure level of the ambient audio, or a failure in the sound pressure level of the prompt sound audio, the vehicle speed value is obtained and the correction value is obtained based on the vehicle speed value.
[0147] S2, calculate the sound pressure level of each frequency band.
[0148] S3, analyze the calculation results. If the calculation results meet condition 1, proceed to step S4; if the calculation results meet condition 2, proceed to step S6.
[0149] Condition 1 is: the signal of the calculation result is not received, or the sound pressure level exceeds the preset threshold; Condition 2 is: the signal of the calculation result is received, and the sound pressure level does not exceed the preset threshold.
[0150] When the sound pressure level of the prompt tone audio does not exceed the preset threshold, the sound pressure level of the ambient audio is used as the correction value.
[0151] S4, obtaining the vehicle speed value.
[0152] Furthermore, the speed range in which the current vehicle speed is located is determined, so as to obtain a corresponding correction value according to the speed range.
[0153] S5, obtaining a correction value corresponding to the vehicle speed range.
[0154] S6, adjusting the volume of the prompt tone audio.
[0155] Specifically, the volume of the prompt tone audio is adjusted according to the correction value, and the prompt tone audio for subsequent playback is generated.
[0156] S7, outputs the prompt audio for subsequent playback.
[0157] In an embodiment of the present application, by obtaining the ambient audio in the vehicle cockpit and the prompt sound audio played by the vehicle, a basis is provided for improving the masking of the prompt sound audio by the ambient audio, and the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio in each frequency band are calculated. The volume of the audio is measured by the sound pressure level. When the sound pressure level increases, the perceived volume also increases. The sound pressure level of the ambient audio in each frequency band is used as a correction value, and the sound pressure level of the prompt sound audio in each frequency band is corrected. When correcting the sound pressure level of each frequency band of the prompt sound audio, the adjustment of the correction value is more targeted at the frequency band where the prompt sound audio is located, thereby increasing the distinction between the prompt sound audio and the ambient audio, reducing the masking effect of the ambient audio, making the prompt sound audio heard during driving clearer, and improving the safety of the driving process.
[0158] like Figure 4 As shown, the embodiment of the present application proposes a device for adjusting the volume of a prompt tone, such as Figure 4 As shown, the device may include:
[0159] The acquisition module 301 is used to acquire the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle.
[0160] The calculation module 302 is used to calculate the sound pressure level of the ambient audio and the sound pressure level of the prompt audio. The sound pressure level is used to measure the volume of the audio, and the volume is directly proportional to the sound pressure level.
[0161] The adjustment module 303 is configured to use the sound pressure level of the ambient audio as a correction value and correct the sound pressure level of the prompt audio to obtain a corrected sound pressure level.
[0162] The output module 304 is used to generate a prompt sound audio to be subsequently played by the vehicle according to the corrected sound pressure level, so as to adjust the volume of the prompt sound.
[0163] Optionally, the calculation module 302 may specifically include:
[0164] The frequency band calculation submodule is used to calculate the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio for each frequency band.
[0165] Optionally, the adjustment module 303 may specifically include:
[0166] The frequency band adjustment submodule is used to add the sound pressure level of the ambient audio and the sound pressure level of the prompt audio in the same frequency band for each frequency band to obtain a corrected sound pressure level corresponding to each frequency band.
[0167] Optionally, the frequency band adjustment submodule may specifically include:
[0168] The comparison unit is used to compare the sound pressure level of the prompt tone audio in each frequency band with a preset threshold value to obtain a comparison result.
[0169] The first acquisition unit is configured to, when the comparison result shows that the sound pressure levels of the prompt sound audio corresponding to all frequency bands are less than a preset threshold, add the sound pressure level of the ambient audio in the same frequency band and the sound pressure level of the prompt sound audio to obtain a corrected sound pressure level corresponding to each frequency band.
[0170] Optionally, all frequency bands include: a first frequency band and a second frequency band, the first frequency band being a frequency band in which the sound pressure level of the prompt tone audio is greater than or equal to a preset threshold, and the second frequency band being a frequency band in which the sound pressure level of the prompt tone audio is less than a preset threshold. The frequency band adjustment submodule may specifically include:
[0171] The second acquisition unit is configured to determine a corresponding correction value for the first frequency band based on the vehicle speed, and to sum the correction value with the sound pressure level of the prompt tone audio in the first frequency band to obtain a corrected sound pressure level corresponding to each first frequency band. The magnitude of the correction value is proportional to the vehicle speed.
[0172] The third acquiring unit is configured to sum the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio in each second frequency band to obtain a corrected sound pressure level corresponding to each second frequency band.
[0173] Optionally, the device further comprises:
[0174] The acquisition module is used to determine a corresponding correction value according to the vehicle speed value when the ambient audio in the vehicle cockpit is not acquired; the size of the correction value is proportional to the size of the vehicle speed value.
[0175] Optionally, the acquisition module or the first acquisition unit may specifically include:
[0176] The first acquisition subunit is configured to acquire the current vehicle speed value and determine a target vehicle speed range within a plurality of different vehicle speed ranges. Each vehicle speed range has a corresponding correction value table, which records the correspondence between each frequency band and the correction value.
[0177] The second acquisition subunit is used to query the correction value table corresponding to the target vehicle speed range to obtain the correction value of each frequency band.
[0178] Optionally, the calculation module 302 may specifically include:
[0179] The calculation submodule is used to obtain the sound pressure level of the ambient audio and the sound pressure level of the prompt audio according to the following formula:
[0180]
[0181] Where L is the sound pressure level, p0 is the lowest sound pressure value that can be heard by the human ear, and p A (ξ) is the instantaneous sound pressure value of the ambient audio or prompt audio at time ξ, τ is the time constant, t represents the current time, ξ represents the time when detection starts, e is a natural constant, and d is the integral sign.
[0182] In summary, in the embodiment of the present application, by obtaining the ambient audio in the vehicle cockpit and the prompt sound audio played by the vehicle, a basis is provided for improving the masking of the prompt sound audio by the ambient audio, and the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio are calculated. The volume of the audio is measured by the sound pressure level. When the sound pressure level increases, the perceived volume will also increase. The sound pressure level of the ambient audio is used as a correction value to correct the sound pressure level of the prompt sound audio to obtain a corrected sound pressure level, so that the corrected sound pressure level becomes larger than the sound pressure level of the prompt sound audio, reducing the masking effect of the ambient audio, making the prompt sound audio heard during driving clearer, and improving the safety of the driving process.
[0183] The present application also provides an electronic device 90, please refer to Figure 5 , including a processor 910 and a memory 920, wherein the memory 910 is used to store computer programs; the processor 920 is used to execute the programs stored in the memory 910 to implement the prompt tone volume adjustment method introduced in any embodiment of the present application.
[0184] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for adjusting the volume of the prompt tone introduced in any embodiment of the present application is implemented.
[0185] In this application, "a plurality" refers to two or more than two. In this application, unless otherwise expressly defined, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be internal communication between two components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0186] In this application, the terms "first," "second," "third," "fourth," etc. (if any) are used to distinguish similar objects and are not necessarily used to describe a particular sequential order.
[0187] The term "and / or" in this application simply describes an association between related objects, indicating that three possible relationships exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this application generally indicates that the related objects are in an "or" relationship.
[0188] Unless otherwise specified, all steps of this application may be performed sequentially or randomly. For example, a statement that a method includes steps A and B indicates that the method may include steps A and B performed sequentially, or steps B and A performed sequentially. For example, a statement that a method may also include step C indicates that step C may be added to the method in any order. For example, a method may include steps A, B, and C, or steps A, C, and B, or steps C, A, and B, etc.
[0189] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for adjusting the volume of a prompt tone, characterized in that: The method comprises: Get the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle; Calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio; the sound pressure level is used to measure the volume of the audio, and the volume is directly proportional to the sound pressure level; Using the sound pressure level of the ambient audio as a correction value, and correcting the sound pressure level of the prompt audio to obtain a corrected sound pressure level; Generate a prompt tone audio subsequently played by the vehicle based on the corrected sound pressure level.
2. The method according to claim 1, characterized in that The audio has multiple different frequency bands, and calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt audio includes: For each frequency band, respectively calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio; The step of using the sound pressure level of the ambient audio as a correction value and correcting the sound pressure level of the prompt audio to obtain a corrected sound pressure level includes: For each frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio in the same frequency band are summed to obtain a corrected sound pressure level corresponding to each of the frequency bands.
3. The method according to claim 2, characterized in that The process of adding the sound pressure level of the ambient audio and the sound pressure level of the prompt audio in the same frequency band to obtain the corrected sound pressure level corresponding to each of the frequency bands includes: Comparing the sound pressure level of the prompt tone audio in each of the frequency bands with a preset threshold to obtain a comparison result; When the comparison result shows that the sound pressure levels of the prompt sound audio corresponding to all the frequency bands are less than the preset threshold, the sound pressure level of the ambient audio and the sound pressure level of the prompt sound audio in the same frequency band are added together to obtain a corrected sound pressure level corresponding to each of the frequency bands.
4. The method according to claim 2, characterized in that All the frequency bands include: a first frequency band and a second frequency band, wherein the first frequency band is a frequency band in which the sound pressure level of the prompt tone audio is greater than or equal to a preset threshold, and the second frequency band is a frequency band in which the sound pressure level of the prompt tone audio is less than the preset threshold. The process of adding the sound pressure level of the ambient audio and the sound pressure level of the prompt audio in the same frequency band to obtain the corrected sound pressure level corresponding to each of the frequency bands includes: For the first frequency band, determining a corresponding correction value according to the vehicle speed, and summing the correction value with the sound pressure level of the prompt sound audio in the first frequency band to obtain a corrected sound pressure level corresponding to each first frequency band; the magnitude of the correction value is proportional to the vehicle speed; For the second frequency band, the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio in each second frequency band are summed to obtain a corrected sound pressure level corresponding to each second frequency band.
5. The method according to claim 1, characterized in that The method further comprises: When the ambient audio in the vehicle cockpit is not acquired, a corresponding correction value is determined according to the vehicle speed value; the magnitude of the correction value is proportional to the magnitude of the vehicle speed value.
6. The method according to claim 4 or 5, characterized in that The determining of the corresponding correction value according to the vehicle speed value includes: Obtaining a current vehicle speed value, and determining a target vehicle speed interval within a plurality of different vehicle speed intervals; each vehicle speed interval having a corresponding correction value table, the correction value table recording a correspondence between each frequency band and the correction value; The correction value table corresponding to the target vehicle speed range is queried to obtain the correction value of each frequency band.
7. The method according to claim 1, characterized in that The calculating the sound pressure level of the ambient audio and the sound pressure level of the prompt audio includes: According to the ambient audio and the prompt audio, the sound pressure level of the ambient audio and the sound pressure level of the prompt audio are obtained according to the following formula: Where L is the sound pressure level, p0 is the lowest sound pressure value that can be heard by the human ear, and p A (ξ) is the instantaneous sound pressure value of the ambient audio or prompt audio at time ξ, τ is the time constant, t represents the current time, ξ represents the time when detection starts, e is a natural constant, and d is the integral sign.
8. The method according to claim 2, characterized in that Generating the prompt sound audio subsequently played by the vehicle according to the corrected sound pressure level to adjust the prompt sound volume includes: Obtaining a corresponding corrected sound pressure level for each frequency band, and obtaining the volume of the prompt tone audio in each frequency band; Generate the prompt tone audio for subsequent playback according to the volume of the prompt tone audio in each of the frequency bands.
9. A device for adjusting the volume of a prompt sound, characterized in that: The device comprises: The acquisition module is used to obtain the ambient audio in the vehicle cockpit and the prompt audio played by the vehicle; A calculation module, configured to calculate the sound pressure level of the ambient audio and the sound pressure level of the prompt tone audio; the sound pressure level is used to measure the volume of the audio, and the volume is directly proportional to the sound pressure level; an adjustment module, configured to use the sound pressure level of the ambient audio as a correction value and correct the sound pressure level of the prompt audio to obtain a corrected sound pressure level; The output module is used to generate a prompt sound audio to be subsequently played by the vehicle according to the corrected sound pressure level, so as to adjust the volume of the prompt sound.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 9 are implemented.
11. A readable storage medium, characterized in that: When the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of method claims 1 to 9.
Citation Information
Cited By
Cabin prompt tone interaction method, device and equipment and storage medium
CN121096337A