CN117135535A - In-vehicle sound field control method, electronic device and readable storage medium - Google Patents

In-vehicle sound field control method, electronic device and readable storage medium Download PDF

Info

Publication number
CN117135535A
CN117135535A CN202311269562.1A CN202311269562A CN117135535A CN 117135535 A CN117135535 A CN 117135535A CN 202311269562 A CN202311269562 A CN 202311269562A CN 117135535 A CN117135535 A CN 117135535A
Authority
CN
China
Prior art keywords
vehicle
acceleration
sound
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311269562.1A
Other languages
Chinese (zh)
Inventor
从宁
马俊威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weifang Geldanna Electronic Technology Co ltd
Original Assignee
Weifang Geldanna Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weifang Geldanna Electronic Technology Co ltd filed Critical Weifang Geldanna Electronic Technology Co ltd
Priority to CN202311269562.1A priority Critical patent/CN117135535A/en
Publication of CN117135535A publication Critical patent/CN117135535A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The application discloses an in-vehicle sound field control method, electronic equipment and a readable storage medium, which relate to the technical field of vehicles and are applied to a target vehicle, wherein a plurality of sound players are arranged in the target vehicle; determining target playing parameters of each sound player according to the running acceleration; and adjusting the playing parameters of the sound players to the target playing parameters so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction. The application solves the problem that in the prior art, the driving experience of a driver is poor because the driver cannot feel the acceleration sense and the deceleration sense of the vehicle in a hearing sense.

Description

