Audio adjustment method and device, equipment and medium
By acquiring the vehicle's speed and automatically adjusting the audio signal based on the correspondence between preset speed ranges and audio parameters, the problem of low efficiency and poor safety in mode switching of existing in-vehicle audio systems is solved, achieving efficient and safe automatic switching of audio parameters.
Patent Information
- Application Number
- CN202511520255.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-01-06
AI Technical Summary
In existing technologies, mode switching in in-vehicle audio systems relies on manual intervention, resulting in low switching efficiency and untimely switching, which affects driving safety.
By acquiring the vehicle's speed, and based on the correspondence between preset speed ranges and audio parameters, the audio signal is automatically adjusted, and a parameter smoothing transition algorithm is used to ensure smooth switching.
It achieves automatic correlation between audio parameters and vehicle speed, improves switching efficiency, ensures driving safety, and avoids safety hazards and cumbersome operation caused by manual operation.
Smart Images

Figure CN121284451A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle audio, and in particular to an audio adjustment method, apparatus, device, and medium. Background Technology
[0002] Currently, the mode switching functions of in-vehicle audio systems, such as "noise cancellation mode," "normal mode," and "surround sound mode," mostly rely on fixed and preset design logic. Users need to manually select these modes through physical buttons or on-screen menus based on their subjective feelings and judgment of the external environment in order to obtain the best listening experience in different scenarios and ensure driving safety.
[0003] However, this operation method, which relies on manual intervention, has low switching efficiency and is prone to causing driving safety problems due to untimely switching. Summary of the Invention
[0004] The purpose of this application is to provide an audio adjustment method, apparatus, device, and medium that can improve switching efficiency while ensuring driving safety.
[0005] In a first aspect, an audio adjustment method is provided, comprising: acquiring a vehicle speed; determining a target speed range to which the vehicle speed belongs based on a preset speed range; determining target audio parameters corresponding to the target speed range based on the correspondence between the preset speed range and audio parameters; and adjusting an audio signal according to the target audio parameters.
[0006] In a preferred embodiment, this application can be further configured to: adjust the audio signal according to the target audio parameters, including: adjusting the audio signal using a parameter smoothing transition algorithm according to the target audio parameters.
[0007] In a preferred embodiment, this application can be further configured to: adjust an audio signal according to the target audio parameters, including: acquiring user adjustment information, the user adjustment information representing adjustment information for any one or more dimension parameters of the target audio parameters; determining a final target audio parameter based on the user adjustment information and the target audio parameters; and adjusting the audio signal according to the final target audio parameters.
[0008] In a preferred embodiment, this application can be further configured to: obtaining vehicle speed includes: obtaining an initial vehicle speed; filtering abnormal fluctuation data of the initial vehicle speed to obtain the vehicle speed.
[0009] In a preferred embodiment, this application may be further configured such that: the target audio parameters include at least: a target ambient sound mixing ratio; correspondingly, it may also include: acquiring external ambient sound data; filtering the external ambient sound data to obtain processed ambient sound; the processed ambient sound is used to mix with the audio signal according to the target ambient sound mixing ratio.
[0010] In a preferred embodiment, this application can be further configured as follows: before determining the target speed range to which the vehicle's driving speed belongs based on a preset speed range, the application further includes: acquiring the system operating status; determining whether there is fault information based on the system operating status; if there is no fault information, then determining the target speed range to which the vehicle's driving speed belongs based on the preset speed range; if there is fault information, then using a normal audio adjustment mode.
[0011] In a preferred embodiment, this application can be further configured such that: the audio parameters include: noise reduction intensity, reverberation depth, and ambient sound mixing ratio; correspondingly, the audio parameters corresponding to the first speed range include: first noise reduction intensity, first reverberation depth, and first ambient sound mixing ratio; the audio parameters corresponding to the second speed range include: second noise reduction intensity, second reverberation depth, and second ambient sound mixing ratio; the audio parameters corresponding to the third speed range include: third noise reduction intensity, third reverberation depth, and third ambient sound mixing ratio; wherein, the maximum value of the first speed range is less than the minimum value of the second speed range, and the maximum value of the second speed range is less than the minimum value of the third speed range; the minimum value of the first noise reduction intensity is greater than the maximum value of the second noise reduction intensity, and the minimum value of the second noise reduction intensity is greater than the maximum value of the third noise reduction intensity; the maximum value of the first ambient sound mixing ratio is less than the minimum value of the second ambient sound mixing ratio, and the maximum value of the second ambient sound mixing ratio is less than the minimum value of the third ambient sound mixing ratio.
[0012] Secondly, an audio adjustment device is provided, comprising: a speed signal acquisition module for acquiring vehicle speed; an adaptive switching control module for determining a target speed range to which the vehicle speed belongs based on a preset speed range; determining target audio parameters corresponding to the target speed range based on the correspondence between the preset speed range and audio parameters; and adjusting the audio signal according to the target audio parameters.
[0013] Thirdly, an electronic device is provided, the electronic device including a memory and a processor, the memory storing a computer program, the processor executing the audio adjustment method according to any one of the first aspects when running the computer program.
[0014] Fourthly, a computer-readable storage medium is provided, wherein at least one piece of program code is stored therein, the program code being loaded and executed by a processor to implement the audio adjustment method as described in any of the first aspects.
[0015] Fifthly, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the audio adjustment method as described in any of the first aspects.
[0016] In summary, the audio adjustment method provided in this application has the following beneficial technical effects:
[0017] The system acquires the vehicle's speed; determines the target speed range to which the vehicle's speed belongs based on a preset speed range; determines the target audio parameters corresponding to the target speed range based on the correspondence between the preset speed range and audio parameters; adjusts the audio signal according to the target audio parameters to set corresponding audio parameters for different speed ranges; determines the target audio parameters for the vehicle's speed range based on the correspondence between the preset speed range and audio parameters, and automatically associates the audio parameters and vehicle speed to achieve automatic switching, improving switching efficiency and ensuring driving safety.
[0018] In addition, this application also provides an audio adjustment device, equipment, and medium, all of which have the aforementioned beneficial technical effects. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic flowchart of an audio adjustment method provided in an embodiment of this application;
[0021] Figure 2 This is a schematic flowchart illustrating a specific audio adjustment method provided in an embodiment of this application;
[0022] Figure 3 This is a schematic diagram of the structure of an audio adjustment device provided in an embodiment of this application;
[0023] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0024] This specific embodiment is merely an explanation of this application and is not intended to limit it. After reading this specification, those skilled in the art can make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they are within the scope of this application.
[0025] It should be noted that, in the optional embodiments of this application, the data related to object information, when applied to specific products or technologies, requires the permission or consent of the object. Furthermore, the collection, use, and processing of this data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. In other words, if the embodiments of this application involve data related to an object, it must be obtained with the permission and consent of the object, the permission and consent of relevant departments, and in accordance with the relevant laws, regulations, and standards of the country and region. If the embodiments involve personal information, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject is required. The embodiments also need to be implemented with the permission and consent of the object.
[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.
[0028] Most current in-vehicle audio systems adopt a fixed mode design, requiring users to manually switch between functions such as "noise cancellation mode," "normal mode," and "surround sound mode," or only adjust output parameters according to the type of audio source (such as Bluetooth music or radio), without being able to correlate with the vehicle's driving status. Although some high-end models have basic noise cancellation functions, they only preset parameters for fixed scenarios (such as high-speed constant speed driving) and do not achieve dynamic adaptation across the entire speed range. In addition, existing ambient sound acquisition functions are mostly binary "on / off" controls, which cannot adjust the ambient sound mixing ratio according to speed changes.
[0029] Users need to manually switch audio modes frequently to adapt to different driving speeds (e.g., spatial audio needs to be manually turned on when parking at low speeds, and noise cancellation needs to be manually turned off and ambient sound turned on when driving at high speeds), which distracts driving attention and poses a safety hazard. At low speeds / stationary conditions, if spatial audio and deep noise cancellation are not turned on, the system is easily disturbed by low-frequency external noise (such as people on the roadside and non-motorized vehicles), resulting in poor audio immersion. At high speeds, if strong noise cancellation and high reverberation spatial audio are continuously turned on, key ambient sounds (such as horns from vehicles behind and warning sounds at intersections) will be blocked, leading to a loss of driving information and increasing driving risks. The audio parameters of the relevant systems (such as noise cancellation intensity, reverberation depth, and ambient sound ratio) are mostly fixed values, which cannot achieve a smooth transition according to speed gradients (such as 0-30km / h, 30-80km / h, and above 80km / h). When switching, audio stuttering and abrupt changes in timbre are likely to occur, affecting the continuity of the experience.
[0030] Based on this, this application proposes a method for adaptive switching of audio modes based on vehicle speed, which is applicable to various passenger cars, commercial vehicles and other motor vehicles equipped with in-vehicle audio systems. It can dynamically adjust audio processing parameters and output modes according to the real-time driving speed of the vehicle, balancing audio experience and driving safety.
[0031] A specific embodiment of this application provides an audio adjustment method, such as... Figure 1 As shown, the method provided in this application embodiment can be executed by an electronic device, which is a server. This server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smartphone, an in-vehicle system, etc., but is not limited to these. The terminal device and the electronic device can be directly or indirectly connected via wired or wireless communication. This application embodiment does not impose any limitations on this connection. The method includes:
[0032] S101, Obtain vehicle speed;
[0033] Among them, vehicle speed refers to the speed data of the vehicle.
[0034] In this embodiment, after the vehicle power is turned on and the relevant ECU (Electronic Control Unit) completes its power-on initialization, it can sense information about the vehicle's operation in real time. In this application, the vehicle ECU is accessed via a CAN bus to acquire the vehicle's speed in real time, and the sampling frequency for the vehicle speed can be set to ≥10Hz. Furthermore, abnormal fluctuation data (such as instantaneous false speed reports) can be filtered to output a stable vehicle speed.
[0035] S102. Based on the preset speed range, determine the target speed range to which the vehicle's driving speed belongs;
[0036] S103. Based on the correspondence between the preset speed range and the audio parameters, determine the target audio parameters corresponding to the target speed range;
[0037] Multiple speed ranges are pre-set, and corresponding audio parameters are set for each range. A speed range refers to dividing a continuous range of vehicle speeds into several non-overlapping, continuous intervals, each defined by a lower limit and an upper limit. The target speed range refers to the specific speed range to which the current real-time vehicle speed belongs after judgment and matching. The number of speed ranges set in this embodiment is not limited.
[0038] In one feasible approach, the driving speed is divided into three core intervals, and corresponding audio parameters are preset. If the audio parameters include: noise reduction intensity, reverberation depth, and ambient sound mixing ratio; then, the audio parameters corresponding to the first speed interval include: first noise reduction intensity, first reverberation depth, and first ambient sound mixing ratio; the audio parameters corresponding to the second speed interval include: second noise reduction intensity, second reverberation depth, and second ambient sound mixing ratio; and the audio parameters corresponding to the third speed interval include: third noise reduction intensity, third reverberation depth, and third ambient sound mixing ratio. Wherein, the maximum value of the first speed interval is less than the minimum value of the second speed interval, and the maximum value of the second speed interval is less than the minimum value of the third speed interval; the minimum value of the first noise reduction intensity is greater than the maximum value of the second noise reduction intensity, and the minimum value of the second noise reduction intensity is greater than the maximum value of the third noise reduction intensity; the maximum value of the first ambient sound mixing ratio is less than the minimum value of the second ambient sound mixing ratio, and the maximum value of the second ambient sound mixing ratio is less than the minimum value of the third ambient sound mixing ratio.
[0039] Specifically, users can customize the first noise reduction intensity, first reverberation depth, first ambient sound mixing ratio, second noise reduction intensity, second reverberation depth, second ambient sound mixing ratio, third noise reduction intensity, third reverberation depth, and third ambient sound mixing ratio, as long as they can achieve the purpose of this application embodiment.
[0040] In one feasible approach, the parameters for each dimension corresponding to each interval are either fixed values or a range. If they are fixed values, taking the second noise reduction intensity as an example, the maximum / minimum value of the second noise reduction intensity is the same parameter;
[0041] If the range is an interval, after determining the target speed interval, any value within the interval corresponding to each dimension parameter can be randomly selected; or linear interpolation can be performed according to the linear relationship between the target speed interval and the interval corresponding to the dimension parameter to obtain the corresponding parameter value. Users can customize the selection, and this application embodiment does not limit it.
[0042] For example, the first speed range is the low-speed / stationary range (0-30km / h): deep noise reduction is enabled (noise reduction intensity 80%-90%, focusing on filtering low-frequency noise below 200Hz), spatial audio effects are enabled (reverberation depth 60%-80%, simulating the acoustic environment of a 30-50㎡ enclosed space), and the ambient sound mixing ratio is ≤10%; the second speed range is the medium-speed range (30-80km / h): noise reduction intensity is reduced to 50%-70%, reverberation depth is adjusted to 30%-50%, and the ambient sound mixing ratio is increased to 20%-40% (prioritizing the acquisition of mid-to-high frequency warning sounds from outside the vehicle, such as horns and braking sounds); the third speed range is the high-speed range (>80km / h): noise reduction intensity is further reduced to 20%-40% (only filtering high-frequency wind noise), spatial audio effects are turned off (reverberation depth ≤10%), and the ambient sound mixing ratio is increased to 50%-70%, ensuring that key ambient sounds are clearly identifiable. See Table 1, which shows the specific parameters of the speed range, the division criteria, and the corresponding audio modes.
[0043] Table 1. Speed Range and Audio Parameters
[0044]
[0045] Furthermore, after acquiring the speed signal, the current speed range is determined, and the corresponding preset parameters are automatically invoked.
[0046] Understandably, at different driving speeds, drivers have completely opposite needs for "ambient sound acquisition" and "audio immersion." At low speeds / stationary conditions, it is necessary to isolate low-frequency external noise (such as crowds and non-motorized vehicle noise) to enhance immersion, while at high speeds, it is necessary to retain key ambient sounds (such as horns and warning sounds) to ensure safety. Fixed modes cannot meet both needs and dynamic adaptation according to speed is required. Related systems require users to manually switch modes (such as enabling spatial audio at low speeds and disabling noise cancellation at high speeds), and frequent operations can distract drivers and pose safety hazards. However, in this application, "fully automatic switching" can be achieved through speed adaptation, without user intervention, reducing operational complexity. Furthermore, the vehicle's driving status covers the entire speed gradient from "stationary to low speed to medium speed to high speed." The noise environment at different gradients (such as more low-frequency noise at low speeds and more high-frequency wind noise at high speeds) differs significantly from audio requirements. Fixed parameters (such as a single noise cancellation intensity) cannot adapt to all scenarios and parameters need to be optimized according to speed ranges to ensure a consistent experience across all scenarios.
[0047] In this embodiment, the noise reduction mode at low speeds is designed with "directional noise reduction + low-proportion ambient sound retention", which can ensure that key ambient sounds are not lost while isolating interference noise.
[0048] The core of the low-speed noise cancellation mode is to filter low-frequency noise below 200Hz (such as conversations among people on the roadside and low-frequency sounds from non-motorized vehicle engines). This type of noise has no driving safety value and easily interferes with the audio experience. It does not filter critical mid-to-high frequency environmental sounds in the 1000-5000Hz range (such as horns from vehicles behind and pedestrians shouting "Watch out!"), ensuring that safety information is not isolated. Even in the low-speed range, the system retains a ≤10% environmental sound mixing ratio. This ratio ensures that critical near-field environmental sounds (such as warning sounds from vehicles behind when parking) can be clearly heard inside the vehicle without interfering with the audio immersion. Low-speed scenarios are mostly "parking, congestion, and driving in residential areas," where vehicle speed is slow, the driver's field of vision is wide, and the reliance on environmental sounds is lower than in high-speed scenarios. Furthermore, the noise reduction intensity (80%-90%) only targets low-frequency noise and does not isolate all frequency bands of sound like the strong noise cancellation at high speeds.
[0049] Audio parameters are optimized for different speed ranges (low speed / stationary, medium speed, high speed) to enhance audio immersion at low speeds and ensure ambient sound acquisition at high speeds, balancing experience and safety.
[0050] S104. Adjust the audio signal according to the target audio parameters.
[0051] In one possible approach, target audio parameters can be determined periodically to facilitate adjustment of the audio signal. In another possible approach, to avoid invalid switching, i.e., switching of the same audio signal, in this embodiment, S104 is only executed if the target audio parameters and the current audio parameters are different.
[0052] Based on the defined target audio parameters, the audio signal is adjusted to achieve automatic correlation between the in-vehicle audio mode and the vehicle speed, avoiding the safety hazards and cumbersome operation caused by manual switching by the user.
[0053] As can be seen, in this embodiment, corresponding audio parameters are set for different speed ranges; based on the correspondence between preset speed ranges and audio parameters, the target audio parameters for the vehicle speed range are determined, and the audio parameters and vehicle speed are automatically associated to achieve automatic switching, thereby improving the switching efficiency and ensuring driving safety.
[0054] In one possible implementation of this application, if the audio signal is adjusted directly based on the target audio parameters, it may cause stuttering or sudden changes in timbre. In order to achieve a smooth transition of parameters when switching audio modes, avoid stuttering and sudden changes in timbre, and ensure a consistent experience, in this application embodiment, adjusting the audio signal according to the target audio parameters includes: adjusting the audio signal according to the target audio parameters using a parameter smoothing transition algorithm.
[0055] When the target audio parameters differ from the current audio parameters—that is, when the vehicle's speed range differs from the previous vehicle's speed range, resulting in speed range switching—a parameter smoothing transition algorithm can be activated. This algorithm linearly adjusts the noise reduction intensity, reverberation depth, and ambient sound ratio within a preset time, preventing abrupt parameter changes.
[0056] Specifically, when the vehicle speed changes across a range (e.g., from a low speed of 28 km / h to a medium speed of 32 km / h), the adaptive switching control module immediately initiates a smooth switching process;
[0057] A linear interpolation algorithm is used to separate the current audio parameters and target audio parameters along the time dimension. A preset transition period is set, and the audio parameters are gradually adjusted in 100ms increments. Example: When switching from low speed (80% noise reduction intensity) to medium speed (60% noise reduction intensity), with a transition period of 1 second (10 x 100ms increments), the noise reduction intensity is reduced by 2% every 100ms (80%→78%→76%→…→60%), avoiding abrupt parameter changes. This smooth switching simultaneously affects noise reduction intensity, reverberation depth, and ambient sound mixing ratio, ensuring a synchronized transition among the three and preventing tonal gaps caused by sudden changes in a single parameter.
[0058] Furthermore, if the user has previously made manual adjustments to the target range (such as adjusting the proportion of medium-speed ambient sound from 30% to 25%), the system will use the "user preference value" as the target parameter and transition according to the same linear interpolation logic, taking into account both smoothness and personalization.
[0059] As can be seen, in this embodiment of the application, a parameter smoothing transition algorithm is introduced when adjusting according to the target audio parameters; this ensures that the audio parameters do not jump from one value to another instantaneously, but transition to the new target value in a smooth and gradual manner, which greatly improves the smoothness and naturalness of the audio adjustment process, making the switching of audio experience seamless and not easily noticed by the user.
[0060] One possible implementation of this application embodiment is to adjust an audio signal according to target audio parameters, including: obtaining user adjustment information, wherein the user adjustment information represents adjustment information for any one or more dimension parameters in the target audio parameters; determining the final target audio parameters according to the user adjustment information and the target audio parameters; and adjusting the audio signal according to the final target audio parameters.
[0061] The user adjustment information can be an adjustment command issued by the user, which includes the required adjustment value for one or more dimensions of the target audio parameters. Alternatively, the user adjustment information can be the user's preferred audio parameter value for a target speed range. In the actual parameter tuning process, the corresponding relationship can be directly modified so that the target audio parameter retrieved is the user's preferred value. Or, the user adjustment information can be stored separately so that after obtaining the target audio parameters, if the target parameter matches the speed range corresponding to the stored user adjustment information, it can be directly replaced to obtain the final target audio parameters for audio signal adjustment.
[0062] As can be seen, in this embodiment of the application, the determined target audio parameters can also be dynamically adjusted based on user adjustment information, which can meet the needs of different people in a differentiated manner and improve the user experience.
[0063] One possible implementation of this application embodiment is to obtain the vehicle speed by: obtaining an initial vehicle speed; filtering abnormal fluctuation data of the initial vehicle speed to obtain the vehicle speed.
[0064] Abnormal fluctuation data refers to abrupt data points in a data sequence caused by signal transmission interference, momentary sensor malfunctions, electromagnetic noise, etc., such as sudden extremely high or low speed values during smooth driving. The initial vehicle speed is read and parsed from the CAN bus interface. Optionally, a fixed-length sliding window (e.g., containing the most recent 5 data points) and a maximum acceleration threshold (e.g., ±10 m / s²) are set. Whenever a new initial speed data arrives, its instantaneous acceleration is calculated by comparing it with the previous valid speed value within the window. The absolute value of this acceleration is then checked against the preset threshold: if it does not exceed the threshold, the data is considered valid, added to the window, and the window mean is updated as the output; if it exceeds the threshold, it is considered an abnormal fluctuation, the point is discarded, and the previous valid value or the window mean is used as the current output. Optionally, a fixed-length sliding window (usually an odd number of lengths, such as 5 or 7) is set; whenever a new initial speed data arrives, it is included in the window, and the window slides forward one position; all data points in the current window are sorted, and the median value after sorting (i.e., the 3rd or 4th data point) is directly taken as the current "vehicle speed" output. Of course, other methods can also be used to filter abnormal fluctuation data, which are not limited in this embodiment.
[0065] As can be seen, in this embodiment of the application, the addition of a data filtering mechanism can filter abnormal fluctuation data, making the obtained vehicle speed more accurate and improving the reliability of audio adjustment.
[0066] In one possible implementation of this application, the target audio parameters include at least: a target ambient sound mixing ratio; correspondingly, it also includes: acquiring external ambient sound data; filtering the external ambient sound data to obtain processed ambient sound; and using the processed ambient sound to mix with the audio signal according to the target ambient sound mixing ratio.
[0067] In this embodiment, a high-sensitivity microphone can be used to collect ambient sounds outside the vehicle; an AI filtering algorithm can be used to filter redundant noise (such as high-speed wind noise and low-frequency road friction noise), retain the mid-to-high frequency warning sound of 1000-5000Hz, and then the processed ambient sound and audio signal can be mixed and output to the speaker.
[0068] Specifically, 2-4 MEMS high-sensitivity microphones (e.g., sampling rate ≥48kHz, signal-to-noise ratio ≥60dB) are deployed on the front bumper and exterior rearview mirrors of the vehicle to ensure comprehensive coverage of ambient sounds outside the vehicle; the raw signals collected by the microphones are amplified by a preamplifier circuit (gain 20-30dB) to avoid the loss of weak signals (such as distant warning sounds); "redundant noise" is identified and filtered through AI filtering algorithms, with a focus on eliminating noises with no safety value, such as high-speed wind noise and low-frequency road friction noise (below 200Hz); the algorithm presets the mid-to-high frequency band of 1000-5000Hz as the "safety-critical frequency band", prioritizing the retention of ambient sounds within this frequency band (such as horns from vehicles behind, warning sounds at intersections, and shouts from pedestrians) to ensure that driving safety information is not lost;
[0069] Based on preset parameters for the current speed range (e.g., low-speed ambient sound ratio ≤10%, high-speed 50%-70%), the mixing ratio of "processed ambient sound" and "original audio signal (e.g., music, navigation)" is dynamically adjusted; a digital mixing algorithm is used to fuse the two types of signals to ensure that ambient sound does not mask core audio (e.g., navigation voice), while core audio does not isolate key ambient sound, thus balancing "auditory clarity" and "safety information acquisition".
[0070] Furthermore, the merged audio signal is converted into an analog signal by a digital-to-analog converter (DAC, such as AK4490), and then amplified by a power amplifier to be output to the car speakers. It's understandable that the mixing is soldered in place; if the speed range changes, the mixing ratio will be adjusted synchronously with the smooth switching process (e.g., gradually increasing the proportion of ambient sound at high speeds) to ensure that the mixing effect matches the driving conditions in real time.
[0071] One possible implementation of this application embodiment includes, before determining the target speed range to which the vehicle's driving speed belongs based on a preset speed range, the following steps are taken: obtaining the system operating status; determining whether there is fault information based on the system operating status; if there is no fault information, then determining the target speed range to which the vehicle's driving speed belongs based on the preset speed range; if there is fault information, then using a normal audio adjustment mode.
[0072] The system operating status includes, but is not limited to: the system automatically detects the CAN bus connection status, the microphone working status, and the integrity of the audio module; it may also include: the vehicle speed acquisition module.
[0073] If there is no fault information in the system operation status, then based on the preset speed range provided in the embodiments of this application, the target speed range to which the vehicle travel speed belongs is determined, and based on the correspondence between the preset speed range and the audio parameters, the target audio parameters corresponding to the target speed range are determined; and the audio signal is adjusted according to the target audio parameters.
[0074] If the system's operating status shows fault information, the normal audio adjustment mode will be used. This normal audio adjustment mode does not rely on vehicle speed to dynamically adjust audio parameters, but rather on parameters manually set by the user. This avoids abnormal audio changes caused by incorrect vehicle speed or other fault data, ensuring that basic functions are available.
[0075] As can be seen, in this embodiment, a system self-check and fault handling mechanism is added, providing safety redundancy. When there is no fault information, a speed-based screen adjustment mode can be used, and when there is fault information, a conventional audio adjustment mode is used, thereby improving the reliability of the system.
[0076] One possible implementation of this application embodiment, after determining the target speed range to which the vehicle's driving speed belongs based on a preset speed range, further includes: if the target speed range and the current range are adjacent ranges, then based on the correspondence between the preset speed range and audio parameters, determining the target audio parameters corresponding to the target speed range; if there is a range between the target speed range and the current range, and the speed is increasing, then directly adjusting the audio with the audio parameters corresponding to the maximum speed range to ensure safety to the greatest extent.
[0077] Based on any of the above embodiments, this embodiment provides a specific implementation process.
[0078] The hardware components include:
[0079] The speed signal acquisition unit uses a CAN bus communication chip to establish bidirectional communication with the vehicle ECU, acquire speed data and transmit it to the main control chip, with a communication delay of ≤50ms.
[0080] The audio control unit features an audio processing algorithm on its main chip (based on an ARM Cortex-M7 core with a main frequency of ≥400MHz), and integrates a noise reduction module (using an adaptive filtering algorithm), a spatial audio module (based on the HRTF head-related transfer function), and a mixing module; it also includes an external digital-to-analog converter (DAC, such as AK4490) and a power amplifier to ensure the quality of the audio signal output.
[0081] The ambient sound acquisition unit uses a MEMS high-sensitivity microphone with a sampling rate ≥48kHz and a signal-to-noise ratio ≥60dB. The microphone output signal is transmitted to the main control chip for filtering after passing through a preamplifier circuit (gain 20-30dB).
[0082] The user interaction unit displays the current speed range, audio mode, and key parameters (such as noise reduction intensity and ambient sound ratio) on the in-vehicle central control screen, and supports touch fine-tuning; it also provides physical shortcut keys (such as the "audio mode" button on the steering wheel) to restore the default adaptive mode with one click.
[0083] like Figure 2 As shown, the software flow includes:
[0084] First, the initialization phase: After the vehicle is powered on, the system automatically detects the CAN bus connection status, microphone working status, and audio module integrity. If a fault is found (such as no microphone signal), the central control screen will display "Adaptive mode is temporarily unavailable, switch to normal mode".
[0085] Second, the real-time operation phase:
[0086] 1. Speed signal acquisition: Real-time speed is acquired from the ECU every 100ms. Abnormal data that exceeds the normal driving range (such as >200km / h or <-5km / h) are removed, and a stable speed value is output using a moving average algorithm (window size 5).
[0087] 2. Range Judgment and Parameter Calling: The main control chip determines the range based on the stable speed value and calls the corresponding preset parameters; if the user has previously made manual fine-tuning records, the preference value is superimposed (e.g., if the user has adjusted the high-speed ambient sound ratio from 60% to 50%, 50% will be called first this time).
[0088] 3. Smooth switching processing: When the speed switches across intervals, a linear interpolation algorithm is activated to split the target parameter and the current parameter in 100ms steps (e.g., when the noise reduction intensity decreases from 80% to 60%, it decreases by 2% every 100ms) and gradually update the audio processing module parameters to avoid abrupt changes.
[0089] Third, the abnormal handling stage: If the CAN bus is disconnected (speed signal lost), the system will switch to medium speed parameters by default (noise reduction 50%, ambient sound 30%) and display "Speed signal abnormal, audio mode has been adjusted" on the central control screen; if the microphone fails, ambient sound mixing will be automatically turned off, while noise reduction and spatial audio functions will be retained.
[0090] The following describes a device provided by an embodiment of this application. The device described below can be referred to in correspondence with the method described above. The device of this embodiment is installed in an electronic device. Figure 3 , Figure 3 This is a structural block diagram of an apparatus according to one embodiment of the present application, including: a speed signal acquisition module 210 for acquiring vehicle speed; an adaptive switching control module 220 for determining a target speed range to which the vehicle speed belongs based on a preset speed range; determining target audio parameters corresponding to the target speed range based on the correspondence between the preset speed range and audio parameters; and adjusting the audio signal according to the target audio parameters.
[0091] In one possible implementation, the adaptive switching control module 220 is used to: adjust the audio signal using a parameter smoothing transition algorithm based on the target audio parameters.
[0092] In one possible implementation, the adaptive switching control module 220 is used to: acquire user adjustment information, which represents adjustment information for any one or more dimensions of the target audio parameters; determine the final target audio parameters based on the user adjustment information and the target audio parameters; and adjust the audio signal based on the final target audio parameters.
[0093] In one possible implementation, the speed signal acquisition module 210 is used to: acquire the initial vehicle speed; filter abnormal fluctuation data of the initial vehicle speed to obtain the vehicle speed.
[0094] In one feasible approach, the target audio parameters include at least: a target ambient sound mixing ratio; correspondingly, it also includes: an external ambient sound data acquisition module for acquiring external ambient sound data; filtering the external ambient sound data to obtain processed ambient sound; and using the processed ambient sound to mix with the audio signal according to the target ambient sound mixing ratio.
[0095] In one possible implementation, the system further includes: a fault determination module for obtaining the system operating status; determining whether fault information exists based on the system operating status; if no fault information exists, triggering the adaptive switching control module 220; and if fault information exists, adopting the normal audio adjustment mode.
[0096] In one feasible approach, the audio parameters include: noise reduction intensity, reverberation depth, and ambient sound mixing ratio; correspondingly, the audio parameters for the first speed range include: first noise reduction intensity, first reverberation depth, and first ambient sound mixing ratio; the audio parameters for the second speed range include: second noise reduction intensity, second reverberation depth, and second ambient sound mixing ratio; the audio parameters for the third speed range include: third noise reduction intensity, third reverberation depth, and third ambient sound mixing ratio; wherein, the maximum value of the first speed range is less than the minimum value of the second speed range, and the maximum value of the second speed range is less than the minimum value of the third speed range; the minimum value of the first noise reduction intensity is greater than the maximum value of the second noise reduction intensity, and the minimum value of the second noise reduction intensity is greater than the maximum value of the third noise reduction intensity; the maximum value of the first ambient sound mixing ratio is less than the minimum value of the second ambient sound mixing ratio, and the maximum value of the second ambient sound mixing ratio is less than the minimum value of the third ambient sound mixing ratio.
[0097] This application provides an electronic device, such as... Figure 4 As shown, Figure 4 The illustrated electronic device 300 includes: at least one processor 301 ( Figure 4 The image shows one processor 301 and one memory 303. The processor 301 and memory 303 are connected, for example, via a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of this application.
[0098] Processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0099] Bus 302 may include a pathway for transmitting information between the aforementioned components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 302 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0100] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0101] The memory 303 is used to store application code that executes the solution of this application, and its execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the foregoing method embodiments.
[0102] Figure 4 The electronic device described is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0103] This application provides a computer-readable storage medium storing at least one line of program code that, when run on a computer, enables the computer to execute the corresponding content in the aforementioned method embodiments.
[0104] This application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the corresponding content in the aforementioned method embodiments.
[0105] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0106] The above are only some embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. An audio adjustment method, characterized by, The method comprises: obtaining a vehicle speed; determining a target speed interval to which the vehicle speed belongs based on a preset speed interval; determining a target audio parameter corresponding to the target speed interval based on a correspondence between the preset speed interval and the audio parameter; adjusting an audio signal according to the target audio parameter.
2. The audio adjustment method of claim 1, wherein, The method of adjusting an audio signal according to the target audio parameter comprises: adjusting the audio signal using a parameter smooth transition algorithm according to the target audio parameter.
3. The audio adjustment method of claim 1, wherein, The method of adjusting an audio signal according to the target audio parameter comprises: obtaining user adjustment information representing adjustment information of any one or more dimensional parameters in the target audio parameter; determining a final target audio parameter according to the user adjustment information and the target audio parameter; adjusting the audio signal according to the final target audio parameter.
4. The audio adjustment method of claim 1, wherein, The method of obtaining a vehicle speed comprises: obtaining an initial vehicle speed; filtering abnormal fluctuation data of the initial vehicle speed to obtain the vehicle speed.
5. The audio adjustment method of claim 1, wherein, The target audio parameter at least comprises a target ambient sound mixing ratio. Correspondingly, the method further comprises: obtaining external environment sound data; filtering the external environment sound data to obtain processed ambient sound; the processed ambient sound is used to mix the audio signal according to the target ambient sound mixing ratio.
6. The audio adjustment method of claim 1, wherein, Before determining a target speed interval to which the vehicle speed belongs based on a preset speed interval, the method further comprises: obtaining a system running state; determining whether there is fault information based on the system running state; if there is no fault information, performing the step of determining a target speed interval to which the vehicle speed belongs based on a preset speed interval; if there is fault information, adopting a normal audio adjustment mode.
7. The audio adjustment method of any of claims 1-6, wherein, The audio parameter comprises a noise reduction intensity, a reverberation depth, and an ambient sound mixing ratio. Correspondingly, the audio parameter corresponding to the first speed interval comprises a first noise reduction intensity, a first reverberation depth, and a first ambient sound mixing ratio; the audio parameter corresponding to the second speed interval comprises a second noise reduction intensity, a second reverberation depth, and a second ambient sound mixing ratio; and the audio parameter corresponding to the third speed interval comprises a third noise reduction intensity, a third reverberation depth, and a third ambient sound mixing ratio. The maximum value of the first speed interval is less than the minimum value of the second speed interval, and the maximum value of the second speed interval is less than the minimum value of the third speed interval; the minimum value of the first noise reduction intensity is greater than the maximum value of the second noise reduction intensity, and the minimum value of the second noise reduction intensity is greater than the maximum value of the third noise reduction intensity; the maximum value of the first ambient sound mixing ratio is less than the minimum value of the second ambient sound mixing ratio, and the maximum value of the second ambient sound mixing ratio is less than the minimum value of the third ambient sound mixing ratio.
8. An audio adjustment apparatus, characterized by comprising: The method comprises: a speed signal collection module for obtaining a vehicle speed; an adaptive switching control module for determining a target speed interval to which the vehicle speed belongs based on a preset speed interval; determining a target audio parameter corresponding to the target speed interval based on a correspondence between the preset speed interval and the audio parameter; and adjusting an audio signal according to the target audio parameter.
9. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor executes the audio adjustment method of any one of claims 1 to 7 when running the computer program.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one program code, the program code is loaded and executed by the processor to realize the audio adjustment method of any one of claims 1 to 7.