Method for automatically adjusting volume, related device and vehicle
By automatically adjusting the signal-to-noise ratio in the vehicle, the problem of audio and video volume being affected by noise is solved, ensuring user experience and driving safety.
Patent Information
- Application Number
- CN202410633322.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
AI Technical Summary
The audio and video volume intensity in the vehicle is affected by tire noise, wind noise, engine noise and surrounding environmental noise, causing the volume intensity received by the user to be unstable, affecting the user experience, and may cause the driver to be distracted during driving, affecting Safety.
By obtaining the current signal-to-noise ratio in the vehicle and comparing it with the predetermined reference signal-to-noise ratio range, the volume is automatically adjusted so that the signal-to-noise ratio in the vehicle is always within the reference signal-to-noise ratio range, preventing the user from manually or intelligently voice adjusting the volume. , ensure driving safety.
It realizes the automatic adjustment of the audio and video volume in the vehicle, improves the user experience, avoids driver distraction, and improves driving safety.
Smart Images

Figure CN118590806A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method for automatically adjusting volume, a related device and a vehicle. Background Art
[0002] With the development of vehicle intelligence and the improvement of living standards, users have higher and higher requirements for vehicle intelligence and comfort. The use of audio and video entertainment is an important way to enhance user perception and is also the most frequently accepted and used relaxation method by users. However, in the actual use of users, the volume intensity of audio and video received by users is greatly affected by tire noise, wind noise, engine noise, vehicle abnormal noise and surrounding environmental noise, which needs to be improved. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a method for automatically adjusting the volume, a related device and a vehicle to solve the problem that the volume intensity of the audio and video received by the user is affected.
[0004] Based on the above purpose, the present application provides a method for automatically adjusting volume, comprising:
[0005] Get the current signal-to-noise ratio in the vehicle;
[0006] Comparing the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range;
[0007] In response to determining that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range, volume adjustment is performed.
[0008] Further, the obtaining of the current signal-to-noise ratio in the vehicle includes:
[0009] Obtaining the signal-to-noise ratio at multiple moments within a preset time period from the current moment in the vehicle, wherein the signal-to-noise ratio at each moment is determined by the volume intensity and the noise intensity at that moment;
[0010] The current signal-to-noise ratio is calculated based on the signal-to-noise ratios at the multiple moments.
[0011] Furthermore, the process of predetermining the reference signal-to-noise ratio range includes:
[0012] Recognize that the user has completed volume adjustment;
[0013] Obtaining a baseline volume intensity and a baseline noise intensity in a vehicle;
[0014] Calculate a reference signal-to-noise ratio based on the reference volume intensity and the reference noise intensity;
[0015] The reference signal-to-noise ratio range is determined based on the reference signal-to-noise ratio.
[0016] Further, in response to the current signal-to-noise ratio not being within the reference signal-to-noise ratio range, adjusting the volume includes:
[0017] Determine the current noise intensity based on the current signal-to-noise ratio and the volume intensity at the current moment;
[0018] Determining a target volume intensity based on the current noise intensity and the reference signal-to-noise ratio;
[0019] Determining a target volume level corresponding to the target volume intensity based on a pre-stored correspondence between volume intensity and volume level;
[0020] The volume is adjusted to the target volume level to complete the volume adjustment.
[0021] Further, determining a target volume level corresponding to the target volume intensity based on a pre-stored correspondence between volume intensity and volume level includes:
[0022] In response to determining that the target volume intensity is between two volume intensities corresponding to adjacent volume levels, respectively calculating absolute values of differences between the target volume intensity and the two volume intensities;
[0023] In response to determining that the absolute value of the difference between the target volume intensity and the two volume intensities is different, taking the volume intensity with the smaller absolute value of the difference between the target volume intensity and the target volume intensity as the quasi-target volume intensity; taking the volume level corresponding to the quasi-target volume intensity as the target volume level;
[0024] In response to determining that the target volume intensity is the same as the absolute value of the difference between the two volume intensities, the lower volume intensity is used as the quasi-target volume intensity; and the volume level corresponding to the quasi-target intensity is used as the target volume level.
[0025] Further, adjusting the volume to the target volume level to complete the volume adjustment includes:
[0026] Determining a current volume level corresponding to the volume intensity at the current moment based on a pre-stored correspondence between volume intensity and volume level;
[0027] In response to determining that the current volume level and the target volume level are adjacent, adjusting the current volume level to the target volume level;
[0028] In response to determining that the current volume level and the target volume level are not adjacent, the current volume level is adjusted step by step to the target volume level within a preset time period.
[0029] Furthermore, after obtaining the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle, the method further includes:
[0030] Calculating the standard deviation of the signal-to-noise ratio at the multiple moments;
[0031] In response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is less than a preset value, executing a step of calculating the current signal-to-noise ratio based on the signal-to-noise ratios at the multiple moments;
[0032] In response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is greater than a preset value, the step of obtaining the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle is re-executed.
[0033] Based on the same inventive concept, the present disclosure also provides a device for automatically adjusting volume, comprising:
[0034] An acquisition module is configured to acquire a current signal-to-noise ratio in the vehicle;
[0035] a comparison module, configured to compare the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range;
[0036] The execution module is configured to adjust the volume in response to determining that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range.
[0037] Based on the same inventive concept, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
[0038] Based on the same inventive concept, the present disclosure also provides a vehicle, comprising the electronic device as described above.
[0039] As can be seen from the above, the present application provides a method for automatically adjusting the volume, including: obtaining the current signal-to-noise ratio in the vehicle; comparing the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range; and adjusting the volume in response to determining that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range. Whether to adjust the volume is determined by comparing the current signal-to-noise ratio in the vehicle with the reference signal-to-noise ratio range determined by the user, and adjusting the volume so that the signal-to-noise ratio in the vehicle is always within the reference signal-to-noise ratio range, so that the volume intensity received by the user is not affected, meeting the needs of the user, and avoiding the need for the user to adjust the volume manually or by intelligent voice during driving, thereby avoiding the driver's distraction during driving and improving the driver's safety during driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A flow chart of a method for automatically adjusting volume according to an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a process for predetermining a reference signal-to-noise ratio range according to an embodiment of the present application;
[0043] Figure 3 This is a schematic diagram of the structure of a device for automatically adjusting volume according to an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0046] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0047] As described in the background technology, as the functions integrated in the vehicle system become more and more intelligent and entertaining, there are more and more scenarios in which users play audio and video through the vehicle system. Playing audio and video through the vehicle system can provide entertainment for users in the car while driving. However, in the process of using the vehicle system to play audio and video, when the speed of the vehicle changes, the wind noise, tire noise and engine noise received in the car also change accordingly. When there is a sudden noise in the surrounding environment of the vehicle, the noise received in the car will also increase. In either case, the noise in the car will change accordingly, and the sound related to the audio and video received by the user in the car will also change accordingly. When the noise increases, the sound related to the audio and video received by the user in the car decreases. When the noise decreases, the sound related to the audio and video received by the user in the car increases. Whether the sound related to the audio and video received by the user decreases or increases, it will affect the user's audio and video experience in the car. Therefore, it is necessary to adjust the volume of the audio and video in the car to reduce the impact on the user.
[0048] However, there are currently two main ways for users in the car to adjust the volume: one is for the user to manually adjust the volume of the audio and video, and the other is for the user to adjust the volume of the audio and video through intelligent voice control of the vehicle. Both methods require the user to share some of his energy. When there is only one driver in the front row of the vehicle, adjusting the audio and video volume requires the driver to be distracted, affecting driving safety.
[0049] Based on this, the present application proposes a method for automatically adjusting the volume so that the audio and video volume can be automatically adjusted as the noise in the car changes, avoiding user control to adjust the volume, helping users share their energy, and ensuring the driving safety of the vehicle.
[0050] The following is a detailed description of the embodiments of the present application in conjunction with the accompanying drawings. The present application provides a method for automatically adjusting the volume. Figure 1 ,include:
[0051] Step S100, obtaining the current signal-to-noise ratio in the vehicle.
[0052] In this step, the current signal-to-noise ratio is the ratio of the volume intensity of the audio and video played in the vehicle to the noise intensity in the vehicle, wherein the volume intensity is detected by an audio pickup installed in the vehicle, and the audio pickup can realize directional sound pickup through a built-in microphone array and signal processing technology, and the noise intensity is detected by a noise detector installed in the vehicle, and the noise detector can obtain all noises that can be heard by the user inside the vehicle (excluding audio and video), so the noise intensity obtained by the noise detector does not include the volume intensity of audio and video. The audio pickup and the noise detector are connected to an audio central processing unit, and the audio pickup obtains the volume intensity at the current moment and transmits it to the audio central processing unit, and the noise detector obtains the noise intensity at the current moment and also transmits it to the audio central processing unit, and the audio central processing unit calculates the received volume intensity and noise intensity to obtain the current signal-to-noise ratio in the vehicle.
[0053] Specifically, the audio pickup is located at the top corresponding to the middle position between the main and co-pilot seats in the vehicle, and the noise detector is also located at the top corresponding to the middle position between the main and co-pilot seats in the vehicle and is arranged close to the audio pickup.
[0054] Step S200: comparing the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range.
[0055] In this step, the audio central processing unit compares the calculated current signal-to-noise ratio with the predetermined reference signal-to-noise ratio range to determine whether the signal-to-noise ratio in the vehicle exceeds the range.
[0056] Specifically, the reference signal-to-noise ratio range is stored in the audio central processing unit after being predetermined, and is used by the audio central processing unit. The reference signal-to-noise ratio range represents the signal-to-noise ratio range in the vehicle that is acceptable to the vehicle user. If the current signal-to-noise ratio exceeds the reference signal-to-noise ratio range, it means that the current signal-to-noise ratio in the vehicle does not meet the needs of the vehicle user.
[0057] Step S300: In response to determining that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range, adjusting the volume.
[0058] This step is executed by the audio central processing unit. After completing the above step S200, the audio central processing module determines whether to execute this step based on the comparison result. If the comparison result is that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range, it means that the current signal-to-noise ratio in the vehicle does not meet the user's needs, and the audio central processing unit needs to adjust the volume to meet the user's needs.
[0059] The method for automatically adjusting volume provided by the present application determines whether to adjust the volume by comparing the current signal-to-noise ratio in the vehicle with the reference signal-to-noise ratio range predetermined by the user, and adjusts the volume so that the signal-to-noise ratio in the vehicle is always within the reference signal-to-noise ratio range, thereby meeting the needs of the user and avoiding the need for the user to adjust the volume manually or by intelligent voice during driving, thereby avoiding the driver's distraction during driving and improving the driver's safety during driving.
[0060] The above embodiment describes how to automatically adjust the volume based on the current signal-to-noise ratio in the vehicle, but does not specifically describe the process of obtaining the current signal-to-noise ratio in the vehicle. The following embodiment specifically describes the process of obtaining the current signal-to-noise ratio in the vehicle.
[0061] In some embodiments, the step S100: obtaining the current signal-to-noise ratio in the vehicle includes:
[0062] Step S101, obtaining the signal-to-noise ratios at multiple moments in a preset time period from the current moment in the vehicle, wherein the signal-to-noise ratio at each moment is determined by the volume intensity and the noise intensity at that moment;
[0063] Specifically, each current moment corresponds to a preset time period, and the signal-to-noise ratios of the multiple moments are calculated by obtaining the volume intensity and noise intensity of multiple moments in the preset time period. The volume intensity and noise intensity of the multiple moments are obtained by the audio pickup and the noise detector respectively. After obtaining the volume intensity and noise intensity of the multiple moments, the audio central processing unit performs calculations to obtain and store multiple signal-to-noise ratios corresponding to the multiple moments.
[0064] Exemplarily, 12:00 is the current time, and the preset time period is 5 seconds, then the audio pickup and the noise detector are controlled to obtain the volume intensity and noise intensity at the times 11:59:56, 11:59:57, 11:59:58, 11:59:59, and 12:00:00, respectively, and on this basis, multiple signal-to-noise ratios at the times 11:59:56, 11:59:57, 11:59:58, 11:59:59, and 12:00:00 are calculated.
[0065] Step S102: Calculate the current signal-to-noise ratio based on the signal-to-noise ratios at the multiple moments.
[0066] Specifically, after obtaining the signal-to-noise ratios at the multiple moments, the audio central processing unit performs calculation to obtain the current signal-to-noise ratio, which can be calculated in a weighted manner or in an average calculation manner.
[0067] Exemplarily, the multiple signal-to-noise ratios at times 11:59:56, 11:59:57, 11:59:58, 11:59:59, and 12:00:00 are 1.4, 1.5, 1.4, 1.6, and 1.5, respectively. The audio central processing unit calculates their average value to obtain the current signal-to-noise ratio, and the current signal-to-noise ratio = (1.4 + 1.5 + 1.4 + 1.6 + 1.5) / 5 = 1.48; the audio central processing unit performs a weighted calculation to obtain the current signal-to-noise ratio, and the current signal-to-noise ratio = 1.4 × 0.1 + 1.5 × 0.2 + 1.4 × 0.2 + 1.6 × 0.2 + 1.5 × 0.3 = 1.49.
[0068] In this embodiment, by acquiring the signal-to-noise ratios of multiple moments within a preset time period corresponding to the current moment to obtain the current signal-to-noise ratio, it is possible to avoid the audio central processing unit frequently adjusting the volume when the vehicle faces some emergencies (for example, a series of temporary factors affecting the noise inside the vehicle, such as the vehicle passing through an acceleration belt or the vehicle being overtaken by a large vehicle), and the signal-to-noise ratios of the preset time period in the vehicle can be comprehensively processed, so that the current signal-to-noise ratio is more reliable, thereby making the volume adjustment by the audio central processing unit more reliable.
[0069] The above embodiment determines the process of obtaining the current signal-to-noise ratio in the vehicle. In the process of automatically adjusting the volume, the current signal-to-noise ratio is compared with a predetermined reference signal-to-noise ratio range. Therefore, the reference signal-to-noise ratio range is a reference for automatically adjusting the volume. The following embodiment describes in detail the process of predetermining the reference signal-to-noise ratio range.
[0070] In some embodiments, reference Figure 2 , the process of predetermining the reference signal-to-noise ratio range comprises:
[0071] Step S401, recognizing that the user has completed volume adjustment;
[0072] Specifically, after the vehicle is started, the user in the vehicle turns on the audio and video function, plays the target audio and video, and adjusts the volume of the audio and video to a satisfactory level. The audio central processing unit detects that the user does not continue to adjust the volume for a period of time after adjusting the volume, that is, recognizes that the user has adjusted the volume to a satisfactory level. At this moment, the signal-to-noise ratio in the vehicle is a satisfactory signal-to-noise ratio for the user, and the user completes the volume adjustment.
[0073] For example, if the user adjusts the volume to level 5 and does not continue to adjust the volume within 15 seconds, the audio central processing unit may deem that the user has completed the volume adjustment action.
[0074] Step S402, obtaining a reference volume intensity and a reference noise intensity in the vehicle;
[0075] Specifically, after the user completes the volume adjustment, the signal-to-noise ratio in the vehicle at this moment is a signal-to-noise ratio that satisfies the user, and the signal-to-noise ratio that satisfies the user is the benchmark signal-to-noise ratio for the audio central processing unit to adjust the volume. Therefore, it is necessary to obtain the benchmark volume intensity and the benchmark noise intensity in the vehicle at this moment, wherein the benchmark volume intensity is obtained by the audio pickup, and the benchmark noise intensity is obtained by the noise detector.
[0076] Step S403, calculating a reference signal-to-noise ratio based on the reference volume intensity and the reference noise intensity;
[0077] Specifically, the ratio of the reference volume intensity to the reference noise intensity is calculated to obtain the reference signal-to-noise ratio.
[0078] Exemplarily, after the user completes the volume adjustment, the obtained reference volume intensity in the vehicle is 150 db, and the reference noise intensity is 90 db, then the reference signal-to-noise ratio = 150 db / 90 db = 1.67.
[0079] Step S404: determining the reference signal-to-noise ratio range based on the reference signal-to-noise ratio.
[0080] Specifically, since there are people moving around in the vehicle and the vehicle is driving dynamically, the noise in the vehicle is a variable, and the benchmark signal-to-noise ratio will also be a variable. Therefore, determining a benchmark signal-to-noise ratio range based on the benchmark signal-to-noise ratio is more conducive to subsequent volume adjustment of audio and video in the vehicle so that the signal-to-noise ratio in the vehicle meets user needs.
[0081] Exemplarily, the reference signal-to-noise ratio is 1.67, and the reference signal-to-noise ratio range is set to ±10% of the reference signal-to-noise ratio, then the reference signal-to-noise ratio range is 1.65 to 1.69.
[0082] It should be noted that if the user adjusts the volume of the vehicle audio and video multiple times while the vehicle is driving, the audio central processing unit will pre-determine the benchmark signal-to-noise ratio range multiple times, and the benchmark signal-to-noise ratio range obtained each time the user adjusts the volume will overwrite the benchmark signal-to-noise ratio range previously determined and stored, that is, after the user completes multiple volume adjustments, the benchmark signal-to-noise ratio range determined and stored by the audio central processing unit is the one obtained after the user adjusted the volume for the last time.
[0083] In this embodiment, the audio central processing unit predetermines the reference signal-to-noise ratio based on the signal that the user has completed volume adjustment, so that the audio central processing unit has a reference for automatic volume adjustment and meets the needs of users in the vehicle.
[0084] The above embodiment describes the process of predetermining the reference signal-to-noise ratio range and clarifies the reference for automatically adjusting the volume. The following embodiment describes in detail the specific process of adjusting the volume when the current signal-to-noise ratio is not within the reference signal-to-noise ratio range.
[0085] In some embodiments, the step S300: in response to the current signal-to-noise ratio not being within the reference signal-to-noise ratio range, adjusting the volume includes:
[0086] Step S301, determining the current noise intensity based on the current signal-to-noise ratio and the volume intensity at the current moment;
[0087] Specifically, if the audio central processing unit determines that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range, it means that the signal-to-noise ratio in the vehicle at the current moment exceeds the reference signal-to-noise ratio range, and volume adjustment is required to make the signal-to-noise ratio in the vehicle within the reference signal-to-noise ratio range. When the current signal-to-noise ratio is obtained, the volume intensity and noise intensity at multiple moments corresponding to the current moment are obtained. Since the volume adjustment is not performed during the period and the noise is a variable, the volume intensity at the current moment is already determined when the current signal-to-noise ratio is obtained. The current noise intensity can be obtained based on the current signal-to-noise ratio and the volume intensity at the current moment.
[0088] Exemplarily, 12:00 is the current time, and the preset time period is 5 seconds, then the audio pickup and the noise detector are controlled to obtain the volume intensity and noise intensity at the times of 11:59:56, 11:59:57, 11:59:58, 11:59:59, and 12:00:00, respectively, wherein the volume intensity is 150db, then the volume intensity at the current moment is 150db, the current signal-to-noise ratio is 1.49, then the current noise intensity = 150db / 1.49 = 100.67db.
[0089] Step S302, determining a target volume intensity based on the current noise intensity and the reference signal-to-noise ratio;
[0090] Specifically, the current noise intensity and the benchmark signal-to-noise ratio are known, and the target volume intensity is determined so that the signal-to-noise ratio in the vehicle is the benchmark signal-to-noise ratio. According to the formula of signal-to-noise ratio=volume intensity / noise intensity, it can be obtained that the target volume intensity=current noise intensity×the benchmark signal-to-noise ratio.
[0091] Exemplarily, the reference signal-to-noise ratio is 1.67, the current noise intensity is 100.67 db, and the target volume intensity = 1.67 × 100.67 = 168.12 db.
[0092] Step S303, determining a target volume level corresponding to the target volume intensity based on a pre-stored correspondence between volume intensity and volume level;
[0093] Specifically, the volume adjustment of audio and video in the vehicle is adjusted according to the volume level. Different volume levels correspond to different volume intensities. The higher the volume level, the greater the corresponding volume intensity. Therefore, counting the volume intensities corresponding to each volume level in the vehicle and storing them in the audio central processing unit can facilitate the audio central processing unit to correspond the target volume level according to the target volume intensity.
[0094] Exemplarily, the correspondence between the pre-stored volume intensity and the volume level is shown in Table 1. The target volume intensity is 168.12 db, and it can be determined from Table 1 that the target volume level is level 7.
[0095] Table 1 Correspondence between volume intensity and volume level
[0096] Volume Level Volume intensity (db) 1 156.12 2 158.12 3 160.12 4 162.12 5 164.12 6 166.12 7 168.12 8 170.12 9 172.12 10 174.12
[0097] It should be noted that each of the aforementioned nodes that requires the audio central processing unit to obtain volume intensity can be obtained through an audio pickup, or by identifying the volume level of the current vehicle audio and video and querying the corresponding relationship between volume intensity and volume level in Table 1.
[0098] Step S304: adjusting the volume to the target volume level to complete the volume adjustment.
[0099] Specifically, after determining the target volume level, the audio central processing unit adjusts the volume of the vehicle's audio and video to the target volume level, thereby achieving automatic volume adjustment.
[0100] In this embodiment, after determining that volume adjustment is to be performed, the audio central processing unit calculates and ultimately determines the target volume level to be adjusted based on the known current signal-to-noise ratio and the volume intensity at the current moment, thereby automatically adjusting the volume to a signal-to-noise ratio in the vehicle that meets user needs.
[0101] The above embodiment specifically describes the process of adjusting the volume, clarifies how to determine the target volume intensity, and adjust the volume to the target volume level based on the target volume intensity. The following embodiment describes the specific process of how to determine the target volume level based on the target volume intensity.
[0102] In some embodiments, the step S303: determining a target volume level corresponding to the target volume intensity based on a pre-stored correspondence between volume intensity and volume level, includes:
[0103] Step S3031, in response to determining that the target volume intensity is between two volume intensities corresponding to adjacent volume levels, respectively calculating the absolute values of the differences between the target volume intensity and the two volume intensities;
[0104] Specifically, each volume level corresponds to a volume intensity. When the target volume intensity corresponds to the target volume level, the target volume intensity may be between two volume intensities corresponding to two adjacent volume levels. When this happens, the audio central processing unit needs to calculate the absolute value of the difference between the target volume intensity and the two volume intensities corresponding to the two volume levels, to determine which volume level the target volume intensity is closer to, so that the audio central processing unit can determine the target volume level.
[0105] Step S3032, in response to determining that the absolute value of the difference between the target volume intensity and the two volume intensities is different, taking the volume intensity with the smaller absolute value of the difference between the target volume intensity and the target volume intensity as the quasi-target volume intensity; taking the volume level corresponding to the quasi-target volume intensity as the target volume level;
[0106] Specifically, a smaller absolute value of the difference between the volume intensity corresponding to the volume level and the target volume intensity represents that the target volume intensity is closer to the volume level. Therefore, using the volume level as the target volume level can make the signal-to-noise ratio in the vehicle after adjusting the volume closer to the reference signal-to-noise ratio range.
[0107] Exemplarily, the target volume intensity is 168db, and the audio central processing unit queries Table 1 to learn that the target volume intensity is between volume levels 6 and 7, wherein the volume intensity corresponding to volume level 6 is 166.12db, and the volume intensity corresponding to volume level 7 is 168.12db. The absolute value of the difference between the target volume intensity and the volume intensity corresponding to volume level 6 is 1.88, and the absolute value of the difference between the target volume intensity and the volume intensity corresponding to volume level 7 is 0.12, 1.88>0.12, and volume level 7 is used as the target volume level.
[0108] Step S3033: In response to determining that the target volume intensity is the same as the absolute value of the difference between the two volume intensities, taking the lower volume intensity as the quasi-target volume intensity; and taking the volume level corresponding to the quasi-target intensity as the target volume level.
[0109] Specifically, the target volume intensity is the same as the distance between the two volume levels, and the lower volume level is used as the target volume level, which can avoid the situation where the volume is too loud and affects the user's driving, and is conducive to safe driving.
[0110] Exemplarily, the target volume intensity is 167.12db, and the audio central processing unit queries Table 1 to learn that the target volume intensity is between volume levels 6 and 7, wherein the volume intensity corresponding to volume level 6 is 166.12db, and the volume intensity corresponding to volume level 7 is 168.12db, and the absolute values of the differences between the target volume intensity and the volume intensities corresponding to volume levels 6 and 7 are both 1.0, then volume level 6 is used as the target volume level.
[0111] In this embodiment, different situations that may occur when determining the target volume level are further limited, so that the audio central processing unit can move towards a safer and faster direction that meets user requirements when determining the target volume level, thereby improving the convenience of adjusting the volume.
[0112] The above embodiments describe how to determine the target volume level under various conditions of the target volume intensity, and clarify the method for determining the target volume level, but do not specifically describe how to adjust the volume to the target volume level. The following embodiments specifically describe the process of adjusting the volume to the target volume level.
[0113] In some embodiments, the step S304, adjusting the volume to the target volume level to complete the volume adjustment, includes:
[0114] Step S3041, determining a current volume level corresponding to the volume intensity at the current moment based on the pre-stored correspondence between volume intensity and volume level;
[0115] Specifically, under the condition that the volume intensity at the current moment is known, the audio central processing unit can obtain the current volume level corresponding to the volume intensity at the current moment by querying the pre-stored correspondence between volume intensity and volume level, that is, Table 1.
[0116] Exemplarily, the volume intensity at the current moment is 162.12 db, and the audio central processing unit queries Table 1 to obtain that the current volume level is 4.
[0117] Step S3042, in response to determining that the current volume level and the target volume level are adjacent, adjusting the current volume level to the target volume level;
[0118] Specifically, the current volume level and the target volume level are known, and the audio central processing unit compares and determines the current volume level and the target volume level, and can conclude whether the current volume level and the target volume level are adjacent or not. The audio central processing unit concludes that they are adjacent, which means that the span between the current volume level and the target volume level is one level, and the audio and video volume of the vehicle can be directly adjusted from the current volume level to the target volume level.
[0119] Exemplarily, the current volume level is 4, the target volume level is 5, and the audio central processing unit determines that the two are adjacent to each other. The audio central processing unit directly adjusts the volume so that the vehicle's audio and video volume is adjusted from 4 to 5.
[0120] Step S3043: In response to determining that the current volume level and the target volume level are not adjacent, adjusting the current volume level step by step to the target volume level within a preset time period.
[0121] Specifically, the audio central processing unit determines that the current volume level and the target volume level are not adjacent, which means that the span between the current volume level and the target volume level is at least two levels. If the vehicle's audio and video volume is directly adjusted from the current volume level to the target volume level, the volume intensity of the vehicle's audio and video received by the user will suddenly increase, which will cause the user to jump. In severe cases, it will scare the user and affect the safe driving of the vehicle. Therefore, when the current volume level and the target volume level are not adjacent, the audio central processing unit needs to adjust the current volume level step by step to the target volume level within a preset time period.
[0122] Exemplarily, the current volume level is 4, and the target volume level is 7. The audio central processing unit determines that the two are not adjacent. The audio central processing unit gradually adjusts the volume within a preset time period (which can be 1 minute) so that the vehicle's audio and video volume is adjusted from 4 to 5, then to 6, and then to 7, thereby adjusting the volume to the target volume level.
[0123] In this embodiment, the audio central processing unit analyzes and determines the current volume level and the target volume level to smoothly switch the vehicle audio and video volume to the target volume level, thereby ensuring the user's listening experience while also ensuring the vehicle's driving safety.
[0124] The above embodiment specifically describes the process of adjusting the volume level to the target volume level. The following embodiment specifically limits the process of obtaining the current signal-to-noise ratio to avoid the situation where the noise duration is short, resulting in frequent volume adjustments in a short period of time, which affects the user's listening experience.
[0125] In some embodiments, in step S101, the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle are obtained, and then the following steps are further included:
[0126] Step S103, calculating the standard deviation of the signal-to-noise ratio at the multiple moments;
[0127] Specifically, within a preset time period from the current moment, the audio and video volume level of the vehicle remains unchanged, that is, the volume intensity remains unchanged, and the different signal-to-noise ratios at the multiple moments indicate different noise intensities at the multiple moments. By calculating the standard deviation of the signal-to-noise ratios at the multiple moments, the range of noise intensity changes within the preset time period from the current moment can be reflected. If a relatively large noise occurs during the period, such as unstable noises such as the horn of a passing vehicle, the standard deviation of the signal-to-noise ratios at the multiple moments will increase. If the current signal-to-noise ratio is calculated according to the aforementioned steps, the current signal-to-noise ratio will definitely exceed the reference signal-to-noise ratio range, and the audio central processing unit adjusts the volume. However, this noise will not persist. Adjusting the volume according to this solution will cause the volume received by the user to keep changing, affecting the user experience. Therefore, calculating the standard deviation of the signal-to-noise ratios at the multiple moments can determine whether there is unstable noise during the period. If there is, the current signal-to-noise ratio is not calculated according to the signal-to-noise ratios at the multiple moments. If not, the current signal-to-noise ratio is calculated according to the aforementioned steps.
[0128] Exemplarily, the signal-to-noise ratios at the multiple moments are 1.4, 1.5, 1.4, 1.6, and 1.5, respectively. According to the standard deviation formula Calculate the standard deviation of the signal-to-noise ratio at the multiple moments, where n is 5, x i is the signal-to-noise ratio at each moment, μ is the average value of the signal-to-noise ratios at the multiple moments, and μ is 1.48;
[0129] The standard deviation of the signal-to-noise ratio at the multiple moments
[0130] Step S104, in response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is less than a preset value, executing a step of calculating the current signal-to-noise ratio based on the signal-to-noise ratios at the multiple moments;
[0131] Specifically, if the standard deviation is smaller than the preset value, it indicates that there is no unstable noise during the period, and the audio central processing unit continues to execute subsequent steps to obtain the current signal-to-noise ratio and determine whether the current signal-to-noise ratio exceeds the reference signal-to-noise ratio range.
[0132] Exemplarily, the preset value stored in the audio central processing unit is 0.5, the calculated standard deviation is 0.17, and it is determined that 0.17<0.5, then the audio central processing unit continues to execute subsequent steps.
[0133] Step S105 , in response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is greater than a preset value, re-execute the step of obtaining the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle.
[0134] Specifically, if the standard deviation is greater than the preset value, it indicates that there is unstable noise during the period, and the audio central processing unit does not execute the subsequent steps, and re-executes the step of obtaining the signal-to-noise ratio of multiple moments in the preset time period from the current moment in the vehicle. That is, the audio central processing unit recognizes the existence of unstable noise, does not adjust the volume, and re-obtains the signal-to-noise ratio of multiple moments in the preset time period from the current moment in the vehicle to determine whether to adjust the volume, thereby avoiding unstable factors from affecting the process of the audio central processing unit automatically adjusting the volume, and realizing stable automatic volume adjustment.
[0135] Exemplarily, the preset value stored in the audio central processing unit is 0.5, the calculated standard deviation is 0.57, and it is judged that 0.57>0.5, then the audio central processing unit re-executes the step of obtaining the signal-to-noise ratios of multiple moments within a preset time period from the current moment in the vehicle. The signal-to-noise ratios of the multiple moments obtained this time are invalid signal-to-noise ratios and are not used to determine whether to adjust the volume.
[0136] In this embodiment, the standard deviation of the signal-to-noise ratios at the multiple moments is calculated to determine whether there is an abnormal signal-to-noise ratio among the signal-to-noise ratios at the multiple moments, thereby avoiding the situation where volume adjustment is performed according to the abnormal signal-to-noise ratio and ensuring the stability of the adjusted volume.
[0137] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0138] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0139] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a device for automatically adjusting the volume.
[0140] refer to Figure 3 , the device for automatically adjusting the volume comprises:
[0141] An acquisition module 100 is configured to acquire a current signal-to-noise ratio in the vehicle;
[0142] The comparison module 200 is configured to compare the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range;
[0143] The execution module 300 is configured to adjust the volume in response to the current signal-to-noise ratio not being within the reference signal-to-noise ratio range.
[0144] Furthermore, the acquisition module is also configured to:
[0145] Obtaining the signal-to-noise ratio at multiple moments within a preset time period from the current moment in the vehicle, wherein the signal-to-noise ratio at each moment is determined by the volume intensity and the noise intensity at that moment;
[0146] The current signal-to-noise ratio is calculated based on the signal-to-noise ratios at the multiple moments.
[0147] Furthermore, the device for automatically adjusting the volume further includes a module for predetermining a reference signal-to-noise ratio, and the module for predetermining a reference signal-to-noise ratio is configured as follows:
[0148] Recognize that the user has completed volume adjustment;
[0149] Obtaining a baseline volume intensity and a baseline noise intensity in a vehicle;
[0150] Calculate a reference signal-to-noise ratio based on the reference volume intensity and the reference noise intensity;
[0151] The reference signal-to-noise ratio range is determined based on the reference signal-to-noise ratio.
[0152] Furthermore, the execution module is also configured to:
[0153] Determine the current noise intensity based on the current signal-to-noise ratio and the volume intensity at the current moment;
[0154] Determining a target volume intensity based on the current noise intensity and the reference signal-to-noise ratio;
[0155] Determining a target volume level corresponding to the target volume intensity based on a pre-stored correspondence between volume intensity and volume level;
[0156] The volume is adjusted to the target volume level to complete the volume adjustment.
[0157] Furthermore, the execution module is also configured to:
[0158] In response to determining that the target volume intensity is between two volume intensities corresponding to adjacent volume levels, respectively calculating absolute values of differences between the target volume intensity and the two volume intensities;
[0159] In response to determining that the absolute value of the difference between the target volume intensity and the two volume intensities is different, taking the volume intensity with the smaller absolute value of the difference between the target volume intensity and the target volume intensity as the quasi-target volume intensity; taking the volume level corresponding to the quasi-target volume intensity as the target volume level;
[0160] In response to determining that the target volume intensity is the same as the absolute value of the difference between the two volume intensities, the lower volume intensity is used as the quasi-target volume intensity; and the volume level corresponding to the quasi-target intensity is used as the target volume level.
[0161] Furthermore, the execution module is also configured to:
[0162] Determining a current volume level corresponding to the volume intensity at the current moment based on a pre-stored correspondence between volume intensity and volume level;
[0163] In response to determining that the current volume level and the target volume level are adjacent, adjusting the current volume level to the target volume level;
[0164] In response to determining that the current volume level and the target volume level are not adjacent, the current volume level is adjusted step by step to the target volume level within a preset time period.
[0165] Furthermore, the acquisition module is also configured to:
[0166] Calculating the standard deviation of the signal-to-noise ratio at the multiple moments;
[0167] In response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is less than a preset value, executing a step of calculating the current signal-to-noise ratio based on the signal-to-noise ratios at the multiple moments;
[0168] In response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is greater than a preset value, the step of obtaining the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle is re-executed. For the convenience of description, the above device is described separately according to its functions and is divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0169] The device of the above embodiment is used to implement the corresponding method for automatically adjusting the volume in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0170] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for automatically adjusting the volume described in any of the above embodiments is implemented.
[0171] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0172] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0173] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0174] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0175] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0176] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0177] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0178] The electronic device of the above embodiment is used to implement the corresponding method of automatically adjusting the volume in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0179] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method of automatically adjusting the volume as described in any of the above embodiments.
[0180] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0181] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for automatically adjusting the volume as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0182] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.
[0183] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle, including an electronic device as described above.
[0184] The vehicle in the above embodiment is used to execute the method for automatically adjusting the volume as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0185] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0186] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0187] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0188] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0189] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0190] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0191] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0192] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for automatically adjusting volume, characterized in that: include: Get the current signal-to-noise ratio in the vehicle; Comparing the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range; In response to determining that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range, volume adjustment is performed.
2. The method according to claim 1, characterized in that The obtaining of the current signal-to-noise ratio in the vehicle includes: Obtaining the signal-to-noise ratio at multiple moments within a preset time period from the current moment in the vehicle, wherein the signal-to-noise ratio at each moment is determined by the volume intensity and the noise intensity at that moment; The current signal-to-noise ratio is calculated based on the signal-to-noise ratios at the multiple moments.
3. The method according to claim 2, characterized in that The process of predetermining the reference signal-to-noise ratio range includes: Recognize that the user has completed volume adjustment; Obtaining a baseline volume intensity and a baseline noise intensity in a vehicle; Calculate a reference signal-to-noise ratio based on the reference volume intensity and the reference noise intensity; The reference signal-to-noise ratio range is determined based on the reference signal-to-noise ratio.
4. The method according to claim 3, characterized in that In response to the current signal-to-noise ratio not being within the reference signal-to-noise ratio range, adjusting the volume includes: Determine the current noise intensity based on the current signal-to-noise ratio and the volume intensity at the current moment; Determining a target volume intensity based on the current noise intensity and the reference signal-to-noise ratio; Determining a target volume level corresponding to the target volume intensity based on a pre-stored correspondence between volume intensity and volume level; The volume is adjusted to the target volume level to complete the volume adjustment.
5. The method according to claim 4, characterized in that The determining, based on the pre-stored correspondence between the volume intensity and the volume level, a target volume level corresponding to the target volume intensity includes: In response to determining that the target volume intensity is between two volume intensities corresponding to adjacent volume levels, respectively calculating absolute values of differences between the target volume intensity and the two volume intensities; In response to determining that the absolute value of the difference between the target volume intensity and the two volume intensities is different, taking the volume intensity with the smaller absolute value of the difference between the target volume intensity and the target volume intensity as the quasi-target volume intensity; taking the volume level corresponding to the quasi-target volume intensity as the target volume level; In response to determining that the target volume intensity is the same as the absolute value of the difference between the two volume intensities, the lower volume intensity is used as the quasi-target volume intensity; and the volume level corresponding to the quasi-target intensity is used as the target volume level.
6. The method according to claim 5, characterized in that The step of adjusting the volume to the target volume level to complete the volume adjustment includes: Determining a current volume level corresponding to the volume intensity at the current moment based on a pre-stored correspondence between volume intensity and volume level; In response to determining that the current volume level and the target volume level are adjacent, adjusting the current volume level to the target volume level; In response to determining that the current volume level and the target volume level are not adjacent, the current volume level is adjusted step by step to the target volume level within a preset time period.
7. The method according to claim 2, characterized in that: After obtaining the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle, the method further includes: Calculating the standard deviation of the signal-to-noise ratio at the multiple moments; In response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is less than a preset value, executing a step of calculating the current signal-to-noise ratio based on the signal-to-noise ratios at the multiple moments; In response to determining that the standard deviation of the signal-to-noise ratios at the multiple moments is greater than a preset value, the step of obtaining the signal-to-noise ratios at multiple moments within a preset time period from the current moment in the vehicle is re-executed.
8. A device for automatically adjusting volume, characterized in that: include: An acquisition module is configured to acquire a current signal-to-noise ratio in the vehicle; a comparison module, configured to compare the current signal-to-noise ratio with a predetermined reference signal-to-noise ratio range; The execution module is configured to adjust the volume in response to determining that the current signal-to-noise ratio is not within the reference signal-to-noise ratio range.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A vehicle comprising the electronic device according to claim 9.