In-vehicle sound field control method, electronic device and readable storage medium
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to an in-vehicle sound field control method, an electronic device, and a readable storage medium.
Background
With the continuous development of technology and the continuous increase of the use demands of automobiles in the daily life of people, vehicles become more and more intelligent.
Currently, in order to improve the driving experience of a driver from the sense of hearing, a virtual sound wave technology is generally introduced into a vehicle to simulate the engine sound of an engine in the running process of the vehicle through the sound effect of the set engine sound, so that the driver can determine the current running state of the vehicle through the magnitude of the heard engine sound when accelerating or decelerating the vehicle. However, this method can only let the driver know whether the vehicle is in an acceleration state or a deceleration state, but cannot make the driver feel the acceleration feeling and the deceleration feeling of the vehicle realistically in an audible sense, resulting in poor driving experience of the driver.
Disclosure of Invention
The application mainly aims to provide an in-vehicle sound field control method, an in-vehicle sound field control device, electronic equipment and a readable storage medium, and aims to solve the technical problem that driving experience of a driver is poor because the driver cannot feel acceleration sense and deceleration sense of the vehicle in a hearing sense truly in the prior art.
In order to achieve the above object, the present application provides an in-vehicle sound field control method applied to a target vehicle, the inside of the target vehicle being provided with a plurality of sound players, the in-vehicle sound field control method comprising:
Acquiring the running acceleration of the target vehicle and acquiring the acceleration direction of the running acceleration;
determining target playing parameters of each sound player according to the running acceleration;
and adjusting the playing parameters of the sound players to the target playing parameters so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction.
Optionally, the target playing parameter includes a target playing volume;
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
determining an acceleration interval in which the running acceleration is located;
determining a target volume coefficient corresponding to each sound player in the acceleration interval;
and calculating the product of the current playing volume of each sound player and the target volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
Optionally, the step of determining a target volume coefficient corresponding to each sound player in the acceleration interval includes:
for any sound player, under the condition that the running acceleration is smaller than a first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a first preset coefficient relation corresponding to the running acceleration and the sound player;
Under the condition that the running acceleration is larger than the first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a second preset coefficient relation corresponding to the running acceleration and the sound player;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
Optionally, the step of determining a target volume coefficient corresponding to each sound player in the acceleration interval includes:
for any one of the sound players, taking a first preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
under the condition that the running acceleration is larger than the first preset acceleration threshold, taking a second preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
Optionally, the target playing parameter includes a target playing volume;
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
determining an acceleration interval in which the running acceleration is located;
determining a regional volume coefficient corresponding to the acceleration interval of the in-vehicle region where each sound player is positioned;
and calculating the product of the current playing volume of each sound player and the regional volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
Optionally, the step of determining the volume coefficient of the area in the vehicle where each sound player is located, corresponding to the acceleration interval, includes:
for an in-vehicle region where any one of the sound players is located, calculating a region volume coefficient corresponding to the in-vehicle region according to a third preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is smaller than a first preset acceleration threshold;
calculating a regional volume coefficient corresponding to the in-vehicle region according to a fourth preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is greater than the first preset acceleration threshold;
And under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
Optionally, the step of determining the volume coefficient of the area in the vehicle where each sound player is located, corresponding to the acceleration interval, includes:
for an in-vehicle area where any one of the sound players is located, taking a third preset volume coefficient corresponding to the in-vehicle area as the area volume coefficient under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
taking a fourth preset volume coefficient corresponding to the in-vehicle region as the region volume coefficient under the condition that the running acceleration is larger than the first preset acceleration threshold value;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
Optionally, the target playing parameter includes a target playing pitch;
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
acquiring initial play pitch of each sound player;
And according to the initial playing pitch and the running acceleration, obtaining the target playing pitch of each sound player through Doppler speed operation.
Optionally, after the step of adjusting the playing parameters of each of the sound players to the target playing parameters, the in-vehicle sound field control method further includes:
acquiring the running acceleration of the target vehicle in the next time step;
and resetting the playing parameters of each sound player back to the initial playing parameters based on the first preset resetting time length under the condition that the running acceleration of the next time step is equal to the first preset acceleration threshold value.
Optionally, after the step of adjusting the playing parameters of each of the sound players to the target playing parameters, the in-vehicle sound field control method further includes:
if the running acceleration is equal to a second preset acceleration threshold value, acquiring the maintenance duration of the target vehicle for maintaining the running acceleration, wherein the second preset acceleration threshold value is larger than the first preset acceleration threshold value;
and if the maintenance time length is greater than or equal to the preset maintenance time length threshold value, resetting the playing parameters of each sound player back to the initial playing parameters based on a second preset resetting time length.
Optionally, the in-vehicle sound field control method further includes:
acquiring in-vehicle space information of the target vehicle and acquiring playing audio signals of each sound player;
and carrying out convolution operation on the playing audio signals of the sound players and the in-vehicle space information so as to adjust the playing parameters of the sound players to the target playing parameters.
In addition, in order to achieve the above object, the present application provides an in-vehicle sound field control apparatus applied to a target vehicle in which a plurality of sound players are provided, the in-vehicle sound field control apparatus comprising:
the acquisition module is used for acquiring the running acceleration of the target vehicle and acquiring the acceleration direction of the running acceleration;
the determining module is used for determining target playing parameters of each sound player according to the running acceleration;
and the control module is used for adjusting the playing parameters of the sound players to the target playing parameters so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction.
In addition, in order to achieve the above object, the present application further provides an electronic device, which is an entity device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the in-vehicle sound field control method as described above.
In addition, in order to achieve the above object, the present application also provides a readable storage medium, which is a computer readable storage medium having stored thereon a program for realizing the in-vehicle sound field control method, the program for realizing the in-vehicle sound field control method being executed by a processor to realize the steps of the in-vehicle sound field control method as described above.
In addition, to achieve the above object, the present application also provides a computer program product including a computer program which, when executed by a processor, implements the steps of the in-vehicle sound field control method as described above.
The application provides a sound field control method in a vehicle, which is applied to a target vehicle, wherein a plurality of sound players are arranged in the target vehicle.
Therefore, the application controls the sound field movement in the vehicle through the running acceleration of the vehicle, so that the sound field in the vehicle can be changed along with the change of the running acceleration of the vehicle, and the driver can truly feel the acceleration sense and the deceleration sense of the vehicle in the vehicle through the change of the sound field in the vehicle, for example, the driver can experience the effect of sound backward movement in the vehicle when the vehicle accelerates, the driver can experience the effect of sound forward stagnation in the vehicle when the vehicle decelerates or brakes, and the driving experience of the driver is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device of a hardware running environment according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a target vehicle according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another target vehicle according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of an embodiment of a method for controlling an in-vehicle sound field according to the present application;
FIG. 5 is a schematic diagram of a flying rocker according to an embodiment of the present application;
FIG. 6 is a schematic diagram showing a relationship between a driving acceleration and a volume coefficient according to an embodiment of the present application;
FIG. 7 is a schematic view of a region division of a target vehicle according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating steps of another embodiment of an in-vehicle sound field control method according to the present application;
FIG. 9 is a flowchart illustrating steps of another embodiment of an in-vehicle sound field control method according to the present application;
fig. 10 is a schematic structural diagram of functional modules related to an embodiment of an in-vehicle sound field control device according to the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, fig. 1 is a schematic diagram of a terminal device structure of a hardware running environment according to an embodiment of the present application.
It should be noted that fig. 1 may be a schematic structural diagram of a hardware operating environment of a terminal device. The terminal device of the embodiment of the application can be a target vehicle for executing the sound field control method in the vehicle, and a plurality of sound players are arranged in the target vehicle. In addition, the terminal device in the embodiment of the application can also be a computing unit such as a PC, a smart phone, a tablet and the like which are connected with the target vehicle.
It should be understood that, depending on the different design requirements of the practical application, the terminal device according to the embodiment of the present application may of course also be other devices or apparatus modules, for example, the terminal device may specifically be a mobile or non-mobile terminal device such as a data storage control terminal or a portable computer.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the terminal device, and may include more or less components than illustrated, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and an in-vehicle sound field control program may be included in the memory 1005 as one type of storage medium.
In the terminal device shown in fig. 1, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; in the embodiment of the present application, the processor 1001 and the memory 1005 may be provided in the terminal device.
Based on this, the terminal apparatus calls the in-vehicle sound field control program stored in the memory 1005 by the processor 1001, and performs the following operations:
acquiring the running acceleration of the target vehicle and acquiring the acceleration direction of the running acceleration;
determining target playing parameters of each sound player according to the running acceleration;
and adjusting the playing parameters of the sound players to the target playing parameters so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction.
Further, the target playing parameters comprise target playing volume;
the processor 1001 calls an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
determining an acceleration interval in which the running acceleration is located;
determining a target volume coefficient corresponding to each sound player in the acceleration interval;
and calculating the product of the current playing volume of each sound player and the target volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
Further, the processor 1001 invokes an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
for any sound player, under the condition that the running acceleration is smaller than a first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a first preset coefficient relation corresponding to the running acceleration and the sound player;
under the condition that the running acceleration is larger than the first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a second preset coefficient relation corresponding to the running acceleration and the sound player;
And under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
Further, the processor 1001 invokes an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
for any one of the sound players, taking a first preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
under the condition that the running acceleration is larger than the first preset acceleration threshold, taking a second preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
Further, the target playing parameters comprise target playing volume;
the processor 1001 calls an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
Determining an acceleration interval in which the running acceleration is located;
determining a regional volume coefficient corresponding to the acceleration interval of the in-vehicle region where each sound player is positioned;
and calculating the product of the current playing volume of each sound player and the regional volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
Further, the processor 1001 invokes an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
for an in-vehicle region where any one of the sound players is located, calculating a region volume coefficient corresponding to the in-vehicle region according to a third preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is smaller than a first preset acceleration threshold;
calculating a regional volume coefficient corresponding to the in-vehicle region according to a fourth preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is greater than the first preset acceleration threshold;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
Further, the processor 1001 invokes an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
for an in-vehicle area where any one of the sound players is located, taking a third preset volume coefficient corresponding to the in-vehicle area as the area volume coefficient under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
taking a fourth preset volume coefficient corresponding to the in-vehicle region as the region volume coefficient under the condition that the running acceleration is larger than the first preset acceleration threshold value;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
Further, the target playing parameters comprise target playing pitch;
the processor 1001 calls an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
acquiring initial play pitch of each sound player;
and according to the initial playing pitch and the running acceleration, obtaining the target playing pitch of each sound player through Doppler speed operation.
Further, the processor 1001 invokes the in-vehicle sound field control program stored in the memory 1005, and after the step of adjusting the playing parameters of each of the sound players to the target playing parameters, further performs the following operations:
acquiring the running acceleration of the target vehicle in the next time step;
and resetting the playing parameters of each sound player back to the initial playing parameters based on the first preset resetting time length under the condition that the running acceleration of the next time step is equal to the first preset acceleration threshold value.
Further, the processor 1001 invokes the in-vehicle sound field control program stored in the memory 1005, and after the step of adjusting the playing parameters of each of the sound players to the target playing parameters, further performs the following operations:
if the running acceleration is equal to a second preset acceleration threshold value, acquiring the maintenance duration of the target vehicle for maintaining the running acceleration, wherein the second preset acceleration threshold value is larger than the first preset acceleration threshold value;
and if the maintenance time length is greater than or equal to the preset maintenance time length threshold value, resetting the playing parameters of each sound player back to the initial playing parameters based on a second preset resetting time length.
Further, the processor 1001 invokes an in-vehicle sound field control program stored in the memory 1005, and also performs the following operations:
acquiring in-vehicle space information of the target vehicle and acquiring playing audio signals of each sound player;
and carrying out convolution operation on each play audio signal and the in-vehicle space information so as to adjust the play parameters of each sound player to the target play parameters.
Based on the terminal equipment, the integral conception of the sound field control method in the vehicle is provided.
With the continuous development of technology and the continuous increase of the use demands of automobiles in the daily life of people, vehicles become more and more intelligent.
Currently, in order to improve the driving experience of a driver from the sense of hearing, a virtual sound wave technology is generally introduced into a vehicle to simulate the engine sound of an engine in the running process of the vehicle through the sound effect of the set engine sound, so that the driver can determine the current running state of the vehicle through the magnitude of the heard engine sound when accelerating or decelerating the vehicle. However, this method can only let the driver know whether the vehicle is in an acceleration state or a deceleration state, but cannot make the driver feel the acceleration feeling and the deceleration feeling of the vehicle realistically in an audible sense, resulting in poor driving experience of the driver.
Aiming at the technical problems, the embodiment of the application provides a method for controlling an in-vehicle sound field. The in-vehicle sound field control method is applied to a target vehicle, a plurality of sound players are arranged in the target vehicle, and the in-vehicle sound field control method can comprise the following steps: acquiring the running acceleration of the target vehicle and acquiring the acceleration direction of the running acceleration; determining target playing parameters of each sound player according to the running acceleration; and adjusting the playing parameters of the sound players to the target playing parameters so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction.
The method for controlling the sound field in the vehicle comprises the steps of firstly determining the current running state of a target vehicle by acquiring the running acceleration of the target vehicle and the acceleration direction of the running acceleration, then determining the target playing parameters of all sound players in the target vehicle by the running acceleration, namely determining the playing parameters which are required to be achieved by all sound players in the current running state of the target vehicle, and then adjusting the playing parameters of all sound players into the target playing parameters so as to control the sound field in the target vehicle to move in the opposite direction of the acceleration direction.
Therefore, the embodiment of the application controls the sound field movement in the vehicle through the running acceleration of the vehicle, so that the sound field in the vehicle can be changed along with the change of the running acceleration of the vehicle, and a driver can truly feel the acceleration sense and the deceleration sense of the vehicle in the vehicle through the change of the sound field in the vehicle, for example, the driver can experience the effect of backward movement of the sound in the vehicle when the vehicle accelerates, the driver can experience the effect of forward stagnation of the sound in the vehicle when the vehicle decelerates or brakes, and the driving experience of the driver is improved.
As an example, referring to fig. 2, the target vehicle may include a sound player A1, a sound player B1, a sound player C1, a sound player D1, a sound player E1, and a sound player F1, the sound player A1 and the sound player B1 being disposed at positions where front-row left and right seats of the target vehicle are located, respectively, the sound player C1 and the sound player D1 being disposed at positions where rear-row left and right seats of the target vehicle are located, respectively, the sound player E1 and the sound player F1 being disposed behind positions where rear-row left and right seats of the target vehicle are located, respectively. As another example, to enhance the control effect of the sound field in the vehicle, two sound players may be added to the trunk position of the target vehicle and one sound player may be provided to the steering wheel position on the basis of the target vehicle of fig. 2. Specifically, referring to fig. 3, the target vehicle may include a sound player A2, a sound player B2, a sound player C2, a sound player D2, a sound player E2, a sound player F2, a sound player G2, a sound player H2, and a sound player J, where the sound player A2 and the sound player B2 are respectively disposed at positions of front left and right seats of the target vehicle, the sound player C2 and the sound player D2 are respectively disposed at positions of rear left and right seats of the target vehicle, the sound player E2 and the sound player F2 are respectively disposed at positions of rear left and right seats of the target vehicle, the sound player G2 and the sound player H2 are respectively disposed at positions of left and right seats of a trunk of the target vehicle, and the sound player J is disposed at positions of a steering wheel of the target vehicle. Note that the present example does not limit the number and positions of sound players provided in the target vehicle.
Based on the above-mentioned overall conception of the terminal device and the in-vehicle sound field control method of the present application, various embodiments of the in-vehicle sound field control method of the present application are further proposed.
Referring to fig. 4, fig. 4 is a flowchart illustrating a first embodiment of an in-vehicle sound field control method according to the present application.
It should be understood that while a logical sequence is shown in the flow chart, in some cases the in-vehicle sound field control method of the present application may of course perform the steps shown or described in a different order than that shown.
Furthermore, the first embodiment of the in-vehicle sound field control method of the present application is applied to the terminal device described above. For clarity of explanation of the in-vehicle sound field control method of the present application, the in-vehicle sound field control method of the present application will be explained hereinafter with one of the terminal devices, the target vehicle, as the execution subject, respectively.
In a first embodiment of the in-vehicle sound field control method of the present application, the in-vehicle sound field control method of the present application may include the steps of:
step S10, acquiring the running acceleration of the target vehicle and acquiring the acceleration direction of the running acceleration;
before the method for controlling the sound field in the vehicle according to the present embodiment is applied to the target vehicle, referring to fig. 5, a flying joystick for flying simulation game may be selected to simulate the driving state of the vehicle, so as to determine parameters (for example, a first preset acceleration threshold, a second preset acceleration threshold, a first preset volume coefficient, a second preset volume coefficient, etc.) that need to be set in a pre-simulation manner. When the flying rocking bar is selected to simulate the running state of the vehicle, four buttons of the flying rocking bar, namely, a front button, a rear button, a left button and a right button, can be set to correspond to the running mode of the vehicle one by one, for example, the flying rocking bar is defined as a w key forwards, and the flying rocking bar is defined as an s key backwards.
The acceleration is a ratio of a change in velocity to a time taken for such a change to occur. The running acceleration refers to a ratio of a change amount of the running speed of the target vehicle to a time taken for such a change amount to occur, and the acceleration direction is used to characterize a change direction of the running speed of the target vehicle, for example, when the target vehicle accelerates forward, the acceleration direction will be forward; when the target vehicle decelerates forward, the acceleration direction will be backward.
The running acceleration of the target vehicle may be acquired in real time or periodically, and the present embodiment is not limited thereto.
Step S20, determining target playing parameters of each sound player according to the running acceleration;
it should be noted that, the sound player may be a device capable of playing sound, such as a speaker, an acoustic device, and a sound box, the target playing parameters refer to playing parameters that the sound player needs to achieve, where the playing parameters may include playing volume, playing speed, playing audio, playing pitch, and the like, the playing parameters that the sound players need to achieve may be different, the playing parameters that the sound players need to achieve may be the same, the playing parameters (playing parameters a) that the sound players need to achieve may be the same, and the playing parameters a and the playing parameters B that the sound players need to achieve may be the same.
Step S30, adjusting the playing parameters of each sound player to the target playing parameters to control the sound field in the target vehicle to move in the opposite direction of the acceleration direction.
In the process of actually adjusting the playing parameters of each sound player, the adjustment is also different according to the focus scene of the in-vehicle hearing of the target vehicle. Taking the structure of the target vehicle shown in fig. 1 as an example, by detecting that the rear-row position of the target vehicle has a scene in which no passenger can set the in-vehicle listening feel, including a scene in which the rear-row position has no passenger and a scene in which the entire vehicle listening feel is concentrated (the rear-row position has passengers), if the target vehicle is in a traveling state in which the target vehicle is in an accelerating state, the playing parameters of the sound player A1 and the sound player B1 will be adjusted to be small, and the playing parameters of the sound player C1, the sound player D1, the sound player E1 and the sound player F1 will be adjusted to be large, so that a person sitting in the front row can feel the effect of the in-vehicle sound rear-movement; in a scene focusing on the hearing of the whole vehicle, assuming that the target vehicle is in a running state of accelerating, the playing parameters of the sound player A1, the sound player B1, the sound player C1 and the sound player D1 will be adjusted to be small, and the playing parameters of the sound player E1 and the sound player F1 will be adjusted to be large, so that both the person sitting in the front row and the person sitting in the rear row can feel the effect of sound backward in the vehicle.
The present embodiment first obtains a running acceleration of a target vehicle and an acceleration direction of the running acceleration to determine a current running state of the target vehicle, then determines a target playing parameter of each sound player in the target vehicle according to the running acceleration, that is, determines a playing parameter that each sound player needs to reach in the current running state of the target vehicle, and then adjusts the playing parameter of each sound player to the target playing parameter to control a sound field in the target vehicle to move in a direction opposite to the acceleration direction. Therefore, the embodiment controls the sound field movement in the vehicle through the running acceleration of the vehicle, so that the sound field in the vehicle can be changed along with the change of the running acceleration of the vehicle, so that a driver can truly feel the acceleration sense and the deceleration sense of the vehicle in the vehicle through the change of the sound field in the vehicle, for example, the driver can experience the effect of sound backward movement in the vehicle when the vehicle accelerates, the driver can experience the effect of sound forward stagnation in the vehicle when the vehicle decelerates or brakes, and the driving experience of the driver is improved.
In one possible implementation manner, the target playing parameters include a target playing volume, and the step of determining the target playing parameters of each sound player according to the running acceleration includes:
Step A21, determining an acceleration section in which the running acceleration is located;
the acceleration range is a range of acceleration.
Step A22, determining a target volume coefficient corresponding to each sound player in the acceleration interval;
it should be noted that, the volume coefficient is used to determine the playing volume of the sound player, where the volume coefficient and the playing volume have a positive correlation, that is, the playing volume is larger as the volume coefficient is larger, the playing volume is smaller as the volume coefficient is smaller, the target volume coefficient is the volume coefficient that needs to be reached by the sound player, the volume coefficients that need to be reached by each sound player may be different, the volume coefficients that need to be reached by some sound players are the same, the volume coefficients that need to be reached by some sound players are different, the volume coefficients that need to be reached by some sound players are the same, and the volume coefficients that need to be reached by other sound players (volume coefficient B) are the same, but the volume coefficient a and volume coefficient B are not limited to this embodiment.
As an example, the step of determining a target volume coefficient corresponding to each sound player in the acceleration interval includes:
Step a221, for any one of the sound players, calculating a target volume coefficient corresponding to the sound player according to a first preset coefficient relation between the running acceleration and the sound player when the running acceleration is smaller than a first preset acceleration threshold;
it should be noted that, the first preset acceleration threshold is used to indicate whether the playing parameters of the sound player need to be adjusted, that is, whether the sound field movement in the target vehicle needs to be controlled. The preset coefficient relation is used for representing the operation relation between the running acceleration and the volume coefficient, and the operation relation can be a linear relation, a nonlinear relation, an exponential relation, a logarithmic relation and the like. The running acceleration may have a positive correlation with the volume coefficient, i.e. the larger the running acceleration the larger the volume coefficient, and the smaller the running acceleration the smaller the volume coefficient; the running acceleration may also have a negative correlation with the volume coefficient, i.e., the larger the running acceleration, the smaller the volume coefficient, and the smaller the running acceleration, the larger the volume coefficient, which is not limited in this example. The first preset coefficient relation is a preset coefficient relation corresponding to an acceleration interval in which the running acceleration of the sound player is smaller than a first preset acceleration threshold value.
Step A222, calculating a target volume coefficient corresponding to the sound player according to a second preset coefficient relation corresponding to the sound player and the running acceleration under the condition that the running acceleration is larger than the first preset acceleration threshold;
the second preset coefficient relation refers to a preset coefficient relation corresponding to an acceleration interval in which the running acceleration of the sound player is greater than the first preset acceleration threshold, and the second preset coefficient relation may be the same preset coefficient relation as the first preset coefficient relation, or may be a different preset coefficient relation, which is not limited in this example.
And step A223, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player under the condition that the running acceleration is equal to the first preset acceleration threshold value.
It should be noted that, the preset initial volume coefficient is used for characterizing that the volume coefficient will not affect the playing volume of the sound player, which can be understood that the playing volume obtained by multiplying the current playing volume of the sound player by the preset initial volume coefficient is the same as the current playing volume.
In this example, for any sound player, if the running acceleration is smaller than a first preset acceleration threshold, which indicates that the playing volume of the sound player needs to be adjusted, the target volume coefficient corresponding to the sound player is calculated by inputting the running acceleration into a first preset coefficient relation corresponding to the sound player; if the running acceleration is larger than a first preset acceleration threshold value, indicating that the playing volume of the sound player needs to be adjusted, calculating to obtain a target volume coefficient corresponding to the sound player by inputting the running acceleration into a second preset coefficient relation corresponding to the sound player; if the running acceleration is equal to a first preset acceleration threshold value, the playing volume of the sound player is not required to be adjusted, and the initial playing volume of the sound player is maintained, and the preset initial volume coefficient is used as a target volume coefficient corresponding to the sound player. Therefore, the present example improves the adaptivity of the sound volume coefficient to the running acceleration by setting the preset coefficient relational expression for characterizing the operation relation of the running acceleration and the sound volume coefficient so as to realize that the sound volume coefficient of each sound player can be adaptively adjusted following the running acceleration, and since the present example is that one running acceleration corresponds to one sound volume coefficient, the adaptivity of the sound volume coefficient to the running acceleration is higher than that in a manner of determining the sound volume coefficient by correlating the acceleration section with the preset sound volume coefficient.
For example, referring to fig. 6, assuming that the first preset acceleration threshold is 64, the preset initial volume coefficient is 1, and the minimum value of the volume coefficient is 0.4 and the maximum value is 2, when the driving acceleration is smaller than the first preset acceleration threshold, the first preset coefficient relation may be obtained as the following formula (1); and when the running acceleration is greater than the first preset acceleration threshold value, a second preset coefficient relation can be obtained as the following formula (2).
/>
Where K is a target volume coefficient and V is a running acceleration of the target vehicle.
As another example, the step of determining a target volume coefficient corresponding to each sound player in the acceleration interval includes:
step B221, regarding any one of the sound players, taking a first preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player when the running acceleration is smaller than a first preset acceleration threshold;
it should be noted that, the preset volume coefficient is a volume coefficient set by the user, and the first preset volume coefficient is a preset volume coefficient corresponding to an acceleration interval in which the running acceleration of the sound player is smaller than the first preset acceleration threshold.
Step B222, taking a second preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player when the running acceleration is greater than the first preset acceleration threshold;
it should be noted that, the second preset volume coefficient refers to a preset volume coefficient corresponding to an acceleration interval where the running acceleration is greater than the first preset acceleration threshold, where the second preset volume coefficient may be equal to the first preset volume coefficient, the second preset volume coefficient may also be greater than the first preset volume coefficient, and the second preset volume coefficient may also be less than the first preset volume coefficient, which is not limited in this example.
And step B223, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player under the condition that the running acceleration is equal to the first preset acceleration threshold value.
In this example, for any sound player, if the running acceleration is smaller than a first preset acceleration threshold, which indicates that the playing volume of the sound player needs to be adjusted, the first preset volume coefficient is used as a target volume coefficient corresponding to the sound player; if the running acceleration is larger than a first preset acceleration threshold value, indicating that the playing volume of the sound player needs to be adjusted, taking the second preset volume coefficient as a target volume coefficient corresponding to the sound player; if the running acceleration is equal to a first preset acceleration threshold value, the playing volume of the sound player is not required to be adjusted, and the initial playing volume of the sound player is maintained, and the preset initial volume coefficient is used as a target volume coefficient corresponding to the sound player. According to the method, different preset volume coefficients are set in different acceleration intervals, so that the preset volume coefficients are associated with the acceleration intervals, the volume coefficients of the sound players can be adjusted in a self-adaptive mode along with the running acceleration, the self-adaptability of the volume coefficients to the running acceleration is improved, and compared with a mode of determining the volume coefficients through a preset coefficient relational expression, the method saves a calculation process, and therefore the efficiency of determining the volume coefficients is higher.
Step A23, calculating the product of the current playing volume of each sound player and the corresponding target volume coefficient of the sound player to obtain the target playing volume of each sound player.
It should be noted that the target play volume refers to a play volume that the sound player needs to reach.
In this embodiment, an acceleration interval in which a running acceleration of a target vehicle is located is first determined, then a target volume coefficient corresponding to each sound player in the acceleration interval is determined, and then a current playing volume of each sound player and a target volume coefficient corresponding to each sound player are calculated, so that a playing volume required to be achieved by each sound player under the running acceleration can be determined.
In one possible implementation manner, the target playing parameters include a target playing volume, and the step of determining the target playing parameters of each sound player according to the running acceleration includes:
Step B21, determining an acceleration section in which the running acceleration is located;
step B22, determining the volume coefficient of the area corresponding to the acceleration interval in the vehicle interior area where each sound player is positioned;
the volume coefficient of the area refers to the volume coefficient that the sound player in the area inside the vehicle needs to reach.
As an example, the step of determining the volume coefficient of the area in the vehicle where each sound player is located, where the area corresponds to the acceleration interval, includes:
step C221, for any in-vehicle region where the sound player is located, calculating a region volume coefficient corresponding to the in-vehicle region according to a third preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is smaller than a first preset acceleration threshold;
the third preset coefficient relation is a preset coefficient relation corresponding to an acceleration interval in which the running acceleration of the vehicle interior region is smaller than the first preset acceleration threshold value.
Step C222, calculating an area volume coefficient corresponding to the in-vehicle area according to a fourth preset coefficient relation between the running acceleration and the in-vehicle area when the running acceleration is larger than the first preset acceleration threshold;
The fourth preset coefficient relation is a preset coefficient relation corresponding to an acceleration interval in which the driving acceleration of the vehicle interior region is greater than the first preset acceleration threshold, and the fourth preset coefficient relation may be the same preset coefficient relation as the third preset coefficient relation, or may be a different preset coefficient relation, which is not limited in this example.
And step C223, taking a preset initial volume coefficient as a region volume coefficient corresponding to the in-vehicle region under the condition that the running acceleration is equal to the first preset acceleration threshold value.
In this example, by setting a preset coefficient relation for representing the operation relation between the running acceleration and the volume coefficient, so as to realize that the volume coefficient of each sound player can be adaptively adjusted along with the running acceleration, the adaptivity of the volume coefficient to the running acceleration is improved.
As another example, the step of determining the volume coefficient of the area in the vehicle where each sound player is located, corresponding to the acceleration interval, includes:
Step D221, regarding any in-vehicle area where the sound player is located, taking a third preset volume coefficient corresponding to the in-vehicle area as the area volume coefficient when the running acceleration is smaller than a first preset acceleration threshold;
the third preset volume coefficient refers to a preset volume coefficient corresponding to an acceleration interval in which the driving acceleration of the vehicle interior region is smaller than the first preset acceleration threshold.
Step D222, taking a fourth preset volume coefficient corresponding to the in-vehicle region as the region volume coefficient when the running acceleration is greater than the first preset acceleration threshold;
it should be noted that, the fourth preset volume coefficient refers to a preset volume coefficient corresponding to an acceleration interval in which the driving acceleration of the vehicle interior area is greater than the first preset acceleration threshold, where the fourth preset volume coefficient may be equal to the third preset volume coefficient, the fourth preset volume coefficient may also be greater than the third preset volume coefficient, and the fourth preset volume coefficient may also be less than the third preset volume coefficient, which is not limited in this example.
And D223, taking a preset initial volume coefficient as a region volume coefficient corresponding to the in-vehicle region under the condition that the running acceleration is equal to the first preset acceleration threshold value.
In this example, different preset volume coefficients are set in different acceleration intervals so as to correlate the preset volume coefficients with the acceleration intervals, so that the volume coefficients of the sound players can be adaptively adjusted along with the running acceleration, the self-adaptability of the volume coefficients to the running acceleration is improved, and compared with a mode of determining the volume coefficients through a preset coefficient relational expression, the efficiency of determining the volume coefficients is higher due to the fact that a calculation process is saved.
And step B23, calculating the product of the current playing volume of each sound player and the corresponding regional volume coefficient of the sound player to obtain the target playing volume of each sound player.
For example, referring to fig. 7, the target vehicle may be divided into six regions, the region volume coefficient for the vehicle interior region a being equal to the product of the volume coefficient of the left door (the volume coefficient output by the system mounted on the left door) and the volume coefficient of the front seat (the volume coefficient output by the system mounted on the middle position of the front seat), the region volume coefficient for the vehicle interior region B being equal to the product of the volume coefficient of the right door (the volume coefficient output by the system mounted on the right door) and the volume coefficient of the front seat, the region volume coefficient for the vehicle interior region C being equal to the product of the volume coefficient of the left door and the volume coefficient of the rear seat (the volume coefficient output by the system mounted on the middle position of the rear seat), the region volume coefficient for the vehicle interior region D being equal to the product of the volume coefficient of the left door and the volume coefficient of the rear seat (the volume coefficient output by the system mounted on the middle position of the rear seat) being equal to the region volume coefficient of the vehicle interior region F being equal to the product of the volume coefficient of the region F and the volume coefficient of the rear seat.
It should be understood that the manner of determining the target volume coefficient in this embodiment is similar to the manner of determining the target volume coefficient in the foregoing embodiment, and the difference is that in this embodiment, the in-vehicle area is associated with the volume coefficient, that is, one in-vehicle area corresponds to one volume coefficient, and one in-vehicle area may include one sound player or may include multiple sound players, where in the foregoing embodiment, the sound player is associated with the volume coefficient, that is, one sound player corresponds to one volume coefficient, so that when the playing volume of each sound player is adjusted using the target volume coefficient determined in this embodiment, the movement effect of the finally generated in-vehicle sound field is better than the effect of using the target volume coefficient determined in the foregoing embodiment, and the naturalness of in-vehicle sound field control can be improved.
In one possible implementation manner, the target playing parameters include a target playing pitch, and the step of determining the target playing parameters of each sound player according to the running acceleration includes:
step C21, obtaining the initial play pitch of each sound player;
it should be noted that, the initial playing pitch refers to an initial pitch of a sound source played by the sound player, and the playing pitch may be actually related to a playing speed of the sound, where the playing speed of the sound is related to a frequency of the sound and a wavelength of the sound.
And step C22, obtaining the target play pitch of each sound player through Doppler speed operation according to each initial play pitch and the running acceleration.
It should be noted that, the target play pitch refers to a play pitch that the sound player needs to reach. The Doppler velocity operation is realized based on the technical principle of Doppler effect, the Doppler effect refers to the change of the wavelength of object radiation caused by the relative motion of a wave source and an observer, for example, when an ambulance is driven on the head, the pitch of whistling sound can rise, and the heard sound can be clearer than the original sound; when the ambulance leaves, the pitch of the whistle sound is reduced, and the sound heard is more harsher than the original sound.
When the Doppler speed operation is utilized to determine the target playing pitch, the playing pitch can be adjusted by adjusting the playing speed, and the playing pitch can also be adjusted by adjusting the playing audio, specifically, when the playing pitch is adjusted by adjusting the playing speed, the operation relation between the running acceleration and the playing speed can be determined by the technical principle of the Doppler effect, and then the target playing speed can be achieved by inputting the running acceleration and the initial playing speed into the operation relation. Assuming that the frequency of sound is pow (u, 2)/(wavelength x (u+v)), where the wavelength may be neglected to be 1, the sound velocity u is 341m/s (the initial playing speed), v is the acceleration, and the acceleration v is equal to (v 0-64) x 2, where v0 is the running acceleration of the target vehicle, 64 is the first preset acceleration threshold, and the adjustment range of v is-128-128, the frequency of sound may be equal to pow (341,2)/(341+v), and the frequency range may be 248-533, so that the operational relation between the running acceleration and the playing speed may be obtained as u/v=341/(248-533) =0.64-1.375.
In this embodiment, first, the initial playing pitch of each sound player is obtained, and then, according to each initial playing pitch and the running acceleration of the target vehicle, the playing pitch that each sound player needs to reach is determined through doppler speed operation. Therefore, this embodiment realizes that the play pitch of each sound player can follow the acceleration of traveling and carry out the adjustment of adaptation through utilizing the technical principle of doppler effect, for example, when the vehicle is accelerated and is advanced, the play sound source can produce the effect of gradually rising frequency, the effect that the pitch is risen gradually to the driver will experience the effect that sound in the car is moved backward, when the vehicle slows down or stops, the play sound source can produce the effect of gradually lowering frequency, the effect that the pitch is reduced gradually, thereby the driver will experience the effect that sound in the car is stagnated forward, and the driving experience of driver has been improved.
In one possible implementation manner, the acceleration detector is disposed in the target vehicle, and the step of acquiring the running acceleration of the target vehicle includes:
step S11 of acquiring a running acceleration of the target vehicle based on the acceleration detector.
The number of the acceleration detectors may be one or plural, and the present embodiment is not limited thereto. It is understood that the number of acceleration detectors is set to a plurality of higher accuracy with respect to the running acceleration set to one acquired target vehicle.
As an example, when a plurality of acceleration detectors are provided inside the target vehicle, the step of acquiring the running acceleration of the target vehicle may include: acquiring sub-running acceleration of the target vehicle based on each acceleration detector; and calculating the average value of all the sub-running accelerations to obtain the running acceleration. May also include: acquiring sub-running acceleration of the target vehicle based on each acceleration detector; summarizing all the sub-running accelerations to obtain an acceleration set; the mode of the acceleration set is selected as the running acceleration, and the present example is not particularly limited as to the manner of determining the running acceleration of the target vehicle based on the plurality of sensors.
Further, based on the first embodiment of the in-vehicle sound field control method of the present application described above, a second embodiment of the in-vehicle sound field control method of the present application is proposed.
Referring to fig. 8, fig. 8 is a flowchart illustrating a second embodiment of an in-vehicle sound field control method according to the present application.
Likewise, the second embodiment of the in-vehicle sound field control method of the present application is also applied to the terminal device described above. The method for controlling the sound field in the vehicle of the present application will be described for clarity, and the method for controlling the sound field in the vehicle of the present application will be described below with a target vehicle, which is one type of the terminal device, as an execution subject.
In a second embodiment of the in-vehicle sound field control method of the present application, after the step of adjusting the playing parameters of each of the sound players to the target playing parameters, the in-vehicle sound field control method of the present application may further include the steps of:
step A40, acquiring the running acceleration of the target vehicle in the next time step;
and step A50, resetting the playing parameters of the sound players back to the initial playing parameters based on the first preset resetting time length under the condition that the running acceleration of the next time step is equal to the first preset acceleration threshold value.
It should be noted that, the preset reset duration refers to a duration that is required to reset the playing parameters of each sound player back to the initial playing parameters, and the first preset reset duration refers to a duration that is required to reset the playing parameters of each sound player back to the initial playing parameters when the running acceleration of the next time step is equal to the first preset acceleration threshold.
In this embodiment, if the running acceleration of the target vehicle at the next time step is equal to the first preset acceleration threshold, it is indicated that the playing parameters of each sound player need to be reset back to the initial playing parameters at this time, and in order to avoid the situation that the sound field in the target vehicle is too sensitive to cause the sound field to change unnaturally, the time period required for resetting the playing parameters of each sound player back to the initial playing parameters needs to be set to the first preset resetting time period, so that the resetting process can be performed slowly, but not rapidly, and thus the driver can feel that the sound field is slowly restored in the vehicle, and the naturalness of the sound field control in the vehicle is improved.
In one possible implementation manner, after the step of adjusting the playing parameters of each sound player to the target playing parameters, the in-vehicle sound field control method further includes:
step B40, if the running acceleration is equal to a second preset acceleration threshold value, acquiring a maintaining time period for maintaining the running acceleration of the target vehicle, wherein the second preset acceleration threshold value is larger than the first preset acceleration threshold value;
the second preset acceleration threshold value refers to a maximum running acceleration that the target vehicle can reach, and the maintaining period refers to a period of time that the target vehicle maintains at the maximum running acceleration.
And step B50, if the maintenance time period is greater than or equal to the preset maintenance time period threshold value, resetting the playing parameters of each sound player back to the initial playing parameters based on a second preset resetting time period.
It should be noted that, the preset duration threshold is used to indicate whether to reset the playing parameters of the sound players, and the second preset reset duration is a duration that is required for resetting the playing parameters of each sound player back to the initial playing parameters when the duration of the target vehicle when the maximum running acceleration reaches the preset duration threshold. In practical use, although the second preset reset period is generally longer than the first preset reset period, the second preset reset period may be equal to or not equal to the first preset reset period, which is not limited in this embodiment.
In this embodiment, if the running acceleration of the target vehicle reaches the maximum value, it is required to determine whether the duration of the running acceleration of the target vehicle maintained at the maximum value reaches the preset duration threshold, if so, it is indicated that the target vehicle is in the state of the maximum running acceleration for a long time, that is, the sound field in the target vehicle is located at the farthest position in the opposite direction of the acceleration for a long time, at this time, the playing parameters of each sound player may be reset back to the initial playing parameters, and in order to avoid the situation that the sound field in the target vehicle is too sensitive to cause unnatural changes in the sound field, the duration required to reset the playing parameters of each sound player back to the initial playing parameters needs to be set to the second preset reset duration, so that the resetting process can be performed slowly, but not rapidly, and thus the driver can feel that the sound field is slowly recovered in the vehicle, and the naturalness of sound field control in the vehicle is improved.
Further, based on the first embodiment and/or the second embodiment of the in-vehicle sound field control method of the present application described above, a third embodiment of the in-vehicle sound field control method of the present application is proposed.
Referring to fig. 9, fig. 9 is a flowchart illustrating a third embodiment of an in-vehicle sound field control method according to the present application.
Likewise, the third embodiment of the in-vehicle sound field control method of the present application is also applied to the terminal device described above. The method for controlling the sound field in the vehicle of the present application will be described for clarity, and the method for controlling the sound field in the vehicle of the present application will be described below with a target vehicle, which is one type of the terminal device, as an execution subject.
In a third embodiment of the in-vehicle sound field control method of the present application, the in-vehicle sound field control method of the present application may further include the steps of:
step S01, acquiring in-vehicle space information of the target vehicle and acquiring playing audio signals of each sound player;
the in-vehicle spatial information refers to spatial coordinates of the interior of the target vehicle, the audio signal refers to a carrier of frequency variation information and amplitude variation information of regular sound waves with voice, music and sound effects, and the playback audio signal refers to an audio signal being output for playback by the sound player. When acquiring the in-vehicle spatial information of the target vehicle, the in-vehicle spatial information of the target vehicle may be acquired through an HOA (Higher Order Ambisonics ) model.
Step S02, performing convolution operation on the playing audio signals of the sound players and the in-vehicle spatial information, so as to adjust the playing parameters of the sound players to the target playing parameters.
In this embodiment, convolution operation is performed on the audio signals played by each sound player and the spatial information in the vehicle, so that the audio signals played by each sound player carry a delay and a frequency response signal to generate a near-far-field distance sense and an up-down-left-right direction sense, so that the listening direction of a driver in the vehicle can be changed from a psychoacoustic angle, the driver can feel acceleration sense and deceleration sense of the vehicle more truly in the vehicle, and the driving experience of the driver is further improved psychologically on the basis of improving the driving experience of the driver by adjusting the playing parameters of each sound player in the vehicle.
Further, the application also provides an in-vehicle sound field control device, which is applied to a target vehicle, and a plurality of sound players are arranged in the target vehicle.
Referring to fig. 10, the in-vehicle sound field control apparatus of the present application includes:
an acquisition module 10 for acquiring a running acceleration of the target vehicle and acquiring an acceleration direction of the running acceleration;
a determining module 20, configured to determine a target playing parameter of each sound player according to the running acceleration;
And the control module 30 is configured to adjust the playing parameters of each sound player to the target playing parameters, so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction.
Optionally, the target playing parameter includes a target playing volume;
the determining module 20 is further configured to:
determining an acceleration interval in which the running acceleration is located;
determining a target volume coefficient corresponding to each sound player in the acceleration interval;
and calculating the product of the current playing volume of each sound player and the target volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
Optionally, the determining module 20 is further configured to:
for any sound player, under the condition that the running acceleration is smaller than a first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a first preset coefficient relation corresponding to the running acceleration and the sound player;
under the condition that the running acceleration is larger than the first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a second preset coefficient relation corresponding to the running acceleration and the sound player;
And under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
Optionally, the determining module 20 is further configured to:
for any one of the sound players, taking a first preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
under the condition that the running acceleration is larger than the first preset acceleration threshold, taking a second preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
Optionally, the target playing parameter includes a target playing volume;
the determining module 20 is further configured to:
determining an acceleration interval in which the running acceleration is located;
determining a regional volume coefficient corresponding to the acceleration interval of the in-vehicle region where each sound player is positioned;
And calculating the product of the current playing volume of each sound player and the regional volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
Optionally, the determining module 20 is further configured to:
for an in-vehicle region where any one of the sound players is located, calculating a region volume coefficient corresponding to the in-vehicle region according to a third preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is smaller than a first preset acceleration threshold;
calculating a regional volume coefficient corresponding to the in-vehicle region according to a fourth preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is greater than the first preset acceleration threshold;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
Optionally, the determining module 20 is further configured to:
for an in-vehicle area where any one of the sound players is located, taking a third preset volume coefficient corresponding to the in-vehicle area as the area volume coefficient under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
Taking a fourth preset volume coefficient corresponding to the in-vehicle region as the region volume coefficient under the condition that the running acceleration is larger than the first preset acceleration threshold value;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
Optionally, the target playing parameter includes a target playing pitch;
the determining module 20 is further configured to:
acquiring initial play pitch of each sound player;
and according to the initial playing pitch and the running acceleration, obtaining the target playing pitch of each sound player through Doppler speed operation.
Optionally, the in-vehicle sound field control device of the present application further includes:
acquiring the running acceleration of the target vehicle in the next time step;
and resetting the playing parameters of each sound player back to the initial playing parameters based on the first preset resetting time length under the condition that the running acceleration of the next time step is equal to the first preset acceleration threshold value.
Optionally, the in-vehicle sound field control device of the present application further includes:
if the running acceleration is equal to a second preset acceleration threshold value, acquiring the maintenance duration of the target vehicle for maintaining the running acceleration, wherein the second preset acceleration threshold value is larger than the first preset acceleration threshold value;
And if the maintenance time length is greater than or equal to the preset maintenance time length threshold value, resetting the playing parameters of each sound player back to the initial playing parameters based on a second preset resetting time length.
Optionally, the in-vehicle sound field control device of the present application further includes:
acquiring in-vehicle space information of the target vehicle and acquiring playing audio signals of each sound player;
and carrying out convolution operation on the playing audio signals of the sound players and the in-vehicle space information so as to adjust the playing parameters of the sound players to the target playing parameters.
The in-vehicle sound field control device provided by the application can solve the technical problem that in the prior art, a driver cannot actually feel acceleration sense and deceleration sense of a vehicle in terms of auditory sense, so that driving experience of the driver is poor. Compared with the prior art, the in-vehicle sound field control device provided by the embodiment of the application has the same beneficial effects as the in-vehicle sound field control method provided by the embodiment, and other technical features in the in-vehicle sound field control device are the same as the features disclosed by the method of the previous embodiment, and are not repeated herein.
In addition, the application also provides electronic equipment, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the in-vehicle sound field control method according to any one of the above embodiments.
It should be noted that, the specific embodiment of the electronic device of the present application is substantially the same as each embodiment of the above-mentioned in-vehicle sound field control method, and will not be described herein.
In addition, the present application also provides a computer readable storage medium, on which an in-vehicle sound field control program is stored, which when executed by a processor, implements the steps of the in-vehicle sound field control method according to any one of the above embodiments.
It should be noted that, the specific embodiments of the computer readable storage medium of the present application are substantially the same as the embodiments of the above-mentioned in-vehicle sound field control method, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a device for performing the method of controlling the sound field in a vehicle of the present application, which may be a mobile terminal, a data storage control terminal, a PC or a portable computer, etc.) to perform the method of the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein, or any application, directly or indirectly, within the scope of the application.

