Audio playing method for vehicle, electronic device and program product
By monitoring vehicle driving parameters in real time and processing audio effects, the problem of insufficient interaction between the in-vehicle music system and vehicle driving behavior has been solved, thus improving the driving experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-06
- Publication Date
- 2026-04-07
AI Technical Summary
Existing in-vehicle music systems lack interaction with vehicle driving behavior, resulting in a reduced driving experience.
By monitoring vehicle driving parameters in real time, such as driving speed and steering angle, target audio adjustment parameters are determined, including low-pass filter cutoff frequency, sound field longitudinal drift control parameters, and sound field lateral drift control parameters, and audio effects processing is performed to integrate driving behavior with audio playback.
It integrates driving behavior with audio playback effects, improving the driving experience and enhancing the driver's immersion and enjoyment.
Smart Images

Figure CN121815163A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of intelligent driving technology, specifically to an audio playback method, electronic device, and program product for vehicles. Background Technology
[0002] Currently, in-car music systems allow users to control music playback, pause, song switching, and volume adjustment via physical buttons, touchscreens, or voice commands. However, they primarily focus on music playback and lack interaction with the vehicle's movement, resulting in a diminished driving experience. Summary of the Invention
[0003] In view of this, embodiments of the present disclosure provide an audio playback method, electronic device, and program product for vehicles, to integrate vehicle driving behavior with audio playback and improve the driving experience.
[0004] In a first aspect, this disclosure provides an audio playback method for a vehicle, comprising: Real-time monitoring of vehicle driving parameters, including driving speed information and / or steering angle information; The target audio adjustment parameters are determined based on the driving parameter information, wherein the target audio adjustment parameters include at least one of a low-pass filter cutoff frequency, a sound field longitudinal drift control parameter, and a sound field lateral drift control parameter; the sound field longitudinal drift control parameter is used to control the sound field drift in the vehicle's longitudinal direction; the sound field lateral drift control parameter is used to control the sound field drift in the vehicle's left-right direction. The value of the target audio adjustment parameter is determined based on the driving parameter information, and the audio currently being played is processed with sound effects according to the value of the target audio adjustment parameter.
[0005] Secondly, this disclosure provides an electronic device, including: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores at least one computer program that can be executed by the at least one processor, the at least one computer program being executed by the at least one processor to enable the at least one processor to perform the audio playback method for a vehicle as described in the first aspect.
[0006] Thirdly, this disclosure provides a computer program product, which includes a computer program that, when run in a processor, implements the audio playback method for a vehicle described in the first aspect.
[0007] The embodiments provided in this disclosure monitor vehicle speed and / or steering angle information in real time, and determine target audio adjustment parameters based on the speed and / or steering angle information. These target audio adjustment parameters include at least one of a low-pass filter cutoff frequency, a longitudinal sound field drift control parameter, and a lateral sound field drift control parameter. The values of the target audio adjustment parameters are determined based on the driving parameter information, and the currently played audio is processed according to these values. This achieves a fusion of driving behavior and audio playback effects by controlling the frequency of the played audio through the low-pass filter cutoff frequency, controlling the longitudinal sound field drift of the played audio to drift forward and backward within the vehicle through the longitudinal sound field drift control parameter, and controlling the lateral sound field drift of the audio to drift left and right within the vehicle through the lateral sound field drift control parameter. This enhances the driving experience. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in the embodiments of this disclosure 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 embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0009] Figure 1 The diagram shown is a schematic flowchart of an audio playback method for a vehicle according to an embodiment of this disclosure.
[0010] Figure 2 The diagram shown is a block diagram of an audio playback device for a vehicle according to an embodiment of this disclosure.
[0011] Figure 3 The diagram shown is a structural schematic of an electronic device in an embodiment of this disclosure. Detailed Implementation
[0012] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0013] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.
[0014] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0015] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Words such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.
[0016] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined herein.
[0017] The audio playback method for vehicles provided in this disclosure can be applied to the main controller of a vehicle, or to other terminals that can communicate with the vehicle and / or sensors installed on the vehicle.
[0018] The audio playback method for vehicles provided in this disclosure, such as... Figure 1 As shown, the main steps include: Step 101: Monitor the vehicle's driving parameter information in real time, wherein the driving parameter information includes driving speed information and / or steering angle information.
[0019] For example, real-time driving data is acquired via the vehicle's CAN bus, and the real-time driving data includes driving parameter information.
[0020] The driving speed information includes driving speed change values (such as acceleration values, deceleration values, including lateral acceleration values, lateral deceleration values, longitudinal angular velocity values, and longitudinal deceleration values), and at least one of the driving speed values.
[0021] Steering angle information includes at least one of the steering direction and steering angle value. The steering angle value can be the steering wheel angle value. Steering angle information is represented by both the steering direction and the steering angle value; for example, left turn is represented by a positive sign, right turn by a negative sign, and the steering angle value is 0 or a positive number, where 0 indicates no steering.
[0022] Step 102: Determine the target audio adjustment parameters based on the driving parameter information, wherein the target audio adjustment parameters include at least one of a low-pass filter cutoff frequency, a sound field longitudinal drift control parameter, and a sound field lateral drift control parameter; the sound field longitudinal drift control parameter is used to control the sound field drift in the vehicle's longitudinal direction; the sound field lateral drift control parameter is used to control the sound field drift in the vehicle's left-right direction.
[0023] For example, depending on the driving parameter information, the target audio adjustment parameters may include at least one of the following: low-pass filter cutoff frequency, sound field longitudinal drift control parameters, and sound field lateral drift control parameters.
[0024] When the steering angle value is 0 or less than the angle threshold, or when the steering angle value is not 0 or not less than the angle threshold, the target audio adjustment parameters only include the low-pass filter cutoff frequency to control the frequency of audio playback in order to blend with the acceleration or deceleration driving scenario.
[0025] or When the steering angle value is 0 or less than the angle threshold, or when the steering angle value is not 0 or not less than the angle threshold, the target audio adjustment parameters only include the sound field longitudinal drift control parameters to control the longitudinal drift of the audio playback in order to blend with the acceleration or deceleration driving scenario.
[0026] or When the steering angle value is 0 or less than the angle threshold, or when the steering angle value is not 0 or not less than the angle threshold, the target audio adjustment parameters include both the low-pass filter cutoff frequency and the sound field longitudinal drift control parameters, which control the frequency and longitudinal drift of the audio playback to blend with the acceleration or deceleration driving scenario.
[0027] or When the steering angle is not 0 or not less than the angle threshold, the target audio adjustment parameters may include only the sound field lateral drift control parameters to control the lateral drift of the audio playback in order to blend with the left or right turn driving scenario.
[0028] or When the steering angle is not 0 or not less than the angle threshold, the target audio adjustment parameters include both the sound field lateral drift control parameters and the sound field longitudinal drift control parameters, which control the lateral and longitudinal drift of the audio playback to blend with the driving scenarios of turning left or right, as well as the driving scenarios of acceleration or deceleration.
[0029] or When the steering angle is not 0 or not less than the angle threshold, the target audio adjustment parameters include both the sound field lateral drift control parameters and the low-pass filter cutoff frequency, which control the lateral drift and playback frequency of the audio playback to blend with the driving scenarios of turning left or right, as well as the driving scenarios of acceleration or deceleration.
[0030] or When the steering angle is not 0 or not less than the angle threshold, the target audio adjustment parameters include the longitudinal drift control parameters, the lateral drift control parameters, and the low-pass filter cutoff frequency. These parameters control the longitudinal drift, lateral drift, and playback frequency of the audio playback to blend with the acceleration or deceleration driving scenario and the left or right turn driving scenario.
[0031] It should be noted that in this article, "vertical" refers to the direction of the line connecting the front and rear of the vehicle, with the front of the vehicle extending forward and the parking space extending backward; "horizontal" refers to the direction perpendicular to the line connecting the front of the vehicle and the parking space, with the left side door extending to the left and the right side door extending to the right.
[0032] Step 103: Determine the value of the target audio adjustment parameter based on the driving parameter information, and perform sound effect processing on the currently playing audio according to the value of the target audio adjustment parameter.
[0033] If the target audio adjustment parameters include any one of the low-pass filter cutoff frequency, sound field longitudinal drift control parameters, and sound field lateral drift control parameters, the audio being played will be processed directly according to the target adjustment parameters.
[0034] When the target audio adjustment parameters include at least two of the following parameters: low-pass filter cutoff frequency, sound field longitudinal drift control parameters, and sound field lateral drift control parameters, sound effect processing is applied to the currently playing audio simultaneously according to these at least two parameters. For example, frequency control and longitudinal drift control are performed simultaneously, or frequency control and lateral drift control are performed simultaneously, or frequency control, longitudinal drift control, and lateral drift control are performed simultaneously.
[0035] The following three specific examples illustrate the process of determining the target audio adjustment parameters under three driving conditions. Specific Implementation Example 1 When adjusting the audio frequency based on the steering angle as a single parameter, the following issues arise: at low speeds (e.g., turning in place or making a U-turn), the steering wheel angle is large, and the sound changes are very noticeable. However, at high speeds (e.g., when overtaking on the highway), the driver only needs to slightly turn the steering wheel to complete the lane change and overtake, resulting in a small steering wheel angle. When relying solely on the steering angle to control the audio frequency, the sound changes are minimal and almost imperceptible to the driver. This causes the function of integrating driving behavior with audio to temporarily fail in this scenario, resulting in the inability to provide a sense of driving immersion and feedback.
[0037] To avoid these problems, this specific embodiment uses two driving parameters to simultaneously control the audio frequency: driving speed and steering angle. This ensures that even small-angle turns produce noticeable audio changes when the driving speed is above a speed threshold. A driving speed value greater than the speed threshold indicates that the vehicle is in a medium- or high-speed driving condition.
[0038] The driving parameter information includes driving speed and steering angle values. That is, the audio frequency is controlled by two variables through driving speed and steering angle values. When the vehicle speed is low, the audio frequency is mainly controlled by the steering angle. When the vehicle speed is high, the audio frequency is controlled by both vehicle speed and steering angle. Even a small change in angle will produce a significant change in audio frequency.
[0039] The step of determining the target audio adjustment parameters based on the driving parameter information includes: when the driving speed value is greater than a speed threshold and the steering angle value is not zero, determining that the target audio adjustment parameters include a low-pass filter cutoff frequency. The speed threshold is used to distinguish between low-speed driving conditions and medium-to-high-speed driving conditions. The specific value of the speed threshold can be configured as needed and is not limited here. For example, it can be configured as 60 km / h or 80 km / h, etc.
[0040] The step of determining the value of the target audio adjustment parameter based on the driving parameter information includes: determining an audio adjustment coefficient based on the driving speed value; wherein the audio adjustment coefficient is positively correlated with the driving speed value; and determining a low-pass filter cutoff frequency value for audio playback based on the steering angle value and the audio adjustment coefficient; wherein the low-pass filter cutoff frequency value is positively correlated with the audio adjustment coefficient and the low-pass filter cutoff frequency value is positively correlated with the steering angle value.
[0041] The step of adjusting the low-pass filter cutoff frequency value for audio playback based on the steering angle value and the audio adjustment coefficient includes: querying a pre-configured mapping relationship between the angle value and the cutoff frequency value to obtain the initial cutoff frequency value corresponding to the steering angle value; determining the result obtained by multiplying the initial cutoff frequency value and the audio adjustment coefficient; and determining the low-pass filter cutoff frequency value for audio playback based on the result obtained by multiplication.
[0042] When the driving speed is greater than 0 and less than the maximum preset speed, the audio adjustment coefficient is greater than 1 and less than 2; when the driving speed is equal to the maximum preset speed, the audio adjustment coefficient is equal to 2. This limitation ensures that the low-pass filter cutoff frequency is kept within a certain range, preventing overshoot. Let the maximum preset speed be represented as speed. max The real-time monitored driving speed value is represented as param speed The audio adjustment coefficient is then expressed as: 1 + MIN(param speed speed max ) / speed max .
[0043] When a vehicle is in motion and a turn signal is applied, the low-pass filter cutoff frequency increases proportionally with vehicle speed. A higher low-pass filter cutoff frequency indicates more high-frequency components in the audio playback during turning, resulting in a brighter timbre. The low-pass filter cutoff frequency can be expressed as: Param steer =Param steer-origin (1+MIN(param speed speed max ) / speed max ) ratio steer ; Param steer-origin This indicates that the mapping relationship between pre-configured angle values and cutoff frequency values is queried to obtain the initial cutoff frequency value corresponding to the steering angle value; ratio steer This indicates a preset ratio value, which is a pre-configured ratio. The higher the vehicle speed, the higher the Param value. steer The greater the increase, the more sensitive it is to changes in steering angle.
[0044] A higher cutoff frequency allows more high-frequency components to pass through the filter, resulting in more high-frequency components in the played audio. The sound changes from "dull, heavy, and with a lot of low frequencies" (like a veil) to "clear, bright, and penetrating" (like the veil has been lifted). In the tense and exciting moment of high-speed overtaking, the brightness of the sound is highly synchronized with the driver's flow state, greatly enhancing driving confidence, enjoyment, and immersion. Specific Implementation Example 2 For vehicle acceleration or deceleration, the system achieves the effect of a 3D spatial sound field drifting back and forth with the speed, deeply integrating the sound field with the vehicle's acceleration and deceleration to create a highly immersive auditory experience.
[0046] In this specific embodiment, a unit spherical coordinate system is defined, the origin of which is the center point of the vehicle or the center point of the unit sphere, approximately the center of the passenger cabin. The X-axis is the horizontal axis, in the horizontal direction, with left (the direction of the left door extension) being negative and right (the direction of the right door extension) being positive; the Y-axis is the vertical axis, in the front-to-back direction, with front (the direction of the front of the vehicle extension) being positive and back (the direction of the rear of the vehicle extension) being negative; the Z-axis is the vertical axis, in the vertical direction, with top being positive (the upper half of the passenger compartment) and bottom (the lower half of the vehicle) being negative.
[0047] The vehicle is equipped with multiple speakers. The conventional speakers are located in the positive half of the Z-axis space, i.e., the upper half of the passenger compartment, such as above the headrests, dashboard, and door panels. The subwoofer is typically located in the negative half of the Z-axis space, i.e., the lower half of the passenger compartment, such as in the trunk and chassis. During sound field drift, considering the omnidirectional nature of the subwoofer, no adjustments are made here to ensure the stability of low-frequency sound effects. Forward / backward drift and left / right drift primarily target the conventional speakers located in the upper half of the passenger compartment. Here, "conventional speakers" refers to all speakers typically installed in a vehicle except for the subwoofer.
[0048] In practice, moving the sound field forward can be achieved by moving the speaker that emits sound forward, and moving the sound field backward can be achieved by moving the speaker that emits sound backward. For example, if the original speaker that emits sound is located at the headrest position, it can be changed to the position of the dashboard position to achieve moving the sound field forward; if the original speaker that emits sound is located at the dashboard position, it can be changed to the position of the headrest position to achieve moving the sound field backward.
[0049] The driving parameter information includes speed change values, which are positive when the vehicle accelerates and negative when the vehicle decelerates.
[0050] Determining the target audio adjustment parameters based on the driving parameter information includes: when the speed change value is not zero, determining that the target audio adjustment parameters include sound field longitudinal drift control parameters. As long as the driving parameter information includes acceleration or deceleration information, the sound field longitudinal drift can be controlled to achieve the effect of sound field forward and backward drift.
[0051] The step of determining the value of the target audio adjustment parameter based on the driving parameter information includes: calculating the product of the speed change value and the longitudinal scaling factor of the sound field in real time to obtain the longitudinal drift adjustment value of the sound field; and superimposing the corresponding longitudinal drift adjustment value on the initial longitudinal drift control value in real time to obtain the target longitudinal drift control value.
[0052] The initial longitudinal drift control value can be the longitudinal reference value when there is no longitudinal drift in the sound field. Based on this reference value, the audio playback is controlled, and there is no front-to-back drift effect. The sound field is located at the positive and negative boundary of the vehicle's Y-axis.
[0053] The longitudinal scaling factor of the sound field can be a pre-configured set value, which can be negative. When the speed change information indicates that the vehicle is gradually accelerating, the target longitudinal drift control value is used to control the sound field to drift from front to back; when the speed change information indicates that the vehicle is gradually decelerating, the target longitudinal drift control value is used to control the sound field to drift from back to front.
[0054] The formula can be expressed as: Param l_new =Param l_origial +Param acc ratio l ; Param l_new Param represents the target longitudinal drift control value. l_origial Param represents the initial longitudinal drift control value. acc The ratio represents the change in velocity. l Param represents the longitudinal scaling factor of the sound field and is a negative value. acc A positive value indicates vehicle acceleration. The vertical direction of the sound element remains unchanged, while the ordinate value decreases. The sound element's movement path changes from front to back, and the speaker's emitting direction changes from front to back, shifting the sound field backward. acc A negative value indicates vehicle deceleration. The vertical direction of the sound element remains unchanged, the ordinate value increases, the sound element's movement path changes from back to front, the speaker's sound emission direction changes from back to front, and the sound field shifts forward. l The absolute value is used to control the degree of sound field drift. Specific Implementation Example 3 For driving conditions where the vehicle is turning left or right, a 3D spatial sound field is created that drifts left or right with the speed. This is achieved by adjusting the lateral virtual position offset of the sound field. When the vehicle is turning, the audio and the centrifugal force sensation match the auditory experience, further enhancing the driving immersion.
[0056] Similarly, in this specific embodiment, a unit spherical coordinate system is defined, the origin of which is the center point of the vehicle or the center point of the unit sphere, approximately the center of the passenger cabin. The X-axis is the horizontal axis, in the horizontal direction, with left (the direction of the left door extension) being negative and right (the direction of the right door extension) being positive; the Y-axis is the vertical axis, in the front-to-back direction, with front (the direction of the front of the vehicle extension) being positive and back (the direction of the rear of the vehicle extension) being negative; the Z-axis is the vertical axis, in the vertical direction, with top being positive (the upper half of the passenger compartment) and bottom (the lower half of the vehicle) being negative.
[0057] The vehicle is equipped with multiple speakers. The conventional speakers are located in the positive half of the Z-axis space, i.e., the upper half of the passenger compartment, such as above the headrests, dashboard, and door panels. The subwoofer is typically located in the negative half of the Z-axis space, i.e., the lower half of the passenger compartment, such as in the trunk and chassis. During sound field drift, considering the omnidirectional nature of the subwoofer, no adjustments are made here to ensure the stability of low-frequency sound effects. Forward / backward drift and left / right drift primarily target the conventional speakers located in the upper half of the passenger compartment. Here, "conventional speakers" refers to all speakers typically installed in a vehicle except for the subwoofer.
[0058] When the sound field is shifted to the left, it can be achieved by controlling the speaker that emits sound to move to the left; when the sound field is shifted to the right, it can be achieved by controlling the speaker that emits sound to move to the right. For example, if the original speaker that emits sound is located at the headrest position, it can be changed to the left door position to achieve a left shift of the sound field; if the original speaker that emits sound is located at the headrest position, it can be changed to the right door position to achieve a right shift of the sound field.
[0059] The driving parameter information includes steering direction and steering angle values. Steering direction includes left turn or right turn. A steering angle value greater than 0 indicates that the vehicle is in the process of turning left or right.
[0060] Determining the target audio adjustment parameters based on the driving parameter information includes: when the steering angle value is not 0, determining that the target audio adjustment parameters include sound field lateral drift control parameters. As long as the driving parameter information includes left or right turn information, the sound field lateral drift can be controlled to achieve the effect of left-right drifting of the sound field.
[0061] The step of determining the target audio adjustment parameter value based on the driving parameter information includes: calculating in real time the product of the steering angle value and the sound field lateral scaling factor to obtain the sound field lateral drift adjustment value; and, based on the steering direction, adding or subtracting the corresponding lateral drift adjustment value in real time from the initial lateral drift control value to obtain the target lateral drift control value. When the steering direction and steering angle value indicate a left turn of the vehicle, the target lateral drift control value is used to control the sound field to drift to the right; when the steering direction and steering angle value indicate a right turn of the vehicle, the target lateral drift control value is used to control the sound field to drift to the left.
[0062] The initial lateral drift control value can be the lateral reference value when there is no lateral drift in the sound field. Based on this reference value, the audio playback is controlled, and there is no left or right drift effect. The sound field is located at the positive and negative boundary of the vehicle's X-axis.
[0063] The sound field lateral scaling factor can be a pre-configured setting value. This sound field lateral scaling factor can be a positive value. The turning angle value when turning left is a positive value, and the turning angle value when turning right is a negative value. This makes the sound field lateral drift adjustment value positive when turning left and negative when turning right.
[0064] When the vehicle turns left, the corresponding lateral drift adjustment value is added in real time to the initial lateral drift control value, and gradually increased to control the sound field to drift from left to right; when the vehicle turns right, the corresponding lateral drift adjustment value is subtracted in real time to the initial lateral drift control value, and gradually decreased to control the sound field to drift from right to left.
[0065] The formula can be expressed as: Param h_new =Param h_origial +Param steer ratio h ; Param h_new Param represents the target lateral drift control value. h_origial Param represents the initial lateral drift control value. steer The ratio represents the steering angle value. h Param represents the transverse scaling factor of the sound field and is a positive value. steer A positive value indicates a left turn by the vehicle. The vertical direction of the sound element remains unchanged, while the horizontal coordinate value increases. The sound element's movement path changes from left to right, and the speaker's emitting direction changes from left to right, shifting the sound field to the right. steer A negative value indicates that the vehicle is turning right. The vertical direction of the sound element remains unchanged, the vertical coordinate value decreases, the sound element's movement path changes from right to left, the sound source direction of the speaker corresponding to the sound element changes from right to left, and the sound field shifts to the left. h The absolute value is used to control the degree of sound field drift.
[0066] The embodiments provided in this disclosure monitor vehicle speed and / or steering angle information in real time, and determine target audio adjustment parameters based on the speed and / or steering angle information. These target audio adjustment parameters include at least one of a low-pass filter cutoff frequency, a longitudinal sound field drift control parameter, and a lateral sound field drift control parameter. The values of the target audio adjustment parameters are determined based on the driving parameter information, and the currently played audio is processed according to these values. This achieves a fusion of driving behavior and audio playback effects by controlling the frequency of the played audio through the low-pass filter cutoff frequency, controlling the longitudinal sound field drift of the played audio to drift forward and backward within the vehicle through the longitudinal sound field drift control parameter, and controlling the lateral sound field drift of the audio to drift left and right within the vehicle through the lateral sound field drift control parameter. This enhances the driving experience.
[0067] It is understood that the various method embodiments mentioned above in this disclosure can be combined with each other to form combined embodiments without violating the principle and logic. Due to space limitations, this disclosure will not elaborate further. Those skilled in the art will understand that in the above methods of specific implementation, the specific execution order of each step should be determined by its function and possible internal logic, and the execution order between steps is not limited to implementation according to step number.
[0068] In addition, this disclosure also provides apparatus, electronic equipment, and computer program products, all of which can be used to implement any of the audio playback methods for vehicles provided in this disclosure. The corresponding technical solutions and descriptions are described in the corresponding descriptions in the method section and will not be repeated here.
[0069] Figure 2 This is a block diagram of an audio playback device for a vehicle provided in an embodiment of the present disclosure. The audio playback device for a vehicle mainly includes: The detection module 201 is used to monitor the vehicle's driving parameter information in real time, wherein the driving parameter information includes driving speed information and / or steering angle information; The determining module 202 is used to determine target audio adjustment parameters based on the driving parameter information, wherein the target audio adjustment parameters include at least one of a low-pass filter cutoff frequency, a sound field longitudinal drift control parameter, and a sound field lateral drift control parameter; the sound field longitudinal drift control parameter is used to control the sound field to drift in the vehicle's longitudinal direction; the sound field lateral drift control parameter is used to control the sound field to drift in the vehicle's left-right direction. The processing module 203 is used to determine the value of the target audio adjustment parameter based on the driving parameter information, and to perform sound effect processing on the currently playing audio according to the value of the target audio adjustment parameter.
[0070] Figure 3 This is a block diagram of an electronic device provided in an embodiment of the present disclosure.
[0071] This disclosure provides an electronic device including: at least one processor 301; at least one memory 302; and one or more I / O interfaces 303 connected between the processor 301 and the memory 302; wherein the memory 302 stores one or more computer programs that can be executed by the at least one processor 301, and the one or more computer programs are executed by the at least one processor 301 to enable the at least one processor 301 to perform the above-described audio playback method for a vehicle.
[0072] The modules in the aforementioned electronic devices can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0073] This disclosure also provides a computer program product, including a computer program that, when run in a processor, implements the above-described audio playback method for vehicles.
[0074] The computer program may be stored on a readable storage medium of a computer device or in the cloud; the processor of the computer device reads the computer program from the readable storage medium or in the cloud.
[0075] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically manifested as a computer storage medium; in another optional embodiment, the computer program product is specifically manifested as a software product, such as a software development kit (SDK), etc.
[0076] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).
[0077] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0078] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0079] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0080] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0081] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0082] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0083] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0084] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0085] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications or equivalent substitutions made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. An audio playback method for a vehicle, characterized in that, include: Real-time monitoring of vehicle driving parameters, including driving speed information and / or steering angle information; The target audio adjustment parameters are determined based on the driving parameter information, wherein the target audio adjustment parameters include at least one of a low-pass filter cutoff frequency, a sound field longitudinal drift control parameter, and a sound field lateral drift control parameter; the sound field longitudinal drift control parameter is used to control the sound field drift in the vehicle's longitudinal direction; the sound field lateral drift control parameter is used to control the sound field drift in the vehicle's left-right direction. The value of the target audio adjustment parameter is determined based on the driving parameter information, and the audio currently being played is processed with sound effects according to the value of the target audio adjustment parameter.
2. The method according to claim 1, characterized in that, The driving parameter information includes driving speed and steering angle values; The step of determining the target audio adjustment parameter based on the driving parameter information includes: when the driving speed value is greater than a speed threshold and the steering angle value is not zero, determining that the target audio adjustment parameter includes a low-pass filter cutoff frequency; the driving speed value being greater than the speed threshold indicates that the vehicle is in a medium-speed or high-speed driving condition. The step of determining the value of the target audio adjustment parameter based on the driving parameter information includes: determining an audio adjustment coefficient based on the driving speed value; wherein the audio adjustment coefficient is positively correlated with the driving speed value; and determining a low-pass filter cutoff frequency value for audio playback based on the steering angle value and the audio adjustment coefficient; wherein the low-pass filter cutoff frequency value is positively correlated with the audio adjustment coefficient and the low-pass filter cutoff frequency value is positively correlated with the steering angle value.
3. The method according to claim 2, characterized in that, The step of adjusting the low-pass filter cutoff frequency value for audio playback based on the steering angle value and the audio adjustment coefficient includes: Query the mapping relationship between the pre-configured angle value and the cutoff frequency value to obtain the initial cutoff frequency value corresponding to the steering angle value; Determine the result obtained by multiplying the initial cutoff frequency value by the audio adjustment coefficient; The low-pass filter cutoff frequency value for audio playback is determined based on the product.
4. The method according to claim 3, characterized in that, When the driving speed value is greater than 0 and less than the maximum preset speed value, the audio adjustment coefficient is greater than 1 and less than 2; When the driving speed value is equal to the maximum preset speed value, the audio adjustment coefficient is equal to 2.
5. The method according to claim 1, characterized in that, The driving parameter information includes speed change values, which are positive when the vehicle accelerates and negative when the vehicle decelerates. The step of determining the target audio adjustment parameters based on the driving parameter information includes: when the speed change value is not 0, determining that the target audio adjustment parameters include sound field longitudinal drift control parameters; Determining the value of the target audio adjustment parameter based on the driving parameter information includes: The product of the velocity change value and the longitudinal scaling factor of the sound field is calculated in real time to obtain the longitudinal drift adjustment value of the sound field; the corresponding longitudinal drift adjustment value is superimposed in real time on the initial longitudinal drift control value to obtain the target longitudinal drift control value.
6. The method according to claim 5, characterized in that, When the speed change information indicates that the vehicle is gradually accelerating, the target longitudinal drift control value is used to control the sound field to drift from front to back; When the speed change information indicates that the vehicle is gradually decelerating, the target longitudinal drift control value is used to control the sound field to drift from back to front.
7. The method according to claim 1, characterized in that, The driving parameter information includes steering direction and steering angle values; The step of determining the target audio adjustment parameters based on the driving parameter information includes: when the steering angle value is not 0, determining that the target audio adjustment parameters include sound field lateral drift control parameters; Determining the value of the target audio adjustment parameter based on the driving parameter information includes: The product of the steering angle value and the sound field lateral scaling factor is calculated in real time to obtain the sound field lateral drift adjustment value; based on the steering direction, the corresponding lateral drift adjustment value is superimposed or subtracted in real time from the initial lateral drift control value to obtain the target lateral drift control value.
8. The method according to claim 7, characterized in that, When the steering direction and the steering angle value indicate that the vehicle is turning left, the target lateral drift control value is used to control the sound field to drift to the right; When the steering direction and the steering angle value indicate that the vehicle is turning right, the target lateral drift control value is used to control the sound field to drift to the left.
9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores at least one computer program that can be executed by the at least one processor, the at least one computer program being executed by the at least one processor to enable the at least one processor to perform the audio playback method for a vehicle as described in any one of claims 1-8.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when run in a processor, implements the audio playback method for a vehicle as described in any one of claims 1-8.