Claims (13)

1. An in-vehicle sound field control method, characterized by being applied to a target vehicle, the interior of which is provided with a plurality of sound players, the in-vehicle sound field control method comprising:
acquiring the running acceleration of the target vehicle and acquiring the acceleration direction of the running acceleration;
determining target playing parameters of each sound player according to the running acceleration;
and adjusting the playing parameters of the sound players to the target playing parameters so as to control the sound field in the target vehicle to move in the direction opposite to the acceleration direction.
2. The in-vehicle sound field control method according to claim 1, wherein the target play parameter includes a target play volume;
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
determining an acceleration interval in which the running acceleration is located;
determining a target volume coefficient corresponding to each sound player in the acceleration interval;
and calculating the product of the current playing volume of each sound player and the target volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
3. The in-vehicle sound field control method according to claim 2, wherein the step of determining a target volume coefficient for each of the sound players in the acceleration section includes:
for any sound player, under the condition that the running acceleration is smaller than a first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a first preset coefficient relation corresponding to the running acceleration and the sound player;
under the condition that the running acceleration is larger than the first preset acceleration threshold, calculating a target volume coefficient corresponding to the sound player according to a second preset coefficient relation corresponding to the running acceleration and the sound player;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
4. The in-vehicle sound field control method according to claim 2, wherein the step of determining a target volume coefficient for each of the sound players in the acceleration section includes:
for any one of the sound players, taking a first preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
Under the condition that the running acceleration is larger than the first preset acceleration threshold, taking a second preset volume coefficient corresponding to the sound player as a target volume coefficient corresponding to the sound player;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as a target volume coefficient corresponding to the sound player.
5. The in-vehicle sound field control method according to claim 1, wherein the target play parameter includes a target play volume;
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
determining an acceleration interval in which the running acceleration is located;
determining a regional volume coefficient corresponding to the acceleration interval of the in-vehicle region where each sound player is positioned;
and calculating the product of the current playing volume of each sound player and the regional volume coefficient corresponding to the sound player to obtain the target playing volume of each sound player.
6. The in-vehicle sound field control method according to claim 5, wherein the step of determining a region volume coefficient corresponding to the acceleration section of the in-vehicle region in which each of the sound players is located includes:
For an in-vehicle region where any one of the sound players is located, calculating a region volume coefficient corresponding to the in-vehicle region according to a third preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is smaller than a first preset acceleration threshold;
calculating a regional volume coefficient corresponding to the in-vehicle region according to a fourth preset coefficient relation between the running acceleration and the in-vehicle region when the running acceleration is greater than the first preset acceleration threshold;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
7. The in-vehicle sound field control method according to claim 5, wherein the step of determining a region volume coefficient corresponding to the acceleration section of the in-vehicle region in which each of the sound players is located includes:
for an in-vehicle area where any one of the sound players is located, taking a third preset volume coefficient corresponding to the in-vehicle area as the area volume coefficient under the condition that the running acceleration is smaller than a first preset acceleration threshold value;
Taking a fourth preset volume coefficient corresponding to the in-vehicle region as the region volume coefficient under the condition that the running acceleration is larger than the first preset acceleration threshold value;
and under the condition that the running acceleration is equal to the first preset acceleration threshold value, taking a preset initial volume coefficient as an area volume coefficient corresponding to the in-vehicle area.
8. The in-vehicle sound field control method according to claim 1, wherein the target play parameter includes a target play pitch;
the step of determining the target playing parameters of each sound player according to the running acceleration comprises the following steps:
acquiring initial play pitch of each sound player;
and according to the initial playing pitch and the running acceleration, obtaining the target playing pitch of each sound player through Doppler speed operation.
9. The in-vehicle sound field control method according to any one of claims 1 to 8, characterized in that, after the step of adjusting the playback parameters of each of the sound players to the target playback parameters, the in-vehicle sound field control method further comprises:
acquiring the running acceleration of the target vehicle in the next time step;
And resetting the playing parameters of each sound player back to the initial playing parameters based on the first preset resetting time length under the condition that the running acceleration of the next time step is equal to the first preset acceleration threshold value.
10. The in-vehicle sound field control method according to any one of claims 1 to 8, characterized in that, after the step of adjusting the playback parameters of each of the sound players to the target playback parameters, the in-vehicle sound field control method further comprises:
if the running acceleration is equal to a second preset acceleration threshold value, acquiring the maintenance duration of the target vehicle for maintaining the running acceleration, wherein the second preset acceleration threshold value is larger than the first preset acceleration threshold value;
and if the maintenance time length is greater than or equal to the preset maintenance time length threshold value, resetting the playing parameters of each sound player back to the initial playing parameters based on a second preset resetting time length.
11. The in-vehicle sound field control method according to any one of claims 1 to 8, characterized in that the in-vehicle sound field control method further comprises:
acquiring in-vehicle space information of the target vehicle and acquiring playing audio signals of each sound player;
And carrying out convolution operation on each play audio signal and the in-vehicle space information so as to adjust the play parameters of each sound player to the target play parameters.
12. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the in-vehicle sound field control method according to any one of claims 1 to 11.
13. A readable storage medium, characterized in that the readable storage medium is a computer readable storage medium having stored thereon a program for realizing the in-vehicle sound field control method, the program for realizing the in-vehicle sound field control method being executed by a processor to realize the steps of the in-vehicle sound field control method according to any one of claims 1 to 11.
CN202311269562.1A 2023-09-27 2023-09-27 In-vehicle sound field control method, electronic device and readable storage medium Pending CN117135535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311269562.1A CN117135535A (en) 2023-09-27 2023-09-27 In-vehicle sound field control method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311269562.1A CN117135535A (en) 2023-09-27 2023-09-27 In-vehicle sound field control method, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN117135535A true CN117135535A (en) 2023-11-28

Family

ID=88856528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311269562.1A Pending CN117135535A (en) 2023-09-27 2023-09-27 In-vehicle sound field control method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN117135535A (en)

Similar Documents

Publication Publication Date Title
US10123145B2 (en) Simulating acoustic output at a location corresponding to source position data
JP6055657B2 (en) GAME SYSTEM, GAME PROCESSING CONTROL METHOD, GAME DEVICE, AND GAME PROGRAM
CN110040086A (en) System and method for vehicle noise masking
EP0958158A1 (en) Vehicle collision warning system
KR102166703B1 (en) Separate sound field forming apparatus used in a car and method for forming separate sound filed used in the car
CN112937432A (en) Control method, device and equipment of vehicle sound production device and storage medium
US20230209293A1 (en) Sound Field Optimization Method and Device Performing Same
EP3392619B1 (en) Audible prompts in a vehicle navigation system
US20210274303A1 (en) Sound signal processing device, mobile apparatus, method, and program
CN109976701B (en) Sound field positioning and adjusting method and vehicle sound system
CN114103850B (en) System for realizing active sound enhancement of automobile
CN109104674B (en) Listener-oriented sound field reconstruction method, audio device, storage medium, and apparatus
CN117135535A (en) In-vehicle sound field control method, electronic device and readable storage medium
CN112569609A (en) Vehicle and game control method and device thereof
EP3358862A1 (en) Method and device for stereophonic depiction of virtual noise sources in a vehicle
WO2024093401A1 (en) Control method and apparatus, and vehicle
CN114390396A (en) Method and system for controlling independent sound zone in vehicle and related equipment
US20230186893A1 (en) Apparatus and method for controlling vehicle sound
CN116264042A (en) Virtual driving simulation device for improving immersion feeling and method thereof
CN116844540A (en) Vehicle-mounted voice assistant interaction method and device, electronic equipment and storage medium
CN116391171A (en) Dynamically changing audio characteristics
KR20230156967A (en) audio zoom
CN115973073A (en) Self-adaptive sound field center adjusting method, device, equipment and storage medium
CN117975989A (en) Vehicle-mounted voice recognition method and device, electronic equipment and storage medium
CN116188645A (en) 3D holographic dance music scene generation method, system and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination